# lineTo ... \> whats wrong with me!

**URL:** https://forum.kirupa.com/t/lineto-whats-wrong-with-me/325701
**Category:** flash
**Created:** [October 31, 2011, 5:45pm UTC](https://forum.kirupa.com/t/lineto-whats-wrong-with-me/325701 "2011-10-31T17:45:04Z")
**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: [October 31, 2011, 5:45pm UTC](https://forum.kirupa.com/t/lineto-whats-wrong-with-me/325701/1 "2011-10-31T17:45:04Z")

</div>

hiya … i got an mc on stage … \>

i just want a line to be drawn from the centre stage to my MC object which is being dragged around …

```auto
//inside a mouseDown function
mc.graphics.lineStyle(1,0xFFF);
mc.graphics.moveTo(this.x,this.y);
mc.graphics.lineTo(stage.stageWidth/2,stage.stageHeight/2);
e.updateAfterEvent()

```

hmm gotta be real simple - but ive gone mad and cant do it …
