PDA

View Full Version : Desperately need help with Load/Unload movie hell !


Tosca42
08-16-2001, 01:28 PM
I would really appreciate any help on this - i've tried searching the forums but either i'm thick or I couldnt find anything that quite hit the mark...

Basically my aim is within my main movie (main.swf), to load a movie (menu1.swf) on button release which acts like a browser window, scrolling another movie (contents1.swf) within it.
Menu1.swf initially loads contents1.swf into a mc through the command:
loadMovie ("contents1.swf", this);

-the path to the mc it loads menu1.swf into is: _root.WindowsBehaviour.page

This bit works fine.

What i also want to do is have a link from contents1.swf to another mc called contents2.swf. This would load contents2.swf into menu1.swf (the browser style movie clip) and unload contents1.swf. Essentiallly everything would then behave just like a typical browser window but its not having any of it and I have no idea how to get it to work...

Please help! -My syntax is really dreadful (-i'm just learning) and I'm royally s*****d if I cant get this to work! Is it even possible? If you have any knowledge on the matter i'd really appreciate it if you could let me know!

matt poole
08-16-2001, 03:51 PM
I may be wrong, but you seem to have .swf levels and nested MC's a bit confused.

Maybe you would be better served loading in the browser window .swf and just sticking to nested MC's within that movie and just using instance names to bring up the content. I guess it depends on the kind of content you are adding. What do you think?

Tosca42
08-16-2001, 09:54 PM
Hey Matt! -Cheers for the post!

Actually- someone on Flashkit just gave me the answer - so I thought I'd post it here incase anyone ever has a similar problem - clears up the syntax a bit...

The answer is on button release shove:

loadMovie ("contents2.swf", "_root.WindowsBehaviour.page");


Sorted!!!

matt poole
08-17-2001, 04:59 PM
cool, glad you're sorted