package com.guru.component.testElement 
{
	import flash.display.MovieClip;
	import flash.display.Shape;
	import flash.geom.Rectangle;
	/**
	 * ...
	 * @author Eddy Lee
	 */
	public class TestElement
	{
		public static function createTestButton():MovieClip
		{
			var btn_mc:MovieClip = new MovieClip();
			draw(btn_mc, 0xFF0000, 1, 0, 0, 50, 30);
			return btn_mc;
		}
		
		public function TestElement() 
		{
			
		}
		
		private static function draw(pDraw:MovieClip, pColor:uint, pAlpha:Number, pStartX:Number, pStartY:Number, pWidth:Number, pHeight:Number):void
		{
			var tmpShape:Shape = new Shape();
			tmpShape.graphics.beginFill(pColor, pAlpha);
			tmpShape.graphics.lineStyle(0, uint(0x000000));
			tmpShape.graphics.moveTo(pStartX, pStartY);
			tmpShape.graphics.lineTo(pStartX + pWidth, pStartY);
			tmpShape.graphics.lineTo(pStartX + pWidth, pStartY + pHeight);
			tmpShape.graphics.lineTo(pStartX, pStartY + pHeight);
			tmpShape.graphics.lineTo(pStartX, pStartY);
			tmpShape.graphics.endFill();
			pDraw.addChild(tmpShape);
		}
		
	}

}