# Draw line(in a specific layer and MovieClip), how do I?

**URL:** https://forum.kirupa.com/t/draw-line-in-a-specific-layer-and-movieclip-how-do-i/204504
**Category:** flash
**Created:** [October 20, 2006, 10:49am UTC](https://forum.kirupa.com/t/draw-line-in-a-specific-layer-and-movieclip-how-do-i/204504 "2006-10-20T10:49:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ohmu](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ohmu/32/2932_2.png) [@Ohmu](https://forum.kirupa.com/u/Ohmu)
#### Post date: [October 20, 2006, 10:49am UTC](https://forum.kirupa.com/t/draw-line-in-a-specific-layer-and-movieclip-how-do-i/204504/1 "2006-10-20T10:49:47Z")

</div>

An easy enough task you might think. I’ve seen the tuorials [The Drawing API](http://www.kirupa.com/developer/actionscript/tricks/drawing_api.htm) and such, but all of them seems to use the dodgy \_root and such.

I’d like to be able to draw in a specific layer. I’ve tried using a mock MoviceClip (empty) that lies in it’s specific layer like such:

```auto
mock_mc.createEmptyMovieClip("line_mc", depth);
line_mc.lineStyle(1,0x000000,100);
line_mc.moveTo(150,200);
line_mc.lineTo(300,200);

```

But it just does not work! Gaaaah, im getting crazy over this. Aren’t we supposed to be able to draw into any MovieClip?

Please, if anyone has any idea - or a reason as to why it won’t work at all, give me a hint.

Best regards,  
Ohmu
