开发者

problem in action script3 function prevFrame

开发者 https://www.devze.com 2023-01-15 11:50 出处:网络
i made a buttonif you rollover on it it\'s size is larger i want if you roll out开发者_JAVA百科 on it it\'s size return back to it\'s original size

i made a button if you rollover on it it's size is larger i want if you roll out开发者_JAVA百科 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


You can label your frames an use the gotoAndStop() method


function onRollover(event:MouseEvent):void
{
   gotoAndStop('largeSize');
}

function onRollOut(event:MouseEvent):void
{
   gotoAndStop('normalSize');
}

0

精彩评论

暂无评论...
验证码 换一张
取 消