unload swf in level(0)
- Started
- Last post
- 17 Responses
- laurita
HI,
is there a possibility to unload a swf-file from level(0)?
- jpea0
you'd be unloading _root then, thus unloading everything that's loaded into _root.
my guess would be no, but does the usual _level0.unloadMovie() work?
- Fariska0
unloadMovieNum(0) ?
Can you describe better your problem?
- weestu0
you could try loading a blank movie into level0...
- laurita0
yeah, well the:
_level0.unloadMovie( ) , works, to unload the movie, but for some reason the new swf, which should load, doesn't appear...
- mrdobolina0
weestu is on my wavelength.
load a dummy movie into level 0 originally that loads your movie into level one. then unload level one and you are sitting with the dummy movie in 0, ken?
- jpea0
if you're loading something into that level, it'll take the place of the previous swf, so unloading it isn't needed.
- laurita0
yeah,
but i need to load this "main"swf file in an higher level, so that the other swf-files that will be loaded from this file appear underneath this "main"swf...
sound a bit complicated...haha,
but it's like this. My main file is the menu -file which contains drop-down menus...so the swf's to be loaded should appear behind this "menu"file...that's why i would like to have my "menu"file in an higher level...
- weestu0
why not put your menu file in level 10, or 100 or whatever then you'll have loads of levels underneath to put stuff in...
- laurita0
well, that's what i'm doing, but to put this menufile in level100 I need an enterfile to tell this menufile to load on this level...right? Or is there a possibility to tell the menufile from the start to load in level100?Because normally the first file starts in level(0)...
- jpea0
or better yet, don't use levels at all. load your swf's into movie clips on the stage and just put the container clip on a level below your menu. no need to track what's on levels at all.
- weestu0
have your main (first) movie load the menu movie into level100. The first movie doesn't need to do anything else.
- laurita0
so now i have an "enter"file, to load the "menu"file in level(100), but than the "enter"file stays in the background, i tried to unload the "enter"file, but than my "menu"file doesn't load anymore...
*#@#!
- weestu0
don't unload the "enter" file then, just leave it doing nothing in the background
- laurita0
ok, so i just give on the first frame of the (first) movie the AS:
on (EnterFrame) {
loadMovieNum("MENU.swf", 100);
unloadMovieNum(10);
gotoAndPlay("M_close");
}
- laurita0
sorry man! It's a while ago i worked with Flash again...slowly everything comes back...
How would you load the "Menu"file into the (first)file?
Is it with On(EnterFrame)?
- weestu0
just loadMovieNum("menu.swf",100); on the frame.
- laurita0
NICE!
It works... and just so simple...!For some reason you always looking for more difficult options...
Thanks Heaps!