02.02.2013 Views

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Flash</strong> <strong>MX</strong> <strong>2004</strong> <strong>Games</strong><br />

To use a gradient select a linear, radial or bitmap fill in the colour mixer panel. You can add<br />

as many colour segments as you need <strong>to</strong> the gradient bar <strong>to</strong> make the gradient. Now click inside<br />

a bounded area, making sure that ‘Lock Fill’ is unselected. The area is filled with the gradient. If<br />

the positioning of the gradient is not <strong>to</strong> your liking then you can choose the Fill Transform <strong>to</strong>ol<br />

but<strong>to</strong>n and click on the gradient. You will get something like the image shown in Figure 2.31,<br />

if you have chosen a radial gradient. You can move the centre of the gradient using the central<br />

circle handle. The square handle stretches the scale of the gradient. The circle on the outer edge<br />

between the two other handles sizes the gradient and the lower circle rotates the gradient. If you<br />

selected a ‘Linear Gradient’ then the handles for adjusting the gradient will be rectangular. The<br />

square one is for stretching and the circular one for rotating. Clicking and dragging the central<br />

circular handle adjusts the position of the fill.<br />

Figure 2.31 Moving a gradient using the Transform Fill option<br />

If you want <strong>to</strong> fill an area with a bitmap then import a bitmap in<strong>to</strong> <strong>Flash</strong> using ‘File/Import...’.<br />

Select the bitmap by clicking on it and choose the menu option ‘Modify/Break Apart’. The bitmap<br />

selection changes from a surrounding rectangle <strong>to</strong> a patterned area. If you use the Eyedropper <strong>to</strong>ol,<br />

then you can pick up the image as a fill. Now click on an area <strong>to</strong> apply the image. If the area is<br />

bigger than the image then the image will be repeated in both the width and height.<br />

28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!