# Load component problem

**URL:** https://forum.kirupa.com/t/load-component-problem/12277
**Category:** Uncategorized
**Created:** [January 29, 2003, 4:08am UTC](https://forum.kirupa.com/t/load-component-problem/12277 "2003-01-29T04:08:14Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![catalas](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@catalas](https://forum.kirupa.com/u/catalas)
#### Post date: [January 29, 2003, 4:08am UTC](https://forum.kirupa.com/t/load-component-problem/12277/1 "2003-01-29T04:08:14Z")

</div>

Hi all,

```
I have developed a component.swf and the component has set "export for action script", "export in first frame" and with identifier "myComponent".
I loaded this file into my application.swf. In the application.swf, I try to use the component by a_movie_clip.attachMovie("myComponent", abc, 1).
But it fail. Can anyone help me?? Thz.

```

Catalas

---

<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: [January 29, 2003, 4:53am UTC](https://forum.kirupa.com/t/load-component-problem/12277/2 "2003-01-29T04:53:43Z")

</div>

HI,  
Actually, I don’t know I can do this not.  
:q:

---

<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: [January 29, 2003, 5:01am UTC](https://forum.kirupa.com/t/load-component-problem/12277/3 "2003-01-29T05:01:51Z")

</div>

Well I don’t know if I get what you are trying to do but if abc is the new name of the attached clip you need to put that in quotes… “abc”

---

<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: [January 29, 2003, 6:45am UTC](https://forum.kirupa.com/t/load-component-problem/12277/4 "2003-01-29T06:45:54Z")

</div>

Sorry, I forget to quote abc…But I have add it in my flash.

---

<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: [January 29, 2003, 6:49am UTC](https://forum.kirupa.com/t/load-component-problem/12277/5 "2003-01-29T06:49:28Z")

</div>

Can you post example files?

Are you using an actual component? Or did you create your own component? Or is component just the name of the file?

Also, when loading a movie into another movie the \_root will become the \_root of the main movie, so you will need to use \_parent instead inside the loaded movie.

---

<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: [January 29, 2003, 6:57am UTC](https://forum.kirupa.com/t/load-component-problem/12277/6 "2003-01-29T06:57:26Z")

</div>

Hi,  
I have attached the file, pls help me.  
In the source file, there is a component “FPushButtonSymbol”, I want to attach this component into the main file. But I fail.  
:hangover:

---

<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: [January 29, 2003, 7:05am UTC](https://forum.kirupa.com/t/load-component-problem/12277/7 "2003-01-29T07:05:08Z")

</div>

YOu need to do the attachMovie code inside the source.fla file. I think the only way you can attach a movie from another library is to use Shared Libraries. I don’t know how to do that though, and I don’t know if it works how I am thinking.

Check the attachment to see what I mean about using attachMovie in the same movie.

---

<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: [January 29, 2003, 7:14am UTC](https://forum.kirupa.com/t/load-component-problem/12277/8 "2003-01-29T07:14:04Z")

</div>

:love:  
Hi,  
I will check about shared library, thousand thx to lostinbeta  
Catalas

---

<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: [January 29, 2003, 7:23am UTC](https://forum.kirupa.com/t/load-component-problem/12277/9 "2003-01-29T07:23:18Z")

</div>

No problem. I wish I could help more with Shared Libraries, but I have never used them or read up on them ☹

---

<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: [January 29, 2003, 7:32am UTC](https://forum.kirupa.com/t/load-component-problem/12277/10 "2003-01-29T07:32:24Z")

</div>

Hi,  
I have checked the shared library, it seems not helpful in my case, because the shared library is used in development process.

---

<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: [January 29, 2003, 7:37am UTC](https://forum.kirupa.com/t/load-component-problem/12277/11 "2003-01-29T07:37:34Z")

</div>

Oh ok, then it seems you can’t do it :-\

---

<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: [January 29, 2003, 9:33am UTC](https://forum.kirupa.com/t/load-component-problem/12277/12 "2003-01-29T09:33:35Z")

</div>

:love:  
Hi,  
I will check about shared library, thousand thx to lostinbeta  
Catalas
