This content has been marked as final. Show 5 replies
the best solution is to stop the rollover animation as soon as the button is rolled out and start the rollout behavior (from the correct place on your timeline) as soon as the rollout is triggered.
depending on your rollover and rollout animations that may require a little math or more commonly when the rollout animation is just the rollover animation playing in reverse would involve playing the rollover behavior backwords.
it's this latter situation that is commonly used to trigger an onEnterFrame handler that calls a prevFrame() method and terminates when frame 1 is reached.
kgald see how this button works.
On (Roll Over)
Begin Tell Target ("/animation")
End Tell Target
Set Variable: "dummy" = 1
On (Roll Out)
Set Variable: "dummy" = 0
I think thats something that I am after, is there a better way / simpler way to write this now?
i prefer minimizing the various locations of my code. it makes debugging and editing (especially months after you finish a project) much easier:
kgald thanks for the help, also have another thread that I need some assistance on. Its pretty simple I hope. Just trying to get a function to run on startup.
you're welcome. (and it looks like your other thread is being answered by someone else.)