Package | feathers.media |
Class | public class VolumeSlider |
Inheritance | VolumeSlider ![]() ![]() ![]() |
Implements | IMediaPlayerControl |
See also
Property | Defined By | ||
---|---|---|---|
![]() | customMaximumTrackName : String
DEPRECATED: Replaced by customMaximumTrackStyleName. | Slider | |
![]() | customMaximumTrackStyleName : String
A style name to add to the slider's maximum track sub-component. | Slider | |
![]() | customMinimumTrackName : String
DEPRECATED: Replaced by customMinimumTrackStyleName. | Slider | |
![]() | customMinimumTrackStyleName : String
A style name to add to the slider's minimum track sub-component. | Slider | |
![]() | customThumbName : String
DEPRECATED: Replaced by customThumbStyleName. | Slider | |
![]() | customThumbStyleName : String
A style name to add to the slider's thumb sub-component. | Slider | |
![]() | defaultTextEditorFactory : Function [static]
A function used by all UI controls that support text editor to
create an ITextEditor instance. | FeathersControl | |
![]() | defaultTextRendererFactory : Function [static]
A function used by all UI controls that support text renderers to
create an ITextRenderer instance. | FeathersControl | |
![]() | depth : int [read-only]
The component's depth in the display list, relative to the stage. | FeathersControl | |
![]() | direction : String
Determines if the slider's thumb can be dragged horizontally or
vertically. | Slider | |
![]() | focusIndicatorSkin : DisplayObject
If this component supports focus, this optional skin will be
displayed above the component when showFocus() is
called. | FeathersControl | |
![]() | focusManager : IFocusManager | FeathersControl | |
![]() | focusOwner : IFocusDisplayObject | FeathersControl | |
![]() | focusPadding : Number
Quickly sets all focus padding properties to the same value. | FeathersControl | |
![]() | focusPaddingBottom : Number
The minimum space, in pixels, between the object's bottom edge and the
bottom edge of the focus indicator skin. | FeathersControl | |
![]() | focusPaddingLeft : Number
The minimum space, in pixels, between the object's left edge and the
left edge of the focus indicator skin. | FeathersControl | |
![]() | focusPaddingRight : Number
The minimum space, in pixels, between the object's right edge and the
right edge of the focus indicator skin. | FeathersControl | |
![]() | focusPaddingTop : Number
The minimum space, in pixels, between the object's top edge and the
top edge of the focus indicator skin. | FeathersControl | |
globalStyleProvider : IStyleProvider [static]
The default IStyleProvider for all
VolumeSlider components. | VolumeSlider | ||
![]() | height : Number [override]
The height of the component, in pixels. | FeathersControl | |
![]() | includeInLayout : Boolean
Determines if the ILayout should use this object or ignore it. | FeathersControl | |
![]() | isCreated : Boolean [read-only]
Determines if the component has been initialized and validated for
the first time. | FeathersControl | |
![]() | isEnabled : Boolean
Indicates whether the control is interactive or not. | FeathersControl | |
![]() | isFocusEnabled : Boolean | FeathersControl | |
![]() | isInitialized : Boolean [read-only]
Determines if the component has been initialized yet. | FeathersControl | |
![]() | isQuickHitAreaEnabled : Boolean
Similar to mouseChildren on the classic display list. | FeathersControl | |
![]() | layoutData : ILayoutData
Extra parameters associated with this display object that will be
used by the layout algorithm. | FeathersControl | |
![]() | liveDragging : Boolean = true
Determines if the slider dispatches the Event.CHANGE
event every time the thumb moves, or only once it stops moving. | Slider | |
![]() | maxHeight : Number
The maximum recommended height to be used for self-measurement and,
optionally, by any code that is resizing this component. | FeathersControl | |
![]() | maximum : Number
The slider's value will not go higher than the maximum. | Slider | |
![]() | maximumPadding : Number
The space, in pixels, between the maximum position of the thumb and
the maximum edge of the track. | Slider | |
![]() | maximumTrackFactory : Function
A function used to generate the slider's maximum track sub-component. | Slider | |
![]() | maximumTrackProperties : Object
An object that stores properties for the slider's "maximum" track,
and the properties will be passed down to the "maximum" track when
the slider validates. | Slider | |
![]() | maxWidth : Number
The maximum recommended width to be used for self-measurement and,
optionally, by any code that is resizing this component. | FeathersControl | |
mediaPlayer : IMediaPlayer
The media player that this component controls. | VolumeSlider | ||
![]() | minHeight : Number
The minimum recommended height to be used for self-measurement and,
optionally, by any code that is resizing this component. | FeathersControl | |
![]() | minimum : Number
The slider's value will not go lower than the minimum. | Slider | |
![]() | minimumPadding : Number
The space, in pixels, between the minimum position of the thumb and
the minimum edge of the track. | Slider | |
![]() | minimumTrackFactory : Function
A function used to generate the slider's minimum track sub-component. | Slider | |
![]() | minimumTrackProperties : Object
An object that stores properties for the slider's "minimum" track,
and the properties will be passed down to the "minimum" track when
the slider validates. | Slider | |
![]() | minTouchHeight : Number
If using isQuickHitAreaEnabled, and the hit area's
height is smaller than this value, it will be expanded. | FeathersControl | |
![]() | minTouchWidth : Number
If using isQuickHitAreaEnabled, and the hit area's
width is smaller than this value, it will be expanded. | FeathersControl | |
![]() | minWidth : Number
The minimum recommended width to be used for self-measurement and,
optionally, by any code that is resizing this component. | FeathersControl | |
![]() | nextTabFocus : IFocusDisplayObject | FeathersControl | |
![]() | page : Number
If the trackInteractionMode property is set to
Slider.TRACK_INTERACTION_MODE_BY_PAGE, and the slider's
track is touched, and the thumb is shown, the slider value will be
incremented or decremented by the page value. | Slider | |
![]() | previousTabFocus : IFocusDisplayObject | FeathersControl | |
![]() | repeatDelay : Number
The time, in seconds, before actions are repeated. | Slider | |
![]() | showThumb : Boolean
Determines if the thumb should be displayed. | Slider | |
![]() | step : Number
As the slider's thumb is dragged, the value is snapped to a multiple
of the step. | Slider | |
![]() | styleName : String
The concatenated styleNameList, with values separated
by spaces. | FeathersControl | |
![]() | styleNameList : TokenList [read-only]
Contains a list of all "styles" assigned to this control. | FeathersControl | |
![]() | styleProvider : IStyleProvider
When a component initializes, a style provider may be used to set
properties that affect the component's visual appearance. | FeathersControl | |
![]() | thumbFactory : Function
A function used to generate the slider's thumb sub-component. | Slider | |
![]() | thumbOffset : Number
Offsets the position of the thumb by a certain number of pixels in a
direction perpendicular to the track. | Slider | |
![]() | thumbProperties : Object
An object that stores properties for the slider's thumb, and the
properties will be passed down to the thumb when the slider
validates. | Slider | |
![]() | trackInteractionMode : String
Determines how the slider's value changes when the track is touched. | Slider | |
![]() | trackLayoutMode : String
Determines how the minimum and maximum track skins are positioned and
sized. | Slider | |
![]() | trackScaleMode : String
Determines how the minimum and maximum track skins are positioned and
sized. | Slider | |
![]() | value : Number
The value of the slider, between the minimum and maximum. | Slider | |
![]() | width : Number [override]
The width of the component, in pixels. | FeathersControl |
Method | Defined By | ||
---|---|---|---|
Constructor. | VolumeSlider | ||
![]() | hideFocus():void
If the visual indicator of focus has been displayed by
showFocus(), call this function to hide it. | FeathersControl | |
![]() | invalidate(flag:String):void
Call this function to tell the UI control that a redraw is pending. | FeathersControl | |
![]() | isInvalid(flag:String = null):Boolean
Indicates whether the control is pending validation or not. | FeathersControl | |
![]() | move(x:Number, y:Number):void
Sets both the x and the y positions of the control in a single
function call. | FeathersControl | |
![]() | setSize(width:Number, height:Number):void
Sets both the width and the height of the control in a single
function call. | FeathersControl | |
![]() | showFocus():void
If the object has focus, an additional visual indicator may
optionally be displayed to highlight the object. | FeathersControl | |
![]() | validate():void
Immediately validates the display object, if it is invalid. | FeathersControl |
Constant | Defined By | ||
---|---|---|---|
![]() | DEFAULT_CHILD_NAME_MAXIMUM_TRACK : String = feathers-slider-maximum-track [static]
DEPRECATED: Replaced by Slider.DEFAULT_CHILD_STYLE_NAME_MAXIMUM_TRACK. | Slider | |
![]() | DEFAULT_CHILD_NAME_MINIMUM_TRACK : String = feathers-slider-minimum-track [static]
DEPRECATED: Replaced by Slider.DEFAULT_CHILD_STYLE_NAME_MINIMUM_TRACK. | Slider | |
![]() | DEFAULT_CHILD_NAME_THUMB : String = feathers-slider-thumb [static]
DEPRECATED: Replaced by Slider.DEFAULT_CHILD_STYLE_NAME_THUMB. | Slider | |
DEFAULT_CHILD_STYLE_NAME_MAXIMUM_TRACK : String = feathers-volume-slider-maximum-track [static]
The default value added to the styleNameList of the
maximum track. | VolumeSlider | ||
DEFAULT_CHILD_STYLE_NAME_MINIMUM_TRACK : String = feathers-volume-slider-minimum-track [static]
The default value added to the styleNameList of the
minimum track. | VolumeSlider | ||
DEFAULT_CHILD_STYLE_NAME_THUMB : String = feathers-volume-slider-thumb [static]
The default value added to the styleNameList of the thumb. | VolumeSlider | ||
DIRECTION_HORIZONTAL : String = horizontal [static]
The slider's thumb may be dragged horizontally (on the x-axis). | VolumeSlider | ||
DIRECTION_VERTICAL : String = vertical [static]
The slider's thumb may be dragged vertically (on the y-axis). | VolumeSlider | ||
![]() | INVALIDATION_FLAG_ALL : String = all [static]
Flag to indicate that everything is invalid and should be redrawn. | FeathersControl | |
![]() | INVALIDATION_FLAG_DATA : String = data [static]
Invalidation flag to indicate that the primary data displayed by the
UI control has changed. | FeathersControl | |
![]() | INVALIDATION_FLAG_FOCUS : String = focus [static]
Invalidation flag to indicate that the focus of the UI control has
changed. | FeathersControl | |
![]() | INVALIDATION_FLAG_LAYOUT : String = layout [static]
Invalidation flag to indicate that the layout of the UI control has
changed. | FeathersControl | |
![]() | INVALIDATION_FLAG_SCROLL : String = scroll [static]
Invalidation flag to indicate that the scroll position of the UI
control has changed. | FeathersControl | |
![]() | INVALIDATION_FLAG_SELECTED : String = selected [static]
Invalidation flag to indicate that the selection of the UI control
has changed. | FeathersControl | |
![]() | INVALIDATION_FLAG_SIZE : String = size [static]
Invalidation flag to indicate that the dimensions of the UI control
have changed. | FeathersControl | |
![]() | INVALIDATION_FLAG_SKIN : String = skin [static]
Invalidation flag to indicate that the skin of the UI control has changed. | FeathersControl | |
![]() | INVALIDATION_FLAG_STATE : String = state [static]
Invalidation flag to indicate that the state has changed. | FeathersControl | |
![]() | INVALIDATION_FLAG_STYLES : String = styles [static]
Invalidation flag to indicate that the styles or visual appearance of
the UI control has changed. | FeathersControl | |
TRACK_INTERACTION_MODE_BY_PAGE : String = byPage [static]
When the track is touched, the value is increased or
decreased (depending on the location of the touch) by the value of
the page property. | VolumeSlider | ||
TRACK_INTERACTION_MODE_TO_VALUE : String = toValue [static]
When the track is touched, the slider's thumb jumps directly to the
touch position, and the slider's value property is
updated to match as if the thumb were dragged to that position. | VolumeSlider | ||
TRACK_LAYOUT_MODE_MIN_MAX : String = minMax [static]
The slider has two tracks, stretching to fill each side of the slider
with the thumb in the middle. | VolumeSlider | ||
TRACK_LAYOUT_MODE_SINGLE : String = single [static]
The slider has only one track, that fills the full length of the
slider. | VolumeSlider | ||
TRACK_SCALE_MODE_DIRECTIONAL : String = directional [static]
If the slider's direction is horizontal, the width of the track will
fill the full width of the slider, and if the slider's direction is
vertical, the height of the track will fill the full height of the
slider. | VolumeSlider | ||
TRACK_SCALE_MODE_EXACT_FIT : String = exactFit [static]
The slider's track dimensions fill the full width and height of the
slider. | VolumeSlider |
globalStyleProvider | property |
public static var globalStyleProvider:IStyleProvider
The default IStyleProvider
for all
VolumeSlider
components.
The default value is null
.
See also
mediaPlayer | property |
mediaPlayer:IMediaPlayer
The media player that this component controls.
public function get mediaPlayer():IMediaPlayer
public function set mediaPlayer(value:IMediaPlayer):void
VolumeSlider | () | Constructor |
public function VolumeSlider()
Constructor.
DEFAULT_CHILD_STYLE_NAME_MAXIMUM_TRACK | Constant |
public static const DEFAULT_CHILD_STYLE_NAME_MAXIMUM_TRACK:String = feathers-volume-slider-maximum-track
The default value added to the styleNameList
of the
maximum track.
See also
DEFAULT_CHILD_STYLE_NAME_MINIMUM_TRACK | Constant |
public static const DEFAULT_CHILD_STYLE_NAME_MINIMUM_TRACK:String = feathers-volume-slider-minimum-track
The default value added to the styleNameList
of the
minimum track.
See also
DEFAULT_CHILD_STYLE_NAME_THUMB | Constant |
public static const DEFAULT_CHILD_STYLE_NAME_THUMB:String = feathers-volume-slider-thumb
The default value added to the styleNameList
of the thumb.
See also
DIRECTION_HORIZONTAL | Constant |
public static const DIRECTION_HORIZONTAL:String = horizontal
The slider's thumb may be dragged horizontally (on the x-axis).
See also
DIRECTION_VERTICAL | Constant |
public static const DIRECTION_VERTICAL:String = vertical
The slider's thumb may be dragged vertically (on the y-axis).
See also
TRACK_INTERACTION_MODE_BY_PAGE | Constant |
public static const TRACK_INTERACTION_MODE_BY_PAGE:String = byPage
When the track is touched, the value
is increased or
decreased (depending on the location of the touch) by the value of
the page
property.
See also
TRACK_INTERACTION_MODE_TO_VALUE | Constant |
public static const TRACK_INTERACTION_MODE_TO_VALUE:String = toValue
When the track is touched, the slider's thumb jumps directly to the
touch position, and the slider's value
property is
updated to match as if the thumb were dragged to that position.
See also
TRACK_LAYOUT_MODE_MIN_MAX | Constant |
public static const TRACK_LAYOUT_MODE_MIN_MAX:String = minMax
The slider has two tracks, stretching to fill each side of the slider with the thumb in the middle. The tracks will be resized as the thumb moves. This layout mode is designed for sliders where the two sides of the track may be colored differently to show the value "filling up" as the slider is dragged.
Since the width and height of the tracks will change, consider
using a special display object such as a Scale9Image
,
Scale3Image
or a TiledImage
that is
designed to be resized dynamically.
See also
TRACK_LAYOUT_MODE_SINGLE | Constant |
public static const TRACK_LAYOUT_MODE_SINGLE:String = single
The slider has only one track, that fills the full length of the slider. In this layout mode, the "minimum" track is displayed and fills the entire length of the slider. The maximum track will not exist.
See also
TRACK_SCALE_MODE_DIRECTIONAL | Constant |
public static const TRACK_SCALE_MODE_DIRECTIONAL:String = directional
If the slider's direction is horizontal, the width of the track will fill the full width of the slider, and if the slider's direction is vertical, the height of the track will fill the full height of the slider. The other edge will not be scaled.
See also
TRACK_SCALE_MODE_EXACT_FIT | Constant |
public static const TRACK_SCALE_MODE_EXACT_FIT:String = exactFit
The slider's track dimensions fill the full width and height of the slider.
See also