Skip to main content
Known Participant
February 12, 2010
Question

how to drag and drop and attachmovie?

  • February 12, 2010
  • 1 reply
  • 1481 views

Hi all

Can anyone please tell me how to attach a movie clip to another movie clip after drag and drop .I mean to say that is it possible to make a new movie clip with the target movie clip and dropped movie clip.

If it is possible please tell me.

Thanks and regards

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
February 12, 2010

My immediate thought is that you could do it using AS3 instead of AS2, because AS3 has the addChild() option.  So when you drop the object you could make it a child of the target.  I cannot think of an equivalent in AS2, though that doesn't mean there is not some aspect or method that would do this.

Known Participant
February 12, 2010

Thanks for your reply. Actually I m not so much familiar with actionscript3.thats why i need the code in actionscrip2 it will be helpful for the long process.

Is it possible in actionscript2?

Ned Murphy
Legend
February 12, 2010

As far as I know, AS2 does not have a method that provides the ability to join one stage object into another.  The only methods I know of for adding content to other content involves loading it from other resources such as the library (attachMovie()) or external files (loadMovie/loadClip).