motionid
10-23-2003, 12:24 AM
Quick question.
I am trying to use a MediaDisplay component to display some video. The quality of my encoding a quite high and will not smoothly stream.
How can I wait for the data to load and then automatically play the file?
I figure you would us Media.progress to make it work but I haven't had too much experience working with listeners and don't quite understand how I might write it.
Sample macromedia code in the help for Media.progress is:
var myProgressListener = new Object();
myProgressListener.progress = function(){
// Make lightMovieClip blink while progress is occurring
var lightVisible = lightMovieClip.visible;
lightMovieClip.visible = !lightVisible;
}
Any help appreciated.
Cheers,
Sean.
I am trying to use a MediaDisplay component to display some video. The quality of my encoding a quite high and will not smoothly stream.
How can I wait for the data to load and then automatically play the file?
I figure you would us Media.progress to make it work but I haven't had too much experience working with listeners and don't quite understand how I might write it.
Sample macromedia code in the help for Media.progress is:
var myProgressListener = new Object();
myProgressListener.progress = function(){
// Make lightMovieClip blink while progress is occurring
var lightVisible = lightMovieClip.visible;
lightMovieClip.visible = !lightVisible;
}
Any help appreciated.
Cheers,
Sean.