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); |
6 Responses to Creating a vertical Slider control in Flash using ActionScript 3.0
Leave a Reply Cancel reply
Recent Posts
- Getting started with the TLFTextField class in ActionScript 3.0 and Flash CS5
- Adding tick marks to a Slider control in Flash using ActionScript 3.0
- Creating a vertical Slider control in Flash using ActionScript 3.0
- Creating a custom context menu item in Flash using ActionScript 3.0
- Rotating a Sprite object around its x-axis in Flash using ActionScript 3.0 and Flash Player 10
- Detecting when the user changes the color in a ColorPicker control in Flash using ActionScript 3.0
- Getting the currently selected color as a hexadecimal value on a ColorPicker control in Flash using ActionScript 3.0
- Toggling the text field on the ColorPicker control in Flash using ActionScript 3.0
- Creating a vertical Slider control in Flash using ActionScript 3.0
- Setting the number of columns on a ColorPicker control in Flash using ActionScript 3.0
Categories
- Bitmap (1)
- Components (72)
- Button (19)
- CheckBox (2)
- ColorPicker (6)
- ComboBox (1)
- DataGrid (8)
- FLVPlayback (7)
- Label (9)
- ProgressBar (2)
- Slider (3)
- TextArea (1)
- TextInput (7)
- UILoader (7)
- ContextMenu (1)
- Embed (4)
- ExternalInterface (2)
- Flex (7)
- Font (2)
- General (5)
- Graphics (2)
- JSFL (14)
- Loader (3)
- LoadVars (3)
- Microphone (1)
- migration (12)
- MovieClip (1)
- MovieClipLoader (1)
- Sound (2)
- TextField (1)
- TLFTextField (1)
- TransitionManager (1)
- Tween (1)
- Uncategorized (1)
- URLLoader (4)
- URLVariables (1)
- Video (1)
- XML (2)
Advertising
"No public Twitter messages." — pdehaan


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.
I don’t quite get it lol
я ломал стекло