Packagekm.skins
Classpublic final class ScriptedSkin

The ScriptedSkin class is used to skin components with a very simple scripted skin.
The ScriptedSkin class should not be instantiated !



Public Methods
 MethodDefined by
  
applyTo(... components):void
[static] Applies the 'scripted skin' to the specified components.
Supported component types are CheckBox, ColorPicker, ComboBox, DragContainer, LabelButton, List, MediaPlayer, Menu, NummericStepper, RadioGroup, ScrollBar, ScrollPane, Tree .
When applied to other component types only the style is set.
ScriptedSkin
  
setStyle(duotoneColor1:uint = 0, duotoneColor2:uint = 0xffffff, bevelDistance:Number = 0, bevelAngle:Number = 45):void
[static] Sets a style for components that will be skinned using the applyTo function.
ScriptedSkin
Method detail
applyTo()method
public static function applyTo(... components):void

Applies the 'scripted skin' to the specified components.
Supported component types are CheckBox, ColorPicker, ComboBox, DragContainer, LabelButton, List, MediaPlayer, Menu, NummericStepper, RadioGroup, ScrollBar, ScrollPane, Tree .
When applied to other component types only the style is set.

Parameters
... components

Example
 import km.components.*;
 import km.skins.*;

 ScriptedSkin.setStyle(0x100800, 0xfffaf0);

 var b:BitmapData = new BitmapData(400, 300, false, 0xc0c0c0);

 var s:ScrollPane = new ScrollPane();
 ScriptedSkin.applyTo(s);
 s.setSize(200,100);
 s.move(20,20);
 addChild(s);

 s.setContent(b);
 

setStyle()method 
public static function setStyle(duotoneColor1:uint = 0, duotoneColor2:uint = 0xffffff, bevelDistance:Number = 0, bevelAngle:Number = 45):void

Sets a style for components that will be skinned using the applyTo function.

Parameters
duotoneColor1:uint (default = 0)
 
duotoneColor2:uint (default = 0xffffff)
 
bevelDistance:Number (default = 0)
 
bevelAngle:Number (default = 45)