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.

Chapter 19: <strong>Flash</strong> Lite – how does it affect game developers?<br />

18 if (boardTest>-8 && boardTest31 then we’ve missed<br />

26 if (moveY>0 && ballY >= 31) {<br />

27 go<strong>to</strong>AndPlay ("ballstart");<br />

28 } else {<br />

29 prevFrame ();<br />

30 }<br />

Listing 19.3<br />

As you can see from the listing a lot of the <strong>ActionScript</strong> that you are familiar with is available<br />

in <strong>Flash</strong> Lite. Table 19.2 is a summary of what is available in <strong>Flash</strong> Lite 1.0.<br />

Table 19.2 <strong>ActionScript</strong> supported in <strong>Flash</strong> Lite 1.0<br />

<strong>ActionScript</strong> Comment<br />

// Comment<br />

, Separa<strong>to</strong>r for two expressions<br />

. Navigate hierarchies<br />

"" String<br />

−− Decrement<br />

++ Increment<br />

+ Add<br />

+= Add and assign<br />

− Subtract<br />

−= Subtract and assign<br />

∗ Multiply<br />

∗= Multiply and assign<br />

/ Divide<br />

/= Divide and assign<br />

= Test two expressions for equality<br />

< Less than<br />

Greater than<br />

>= Greater than or equal <strong>to</strong><br />

Not equal<br />

% Remainder after integer division<br />

%= Remainder and assign<br />

|| Or<br />

! Not<br />

&& And<br />

?: Conditional assignment<br />

315

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

Saved successfully!

Ooh no, something went wrong!