3 Replies Latest reply on Mar 15, 2010 3:55 PM by kglad

    Cue Point Names


      How do I listen/respond to a specifice cue point by name in AS3?


      I have this listener which runs a function as soon as a cue point is reached, but I can't figure out how to run different functions for different cue points.


      center_flv.addEventListener(MetadataEvent.CUE_POINT, interactive);

        • 1. Re: Cue Point Names
          kglad Adobe Community Professional & MVP

          the following will show you the properties you can use:



          center_flv.addEventListener(MetadataEvent.CUE_POINT, interactive);


          function interactive(e:MetadataEvent){

          for(var s:String in e.info){




          • 2. Re: Cue Point Names
            JosephRobertJoyce Level 1

            That shows me the name, type and time of the cue point, which I already know.  My question is how do I trigger different responses for each cue point.  For example:


            A cue point named cuePoint1 at time 5.0 would trigger something like displaying 'Hello' or adding a movie clip to the stage.

            A cue point named cuePoint2 at time 9.0 would trigger something else, like displaying 'Goodbye' or removing a movie clip from the stage.


            Do I set up an If statement?  If so, how do I reference the cue points by name in that statement?

            • 3. Re: Cue Point Names
              kglad Adobe Community Professional & MVP

              use a switch statement or if-else statements.


              do you cuepoints have a name property?  if yes, use: