Moogaloop help again. So I have a file that loads a vimeo video file. I need to track when the video starts to play or when the video is complete. Below is the onComplete function that adds event listeners for the different states of the player. When I play the video locally it works fine. I can dispatch an event and the parent swf gets the call. But when I upload it to the web nothing doing. No events are fired. I can’t figure it out. I’m using the debug player and I get nothing in way of errors that I’m missing. Anyone have any ideas? Help!
private function onComplete(e:Event) : void
{
// Finished loading moogaloop
container.addChild(e.currentTarget.loader.content);
moogaloop = e.currentTarget.loader.content;
moogaloop.addEventListener(READY, readyHandler, false, 0, true);
moogaloop.addEventListener(PLAY, playHandler, false, 0, true);
moogaloop.addEventListener(PAUSE, pauseHandler, false, 0, true);
moogaloop.addEventListener(SEEK, seekHandler, false, 0, true);
moogaloop.addEventListener(LOAD_PROGRESS, loadProgressHandler, false, 0, true);
moogaloop.addEventListener(PLAY_PROGRESS, playProgressHandler, false, 0, true);
moogaloop.addEventListener(FINISH, finishHandler, false, 0, true);
}
private function playHandler(event:Event) : void
{
trace('playHandler');
dispatchEvent(new Event("PAUSE_AUDIO", true));
}
