actionscript 3 - How do I change a movie-clip's frame when it isn't on the current frame? AS3 -


i want able change movie clip frame off screen currently, on screen later. want frame change 1 2 on movie-clip if overall timeline reaches point. if timeline reaches frame 5 or specified frame, movie-clip change 1 2. so, when go frame movie-clip on it, stays on movie-clip 2.

to explain trying do: named frame "index" has movie-clip , want parts viewer navigated movie-clip changes color or animation. when go index, movie-clip stay on second frame of animation.

i sort of new action script , i've spent hours trying figure out how this, appreciated.


i don't know how target isn't in current frame.

you put movieclip:

function checkparent(e:event):void {     gotoandstop(1);     if(parent && (parent movieclip).currentframe > 5)     {         gotoandstop(2);     } }  addeventlistener(event.enter_frame, checkparent); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -