-
1. Re: Detect If the video is loaded
weizhangstrobe Aug 4, 2010 4:20 PM (in response to leaflashdev)I believe you also use an instance of MediaPlayer and this is the object that you need to listen for its
mediaPlayerStateChange of the MediaPlayerStateChangeEvent
The values for the player state can be found at PlayState.as.
-Wei Zhang
Senior Computer Scientist
Adobe Systems, Inc.
-
2. Re: Detect If the video is loaded
leaflashdev Aug 5, 2010 6:51 AM (in response to weizhangstrobe)Thank you very much it works !
mediaPlayer.addEventListener( MediaPlayerStateChangeEvent.MEDIA_PLAYER_STATE_CHANGE, onLoaderStateChange );
private function onLoaderStateChange( e:MediaPlayerStateChangeEvent = null ) :void
{
trace('onLoaderStateChange')
if(e.state == "ready"){
trace('ready')
}
if(e.state == "uninitialized"){
trace('uninitialized')
}
}

