# Drawing lines ontop of an image

**URL:** https://forum.kirupa.com/t/drawing-lines-ontop-of-an-image/126299
**Category:** Uncategorized
**Created:** [October 21, 2004, 10:51pm UTC](https://forum.kirupa.com/t/drawing-lines-ontop-of-an-image/126299 "2004-10-21T22:51:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![imvain2](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/imvain2/32/620_2.png) [@imvain2](https://forum.kirupa.com/u/imvain2)
#### Post date: [October 21, 2004, 10:51pm UTC](https://forum.kirupa.com/t/drawing-lines-ontop-of-an-image/126299/1 "2004-10-21T22:51:12Z")

</div>

OK I have an empty MC. I want to draw lines that show on top of an image, but everything I try draws the lines below my image.

This code is ran from the main timeline.

This is my code so far.

```auto

	_root.attachMovie("Audiogram_Chart","Show_Audiogram",100000); //this is my MC that will hold the graphics
	_root.Show_Audiogram.attachMovie("Audiogram_Chart_Pic","Audiogram_Chart_Pic1",0); //this is a graphic with linkage
	_root.Show_Audiogram._x=200;
	_root.Show_Audiogram._y=200;
//RIGHT EAR
	_root.Show_Audiogram.lineStyle(2, 0xFF0000, 100); 
	_root.Show_Audiogram.moveTo(0, 0);
	_root.Show_Audiogram.lineTo(200, 150);
	_root.Show_Audiogram.lineTo(100, 50);
//LEFT EAR
	_root.Show_Audiogram.lineStyle(2, 0x0000FF, 100); 
	_root.Show_Audiogram.moveTo(0, 0);
	_root.Show_Audiogram.lineTo(100, 50);
	_root.Show_Audiogram.lineTo(40, 150);

```
