Hi all, everything was going smoothly until I ran into a little hiccup. What I have here is a button. With AS i made a rollover effect (rollover and rollout) that would change the color of the mc. Then I added an onRelease effect which should theoretically change the color of the mc button and remain that color until it has been told otherwise. The problem is that the onRollout effect overrides the onRelease effect, and so its like the onRelease effect never happens.
Is there a way to disable the onRollout function temporarily until another button is clicked?
here is what I have so far:
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]onRollOver[/COLOR] = [COLOR=#000000]**function**[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]this[/COLOR].[COLOR=#000080]colorTo[/COLOR] [COLOR=#000000]([/COLOR]0xCC33CC, [COLOR=#000080]3[/COLOR], [COLOR=#FF0000]"easeoutcubic"[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR];
[COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]onRollOut[/COLOR] = [COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]onReleaseOutside[/COLOR] = [COLOR=#000000]**function**[/COLOR][COLOR=#000000]([/COLOR]rollout[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]this[/COLOR].[COLOR=#000080]colorTo[/COLOR] [COLOR=#000000]([/COLOR]0xCCCCCC, [COLOR=#000080]3[/COLOR], [COLOR=#FF0000]"easeoutcubic"[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR];
[COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000]**function**[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]this[/COLOR].[COLOR=#000080]colorTo[/COLOR] [COLOR=#000000]([/COLOR]0xCC33CC, [COLOR=#000080]3[/COLOR], [COLOR=#FF0000]"easeoutcubic"[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR];
[/LEFT]
[/FONT]
I am a bit new to AS and its terminology, so if there as easier way to achieve this i am all ears.
Thanks.