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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

we set the caption, which in Figure 8.3 displays ‘No overlap’, <strong>to</strong> indicate the current overlap and<br />

set the light <strong>to</strong> be red or green depending on whether an overlap is occurring.<br />

Figure 8.3 The stage for the Conditions03 project<br />

For this project instead of placing all our code on frame one of the main timeline we are going<br />

<strong>to</strong> let one of the movie clips look after it. The <strong>to</strong>p line displaying ‘Move your mouse around’ is<br />

a static text field. Click on it and look at the Properties window, ‘Window/Properties’ or press<br />

Ctrl + F3. You should see the panel shown in Figure 8.4. Using a static text field you can select<br />

your chosen font, and <strong>Flash</strong> will embed this in<strong>to</strong> the compiled file, so you don’t need <strong>to</strong> ensure<br />

that your users have the same font. A number of formatting details can be set such as alignment<br />

and font colour. You can even create a hyperlink <strong>to</strong> a web page.<br />

Figure 8.4 Properties window for a static text field<br />

Below the text field is a movie clip called ‘Light’; click on the Light now and look at the<br />

Properties window. You should see a panel like that shown in Figure 8.5.<br />

108

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

Saved successfully!

Ooh no, something went wrong!