Urgent Question about a tutorial!

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!

you can do this:

[AS]

on(release) {
_root.mcName.unloadMovie();
_root.mcName.loadMovie(“whatever” , “1”);
}

[/AS]

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.

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]

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

wouldn’t it be better just to unload the movie, if you have a complex site, more movies loaded would make it more laggy…

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”);

& what’s up with the “1”

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]

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…

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

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)

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

here’s a sample