Hello all. Thank you for the help!
I call an mc1 (rg1, mb1) of 48 frames. Once the 48 frames cycles through once, it stops as designed (no looping).
Q: How do I return control back to the user? For example, double clicking and allowing rg1/mb1 to drag and drop again on stage?
Prototyped:
public function something(): void {
rg1.addEventListener(MouseEvent.DOUBLE_CLICK, mouseDoubleClicked);
mb1.addEventListener(MouseEvent.DOUBLE_CLICK, startAnimation);
}
private function mouseDoubleClicked(event:MouseEvent):void {
rg1.stop();
launchMenuBar();
}
private function launchMenuBar():void {
addChild(mb1);
// display properties
mb1.blendMode="screen";
mb1.width=400;
mb1.height=230;
mb1.x=(rg1.x-50);
mb1.y=(rg1.y-44);
// behaviors
mb1.addFrameScript(0, function() {mb1.stop();});
mb1.addFrameScript(47, function() {mb1.stop();});
}
private function startAnimation(event:Event):void {
mb1.play();
}