[FONT=Arial][SIZE=2][COLOR=#003366]I used the ‘Complex[/COLOR][/SIZE][/FONT][FONT=Arial][SIZE=2][COLOR=#003366] [/COLOR][/SIZE][/FONT][FONT=Arial][SIZE=2][FONT=Verdana][SIZE=4][COLOR=#003366][FONT=Arial][SIZE=2]Button RollOver/RollOut Effects’
( http://www.kirupa.com/developer/mx2004/button_effect.htm ) tutorial about reversing the animation on a roll out which is what I need. However, I have a link in text and when the roll over happens, a graphic tweens in from the right just above the button. The tutorial works great but it the rollover works on the graphic too if the mouse catches it on the roll out, making it get stuck. This I don’t want.
This is the tutorial code
[/SIZE][/FONT][/COLOR][/SIZE][/FONT][/SIZE][/FONT]stop(); this.onEnterFrame = function(){ if(rewind == true){ prevFrame(); } } this.onRollOver = function(){ rewind = false; play(); } this.onRollOut = function(){ rewind = true;}
[FONT=Arial][SIZE=2][FONT=Verdana][SIZE=4][COLOR=#003366][FONT=Arial][SIZE=2]
Instead of just [/SIZE][/FONT][/COLOR][/SIZE][/FONT][/SIZE][/FONT]this. [COLOR=#003366][SIZE=2][FONT=Arial]as the target as in the code in the tutorial, I have tried
[/FONT][/SIZE][/COLOR]this.AMbutton.onRollOver [COLOR=#003366][SIZE=2][FONT=Arial]and even [FONT=Verdana][COLOR=Black]_root.AMmovie.AMbutton.onRollOver
[/COLOR][/FONT]but the reverse doesn’t work and when it gets to the end of the tween, it just snaps back to the first frame on the roll out.
I would really like some help on this.
Thanks
[/FONT][/SIZE][/COLOR]