May
05
2009
[AS3] Skinning Flash Components – Part II
Posted by SikoTiko in Problems, tags: actionscript 3, component, skinning, SliderSkinning Slider Component
In a comment on my previous post [AS3] Skinning Flash Components I was asked to show how to change the size of the thumb of the Slider component. After some experiments with the component here is the way it can be done:
import fl.controls.Slider; var s:Slider = new Slider(); s.move(10,10); s.setSize(500,300); /*s.setStyle("thumbUpSkin", SliderThumbCustomSkin); s.setStyle("thumbDownSkin", SliderThumbCustomSkin); s.setStyle("thumbOverSkin", SliderThumbCustomSkin);*/ s.maximum = 100; s.minimum = 0; s.tickInterval = 5; addChild(s); s.getChildAt(1).width = 50; s.getChildAt(1).height = 100;
With the code above I found that Read the rest of this entry »


Entries (RSS)