0 Replies Latest reply on Sep 26, 2010 1:39 PM by jimmyoneshot

    ActionScript version of the Pause Effect?

    jimmyoneshot Level 1

      Is there any such thing as something similar to the pause animation effect that can be used in ActionScript? What I mean is when you create a sequence of animation effects in flex using the sequence tags with effects inside them you can use the pause tags so that the next effect in the sequence doesn't happen until the duration applied to the pause effect has been reached.

       

      Is there anything similar that you can put inside a function so that a specfic time duration must be reached before latters code is fired? For example the following function is used to change the text of a label however I want 5 seconds to elapse BEFORE this action takes place. What can I replace ??? with in the following example or is this impossible within functions?:-

       

      private function changeText():void{
           ???
           myLabel.text = 'blah';
      }