# Position Actionscript Over Images

**URL:** <https://forum.kirupa.com/t/position-actionscript-over-images/32271>\
**Category:** flash\
**Created:** [October 4, 2003, 12:19am UTC](https://forum.kirupa.com/t/position-actionscript-over-images/32271 "2003-10-04T00:19:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lev](https://avatars.discourse-cdn.com/v4/letter/l/ac8455/32.png) [@Lev](https://forum.kirupa.com/u/Lev)\
**Post date:** [October 4, 2003, 12:19am UTC](https://forum.kirupa.com/t/position-actionscript-over-images/32271/1 "2003-10-04T00:19:44Z")

</div>

Flash MX.

I’m sure this is a fairly basic question, but I still haven’t groked how to tell Flash to write my actionscript generated lines above the graphics. I would have thought just putting the actionscript in a layer above the graphics would have sufficed, but it continues to draw underneath my graphics in the lower level.

Here is my (partially-stolen) actionscript with resides in the first frame of a layer over the layer with the graphics:

```auto

x1=56;
y1=86;

this.onEnterFrame=function(){

if (_xmouse >= 88 && _xmouse <= 135) {
	f=(_xmouse - 88);
	if (_ymouse >= ((f * 0.666666666666667) + 16) && _ymouse <= ((f * 0.666666666666667) + ( 16 + 31))){
					this.clear();
  					this.lineStyle(1,0,100);
					this.moveTo(x1,y1);
					this.lineTo(_xmouse,_ymouse);
					}
	}

}

```
