PDA

View Full Version : clear memory or swf's interact



amaze
January 21st, 2004, 06:36 AM
I have a menu and each button reveals a hidden layer which includes it's submenu (another swf).
The submenus have sub-submenus in the same swf.

When I take the mouse away from these layers the submenus hide again.
All these work.

The problem is that when a sub-submenu is opened and then the layer hides, when it's shown again the sub-submenu is still opened.
Is there a way to clear memory or unload a swf file through html or through the main menu swf?

Interact between swf's would really really help.

Thank you all.

Voetsjoeba
January 21st, 2004, 06:53 AM
You can easily unload a movieclip by using unloadMovie(). Do a search on it in the ActionScript Reference on www.macromedia.com for more info about it and examples on how to use it :)

Interaction between several swfs is easy to do: you can control an swf that was loaded into a movieclip by simply targetting that movieclip. So say for example you loaded an swf in the movieclip "holder", and you want it to go to frame 53. Then just use



holder.gotoAndPlay(53);


Anything's possible :)

amaze
January 21st, 2004, 07:06 AM
I think you didnt understand what I mean.

All these swf's are in a html page.
I don't load swf's in the menu, cause when I do this it causes other problems in the CF forms of the page.
The swf's are included in layers and when I rollover a button in the menu, I call a JS action which shows the layer.