Syntax
[spritename.] onFrame(frame) {
statement(s);
}
Arguments
spritename: The optional Sprite name containing the Frame.
frame: The Frame number when the statements are to be executed.
Returns
Nothing.
Description
This Event Handler function is called when the playhead moves to the specified Frame.
Sample
Stop the Movie on the 10th Frame of the current Scene.
onFrame (10) {
stop();
}