You may want to wait for the ready event to fire(after you set the contentPath)and then issue the play command.
MM Help example here: http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhel p.htm?href=00001893.html -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wouter Steidl Sent: Wednesday, April 26, 2006 3:43 PM To: 'Flashcoders mailing list' Subject: [Flashcoders] Straaaaaaaange FLVplayback problem.... Hi List, I am using the FLVPlayback component and have a really strange problem: I have a videoloader class (Singleton) that I instansiate, then I throw in an array of videos and it plays them sequentially....like this: (FPB is a reference to the FLVplayback-instance on stage) public function loadFLVs (aVids : Array) : Void { // (re)set the video arrays this.aVids = aVids; //Load first video FPB.activeVideoPlayerIndex = 0; FPB.visibleVideoPlayerIndex = 0; FPB.contentPath = aVids[0].source; // start with first Video FPB.play(); } And on a buttonpress I can change the array of videos like this: Button.onPress = function() { aVideos[0] = {source:"videos/1A.flv", id:1, name:11, nCpTime:1.00}; myVid.loadFLVs(aVideos); } But now something strange happens....... I have a number of videos for a project named 1A.flv, 1b.flv, etc. If I start with 1A and try to load 1B on the buttonclick it fails If I start with 1A and on buttonpress load A TOTALL DIFFERENT flv form A TOTALLY DIFFERENT PROJECT it works....... Lets call it project2.flv As a hack I tried this in the loadFLV function: Before I set the content path to the correct video I change it to project2.flv... //Load first video FPB.activeVideoPlayerIndex = 0; FPB.visibleVideoPlayerIndex = 0; FPB.contentPath = "project2.flv"; FPB.contentPath = aVids[0].source; And then it works again :S but its an ugly hack I`m totally clueless, Any idea what this can be? Thanx a lot! Wouter _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com