all groups > flash actionscript > january 2004 >
You're in the

flash actionscript

group:

Having a loaded movie talk back to main timeline/movie?


Having a loaded movie talk back to main timeline/movie? djsplash01
1/13/2004 7:00:39 PM
flash actionscript:
Ok, here?s the situation:

I have a main movie named ?scheduled_reports.swf?. It is made up of 12 frames. Each frame has an action to load a swf into an emptyMovieClip named loadHere:

So frame 1's action is:
stop();
loadHere.loadMovie(?movie1.swf?);

So ?movie1.swf? loads nicely into the ?loadHere? empty clip. It plays, gets to the end and I?m absolutely stuck on the correct action I need to move on from there. Basically, I want that movie to unload and go back to the main movie (?scheduled_reports.swf?) and go to and play frame 2, at which the same thing would occur again with ?movie2.swf? loaded, play and then finish, go to the main movie and go to frame 3?. Does this make sense?

I?ve tried messing around with these actions at the end of ?movie1.swf? :

unloadMovie(1);
_root.gotoAndPlay(2);

or

_root.unloadMovie(?slide1.swf?)
_root.gotoAndPlay(2):

I?ve also been reading up on relative/absolute paths and whatnot? but I?m still confused as to what the best approach would be. I would just have each ?movie.swf? load into the next movie on top of the main movie, but it is crucial that the frames of the main movie ?scheduled_reports.swf? advance 1 since there are buttons that also control the loading/unloading of ?movie1.swf?, ?movie2.swf??etc? that all need to match up based on which movie is being viewed (allowing the user to either watch the entire flash movie non-stop, or at any time, choose any of the buttons to view that particular movie) ? make sense?

Thank you for all your help and suggestions!


Re: Having a loaded movie talk back to main timeline/movie? aistudios
1/13/2004 9:32:53 PM
If I am understanding you, I think this may work.

main timeline

FRAME 1
stop();
loadHere.loadMovie("movie1.swf");


FRAME 2
stop();
loadHere.loadMovie("movie2.swf");

etc.....


Now, in each of the other movies that load into the main timeline mc,
place the following at the last frame of that movie.

stop();
_root.nextframe();


The new movies that load into the same mc container - loadHere - will automatically
unload the previous movie that was loaded into that container.


Re: Having a loaded movie talk back to main timeline/movie? djsplash01
1/14/2004 11:49:56 AM
That did the trick!!! Thanks so much for your help! :)

AddThis Social Bookmark Button