Sha256: 7d31a2f04ffb16c88ada2b6141181603ede20159309d88b382eb91e36f3e5b14

Contents?: true

Size: 600 Bytes

Versions: 28

Compression:

Stored size: 600 Bytes

Contents

import com.asunit.controls.shapes.*;

class com.asunit.controls.shapes.Triangle extends MovieClip {
	private var strokeSize:Number = 0;
	private var bgColor:Number = 0xCCCCCC;
	private var borderColor:Number = 0x666666;
	private var width:Number;
	private var height:Number;
	
	public function Triangle() {
	}
	
	public function onLoad():Void {
		refreshLayout();
	}
	
	public function refreshLayout():Void {
		clear();
		lineStyle(strokeSize, borderColor, 100);
		beginFill(bgColor, 100);
		moveTo(0, 0);
		lineTo(width, 0);
		lineTo(width/2, height);
		lineTo(0,0);
	}	
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
asproject-0.1.71 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.69 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.74 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.75 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.80 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.84 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.89 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.92 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as