marc123
November 16, 2003, 2:27am
1
okay, i did the tutorial…
http://www.kirupa.com/developer/mx/full_site.htm
i got it to work…now i did it with my own test site.
it worked but, problem is. when i clicked the button it loads the swf. but the stuff on the main scene can still be seen under the loaded movie clip.
is there any wat to fix this? Please very urgent.
Thanks!
system
November 16, 2003, 4:03am
2
you can do this:
[AS]
on(release) {
_root.mcName.unloadMovie();
_root.mcName.loadMovie(“whatever” , “1”);
}
[/AS]
system
November 16, 2003, 4:34am
3
umm…
i tried that, but it didnt work. i think i know why.
the movieclip that are still seen under it…thing is, i jus placed them on the scene from the library…
so, how can i load that 1st movie clip on the scene. so i can then Unload it, like u said. when i click on the button.
system
November 16, 2003, 4:42am
4
just add a layer for actions to keep things neat, and in the first frame of actions put:
[AS]
_root.mcName.loadMovie(“whatever.swf”,“1”);
[/AS]
system
November 16, 2003, 4:44am
5
I fhte other movie is okay to leave on the stage and you just want to hide it use:
[AS]
_root.mcName._visible = false;
[/AS]
Hope that helps,
Shawn
system
November 16, 2003, 4:52am
6
wouldn’t it be better just to unload the movie, if you have a complex site, more movies loaded would make it more laggy…
system
November 16, 2003, 4:56am
7
um…
when yall say mcName. u mean the actual movie clips name or the instance name.
because i dont understand…
_root.mcName.loadMovie(“whatever.swf”,“1”);
system
November 16, 2003, 4:58am
9
I mean the instance name the movie is being loaded into, for example in the tutorial it was content, so it would be…
[AS]
_root.content.loadMovie(“whatever.swf” , “1”);
[/AS]
sorry, that is just a habbit, you can you just put
[AS]
_root.content.loadMovie(“whatever.swf”);
[/AS]
system
November 16, 2003, 5:06am
10
yes. i was able to get the movie clip “whatever.swf” to load to “contents” when i click the button. but still, i still see the mc under “whatever.swf” that is on the scene.
okay, i understand. i gotta unload the mc that is on the scene.
tryin 2 do that now…
system
November 16, 2003, 6:09am
11
macniel I know it’s a bad habit but I usually talor code to the project. I assumed this was not a project with so many movies it would become laggy, so I gave an answer that would work for the project. Anyway I think you 2 will be able to work this out, seems like you are making great progress.
Good Luck marc123,
Shawn
system
November 16, 2003, 7:32am
12
okay, the unloadmc did not work.
but. i want to try & load the mc on the scene when the movie starts (not just take the mc from the librar & place on the scene.)
so when the scene starts the main swf is loaded, then i can try the unload, so that it doesnt show under the other mc. (the contents one)
system
November 16, 2003, 11:18am
13
in frame 1 of your movie:
[AS]_root.contents.loadMovie(“main.swf”);[/AS]
and on your button:
[AS]on(release){
_root.contents.loadMovie(“whatever.swf”);
}[/AS]
should work:)
(and if not post your fla)
scotty