[FONT=Arial]Hello pretty people,[/FONT]
[FONT=Arial]I’m having some trouble with video loops. I’ll try to explain it as clear as possible.[/FONT]
[FONT=Arial]I’m using Actionscript to load 6 videos to stage thru the new NetStream, etc way to do it. This videos change throughout the day, meaning that if you enter the webpage at 3am you see a group of videos and if you enter at 8am you see another group, and so on…[/FONT]
[FONT=Arial]What I’m not being able to do is to make these videos loop. I’ve tried everything but nothing seems to work. I’m kind of new with actionscript so maybe it’s something that you can consider obvious…or maybe not! So that’s why I need your help.[/FONT]
[FONT=Arial]Another thing that I haven’t been able to do is to make an array of the new NetStream’s and the channels for each video. Sorry if I’m not making much sense… I’m having a hard time trying to explain this to myself so I figure you guys won’t understand this easily. I hope I’m clear enough to get a reply though! [/FONT][FONT=Wingdings][FONT=Wingdings]J[/FONT][/FONT]
[FONT=Arial]Here’s a piece of my code so you can see what I’m talking about. I’m putting just one example of the video changing depending on time change, but keep in mind that I’m trying to load 4 different videos into one channel (one for each time zone).[/FONT]
[FONT=Arial]conexion = new NetConnection; [/FONT]
[FONT=Arial]conexion.connect(null);[/FONT]
[FONT=Arial]canal= new NetStream(conexion);[/FONT]
[FONT=Arial]canal2= new NetStream(conexion);[/FONT]
[FONT=Arial]canal3= new NetStream(conexion);[/FONT]
[FONT=Arial]canal4= new NetStream(conexion);[/FONT]
[FONT=Arial]canal5= new NetStream(conexion);[/FONT]
[FONT=Arial]canal6= new NetStream(conexion);[/FONT]
[FONT=Arial]video1.attachVideo(canal);[/FONT]
[FONT=Arial]video2.attachVideo(canal2);[/FONT]
[FONT=Arial]video3.attachVideo(canal3);[/FONT]
[FONT=Arial]video4.attachVideo(canal4);[/FONT]
[FONT=Arial]video5.attachVideo(canal5);[/FONT]
[FONT=Arial]video6.attachVideo(canal6);[/FONT]
[FONT=Arial]//----load videos for first time change----//[/FONT]
[FONT=Arial]if(hora.text<12 && hora.text>6){ //horaFormato is my timeChange[/FONT]
[FONT=Arial]{[/FONT]
[FONT=Arial]canal.play(“alapiz.flv”);[/FONT]
[FONT=Arial]canal2.play(“bajoelmar.flv”);[/FONT]
[FONT=Arial]canal3.play(“barriosesamo.flv”);[/FONT]
[FONT=Arial]canal4.play(“boxeobn.flv”);[/FONT]
[FONT=Arial]canal5.play(“coets.flv”);[/FONT]
[FONT=Arial]canal6.play(“cordero.flv”);[/FONT]
[FONT=Arial]}[/FONT]
[FONT=Arial]//----load videos for second time change----//…an so on…[/FONT]
[FONT=Arial]if(hora.text<“18” && hora.text>“12”)[/FONT]
[FONT=Arial]{[/FONT]
[FONT=Arial]canal.play(“countrygirl.flv”);[/FONT]
[FONT=Arial]canal2.play(“donescolorin1.flv”);[/FONT]
[FONT=Arial]canal3.play(“donescolorin2.flv”);[/FONT]
[FONT=Arial]canal4.play(“donescolorin3.flv”);[/FONT]
[FONT=Arial]canal5.play(“donescolorin4.flv”);[/FONT]
[FONT=Arial]canal6.play(“donescolorin5.flv”);[/FONT]
[FONT=Arial]}[/FONT]
[FONT=Arial]Thanks in advance! [/FONT]
[FONT=Arial]Gaby[/FONT]