forked from: How do I change the Knob's size ?

by JohnBrookes
♥1 | Line 11 | Modified 2010-04-24 20:45:29 | MIT License
play

ActionScript3 source code

/**
 * Copyright JohnBrookes ( http://wonderfl.net/user/JohnBrookes )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/pXaE
 */

// forked from keim_at_Si's How do I change the Knob's size ?
package {
	import flash.display.Sprite;
	import com.bit101.components.*;
	
	public class main extends Sprite {
		function main() {
			var knob:Knob = new Knob(this);
			// How do I change the Knob's size ?
			// どうやってKnobのサイズを変更すれば良いんでしょうか?
			knob.setSize(100, 100);
			knob.scaleX = knob.scaleY = 3;
			
			// Regarding to the source code, 
			// we cannnot change 
			// the Knob's radius in version 0.102 !!
			// ソースを読む限り,
			// version 0.102 では Knob の半径を変更できません!!
		}
	}
}