Posts Tagged “skinning”

Skinning 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 »

  • Share/Bookmark

Comments 1 Comment »

You can easily skin a Flash component using only ActionScript using component’s method setStyle() providing as parameters:

  1. the name of the style and
  2. your class that you want to use as the skin.

Here is the list of the styles that can be used for skinning a component:
Read the rest of this entry »

  • Share/Bookmark

Comments 2 Comments »

TxEff - The Flash Text Effects