03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

stop();<br />

if (init == undefined) {<br />

this.createEmptyMovieClip("nextscene_mc", this.getNextHighestDepth());<br />

nextscene_mc.createTextField("nextscene_txt", this.getNextHighestDepth(),<br />

200, 0, 100, 22);<br />

nextscene_mc.nextscene_txt.autoSize = true;<br />

nextscene_mc.nextscene_txt.border = true;<br />

nextscene_mc.nextscene_txt.text = "Next Scene";<br />

this.createEmptyMovieClip("prevscene_mc", this.getNextHighestDepth());<br />

prevscene_mc.createTextField("prevscene_txt", this.getNextHighestDepth(),<br />

00, 0, 100, 22);<br />

prevscene_mc.prevscene_txt.autoSize = true;<br />

prevscene_mc.prevscene_txt.border = true;<br />

prevscene_mc.prevscene_txt.text = "Prev Scene";<br />

nextscene_mc.onRelease = function() {<br />

nextScene();<br />

};<br />

prevscene_mc.onRelease = function() {<br />

prevScene();<br />

};<br />

init = true;<br />

}<br />

Make sure you place a stop() action on Frame 1 of Scene 2.<br />

See also<br />

prevScene function<br />

Number function<br />

Number(expression) : Number<br />

Converts the parameter expression to a number <strong>and</strong> returns a value as described in the<br />

following list:<br />

■ If expression is a number, the return value is expression.<br />

■ If expression is a Boolean value, the return value is 1 if expression is true, 0 if<br />

expression is false.<br />

■ If expression is a string, the function attempts to parse expression as a decimal<br />

number with an optional trailing exponent (that is, 1.57505e-3).<br />

■ If expression is NaN, the return value is NaN.<br />

64 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!