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

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

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

};<br />

this.play_mc.onRelease = function() {<br />

play();<br />

};<br />

trace("frame 1");<br />

See also<br />

gotoAndPlay function, gotoAndPlay (MovieClip.gotoAndPlay method)<br />

prevFrame function<br />

prevFrame() : Void<br />

Sends the playhead to the previous frame. If the current frame is Frame 1, the playhead does<br />

not move.<br />

Example<br />

When the user clicks a button called myBtn_btn <strong>and</strong> the following ActionScript is placed on a<br />

frame in the Timeline for that button, the playhead is sent to the previous frame:<br />

stop();<br />

this.myBtn_btn.onRelease = function(){<br />

prevFrame();<br />

};<br />

See also<br />

nextFrame function, prevFrame (MovieClip.prevFrame method)<br />

prevScene function<br />

prevScene() : Void<br />

Sends the playhead to Frame 1 of the previous scene.<br />

See also<br />

nextScene function<br />

r<strong>and</strong>om function<br />

r<strong>and</strong>om(value) : Number<br />

Deprecated since Flash Player 5. This function was deprecated in favor of Math.r<strong>and</strong>om().<br />

72 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!