ISimpleCard is an interface that describes the minimum capabilities of a SimpleCard.
Typically layouts and skins will use this interface instead of referencing SimpleCard directly.
To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.
Implementation public function get previewComponent():IPreview
rollOverPreference
property
rollOverPreference:String [read-only]
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Returns the preferred roll over effect for the card
Implementation public function get rollOverPreference():String
selected
property
selected:Boolean
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
true if the item renderer can show itself as selected;
otherwise false.
This property can be used as the source for data binding.
Implementation public function get selected():Boolean public function set selected(value:Boolean):void
size
property
size:uint [read-only]
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
The size of this card's underlying attachment, if it were to be uncompressed.
This property can be used as the source for data binding.
Implementation public function get size():uint
Method Detail
getDimensionsUsingPreview
()
method
public function getDimensionsUsingPreview(maxWidth:Number, maxHeight:Number):Point
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Returns the width and height dimensions to use for the folder card.
This will be based on the preview image, but is constrained by
the fitWidth and fitHeight parameters.
Parameters
maxWidth:Number — The maximum width to allow
maxHeight:Number — The maximum height to allow
Returns
Point — The width and height to the image returns as an (x,y) pair.
invalidatePreview
()
method
public function invalidatePreview(invalidateModel:Boolean = false, generateThumb:Boolean = true):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
invalidates the current preview
Parameters
invalidateModel:Boolean (default = false) — If true then nulify the preview model.
generateThumb:Boolean (default = true) — If true generate a new thumbnail image.
setFocus
()
method
public function setFocus():void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Give this simpleCard the focus.
updateRenderer
()
method
public function updateRenderer(oldRenderer:ISimpleCard):void