My problem was with the way I was loading in the audio it was on the root 
timeline so when I stopped it was effecting the play back of all audio globally 
including the flv. So I just created and empty MC and threw the audio in there 
so it would only affect that MC's audio and not the global audio.

Corban Baxter      |      rich media designer      |      www.funimation.com


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corban Baxter
Sent: Tuesday, January 24, 2006 1:52 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] flv PlayBack Component

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
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to