gotoAndPlay instead stops


hello,
i have script within frame initiates stop, time delay, , gotoandplay () - see attached code. works great! however, when gotoandplay (2) stops in frame 2 rather playing point. in fact can nicely go frame want - long want stop there. there no other scripts or hidden stop () commands lurking anywhere. clean , open timeline. whats deal?
any - appreciated.
steve

you have onenterframe function running continuously, after think you've finished it. so, happening when if condition returns true first time, playback head jump forward frame 2. however, onenterframe function continue run. , if condition still true, , playback head pulled frame 2, on , over, , over...

what want kill onenterframe function when finished it. can putting "delete onenterframe" after gotoandplay(2); line.

alternately, use setinterval function , use clearinterval remove event.


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support