-
loading movie problems
Hi there,
I'm just starting with flash and need some help with this.
What I'm doing is really simple. I have an external 2 swf presentations that I want to load to a main flash file.
I can load and play the first file with no problems. But, the file keep looping and dose not stop and the other file dose not load and play as I want it to.
So bsically, the first external file will load, play, stop. Then the next external file will load, play and stop and so forth.
here is what I have
main flash movie (one layer)
1st frame: action: loadMovieNum("1a.swf", 0);
2nd frame-10th frame a tween for a text saying next slide, simple stuff
11th frame: action: loadMovieNum("1b.swf", 0);
external swf files
1a: contains a video (150 frames, one layer)
1b: contains a video (180 frames, one layer)
no actions set on any of these.
Any idea what should I do to make this works?
Let me know
-
Senior Member
When loading into _level0 you are replacing everything in it ( your codes ). Load the movies into _level1 instead.
Also you can make the next movie to load by having the loading code in the last frame of the first external movie.
-
So there is no way of making the main flah movie load all of them in sequence?
Yes, I have tried your suggestion before and works fine when I load the next movie in the last farme of the current movie.
But I thought that I can do the same from the main movie.
Whenever I use level 1 to load the movies, things don't strt corectly and overlap each other.
-
Senior Member
To control everything from the main movie you can not replace it, so you have to load the other movies either to new _level or into target movieclips in the main swf.
The main movie could check when the extrnal swf reaches its last frame with....
if(_level1._currentframe==_level1._totalframes){
// Load next movie
}else{
// Do something else
}
.. and then initiate a load of the second swf.
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
|