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:
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);
}
}
}