sorry, I only half read your post (my fault, obviously)
Here is how you would do it in your Class file
Code:package { import flash.display.*; import flash.events.*; public class buttonWork extends MovieClip { public function buttonWork() { theButton.addEventListener(MouseEvent.CLICK, clickEvent); } private function clickEvent(e:MouseEvent):void { gotoAndStop('success'); } } }




Reply With Quote