5 Replies Latest reply on Nov 3, 2008 3:02 PM by kglad

    FLVPlayback changing another FLVPlayback

    bathkbra000
      Hi,

      I have a movieclip with an FLVPlayback component and a second movieclip on it. In that second movie clip, there's another FLVPlayback component. I was wondering if there was any actionscript I could use in the second movieclip to change the contentPath of the first FLVPlayback component upon the completion of the second FLVPlayback component.

      This is the code I tried, but didn't work:

      var listenerObject:Object = new Object();
      listenerObject.complete = function(eventObject:Object):Void {
      this._parent.flvp1.contentPath = "vid2.flv";
      }
      flvp2.addEventListener("complete", listenerObject);

      (flvp1 is the first FLVPlayback component, flvp2 is the second, and vid2.flv is the file to be played in flvp1)

      Also, I know that the listenerObject function is working because I tested a trace() command earlier, and it worked.

      If anyone could point me in the right direction, I would appreciate it.

      Thanks,
      Brad