Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading movies and levels.......

Status
Not open for further replies.

funkymonk

Technical User
Dec 18, 2000
588
GB
Question:

Can I load a movie into level_1 of a loaded movie or do I have to load them all into the main movie...?

:-I

If the answer is yes, you can, then does that mean if I unload (close) the movie on level_1 of the main movie, all movies loaded into that will unload (close) also....?

I'm sure it can't be that easy, can it..?

funkymonk B-)

rod@sameplanet.co.uk
[un-finished - still]

********************
 
Do you want to load a movie on _level1 of the movie loaded in _level1, from the main movie?
Would have to test it!

It could probably be done from within the loaded movie on _level1 of the main movie... And then, when unloading the movie on _level1 of the main movie, my guess would be that you'd be unloading all of them!

Regards,
old.gif
 
I just tried loading movie(b) into level_1 of loaded movie(a) (which is in level_1 of the main movie) and it replaced movie(a). So I guess you can't load a movie into a loaded movie, not the way I'm doing it anyway.

It was just a thought, basicaly this would have helped me when I close/unload the movie in level_1 (of the main movie) by closing all of it's own loaded movies. I guess now I'll have to unload them individually, won't have that many at a time anyway. funkymonk B-)

rod@sameplanet.co.uk
[un-finished - still]

********************
 
From my testing, this morning, you can load a movie in another level of a loaded movie in another level of the main movie... But it has to already exist, before you can do so!
So you could load movie(b) into level_1 of loaded movie(a) (which is in level_2 - 2 for sake of clarity - of the main movie) with something like:
_level2._level1.loadMovie("mymovie.swf");

The problem is that if you unload _level2, you have no more control over mymovie.swf which will still display.
So before unloading _level2, you must first unload (or at least make it invisible) mymovie.swf with something like:
_level2._level1.unloadMovie("mymovie.swf");
Or...
_level2._level1._visible = false;

Regards,

new.gif
 
Right. I had a play around last night and loading them all into the main movie doesn't create any (or too many) problems for the way that I want it to work. I've only just started with the load movie stuff so don't want to over complicate myself just yet.

Cheers for your help old. funkymonk B-)

rod@sameplanet.co.uk
[un-finished - still]

********************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top