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

316<br />

Table 19.2 Continued<br />

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

& String concatenation<br />

add String concatenation<br />

break Exit a ‘for’ or ‘while’ loop<br />

call Jump <strong>to</strong> a function<br />

switch case Conditional jumping<br />

chr() ASCII <strong>to</strong> character<br />

continue Move <strong>to</strong> next loop of a ‘for’<br />

do - - while Looping<br />

duplicateMovieClip Create new movie clip instance<br />

if else Conditional coding<br />

eq String equality<br />

eval() Access variables via names<br />

ge String greater than or equal <strong>to</strong><br />

getProperty() Not all properties see list that follows<br />

getTimer() Time in milliseconds since movie started<br />

getURL() Not fully supported. Only one call per action<br />

go<strong>to</strong>AndPlay() Moves playback head<br />

go<strong>to</strong>AndS<strong>to</strong>p() S<strong>to</strong>ps playback head<br />

gt String greater than<br />

if FrameLoaded() Used <strong>to</strong> test streaming of a movie<br />

int() Converts decimal <strong>to</strong> nearest integer<br />

le String less than<br />

length() Returns the length of a string<br />

lt String less than<br />

mbchr() ASCII <strong>to</strong> multibyte character<br />

mblength() Returns length a multibyte string<br />

mbord() Character <strong>to</strong> multibyte code<br />

mbsubstring() Extracts a multibyte character string from a multibyte string<br />

ne String inequality<br />

nextFrame() Moves playback head on a frame and s<strong>to</strong>ps<br />

nextScene() Moves playback head on a scene and s<strong>to</strong>ps<br />

on(...) Partially supported event handlers<br />

ord() Character <strong>to</strong> ASCII<br />

play() Starts playback<br />

prevFrame() Moves playback head back a frame and s<strong>to</strong>ps<br />

prevScene() Moves playback head back a scene and s<strong>to</strong>ps<br />

random() Returns a random integer between 0 and the number passed<br />

removeMovieClip() Deletes a clip created with duplicateMovieClip<br />

set() Used <strong>to</strong> assign a value <strong>to</strong> a variable<br />

setProperty Partially supported property assignment<br />

s<strong>to</strong>p() S<strong>to</strong>ps playback<br />

s<strong>to</strong>pAllSounds() S<strong>to</strong>ps all sounds playing<br />

substring() Extracts a section of a string<br />

tellTarget() Used <strong>to</strong> send <strong>ActionScript</strong> <strong>to</strong> a particular movie clip<br />

<strong>to</strong>ggleHighQuality() Turns anti-aliasing on or off<br />

trace() Debug method

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

Saved successfully!

Ooh no, something went wrong!