Jump to content


Photo

Continuously Flash Video Player


  • Please log in to reply
No replies to this topic

#1 lfbn

lfbn

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 20 November 2005 - 06:50 PM

Hi

Can anyone help me?

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


http://www.pixel2lif..._player_part_1/


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 () {
ns.play (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.

Edited by lfbn, 21 November 2005 - 03:43 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users