In this section, you will composite a part of a transparent Flash animation with an HTML page background. To this end, you will create an alpha channel bitmap with a gradient.
Press Control+V to paste the clipboard.
Figure 19. A nice photo from the Louvres museum
Create a mask by clicking the mask button at the bottom of the Layers tab.
Figure 20. The photo layer
A mask appears next to the photo layer.
Figure 21. The mask appearing next to the photo layer
Select the mask.
Figure 22. The selected mask
Select the Gradient Tool
in the toolbox and use it on the picture to create a gradient in the mask.
Figure 23. The gradient created in the mask
The gradient you created now also appears in the mask next to the photo layer.
Figure 24. The mask showing the gradient
Disable visibility of the Background layer.
Figure 25. The disabled Background layer
A gray checkerboard now appears through the transparent gradient.
Figure 26. The gray and white checkerboard showing through the mask gradient
Select File > Save for Web (Alt+Shift+Control+S). Select PNG-24 and select the Transparency option. Alternatively, you can save the PSD file, open it in Fireworks, and save it as PNG.
Figure 27. The PNG parameters in the Save for Web window
Select File > Publish Settings. In the HTML tab, select Transparent Windowless.
Figure 28. The HTML tab in the Publish Settings window