Skip to main content
June 16, 2008
Question

attachMovie Problem

  • June 16, 2008
  • 1 reply
  • 187 views
Hi,

I am creating two fla file(a.fla, b.fla). In First flash(a.fla), i have placed two empty MovieClips(image_mc, text_mc) are placed on Stage. Now i wrote follwoing code.

text_mc.loadMovie("b.swf");


Now in b.fla, I have placed a MovieClip with some design inside library and give the linkage name "Textmc".

And wrote the following code:

var as1:MovieClip = _root.image_mc.attachMovie("Textmc", "as", 3);
trace(as1+", "+_root.image_mc);

now when i am compiling a.fla then as1 is coming undefined.



Overall the question is: When i attach movie from library to _parent swf Movieclip then its not attched. Any solution for this?

Please help me.
This topic has been closed for replies.

1 reply

clbeech
Inspiring
June 16, 2008
do you have an 'instance names' on the clips in a.swf? (ie. image_mc, text_mc) these should be entered in the properties panel.