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.27 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.21 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.31 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.30 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.28 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.29 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.32 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.37 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.33 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.34 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.35 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.36 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.38 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.43 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.40 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.44 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.42 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.41 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.60 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
asproject-0.1.68 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as