Posts Tagged “flash component”

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

Comments 5 Comments »

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

Comments 2 Comments »

This is the answer I got to my e-mail from Adobe:

Hello,
…..
Unfortunately there is a bug filed against the use of the stopAllSounds()and the FLVPlayback component. The stopAllSounds method breaks the play/pause button in FLVPlayback component.The bug is currently deferred, so I can’t give you a potential fix date for this.

Regards,
Chris Bedford

Chris Bedford | Sr. Technical Writer | Adobe Systems

But I found a workaround using instanceof and checking if the object is instanceof Sound or instanceof FLVPlayback and then I call the Sound object’s stop() or the FLVPlayback component’s stop().

This is not very professional solution, but when I found a better one I’ll post it here.

BG version —————— Read the rest of this entry »

Share

Comments No Comments »

TxEff - The Flash Text Effects