0 Replies - 1045 Views - Last Post: 04 May 2012 - 04:24 AM

#1 wiggy06  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-May 12

flvplayback multiple videos

Posted 04 May 2012 - 04:24 AM

 import fl.video.*;

var myVideo:FLVPlayback = new FLVPlayback();

myVideo.registrationX = 768;
myVideo.registrationY = 0;
myVideo.width = 768;
myVideo.height = 432;

myVideo.source = "BrokersFLVs/Intro1(interaction).flv";
myVideo.addEventListener(VideoEvent.COMPLETE, completePlay);
myVideo.addEventListener(VideoEvent.COMPLETE, completePlay2);

function completePlay(e:VideoEvent):void {
if (myVideo.source == "BrokersFLVs/Intro1(interaction).flv") {
	myVideo.play(); ("BrokersFLVs/reactions1.flv")
}
}
function completePlay2(e:VideoEvent):void {
if (myVideo.source == "BrokersFLVs/reactions1.flv") {
	myVideo.play(); ("BrokersFLVs/Intro2.flv") 
}
}

addChild(myVideo); 


hi im relatively new to learning actionscript and even forums in general.
I know the code is wrong but not sure what way to correct it.
what i would like for it to do is play my 1st video "BrokersFLVs/Intro1(interaction).flv",
as soon as that ends it plays "BrokersFLVs/reactions1.flv", and when that video ends it plays
the next "BrokersFLVs/Intro2.flv".
As is I can get it to play from 1st to the 3rd or when i remove the completeplay2 function
goes from 1st to 2nd. I just need to get it to go from 1st to 2nd to 3rd and so on for a few more videos.

Any tips or suggestions would be appreciated.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1