# Loading movie clip into target

**URL:** <https://forum.kirupa.com/t/loading-movie-clip-into-target/61106>\
**Category:** Uncategorized\
**Created:** [August 16, 2004, 4:13am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106 "2004-08-16T04:13:03Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![silencematters](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@silencematters](https://forum.kirupa.com/u/silencematters)\
**Post date:** [August 16, 2004, 4:13am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/1 "2004-08-16T04:13:03Z")

</div>

ok,… so i know this is an easy easy thing to do… but There has to be soething that i am looking over here…

I am just trying to load a movie into a target.

I have been at this prob for like 3hrs… now.  
☹

any help would be apprecited.  
-jeremy

---

<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:** [August 16, 2004, 4:25am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/2 "2004-08-16T04:25:39Z")

</div>

since you’re new to loadMovie, i would recommend putting the AS directly in the button rather than using an outside function. using a button, just use this AS:[AS]on(release){  
container.loadMovie(“movie.swf”);  
}

---

<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:** [August 16, 2004, 4:47am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/3 "2004-08-16T04:47:26Z")

</div>

ok,… so i have:

```auto

 on(release){
 container.loadMovie("button_1.swf");
 }
 

```

And I applied that to the button.  
button\_1.swf is the file that i have,. and it is in the same folder.

hmmm

it that right?

---

<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:** [August 16, 2004, 4:49am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/4 "2004-08-16T04:49:50Z")

</div>

oh,… an i am using a empty movie clip named “container” who’s instance is also “container” in another layer on the same level.

---

<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:** [August 16, 2004, 4:53am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/5 "2004-08-16T04:53:15Z")

</div>

well, you’re going to be using \_parent.container.loadMovie(“button1.swf”);

remember, your text in your button1.swf is white (the same color as the area of menuslider that it is loading into). the BG color in button1.swf is black, but the BG will not show up when using the loadMovie within the menuslider file. try changing your text color in the button1.swf, you’ll see what i mean.

---

<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:** [August 16, 2004, 4:55am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/6 "2004-08-16T04:55:02Z")

</div>

> [@silencematters](#):
>
> oh,… an i am using a empty movie clip named “container” who’s instance is also “container” in another layer on the same level.

when you target MC’s, you refer to the instance name, not the name of the MC. so \_parent.container.loadMovie(“button1.swf”); tells you to look up one level, look for an MC w/instance name container, and loadMovie “button1.swf” into that MC.

---

<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:** [August 16, 2004, 5:00am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/7 "2004-08-16T05:00:53Z")

</div>

```auto
on(release){
 _parent.container.loadMovie("button_1.swf");
 }

```

I dont know that that is right…

“container”, is not showing up in blue…

and I did change the text color, and re-publish…  
hmm

I thought that this would be the best way to make text appear under the slider, to show you what scene you are on.

hmm

---

<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:** [August 16, 2004, 5:12am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/8 "2004-08-16T05:12:40Z")

</div>

let me see a moment…well i have the container in the parent level… level  
0 - and the instance name is “bob”

then on the button, on level 1, i have the code:

```auto
on(release){
 _parent.bob.loadMovie("button_1.swf");
 }

```

and i get error messages…

however, when i put the container named “bob” on a layer on Level 1, i do not get error messages, and i also dont get a movie clip.

hmm  
I feel like there is one thing that os being over looked… hmmm

---

<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:** [August 16, 2004, 5:15am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/9 "2004-08-16T05:15:23Z")

</div>

ahhhh…

> so \_parent.container.loadMovie(“button1.swf”); tells you to look up one level,

I have my concept of levels wrong. So it does mean that there is something wrong with the MC.  
hmm  
and that i am doing something right. no error messages. that is a plus.

🙂

I appreciate your help and patience… :tb:

---

<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:** [August 16, 2004, 5:17am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/10 "2004-08-16T05:17:06Z")

</div>

container won’t show up in blue because it’s not a built-in function for flash. as for this being the best way to show what section you’re in, well, it’s not. but it can be done this way.

look at the zip file here. i’ve gotten rid of your button function in the main timeline. i’ve also added an onEventClip to your container MC so that the container trails the slider.

//edit: the \_width/2 part of the onEventClip(enterFrame) AS in the MC is just to center the container below the slider. but it doesn’t appear centered b/c your dynamic text box is wider than need be in the button1.swf and button2.swf.

let me know how it works.

---

<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:** [August 16, 2004, 5:32am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/11 "2004-08-16T05:32:12Z")

</div>

yes it works, and i see how…

you know…

i think it has to do with the state of mind…  
I think i was trying to hard to force something to happen… regardless of how easy it was.

it was telling me early on that i needed to just stop, work on somethig else,. and come back to it.

The answer was there. i see it now. thank you. thank you.

---

<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:** [August 16, 2004, 5:39am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/12 "2004-08-16T05:39:29Z")

</div>

> [@silencematters](#):
>
> I think i was trying to hard to force something to happen… regardless of how easy it was.

yeah, when you’re working w/AS (or really any programming language), there’s usually an easier way to do something than what you first come up with. if it seems unnecessarily hard, it probably is. i usually just walk around my house to clear my head.

---

<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:** [August 16, 2004, 5:45am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/13 "2004-08-16T05:45:30Z")

</div>

Thank you again…

Yeah i got bit by the stubborn bug. (ouch!)  
it happens when you least expect it.  
and once it is upon you, you feel like you are one step away from doing it.

that step just happen to be AWAY from the computer.  
it is the same situation as gambling - one more and i will win! i am so close!

ahhhhhhhh…  
thank you for stopping the cycle.  
i hope to return the favor some day.

-me

---

<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:** [August 16, 2004, 5:46am UTC](https://forum.kirupa.com/t/loading-movie-clip-into-target/61106/14 "2004-08-16T05:46:40Z")

</div>

yep. no problem.
