-
-
Make the array value in [0] as a variable such as [x], and then you can query the var to which movie should load next.
-
Hmmm...
Maybe I'm not sure what you mean...
So I should set the array indices to variables? Maybe I didn't explain the problem very well.
Here's an example of what I've got:
Code:
movFiles = new Array();
movFiles[0] = "movie1.swf";
movFiles[1] = "movie2.swf";
movFiles[2] = "movie3.swf";
movFiles[3] = "movie4.swf";
movFiles[4] = "movie5.swf";
function goNext() {
for (count=0; i<movFiles.length; count++) {
if (currentMovie == movFiles[count]) {
loadMovieNum(movFiles[count+1],0);
}
}
}
This code is inside a .swf file that is on level 1, and contains a "next" button that calls the "goNext" function.
The movies "movie1.swf", etc. above play on level 0.
What I want to know is if there is a way for the movie on level 1 to get the physical file name (i.e. return a string "movie1.swf" into the variable currentMovie) of the movie on level 0 so it can evaluate which file to play next.
Like I said, trust me, if possible it just has to be done this way.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|