Cancelling Fades
Posted: Sun Sep 09, 2012 1:18 pm
Is there a way to cancel aeFading in or out ? An example why I would need this is:
Say I want to aeFadeIn a button after mousing over another button. Then aeFadeOut the same button when mousing away from the button I was already on. If I were to do this slowly, then the other button would fade In and fade out normally. But if I were to mouseover and past a button, the aeFadeOut call would glitch the aeFadeIn without letting it finish.
Would there be a way to hold off the fading in or out of a different object until a certain condition is met?
Another example is:
I have a next button that fades in objects on a card. everytime a user clicks next, it would fade a different set of objects. If a person were to double click or quadruple click the next button, it would glitch a fade out of all the objects, instead of the 2nd or 4th set of objects.
I want to be able to stop aeFadeOut or aeFadeIn, sort of like how AnimationEngine has aeStopMoving.
Say I want to aeFadeIn a button after mousing over another button. Then aeFadeOut the same button when mousing away from the button I was already on. If I were to do this slowly, then the other button would fade In and fade out normally. But if I were to mouseover and past a button, the aeFadeOut call would glitch the aeFadeIn without letting it finish.
Would there be a way to hold off the fading in or out of a different object until a certain condition is met?
Another example is:
I have a next button that fades in objects on a card. everytime a user clicks next, it would fade a different set of objects. If a person were to double click or quadruple click the next button, it would glitch a fade out of all the objects, instead of the 2nd or 4th set of objects.
I want to be able to stop aeFadeOut or aeFadeIn, sort of like how AnimationEngine has aeStopMoving.