1

How do I loaded MovieClips in the position of the mouse with a different name on each click? or I have to make several different MovieClips to laod?

please help me :)

1 Answers1

1

Is this what you're trying to do?

var counter:int = 0;

stage.addEventListener(MouseEvent.CLICK, click);

function click(event:MouseEvent):void
{
    var mc:MovieClip = new MovieClip(); // Or new YourExportedLibraryClip();

    mc.name = 'mc_' + (counter++);
    mc.x = stage.mouseX;
    mc.y = stage.mouseY;

    stage.addChild(mc);
}
Marty
  • 39,033
  • 19
  • 93
  • 162