# Urgent Question about a tutorial!

**URL:** <https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623>\
**Category:** flash\
**Created:** [November 16, 2003, 2:27am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623 "2003-11-16T02:27:47Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc123](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@marc123](https://forum.kirupa.com/u/marc123)\
**Post date:** [November 16, 2003, 2:27am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/1 "2003-11-16T02:27:47Z")

</div>

okay, i did the tutorial…

[http://www.kirupa.com/developer/mx/full\_site.htm](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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 4:03am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/2 "2003-11-16T04:03:35Z")

</div>

you can do this:

[AS]

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

[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 4:34am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/3 "2003-11-16T04:34:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 4:42am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/4 "2003-11-16T04:42:59Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 4:44am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/5 "2003-11-16T04:44:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 4:52am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/6 "2003-11-16T04:52:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 4:56am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/7 "2003-11-16T04:56:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 4:58am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/8 "2003-11-16T04:58:37Z")

</div>

& what’s up with the “1”

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 4:58am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/9 "2003-11-16T04:58:46Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 5:06am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/10 "2003-11-16T05:06:21Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 6:09am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/11 "2003-11-16T06:09:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 7:32am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/12 "2003-11-16T07:32:00Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 11:18am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/13 "2003-11-16T11:18:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 11:38am UTC](https://forum.kirupa.com/t/urgent-question-about-a-tutorial/35623/14 "2003-11-16T11:38:51Z")

</div>

here’s a sample
