In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

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

Get Adobe Flash player
by JohnBrookes 24 Apr 2010

    Talk

    keim_at_Si at 24 Apr 2010 17:07
    Thanks !! But in the minimal comps version 0.92, we can change the knob's radius with stable text size and line width. Is it also possible for the version 0.102?
    Embed
/**
 * 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 の半径を変更できません!!
		}
	}
}