views:

23

answers:

1

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
hi PatrickS thanks for your answer i want it for a game , so i want it to be frame by frame
Maged
ok, but there's only two frames in your button. Doesn't your button has its own movie clip?
PatrickS
yes but the butoon is Movie Clip n't a Button called btn_mc that's what i mean
Maged