Navarone
01-02-2007, 04:45 PM
I am trying to get my code to work here and not having much luck. Can some one point me in the right direction. I need the flvs in my array to play one after the other continuously. :confused:
vidList = new Array("item_overview_ae476x264768K.flv", "item_applications_ae476x264768K.flv", "unlimited_possibilities_ae476x264768K.flv", "create_linear_ae476x264768K.flv", "change_applications_ae476x264768K.flv", "german_engineered_ae476x264768K.flv", "item_difference_ae476x264768K.flv", "320_profiles_ae476x264768K.flv", "structural_aluminum_ae476x264768K.flv", "profile_cost_ae476x264768K.flv", "precision_tolerances_ae476x264768K.flv", "aesthetics_ae476x264768K.flv", "item_DoForYou_ae476x264768K.flv", "getting_started_ae476x264768K.flv", "complete_package_ae476x264768K.flv");
//
var i = 0;
// call func for the first time
function playMovie() {
_root.stop();
_root.display.stop();
_root.display.autoPlay = true;
_root.display.activePlayControl = true;
_root.display.controllerPolicy = 'on';
_root.display.setMedia("../videos/"+vidList[i].startMovie, "FLV");
_root.display.play(0);
_root.myController.volume = 100;
//////////////////////////////////////
var myListener = new Object();
myListener.complete = function(eventObject) {
trace("one - media is Finished");
if (vidList[i] == done) {
playMovie();
}
// increment i
i++;
};
}
_root.display.addEventListener("complete", myListener);
//
vidList = new Array("item_overview_ae476x264768K.flv", "item_applications_ae476x264768K.flv", "unlimited_possibilities_ae476x264768K.flv", "create_linear_ae476x264768K.flv", "change_applications_ae476x264768K.flv", "german_engineered_ae476x264768K.flv", "item_difference_ae476x264768K.flv", "320_profiles_ae476x264768K.flv", "structural_aluminum_ae476x264768K.flv", "profile_cost_ae476x264768K.flv", "precision_tolerances_ae476x264768K.flv", "aesthetics_ae476x264768K.flv", "item_DoForYou_ae476x264768K.flv", "getting_started_ae476x264768K.flv", "complete_package_ae476x264768K.flv");
//
var i = 0;
// call func for the first time
function playMovie() {
_root.stop();
_root.display.stop();
_root.display.autoPlay = true;
_root.display.activePlayControl = true;
_root.display.controllerPolicy = 'on';
_root.display.setMedia("../videos/"+vidList[i].startMovie, "FLV");
_root.display.play(0);
_root.myController.volume = 100;
//////////////////////////////////////
var myListener = new Object();
myListener.complete = function(eventObject) {
trace("one - media is Finished");
if (vidList[i] == done) {
playMovie();
}
// increment i
i++;
};
}
_root.display.addEventListener("complete", myListener);
//