Methods | Properties | Effects | Events | Styles | Examples Frames | No Frames

mx.controls
Class VSlider

Inheritance ImageInheritance ImageInheritance Image


class VSlider
extends mx.controls.sliderclasses.Slider

The VSlider control lets users select a value by moving a slider thumb between the end points of the slider track. The current value of the slider is determined by the relative location of the thumb between the end points of the slider, corresponding to the slider's minimum and maximum values. The VSlider has a vertical orientation. The slider track stretches from bottom to top and the labels and tick marks are placed to the left or right of the track.

MXML Syntax

The <mx:VSlider> tag inherits all the properties of its parent classes, and the following properties:

 <mx:VSlider
toolTipPlacement="left|right|top|bottom"
/>

Click here to view the Examples

See Also
    VSlider
    sliderclasses.Slider
    sliderclasses.SliderThumb
    sliderclasses.SliderToolTip
    sliderclasses.SliderLabel



Methods

Methods inherited from class mx.controls.sliderclasses.Slider
getThumbAt   layoutChildren   measure   setThumbValueAt  

Methods inherited from class mx.core.UIComponent
drawFocus   getFocus   getFocusManager   setEnabled   setFocus  

Methods inherited from class mx.core.UIObject
addEventListener   applyProperties   buildDepthTable   commitProperties   constructObject2   createAccessibilityImplementation   createChildAtDepth   createChildren   createClassChildAtDepth   createClassObject   createEmptyObject   destroyObject   dispatchEvent   doLater   draw   drawRect   executeBindings   fillRect   findNextAvailableDepth   getRepeaterItem   getStyle   handleEvent   init   invalidate   invalidateLayout   invalidateProperties   invalidateSize   invalidateStyle   layoutChildren   measure   move   redraw   removeEventListener   setDepthAbove   setDepthBelow   setMask   setSize   setSizeNoLayout   setStyle   swapDepths  



Properties
staticversion: String
Version string for this class.

Properties inherited from class mx.controls.sliderclasses.Slider
allowTrackClick   direction   labels   labelStyleDeclaration   liveDragging   maximum   maxValue   minimum   minValue   scrollTrackHeight   scrollTrackSymbol   showTicks   showToolTip   sliderThumbClass   sliderToolTipClass   snapInterval   snapToTicks   thumbCount   thumbSymbol   thumbWidth   tickFrequency   tickHeight   tickInterval   tickSpacing   tickSymbol   toolTipFormatFunction   toolTipStyleDeclaration   value   values  

Properties inherited from class mx.core.UIComponent
enabled   errorString   tabEnabled   tabIndex   version  

Properties inherited from class mx.core.UIObject
alpha   baselinePosition   className   depth   documentDescriptor   height   heightFlex   id   instanceIndices   isDocument   kStretch   layoutHeight   layoutWidth   maxHeight   maxWidth   minHeight   minWidth   mouseX   mouseY   nestLevel   oldHeight   oldWidth   oldX   oldY   parent   parentApplication   parentDocument   percentHeight   percentWidth   preferredHeight   preferredWidth   repeaterIndices   scaleX   scaleY   styleName   tabEnabled   toolTip   version   visible   width   widthFlex   x   y  



Effects

Effects inherited from class mx.core.UIComponent
focusInEffect   focusOutEffect  

Effects inherited from class mx.core.UIObject
creationCompleteEffect   hideEffect   mouseDownEffect   mouseOutEffect   mouseOverEffect   mouseUpEffect   moveEffect   resizeEffect   showEffect  



Events

Events inherited from class: mx.controls.sliderclasses.Slider
change  thumbDragged  thumbPressed  thumbReleased 

Events inherited from class: mx.core.UIComponent
focusIn  focusOut  invalid  keyDown  keyUp  valid  valueCommitted 

Events inherited from class: mx.core.UIObject
creationComplete  dragComplete  dragDrop  dragEnter  dragExit  dragOver  draw  effectEnd  effectStart  hide  hideToolTip  initialize  load  mouseChangeSomewhere  mouseDown  mouseDownSomewhere  mouseMove  mouseMoveSomewhere  mouseOut  mouseOver  mouseUp  mouseUpSomewhere  move  resize  show  showToolTip  unload 



Styles
toolTipPlacement Type: String   CSS Inheritance: no
The location of the tooltip relative to the thumb. Possible values are left, right, top, and bottom. Default value is left.

Styles inherited from class mx.controls.sliderclasses.Slider
labelOffset   slideDuration   slideEasing   thumbOffset   tickColor   tickLength   tickOffset   tickThickness   toolTipOffset   toolTipPrecision   trackColors   trackHighlight   trackMargin  

Styles inherited from class mx.core.UIComponent
backgroundAlpha   backgroundColor   backgroundDisabledColor   backgroundImage   backgroundSize   barColor   borderCapColor   borderColor   borderSides   borderStyle   borderThickness   cornerRadius   disabledColor   dropShadow   errorColor   fillColors   highlightColor   modalTransparency   scrollTrackColor   selectedFillColors   shadowCapColor   shadowColor   shadowDirection   shadowDistance   symbolBackgroundColor   symbolBackgroundDisabledColor   symbolBackgroundPressedColor   symbolColor   symbolDisabledColor   themeColor  

Styles inherited from class mx.core.UIObject
color   fontFamily   fontSize   fontStyle   fontWeight   horizontalGap   leading   marginLeft   marginRight   textAlign   textDecoration   textIndent   verticalGap  



Property Detail

version

static  version: String  

Version string for this class.


Examples
SimpleImageVSlider.mxml
<?xml version="1.0"?>
<!-- Simple example to demonstrate the VSlider control -->
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF">

    <mx:Script>
        <![CDATA[
          
          var lastvalue=0;
          var temp;
          
          function changeSize()
	  {
	     temp=slide.value;
	     temp= slide.value-lastvalue;
	     flex.width+=temp;
	     flex.height+=temp;
	     lastvalue=slide.value;
	  }
    ]]> 
    
    </mx:Script>

    <mx:HBox>

        <mx:Panel id="panel" title="Image VSlider Panel">

            <mx:HBox>
                <mx:Image id="flex" source="@Embed('Flex.png')"/>
            </mx:HBox>

        </mx:Panel>

        <!-- Simple Horizontal Slider control which changes the size of the Images-->
        <mx:VSlider id="slide" toolTipPlacement="right" snapInterval="1" change="changeSize()" allowTrackClick="true" maximum="100"
            minimum="0"/>

    </mx:HBox>

</mx:Application>
       




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/15/asdocs_en/mx/controls/VSlider.html