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 />

Figure 21.1 Creating a registration page<br />

<strong>Flash</strong> does not allow the caret colour <strong>to</strong> be set <strong>to</strong> any other colour than black so if your input box<br />

has a black background the caret will not be visible, which can be very confusing for the user.<br />

The first few frames of the ‘register.fla’ project are all loading frames. By frame 5 we know that<br />

the form and all its resources are loaded. Take a look at the frame action on the main timeline for<br />

frame 5.<br />

1 //Frame 5 main timeline<br />

2 A.tabIndex = 1;<br />

3 B.tabIndex = 2;<br />

4 C.tabIndex = 3;<br />

5 D.tabIndex = 4;<br />

6 E.tabIndex = 5;<br />

7 F.tabIndex = 6;<br />

8 G.tabIndex = 7;<br />

9 Selection.setFocus("name");<br />

10 s<strong>to</strong>p();<br />

Listing 21.1<br />

330

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

Saved successfully!

Ooh no, something went wrong!