| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
ie must die
|
i need a flash experts help
okay so i have this AS thats in a button which animates a tween, but then when you roll out the AS just reverses it. heres the code: Code:
and i created a new button where it stops in the middle, but i want the rollOut AS to play after it stops. Any flash experts know how to do this? i attached an image to get an idea originally, the button would stop where the AS is, but i wanna change that |
|
|
|
|
|
#2 (permalink) |
|
I feel sick
Join Date: Aug 2008
Location: Glasgow
Posts: 57
|
Hmm, I really don't understand what you mean. What do these do? - _root.mouse_over_HomeNew = true; & _root.mouse_over_HomeNew = fstartlse; (is that meant to say false?) What is the other actionscript on the page? Anyway... I think a Tweener actionscript class might help you - although, this may be a bit too advanced if you are a beginner. Caurina. Have a look, there are help files there as well. After you've imported the class you could use the class like this: (This would on on timeline rather than on button) button.onRollOver = function () { Tweener.addTween (MovieClip, {_alpha:100, time:5, onComplete:functionToRollOut}); } function functionToRollOut () { Tweener.addTween (MovieClip, {_alpha:0, time:5); } If you can explain more what you want I could try an think about a more basic solution. |
|
|
|
#3 (permalink) |
|
ie must die
|
i attached one of the buttons that was created. so basically, i wanted to get the button when it rolls out to play a different kind of tween. But with the AS it somehow reverses the rollover. So the rollout is exactly what the rollover is except its reversed. (i grabbed the AS from a friends site). You can take a look at the FLA file if you'd life. But in the AS, how would i direct them to a different tween? |
|
![]() |
|