Sha256: e211ea043b9cd8992441a87c259f5d16434b7184fa7e9eb542d90ad707e46804

Contents?: true

Size: 1.08 KB

Versions: 28

Compression:

Stored size: 1.08 KB

Contents

import com.asunit.controls.*;
import com.asunit.controls.shapes.*;

class com.asunit.controls.ScrollHandle extends Rectangle {
	public static var linkageId:String = "__Packages.com.asunit.controls.ScrollHandle";
	public static var classRef:Function = ScrollHandle;
	private var controller:TextScroller;
	private var bgColor:Number = 0xCCCCCC;

	public function ScrollHandle() {
		init();
	}
	
	public function init():Void {
		onPress = doPress;
		onRelease = doRelease;
		onReleaseOutside = doReleaseOutside;
	}
	
	public function doPress():Void {
		onMouseMove = doMouseMove;
		controller.onScrollHandlePressed();
		startDrag(this, false, 0, _parent.upArrow._y, 0, _parent.getHandleTravel());
	}
	
	public function doReleaseOutside():Void {
		onRelease();
	}
	
	public function doMouseMove():Void {
		controller.onScrollHandleMoved();
		updateAfterEvent();
	}
	
	public function doRelease():Void {
		stopDrag();
		controller.onScrollHandleReleased();
		delete onMouseMove;
	}
	
	public static var serializable:Boolean = Object.registerClass(linkageId, classRef);
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
asproject-0.1.28 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.27 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.31 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.21 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.30 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.29 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.37 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.35 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.36 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.33 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.34 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.32 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.44 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.41 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.42 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.40 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.38 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.43 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.60 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
asproject-0.1.68 templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as