Button control Movie clip
Hi,
I have a script that work well: (No problems..)
Buth_CathRed.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame_2);
function fl_ClickToGoToNextFrame_2(event:MouseEvent):void
{
nextFrame();
}
This script controa simple timline (Just jump from one keyframe to another and back.. - Only 2 keyFrames at this movie)
I want to add another script that will work when i will press on the same button (Buth_CathRed).
This is the script that want to add:
this.Pannel_m.gotoAndStop(2);
The button suppose to control also another movie clip that is outside the button movieclip.
I dont understand how and were do I add that script ( this.Pannel_m.gotoAndStop(2); )
I cant put them on the same timeline becouse one has animation and one is static..
also: what is the simplest way to creat simple scrip the button that control movie clip (The button is outside the MC)?..
Thanks alot!!!
and hope I wrote it right.. (:
