I have it for AS3 here:
Ok the root movieclip is called main_mc
Inside of the main_mc movieclip is 1 keyframe with this line:
PHP Code:
var BALLS=false;
Inside of the main_mc movieclip is 1 movieclip called mc1
Inside of mc1 is 2 keyframes, the second keyframe has a stop();
The second keyframe of mc1 has a movieclip in it called mc2
mc2 has 6 keyframes, the first keyframe has this line:
PHP Code:
MovieClip(MovieClip((root).stage.getChildAt(0)).getChildByName("main_mc")).BALLS=true
The 6th keyframe of mc2 has this line:
PHP Code:
MovieClip(MovieClip((root).stage.getChildAt(0)).getChildByName("main_mc")).BALLS=false
MovieClip(MovieClip((root).stage.getChildAt(0)).getChildByName("main_mc")).mc1.gotoAndStop(1)
Hope that helps.
Here is another thing I did to set up a sequence, on the root timeline I wrote this:
PHP Code:
stage.addEventListener(Event.ENTER_FRAME,loop);
function loop(e:*){
trace(main_mc.BALLS)
}
For mc2 you can put this on the 6th keyframe:
PHP Code:
MovieClip(MovieClip((root).stage.getChildAt(0)).getChildByName("main_mc")).mc1.gotoAndPlay(1)
The output will look like this:
HTML Code:
false
true
true
true
true
true
false
true
true
true
true
true
false
true
true
true
true
true
download 0.1