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);
Tagged with:
 

6 Responses to Creating a vertical Slider control in Flash using ActionScript 3.0

  1. priyanka says:

    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

  2. DN says:

    Sorry, how to get the full code?

  3. Peter deHaan says:

    DN,

    That is the full code. Just drag a Slider component into your ActionScript 3.0 document’s Library panel and test movie.

    Peter

  4. senthilkumar says:

    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.

  5. Ivan says:

    I don’t quite get it lol

  6. Jonny says:

    я ломал стекло

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree