maxx) maxx=this.startx; if (this.endx>maxx) maxx=this.endx; if (this.startymaxy) maxy=this.starty; if (this.endy>maxy) maxy=this.endy; var width = maxx-minx; var height = maxy-miny; //if ($debug) Debug.write("minx,miny,width,height: ",minx,miny,width,height); //if ($debug) Debug.write("endDrawarrowline",this.startx,this.starty,this.endx,this.endy); if (minx == this.startx) { var x1 = 0; var x2 = width; } else { var x1 = width; var x2 = 0; } if (miny == this.starty) { var y1 = 0; var y2 = height; } else { var y1 = height; var y2 = 0; } if(this.isSnapToGrid){ minx = Math.round(minx/this.gridWidth)*this.gridWidth; miny = Math.round(miny/this.gridWidth)*this.gridWidth; //x1 = Math.round(x1/this.gridWidth)*this.gridWidth; //y1 = Math.round(y1/this.gridWidth)*this.gridWidth; //x2 = Math.round(x2/this.gridWidth)*this.gridWidth; //y2 = Math.round(y2/this.gridWidth)*this.gridWidth; } this.currentlayer = new lz.drawViewNew(this,{ name:tempName,x:minx,y:miny,width:width,height:height, opacity:this.currentdrawarrowOpacity}); var pArrowStart = new flash.geom.Point(x1,y1); var pArrowEnd = new flash.geom.Point(x2,y2); //if ($debug) Debug.write("start,end,line",pArrowStart,pArrowEnd,this.currentdrawarrowlinelineWidth); this.drawArrow(this.currentlayer,pArrowStart,pArrowEnd,this.currentdrawarrowlinelineWidth, this.currentdrawarrowlinestrokeDis,this.currentdrawarrowlinestroke, this.currentdrawarrowlinestrokeFill,this.currentdrawarrowlinestrokeFillDis); //Add Layer to global Layer this.layers.push(this.currentlayer); this.drawarrowlineregisterFinal(this.currentlayer.name, this.currentdrawarrowlinestroke,this.currentdrawarrowlinelineWidth, this.currentdrawarrowlinestrokeFill,this.currentdrawarrowlinestrokeDis, this.currentdrawarrowlinestrokeFillDis,this.currentdrawarrowOpacity, minx,miny,width,height, x1,y1,x2,y2,true,this.getSWFDocumentStatus(), this.getZIndex()); //Debug.write("t: ",t); ]]> var actionObject = new Array(); actionObject[0] = 'drawarrow'; actionObject[1] = stroke; actionObject[2] = line; actionObject[3] = fill; actionObject[4] = strokeDis; actionObject[5] = fillDis; actionObject[6] = opacity; actionObject[7] = x1; actionObject[8] = y1; actionObject[9] = x2; actionObject[10] = y2; actionObject[11] = zIndex;//-8 actionObject[12] = swfObj;//-7 actionObject[13] = this.counter;//-6 actionObject[14] = x;//-5 actionObject[15] = y;//-4 actionObject[16] = width;//-3 actionObject[17] = height;//-2 actionObject[18] = newName;//-1 this.baseactionobjectList.push(actionObject); if (doCall) this.onsharedMessage('draw',actionObject);