Skip navigation
diluant
Currently Being Moderated

Action script _root.attachMovie

Jul 19, 2012 11:49 AM

Tags: #attachmovie

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?

 
Replies
  • kglad
    72,360 posts
    Jul 21, 2002
    Currently Being Moderated
    Jul 19, 2012 12:05 PM   in reply to diluant

    1.  is usb defined?

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

     
    |
    Mark as:
  • kglad
    72,360 posts
    Jul 21, 2002
    Currently Being Moderated
    Jul 19, 2012 2:25 PM   in reply to diluant

    what's the following show:

     

    trace(usb);

    var mc:MovieClip=_root.attachMovie(usb, usb,1);

    trace(mc);

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points