Ok guys I have a question for you. I am using an flv playback component to play a trailer I am embedding into a flash site. Problem is I am trying to start and stop an audio track that is playing on the parent timeline of the flv. What's weird is if I comment out the code inside the listenerObject.stateChange function the flv will play fine. But if I leave the code alone the audio will start and stop as needed but the flv will for some reason freeze up. The trace I am running says its playing but for some reason its locked up. Any ideas guys? Below is my code I am using for the component.... Thanks!
import mx.video.*; my_FLVPlybk.contentPath = "http://media.funimation.com/trailers/desertpunk/DesertPunk_v1_cs_Medium .flv"; var listenerObject:Object = new Object(); listenerObject.stateChange = function(eventObject:Object):Void { if (eventObject.state == FLVPlayback.PLAYING) { trace("my_FLVPlybk is now "+FLVPlayback.PLAYING); _parent.bgmusic.stop(); } if (eventObject.state == FLVPlayback.STOPPED) { trace("my_FLVPlybk is now "+FLVPlayback.STOPPED); _parent.bgmusic.start(0,999); } if (eventObject.state == FLVPlayback.PAUSED) { trace("my_FLVPlybk is now "+FLVPlayback.PAUSED); _parent.bgmusic.start(0,999); } }; my_FLVPlybk.addEventListener("stateChange", listenerObject); Corban Baxter | rich media designer | www.funimation.com <http://www.funimation.com/> _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders