# Mouse Draw

**URL:** <https://forum.kirupa.com/t/mouse-draw/251218>\
**Category:** flash\
**Created:** [February 6, 2008, 12:00pm UTC](https://forum.kirupa.com/t/mouse-draw/251218 "2008-02-06T12:00:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [February 6, 2008, 12:00pm UTC](https://forum.kirupa.com/t/mouse-draw/251218/1 "2008-02-06T12:00:16Z")

</div>

This should draw right!?

```auto
var i:Number = 0;
onMouseMove = function(){
    var Xmouse:Number = _root._xmouse;
    var Ymouse:Number = _root._ymouse;
    i+=1;
    trace(Xmouse);
    _root.attachMovie("shape","shape"+i,i,{_x:Xmouse,_y:Ymouse});
}

```

Nothing happens! I have a simple square named shape in the library.:asian:
