# Error in...Complex Button RollOver/RollOut Effects

**URL:** <https://forum.kirupa.com/t/error-in-complex-button-rollover-rollout-effects/290308>\
**Category:** Uncategorized\
**Created:** [June 12, 2009, 3:14pm UTC](https://forum.kirupa.com/t/error-in-complex-button-rollover-rollout-effects/290308 "2009-06-12T15:14:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyblu263](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@skyblu263](https://forum.kirupa.com/u/skyblu263)\
**Post date:** [June 12, 2009, 3:14pm UTC](https://forum.kirupa.com/t/error-in-complex-button-rollover-rollout-effects/290308/1 "2009-06-12T15:14:34Z")

</div>

Hey all,

I’m using Flash CS3 and ActionScript 2.0. I am trying to use the “[SIZE=4][COLOR=#003366]Complex[FONT=Verdana] [/FONT][/COLOR][/SIZE][FONT=Arial][SIZE=2][FONT=Verdana][SIZE=4][COLOR=#003366]Button RollOver/RollOut Effect”[/COLOR][/SIZE][/FONT][/SIZE][/FONT] tutorial. [http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)

It works for the most part. But, when I publish the .fla file and view it in Internet Explorer, instead of the button beginning small then, after rollover, large. It begins large. Skips. Then works perfectly the remainder of the time on the browser. Is there something I’m missing in the code?

Please help!

Here are the actionscripts being used:  
[LIST=1]  
[_][LEFT]Select the first frame of the actions layer. Type this code in the actions panel:[/LEFT]  
[/LIST][INDENT][COLOR=#cc00cc]//stop();[/COLOR] [COLOR=#0000d0]this[/COLOR].[COLOR=#0000d0]onEnterFrame[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]function[/COLOR]COLOR=#0000ff{[/COLOR] [COLOR=#006610]if[/COLOR][COLOR=#0000ff]([/COLOR][COLOR=#000050]rewind[/COLOR] [COLOR=#0000ff]==[/COLOR] [COLOR=#006610]true[/COLOR][COLOR=#0000ff]){[/COLOR] [COLOR=#0000d0]prevFrame[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#0000ff]}[/COLOR] [COLOR=#0000ff]}[/COLOR] [COLOR=#0000d0]this[/COLOR].[COLOR=#0000d0]onRollOver[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]function[/COLOR]COLOR=#0000ff{[/COLOR] [COLOR=#000050]rewind[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]false[/COLOR]; [COLOR=#0000d0]play[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#0000ff]}[/COLOR] [COLOR=#0000d0]this[/COLOR].[COLOR=#0000d0]onRollOut[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]function[/COLOR]COLOR=#0000ff{[/COLOR] [COLOR=#000050]rewind[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]true[/COLOR]; [COLOR=#0000ff]}[/COLOR] [COLOR=#0000d0]this[/COLOR].[COLOR=#0000d0]onRelease[/COLOR] [COLOR=#0000ff]=[/COLOR] [COLOR=#006610]function[/COLOR]COLOR=#0000ff{[/COLOR] [COLOR=#0000d0]getURL[/COLOR]COLOR=#0000ff[/COLOR]; [COLOR=#0000ff]}[/COLOR] [/INDENT][LIST=1]  
[_][LEFT]Select frame 15 of the actions layer, Type this code in the actions panel[/LEFT]  
[/LIST][INDENT][COLOR=#0000d0]stop[/COLOR]COLOR=#0000ff[/COLOR]; [/INDENT][LIST=1]  
[_][LEFT]Navigate back to the root timeline. Put an instance of mc\_complex from the library onto the stage. [/LEFT]  
[_][LEFT]Save the flash document and test your movie(ctrl + enter). There you have it, a button that animates on rollover and on rollout.[/LEFT]  
[/LIST]
