hide() through button click - can't delay?

Posted by spiroman 
hide() through button click - can't delay?
July 17, 2009 10:15PM
I'd like to implement a button which hides several objects one after the other. I'd like to put a delay in so I can stagger the hide function. It's not working. The hide occurs right away. Here's the code:

function hideAll():void {
item0Effect.hideDelay = 1;
item0Effect.hide();

item1Effect.hideDelay = 1;
item1Effect.hide();

etc.
}

Any thoughts?
Re: hide() through button click - can't delay?
July 20, 2009 12:31PM
You could use the timer class.
Or if you want the hide animation to start after another pattern has finished animation you could create a listener for the end event and when it's triggered just start the hide animation.
Hope this helps.

-Ionut
Sorry, you do not have permission to post/reply in this forum.