Hey Guys,
This actionscript 3 stuff is giving me trouble with the easiest functions. I was able to get a movie clip to play by clicking on a button, but now I am having trouble with the close button.
Basically, I just need the movie clip (box1) to go back to frame number one when the user clicks on the “X”.
I set up the button the same way as I did the pop-up box:
box1.close_btn.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void
{ box1.gotoAndStop(1); }
That doesn’t work though and I have removed it for the examples below
Example: (Click “Office Products”)
http://www.thepatjohnson.com/misc/test-movement-3.html
FLA:
http://www.thepatjohnson.com/misc/test-fla.zip
Any help would be greatly appreciated.Thank you!