PDA

View Full Version : media component ?


Navarone
10-25-2006, 04:23 PM
I have media component in frame one of my movie and the same component in another frame. Not a seperate instance but the same instance. When the first media is done playing it jumps to the other frame to play that media. This is my code in both instances only with a different flv. The problem, when the first media plays the scroller text shows streaming and the pause play button indicates paused, nothing wrong there. but when the media is done and jumps to the next frame, the scroller text says paused and the pause play button shows play.

My question is, how can I get the media controller to show streaming and the pause play button to show paused, like it does on the first time?

stop();
myVideo.autoPlay = true;
myVideo.activePlayControl = "play";
myVideo.controllerPolicy = 'on';
myVideo.setMedia("videos/smfg_web_intro_ae500x278.flv", "FLV");
var myListener = new Object();
myListener.complete = function(eventObject) {
trace("media is Finished");
myVideo.setMedia("", "");
gotoAndPlay("about")
};
myVideo.addEventListener("complete", myListener);