i made a button if you rollover on it it's size is larger i want if you roll out on it it's size return back to it's original size i use this function prevFrame but my problem is when i use it it stops on the previous frame only and i want to stop from the starting
A:
You can label your frames an use the gotoAndStop() method
function onRollover(event:MouseEvent):void { gotoAndStop('largeSize'); } function onRollOut(event:MouseEvent):void { gotoAndStop('normalSize'); }
PatrickS
2010-09-11 02:39:41
hi PatrickS thanks for your answer i want it for a game , so i want it to be frame by frame
Maged
2010-09-11 11:33:46
ok, but there's only two frames in your button. Doesn't your button has its own movie clip?
PatrickS
2010-09-11 12:21:04
yes but the butoon is Movie Clip n't a Button called btn_mc that's what i mean
Maged
2010-09-11 12:51:14