This content has been marked as final.
Show 1 reply
-
1. Re: How do I create a rollover movieclip button?
kglad Nov 7, 2014 7:07 AM (in response to sean2148)click insert>new symbol>movieclip.
on the timeline create your movieclip animation.
add a layer to frame 1 and add the following code:
stop();
open your library and drag your movieclip from the library to the main timeline/stage. in the properties panel assign an instance name, eg mc
open the actions panel and add:
mc.addEventListener(MouseEvent.MOUSE_OVER,overF);
mc.addEventListener(MouseEvent.MOUSE_OUT,outF);
function overF(e:MouseEvent):void{
MovieClip(e.currentTarget).play();
}
function outF(e:MouseEvent):void{
MovieClip(e.currentTarget).gotoAndStop(1);}


