The following example shows how you can create a vertical Flash ActionScript 3.0 Slider component by setting the direction property to one of the static constants in the SliderDirection class.
Full code after the jump.
// ActionScript 3.0 /* Requires: * - Slider control in Flash library */ import fl.controls.Slider; import fl.controls.SliderDirection; var slider:Slider = new Slider(); slider.direction = SliderDirection.VERTICAL; slider.tickInterval = 1; slider.move(20, 10); addChild(slider);
{ 4 comments… read them below or add one }
the is really nice n quite helpfull. it hepls in understanding the actionscript n provides us the code for most of the things that one wants to create in flash
Sorry, how to get the full code?
DN,
That is the full code. Just drag a Slider component into your ActionScript 3.0 document’s Library panel and test movie.
Peter
This code is totally wrong. it should be for button only. And we need focus on the same for movieclips and button. In order to proceed on this we need to do some changes on that. so that it make sense for movieclips.