Packagecom.sebastiaanholtrop.components.coverflow
Classpublic class SebCoverFlow
InheritanceSebCoverFlow Inheritance mx.core.UIComponent
Implementsmx.managers.IFocusManagerComponent, mx.managers.IHistoryManagerClient

MXML Syntaxexpanded Hide MXML Syntax
  <seb:SebCoverFlow 
    id="" 
    dataProvider="{this.imagesArrayCollection}"
    width="100%" 
    height="100%" 
    horizontalGap="120" 
    angle="-80" 
    flippoint="120" 
    selectedItemWidth="120" 
    selectedItemZoom="-200" 
    cameraOffsetX="0" 
    cameraOffsetY="0" 
    
    Events
    change="No default" 
    animationComplete="No default" 
    selectedCoverClicked="No default" 
    coverInitComplete="No default" />
  
  


Public Properties
 PropertyDefined by
  angle : Number
The angle (in degrees) of the not selected covers
SebCoverFlow
  cameraOffsetX : Number
The x position (in Away3D coordinates) of the camera
SebCoverFlow
  cameraOffsetY : Number
The y position (in Away3D coordinates) of the camera
SebCoverFlow
  dataProvider : ArrayCollection
The elements in the dataProvider ArrayCollection must contain a source (String) property containing the url from which the image is loaded
SebCoverFlow
  flippoint : Number
The distance (in Away3D coordinates) from which the covers start to turn into the selected position
SebCoverFlow
  horizontalGap : Number
This is the gap (in Away3D coordinates) between the covers
SebCoverFlow
  selectedIndex : int
Setting this property causes the coverFlow to animate to that index.
SebCoverFlow
  selectedItemWidth : Number
The distance (in Away3D coordinates) between the selected item and the preceiding and succeding covers
SebCoverFlow
  selectedItemZoom : Number
The z position (in Away3D coordinates) of the selected item
SebCoverFlow
Public Methods
 MethodDefined by
  
Constructor.
SebCoverFlow
  
loadState(state:Object):void
SebCoverFlow
  
saveState():Object
SebCoverFlow
Protected Methods
 MethodDefined by
  
keyDownHandler(event:KeyboardEvent):void
SebCoverFlow
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
SebCoverFlow
Events
 EventSummaryDefined by
   Dispatched when the coverFlow is finished animating.SebCoverFlow
   Dispatched when the selectedIndex property changes SebCoverFlow
   If you set the dataProvider with a prefilled ArrayCollection, this event will be dispached after the coverFlow has loaded all of the images and had created all of the covers SebCoverFlow
   Once a cover has been selected and the coverFlow has finished animating and you click the cover this event will be dispached SebCoverFlow
Property detail
angleproperty
public var angle:Number

The angle (in degrees) of the not selected covers

This property can be used as the source for data binding.

cameraOffsetXproperty 
public var cameraOffsetX:Number

The x position (in Away3D coordinates) of the camera

This property can be used as the source for data binding.

cameraOffsetYproperty 
public var cameraOffsetY:Number

The y position (in Away3D coordinates) of the camera

This property can be used as the source for data binding.

dataProviderproperty 
public var dataProvider:ArrayCollection

The elements in the dataProvider ArrayCollection must contain a source (String) property containing the url from which the image is loaded

This property can be used as the source for data binding.

flippointproperty 
public var flippoint:Number

The distance (in Away3D coordinates) from which the covers start to turn into the selected position

This property can be used as the source for data binding.

horizontalGapproperty 
public var horizontalGap:Number

This is the gap (in Away3D coordinates) between the covers

This property can be used as the source for data binding.

selectedIndexproperty 
public var selectedIndex:int

Setting this property causes the coverFlow to animate to that index. If the new selectedIndex is the same as current selectedIndex nothing happens.

This property can be used as the source for data binding.

selectedItemWidthproperty 
public var selectedItemWidth:Number

The distance (in Away3D coordinates) between the selected item and the preceiding and succeding covers

This property can be used as the source for data binding.

selectedItemZoomproperty 
public var selectedItemZoom:Number

The z position (in Away3D coordinates) of the selected item

This property can be used as the source for data binding.

Constructor detail
SebCoverFlow()constructor
public function SebCoverFlow()

Constructor.

Method detail
keyDownHandler()method
protected override function keyDownHandler(event:KeyboardEvent):voidParameters
event:KeyboardEvent
loadState()method 
public function loadState(state:Object):voidParameters
state:Object
saveState()method 
public function saveState():Object

Returns
Object
updateDisplayList()method 
protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Parameters
unscaledWidth:Number
 
unscaledHeight:Number
Event detail
animationCompleteevent 
Event object type: flash.events.Event

Dispatched when the coverFlow is finished animating. If the selectedIndex is changed while animating this event will still only be dispached after the animation has finished

changeevent  
Event object type: flash.events.Event

Dispatched when the selectedIndex property changes

coverInitCompleteevent  
Event object type: flash.events.Event

If you set the dataProvider with a prefilled ArrayCollection, this event will be dispached after the coverFlow has loaded all of the images and had created all of the covers

selectedCoverClickedevent  
Event object type: flash.events.Event

Once a cover has been selected and the coverFlow has finished animating and you click the cover this event will be dispached