# Making lines in other layer

**URL:** https://forum.kirupa.com/t/making-lines-in-other-layer/166352
**Category:** flash
**Created:** [October 19, 2005, 7:03am UTC](https://forum.kirupa.com/t/making-lines-in-other-layer/166352 "2005-10-19T07:03:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![superprg](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@superprg](https://forum.kirupa.com/u/superprg)
#### Post date: [October 19, 2005, 7:03am UTC](https://forum.kirupa.com/t/making-lines-in-other-layer/166352/1 "2005-10-19T07:03:49Z")

</div>

Right now this code works for making lines…

\_root.createEmptyMovieClip(“lines”, 1000);  
\_root.lines.lineStyle(3, “0x00FF00”,100);  
\_root.lines.attachmovie(“Label”,“CLabel”,1);  
\_root.lines.Clabel.\_x=200;  
\_root.lines.Clabel.\_y=200;  
\_root.lines.Clabel.\_width=1000;  
\_root.lines.Clabel.\_height=1000;  
\_root.lines.Clabel.text=“Hello”;

\_root.lines.moveTo(50,115)  
\_root.lines.lineTo(700,115);  
for(i=0;i\<=15;i++)  
{  
drawX(100+i\*40,115);

}  
function drawX(x,y)  
{  
with (\_root.lines) {  
// \_root.lines.lineStyle(constlinethickness, “0x”+\_root.datacolor[curr],100);  
\_root.lines.lineStyle(3, “0x00FF00”,100);  
\_root.lines.moveTo(x,y-10)  
\_root.lines.lineTo(x,y+10);

}  
}  
/\*  
with (\_root.lines) {  
// \_root.lines.lineStyle(constlinethickness, “0x”+\_root.datacolor[curr],100);  
\_root.lines.lineStyle(3, “0x000000”,100);  
\*/

What I want is that it should only be visible in that layer.  
Right now it is visible in all the layers  
I am in Scene1-\>graph-\>Layer10  
Please help
