ctarantino
01-10-2006, 04:41 PM
Hey Everyone,
This is probably going to be a very easy fix, but im not sure why its not working. Here's what i am trying to do, i have a main Movie, that loads SWF files one by one, and intervals by itself, i used to have the file reset after 30 seconds using the setInterval function, but now i want to put a script on the last frame of the individually loaded movies that tells the main timeline to reset the function, thus causing the interval to occur over and over, just independent of time.
Here is my main function:
//List of SWF's to be loaded//
var movies:Array = new Array ("1.swf","2.swf","3.swf");
//variables used for incrementing//
var index:Number = -1;
//incrementing function for individual SWF's//
function swf(){
index++;
if (index>=movies.length){
index=0;
}
loadMovieNum(movies[index],1);
fscommand ("fullscreen",true);
fscommand ("allowscale",true);
}
swf();
function reset(){
setInterval(swf,0000);
}
Here is the script i put on the last frame of my individual test movie:
function changer(){
_root.reset();
}
changer();
Thanks in Advance for any help you all provide,
Chris
This is probably going to be a very easy fix, but im not sure why its not working. Here's what i am trying to do, i have a main Movie, that loads SWF files one by one, and intervals by itself, i used to have the file reset after 30 seconds using the setInterval function, but now i want to put a script on the last frame of the individually loaded movies that tells the main timeline to reset the function, thus causing the interval to occur over and over, just independent of time.
Here is my main function:
//List of SWF's to be loaded//
var movies:Array = new Array ("1.swf","2.swf","3.swf");
//variables used for incrementing//
var index:Number = -1;
//incrementing function for individual SWF's//
function swf(){
index++;
if (index>=movies.length){
index=0;
}
loadMovieNum(movies[index],1);
fscommand ("fullscreen",true);
fscommand ("allowscale",true);
}
swf();
function reset(){
setInterval(swf,0000);
}
Here is the script i put on the last frame of my individual test movie:
function changer(){
_root.reset();
}
changer();
Thanks in Advance for any help you all provide,
Chris