# \[actionscript 2\] drawing API help with attachMovie

**URL:** <https://forum.kirupa.com/t/actionscript-2-drawing-api-help-with-attachmovie/246203>\
**Category:** flash\
**Created:** [December 7, 2007, 11:24pm UTC](https://forum.kirupa.com/t/actionscript-2-drawing-api-help-with-attachmovie/246203 "2007-12-07T23:24:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobbybaboon](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@bobbybaboon](https://forum.kirupa.com/u/bobbybaboon)\
**Post date:** [December 7, 2007, 11:24pm UTC](https://forum.kirupa.com/t/actionscript-2-drawing-api-help-with-attachmovie/246203/1 "2007-12-07T23:24:43Z")

</div>

I hope I can articulate this well. I’ve been searching forums and the internet for a few days trying to find a way to do the following but with no luck.

I’m creating a mind mapping application and so far I have an interface in which the user can click on a button and a new concept will appear. The button attaches a new copy of a movieclip to the stage. What I want to do now is add a button onto the attached movieclip (its called rectangleDraw in my source) that will draw a line to another instance of the attached movie clip. So essentially the user will click the two movieclips to be linked and a line will be drawn between the two.  
I can’t seem to figure out a logical way to do this. I am familiar with the drawing API and I’m sure that I can set some variables to do this.

I’d be very grateful if you could help me with the logic behind this concept or even look at my source:  
[Here](http://www.robertjosephmarko.com/mindmapapplication.fla)
