| Package | com.sebastiaanholtrop.components.coverflow |
| Class | public class SebCoverFlow |
| Inheritance | SebCoverFlow mx.core.UIComponent |
| Implements | mx.managers.IFocusManagerComponent, mx.managers.IHistoryManagerClient |
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" />
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| SebCoverFlow | ||
|
loadState(state:Object):void
| SebCoverFlow | ||
|
saveState():Object
| SebCoverFlow | ||
| Method | Defined by | ||
|---|---|---|---|
|
keyDownHandler(event:KeyboardEvent):void
| SebCoverFlow | ||
|
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
| SebCoverFlow | ||
| Event | Summary | Defined 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 | |||
| angle | property |
public var angle:NumberThe angle (in degrees) of the not selected covers
This property can be used as the source for data binding.
| cameraOffsetX | property |
public var cameraOffsetX:NumberThe x position (in Away3D coordinates) of the camera
This property can be used as the source for data binding.
| cameraOffsetY | property |
public var cameraOffsetY:NumberThe y position (in Away3D coordinates) of the camera
This property can be used as the source for data binding.
| dataProvider | property |
public var dataProvider:ArrayCollectionThe 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.
| flippoint | property |
public var flippoint:NumberThe 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.
| horizontalGap | property |
public var horizontalGap:NumberThis is the gap (in Away3D coordinates) between the covers
This property can be used as the source for data binding.
| selectedIndex | property |
public var selectedIndex:intSetting 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.
| selectedItemWidth | property |
public var selectedItemWidth:NumberThe 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.
| selectedItemZoom | property |
public var selectedItemZoom:NumberThe z position (in Away3D coordinates) of the selected item
This property can be used as the source for data binding.
| SebCoverFlow | () | constructor |
public function SebCoverFlow()Constructor.
| 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):voidParameters
unscaledWidth:Number |
|
unscaledHeight:Number |
| animationComplete | event |
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
| change | event |
| coverInitComplete | event |
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
| selectedCoverClicked | event |
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