Load component problem

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

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

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”

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

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.

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:

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.

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

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

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

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

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