03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - 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.

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

Availability: <strong>ActionScript</strong> 1.0; Flash Player 2<br />

Example<br />

When the user clicks a button called myBtn_btn <strong>and</strong> the following <strong>ActionScript</strong> 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 />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 2<br />

See also<br />

nextScene function<br />

print function<br />

print(target:Object, boundingBox:String) : Void<br />

Prints the target movie clip according to the boundaries specified in the parameter (bmovie,<br />

bmax, or bframe). If you want to print specific frames in the target movie clip, attach a #p<br />

frame label to those frames. Although print() results in higher quality prints than<br />

printAsBitmap() it cannot be used to print movie clips that use alpha transparencies or<br />

special color effects.<br />

If you use bmovie for the boundingBox parameter but do not assign a #b label to a frame, the<br />

print area is determined by the Stage size of the loaded movie clip. (The loaded movie clip<br />

does not inherit the main movie clip's Stage size.)<br />

92 <strong>ActionScript</strong> language elements

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

Saved successfully!

Ooh no, something went wrong!