Groups | Blog | Home
all groups > flash (macromedia) > october 2003 >

flash (macromedia) : unload movie(s) - should be simple


wrrn
10/8/2003 10:48:03 PM
Hi -

I have a button with AS as follows:

on (release) {
unloadMovie("../movieholder");
_root.gotoAndStop("1");
}

My FLA has multiple movieclip holders (movieholder, movieholder2, movieholder3).
What is the correct syntax to unload all loaded movies?

Thanks
warren

wrrn
10/8/2003 11:01:13 PM
Thanks for the quick reply. My button is inside a MC on the main timeline.
Clicking the button takes one back to the "home" page and unloads all movies
previously loaded.

So I should use _root.movieholder instead of ../movieholder ??

and thanks for the syntax
w



[quoted text, click to view]

wrrn
10/8/2003 11:17:38 PM
I tried your example and it won't work. I'm publishing to Flash5.
The following works, but is it poor coding?

on (release) {
unloadMovie("../movieholder");
unloadMovie("../movieholder2");
_root.gotoAndStop("1");
}

urami_
10/9/2003 1:51:19 PM

[quoted text, click to view]

flash does not really refer to paths like html on server does.
unloadMovie("_root.Mc1.MC2.Mc3");

depends of course where is the action execute from , the above is
from root of the timeline.


Regards

urami_*



<lsym>

There's no place like 127.0.0.1

AddThis Social Bookmark Button