Packageardisia.components.carouselList
Classpublic class CarouselList
InheritanceCarouselList Inheritance spark.components.List

List optimized for use with the CarouselList class.

Supports animation between elements. See the easer and duration properties.

Keyboard navigation is also supported.

To jump to elements in the list, use the centerIndex() property.

View the technical documentation on the Ardisia Labs website for more information.

Default MXML PropertydataProvider



Public Properties
 PropertyDefined By
  duration : Number = 350
The duration of the animations.
CarouselList
  easer : IEaser
The easer to use for animations.
CarouselList
Public Methods
 MethodDefined By
  
centerIndex(index:int):void
Center the renderer in the layout.
CarouselList
  
startAnimation(scrollTo:Number):void
Start a scrolling animation.
CarouselList
Protected Methods
 MethodDefined By
  
[override] Handles the collection events on the dataProvider.
CarouselList
  
hScrollerPartHandler(event:Event):void
Handles events on the HScroller skin part.
CarouselList
  
mouseHandler(event:MouseEvent):void
Handles mouse events.
CarouselList
  
Updates the HScroller skin part.
CarouselList
Skin Parts

This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.


 Skin Part Description Defined By
  
hScrollerPart:spark.components.supportClasses.ScrollBarBase
Required: false Part Type: Static
Scroll bar used to navigate the coverflow.
CarouselList
Property Detail
durationproperty
public var duration:Number = 350

The duration of the animations. Set to 0 to skip animation.

The default value is 350.

easerproperty 
public var easer:IEaser

The easer to use for animations.

The default value is Power(0.1, 4).

Method Detail
centerIndex()method
public function centerIndex(index:int):void

Center the renderer in the layout.

Parameters

index:int — the index of the renderer

dataProvider_collectionChangeHandler()method 
override protected function dataProvider_collectionChangeHandler(event:Event):void

Handles the collection events on the dataProvider.

Parameters

event:Event — The CollectionEvent that triggered the handler

hScrollerPartHandler()method 
protected function hScrollerPartHandler(event:Event):void

Handles events on the HScroller skin part.

Parameters

event:Event — the Event that triggered the handler

mouseHandler()method 
protected function mouseHandler(event:MouseEvent):void

Handles mouse events.

Parameters

event:MouseEvent — the MouseEvent that triggered the handler

startAnimation()method 
public function startAnimation(scrollTo:Number):void

Start a scrolling animation.

Parameters

scrollTo:Number — the property to animate

updateHScroller()method 
protected function updateHScroller():void

Updates the HScroller skin part.