Skip to main content
Participating Frequently
July 19, 2012
Question

Action script _root.attachMovie

  • July 19, 2012
  • 1 reply
  • 1943 views

Hi all!  I have a big problem at work. Here is the situation.  I have an html passing a variable as an array to my flash.  In the flash i want to call a couple of symbols depending on the variable from html and display them as a slideshow. I need to add these symbols dynamically but i dont know where to start.  I have created all my movie symbols and linked them for actionscript.  I have created a simple line of code just to display one symbol using _root.attachMovie and the  symbol does not show. here it the code:

_root.attachMovie(usb, usb,1);

usb.x = 276.15;

usb.y = 199.50;

Now the symbol should be visible right? What am i doing wrong?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 19, 2012

1.  is usb defined?

2.  is the value of usb the linkage id of a movieclip?

diluantAuthor
Participating Frequently
July 19, 2012

Yes my symbols are linked.  usb is the link of the symbol named MC_usb.

diluantAuthor
Participating Frequently
July 19, 2012

what do you mean defined?