Posted: Tue Mar 09, 2010 12:40 pm
Post subject: Re: Event dispatch
I want to say sometimes the below ‘playerInit ‘ method gets called after long delay (around 5 to 15 second) even when the ‘swf’ is loaded and has already started to play. Also, sometimes, the same ‘playerInit ‘ method gets called as soon as swf is loaded.
What is the reason for this? Is there any solution?
private function initPresentationLoader():void
m_presentationLoader = new PresentationLoader();
private function playerInit(e:PlayerEvent):void
var player:IPlayer = m_presentationLoader.player;
m_playbackController = player.playbackController;
m_soundController = player.soundController;
m_presentationInfo = player.presentationInfo;
m_debugger.text = "loaded"+ Math.random()*100;