1 Reply Latest reply on Jan 15, 2007 9:31 PM by Marghoob Suleman

    Simple FLV Listener Error

    Level 7

      I have a Flash 8 movie that has two frames. In the first is a picture of a
      TV and a click here button.

      When you click the button it goes to frame 2 what has a FLVPlayer move (I
      just imported the FLV file, no coding and called it "Commercial") and it
      starts playing.

      What I need to do is goto frame one (click here to view movie) once the FLV
      file has finished playing.

      I have tried everything and I think I am close. I probably just need to
      place the code somewhere else.

      I am currently placing the code below on the FLVPlayer ActionScript.

      onClipEvent (load) {
      var listenerObject:Object = new Object();
      listenerObject.stopped = function(eventObject:Object):Void {
      Commercial.addEventListener("stopped", listenerObject);

      Is this correct. All I want to do is goto frame one once the FLV has

      Thx Daren

        • 1. Simple FLV Listener Error
          Marghoob Suleman Level 1
          Hi Daren,

          when player finished playing "complete" event is fired. have a look.

          var listenerObject:Object = new Object();
          listenerObject.complete = function(eventObject:Object):Void {
          // insert event-handling code here
          //goto frame 1
          Commercial.addEventListener("complete", listenerObject);