



|
Syntax onFrame(frame) { statement(s); } onFrame(frame,afterPlacedObjectEvents) { statement(s); } onFrame(frame,beforePlacedObjectEvents) { statement(s); } Arguments frame: The Frame number when the statements are to be executed. afterPlacedObjectEvents: Optional keyword. See below. beforePlacedObjectEvents: Optional keyword. See below. Returns Nothing. Description This Event Handler Function runs whenever the playhead enters the nominated frame. It will not run again unless the frame is exited and re-entered. The order of execution of code during a frame is as follows 1) any frame events for existing child objects 2) onFrame(x,beforePlacedObjectEvents) 3) any frame events for newly placed child objects 4) onFrame(x,afterPlacedObjectEvents) The default if you specify neither option is "beforePlacedObjectEvents" (this is the same behaviour as Flash uses for its frame actions). |






