⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aiddraw.as

📁 在flashmx下编写的程序
💻 AS
字号:
function drawNode(x:Number,y:Number,nodeColor:Number):Void
{
	with(eval("_root.tmpBrush"))
	{
		lineStyle(1,nodeColor,100);
		moveTo(x-0.5,y);
		lineTo(x+0.5,y);
		
	}
	
	//eval("_root.tmpBrush").removeMovieClip();
}

function drawSquare(x:Number,y:Number,nodeColor:Number,inSize:Number):Void
{
	_root.createEmptyMovieClip("tmpBrush",_root.getNextHighestDepth());
	
	with(eval("_root.tmpBrush"))
	{
		beginFill (nodeColor, 100);
		lineStyle(1,_root.gColorArr[11],100);
		moveTo(x,y);
		lineTo(x+inSize,y);
		lineTo(x+inSize,y+inSize);
		lineTo(x,y+inSize);
		lineTo(x,y);
		endFill();
	}
}

function drawBackLine(startX:Number,startY:Number,endX:Number,endY:Number,jianGe:Number):Void
{
	//draw Vertical  line
	var tmpX:Number=startX;
	while(tmpX<=endX)
		{
			with(eval("_root.tmpBrush"))
			{
				lineStyle(1,0x003366,100);
				moveTo(tmpX,startY);
				lineTo(tmpX,endY);
			}
			tmpX+=jianGe;
		}
		
	var tmpY:Number=startY;
	while(tmpY<=endY)
		{
			with(eval("_root.tmpBrush"))
			{
				lineStyle(1,0x003366,100);
				moveTo(startX,tmpY);
				lineTo(endX,tmpY);
			}
			tmpY+=jianGe;
		}
}

//Create brush.
_root.createEmptyMovieClip("tmpBrush",_root.getNextHighestDepth());

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -