FORUMS: list search recent posts

Flash Video Continous

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Luis Nobrega
Flash Video Continous
on Nov 22, 2005 at 12:25:35 am


Can anyone help me?

I've made the tutorial "7. Progressive Flash Video Player Part 2 - Additional component development" on this link:

and it was great! Congratulations Tiago Dias!

But i need something quite diferent. I want that the videos in XML file play continously without the combo box.

This code works with event change

var movList:Object = new Object ();
movList.change = function () { (cbMovie.getItemAt (cbMovie.selectedIndex).data);
pauseButton._visible = true;
playButton._visible = false;
cbMovie.addEventListener ("change", movList);

I try instead the complete event to go to the next video in the XML, but doesn't works..

var cmpVideo:Object = new Object ();
cmpVideo.complete = function () {
// in here i advance to next video
myVideo.addEventListener ("complete", cmpVideo);

myVideo is the name of the instance Video 1 that i created.

thanks in advance anyone!

Return to posts index

Sher Ali
Re: Flash Video Continous
on Nov 22, 2005 at 9:39:53 am

you need to retrieve the next video from the list component
and pass it to method as;

var cmpVideo:Object = new Object ();
cmpVideo.complete = function () {

if(cbMovie.getItemAt(cbMovie.selectedIndex+1) < cbMovie.length ){

cbMovie.selectedIndex = cbMovie.getItemAt(cbMovie.selectedIndex+1);;


cbMovie.selectedIndex = cbMovie.getItemAt(0).label);;



similarly you can retrieve the next video url from the xml object
and pass it to method.

Sher Ali,
Interactive Media Developer

Return to posts index

Luis Nobrega
Re: Flash Video Continous
on Nov 22, 2005 at 11:02:54 am

Thanks for your answer!

But i don't want a combo box, i suppose that the problem is that i'm using not a FLVcomponent but a video, the complete doesn't work with the video object.

I'm afraid i have to use the FLVcomponent or can i use any heritage command to apply my video object??

thanks in advance

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved