PDA

View Full Version : Play movie clip if at certain frame



NeoDreamer
July 12th, 2003, 02:49 PM
How do you translate the english (below) into actionscript?

If the the movie clip with the instance name "hello" is currently at a frame greater than 2 (considering the frames inside "hello," not the main timeline), then goto and play its frame 76.

fluid_0ne
July 12th, 2003, 03:02 PM
hello.onEnterFrame = function() {
_currentframe >2 ? _root.gotoAndPlay(76) : null
}