all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

triggering actions from media components?



triggering actions from media components? poopynumbers
11/15/2004 10:14:24 PM
flash actionscript: I am using the media display component to stream an opening movie for my site.
This component is setup in a scene by itself.
What can I do in order to trigger the flash movie to play the next scene when
the streaming video has reached the end?
Re: triggering actions from media components? derobinson
11/16/2004 4:00:35 AM
Write an event listener for the Media Display component that listens for the
"complete" event that tells the movie to go to the next scene. So, sometihng
like this:

var myListener:Object = new Object();
myListener.complete = function() {
_root.gotoAndPlay("Scene 2");
}
myMediaDisplay.addEventListener("complete", myListener);

Hope that hepls!
AddThis Social Bookmark Button