Packagecom.adobe.portfolio.cards
Classpublic class BasicCard
InheritanceBasicCard Inheritance SimpleCard Inheritance NavSkinnableComponent Inheritance spark.components.supportClasses.SkinnableComponent
Implements IBasicCard
Subclasses FolderCard, PlaceholderCard

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

BasicCard is a skinnable renderer for an IAttachment. It implements IListItemRenderer, so it can be used as an item renderer for relevant containers. The skin is not required to provide all the relevant controls, which allows this object to act as the core for both simple (mini-nav) and complex (basic click-through card) rendering.



Public Properties
 PropertyDefined By
 InheritedadjustAspectRatio : Boolean
Is true if the aspect ratio of the simple card can be changed; otherwise it is false.
SimpleCard
 InheritedcolorPalette : ColorPalette
The color palette being used by this object.
SimpleCard
 InheritedcompressedSize : uint
The size of this card's underlying attachment as it is currently compressed in the Navigator file.
SimpleCard
 InheritedcreationDate : Date
The creation date of this card's underlying attachment.
SimpleCard
  data : Object
[override] The data object being rendered by the basicCard.
BasicCard
 InheriteddelayThumbnailGeneration : Boolean
Indicates whether generation of the thumbnail image should be delayed or not.
SimpleCard
 Inheriteddescription : String
The description of this card's underlying attachment.
SimpleCard
 InheriteddoubleClickEnabled : Boolean
[override] [write-only] Enables and disables double click events for this card.
SimpleCard
 InheriteddownSampleOK : Boolean
Indicates whether it is OK to reduce the size of the image.
SimpleCard
 Inheriteddragging : Boolean
Is true if the item renderer is being dragged; otherwise false.
SimpleCard
 InheriteddropShadowPreference : String
The drop shadow effect preference.
SimpleCard
 InheritedenableThumbnailGeneration : Boolean
Indicates whether generation of the thumbnail image is enabled or not.
SimpleCard
 InheritedfileName : String
The file name of this card's underlying attachment.
SimpleCard
 InheritedgenerateThumb : Boolean
Indicates whether or not to generate a thumbnail image for the card
SimpleCard
 InheritedisOpen : Boolean
Is true if the attachment is open in a native editor; otherwise false.
SimpleCard
 InheriteditemIndex : int
The index of the item in the data set that this renderer is visualizing.
SimpleCard
 Inheritedlabel : String
The String to display in the item renderer.
SimpleCard
 InheritedmediumPreviewHasGlow : Boolean
[read-only] A boolean specifying if the skin should apply a glow to the mid-level preview
SimpleCard
 InheritedmodDate : Date
The modification date of this card's underlying attachment.
SimpleCard
 Inheritedpadding : Point
[read-only] Get the horizontal and vertical padding for this UI component.
SimpleCard
 InheritedpreviewComponent : IPreview
[read-only] The preview component for the simpleCard
SimpleCard
 InheritedrollOverPreference : String
A string specifying the preferred type of rollover effect on this component.
SimpleCard
 Inheritedselected : Boolean
Is true if the item renderer can show itself as selected; otherwise it is false.
SimpleCard
 InheritedshowsCaret : Boolean
Is true if the item renderer can show itself as focused; otherwise it is false.
SimpleCard
 Inheritedsize : uint
The size of this card's underlying attachment, if it were to be uncompressed.
SimpleCard
 InheritedskinState : String
NavSkinnableComponent
 Inheritedvisible : Boolean
[override] [write-only] Set the visibility of the card
SimpleCard
Protected Properties
 PropertyDefined By
  allowMultiPage : Boolean
[override] [read-only] Determines if the attachement supports calculating the number of pages it contains.
BasicCard
 Inheritedattachment : IAttachment = null
The IAttachment data object being rendered by this component.
SimpleCard
 InheritedautoListen : AutoListen
NavSkinnableComponent
 InheritedautoWatch : AutoWatch
NavSkinnableComponent
  infoMap : Dictionary
[static] The dictionary for the BasicCard's info state
BasicCard
 InheritedinvalidPreview : Boolean
If true the preview for this card is invalid.
SimpleCard
 InheritedmouseIsOver : Boolean
Returns true if the mouse is over the card; returns false otherwise.
SimpleCard
  preferredPreviewState : String
[override] [read-only] Returns the preferred PreviewState.
BasicCard
  prefersMediaPreview : Boolean
[override] [read-only] Does this card's attachment have a preferredPreviewState of AUDIO or VIDEO
BasicCard
 InheritedpreviewMultiPageModel : IPreviewMultiPageModel
[read-only] Get a preview model that supports multipage preview of attachments
SimpleCard
 Inherited_skinState : String
NavSkinnableComponent
 InheritedthumbnailMgr : ThumbnailManager
[static] The navigator's thumbnailManager instance.
SimpleCard
  zoomLarge : IEffect
The Flex effect to run when zooming to a large card size
BasicCard
  zoomNormal : IEffect
The Flex effect to run when zooming to a medium card size
BasicCard
  zoomToLarge : Boolean = false
Boolean switch indicating whether to run a large or normal zoom effect.
BasicCard
Public Methods
 MethodDefined By
  
Default constructor for BasicCard.
BasicCard
 Inherited
NavSkinnableComponent
 Inherited
getDimensionsUsingPreview(fitWidth:Number, fitHeight:Number):Point
Get the dimensions of the preview image.
SimpleCard
 Inherited
invalidatePreview(invalidateModel:Boolean = false, generateThumb:Boolean = true):void
Invalidate the current preview state for the card
SimpleCard
  
[override] Mark the SkinState as invalid.
BasicCard
 Inherited
NavSkinnableComponent
  
setCurrentState(stateName:String, playTransition:Boolean = true):void
[override] Sets the state of the skin as well as the state of this instance.
BasicCard
 Inherited
setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean = true):void
[override] Sets the layout size of the card.
SimpleCard
 Inherited
toString():String
[override] The String to display in the item renderer.
SimpleCard
  
updateRenderer(oldRenderer:ISimpleCard):void
[override] Update the renderer to use for the basicCard
BasicCard
Protected Methods
 MethodDefined By
 Inherited
addListener(listener:IEventDispatcher, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0):void
NavSkinnableComponent
 Inherited
addWatcher(watcher:ChangeWatcher):void
NavSkinnableComponent
 Inherited
[override] Save the current properties of this card.
SimpleCard
 Inherited
detachSkin():void
[override]
NavSkinnableComponent
 Inherited
Returns the file extension for the attachment.
SimpleCard
 Inherited
Generate a thumbnail image for the underlying attachment.
SimpleCard
 Inherited
Get the aspect ratio of the thumbnail for the attachment.
SimpleCard
  
[override] Returns the current state of this instance, which is a variant of the component state depending on whether or not the component is selected.
BasicCard
 Inherited
Get the size of the preview image
SimpleCard
 Inherited
Have the collectionManager handle the preview for the underlying attachment.
SimpleCard
 Inherited
hostPageCountChanged(val:uint):void
This function is called if the page count of the multipage model has changed
SimpleCard
 Inherited
Initialize the page count for the preview multipage model to the page count of the underlying attachement.
SimpleCard
 Inherited
initStates():void
NavSkinnableComponent
  
initZoom():void
Initialize zoom effects and set up event listener for such events.
BasicCard
 Inherited
Invalidate the preview because a new data object to be rendered has been set
SimpleCard
 Inherited
Returns the MIME type for the attachment.
SimpleCard
 Inherited
onAspectRatioChanged(event:PropertyChangeEvent):void
The event handler for changes in aspect ratio of the thumbnail.
SimpleCard
 Inherited
onAttachmentChange(evt:Event):void
Handles changes in the underlying attachement events
SimpleCard
  
onDeleteClick(evt:Event):void
The event handler for the clicking the delete button events.
BasicCard
 Inherited
onEnableDynamicThumbnails(value:Boolean):void
Handle the enabling of dynamic thumbnails.
SimpleCard
  
onExtractClick(evt:Event):void
The event handler for clicking the extract button events.
BasicCard
  
onExtractOrDeleteClick(event:Event):void
The event handler for the handling either clicking the delete button events.
BasicCard
  
onHostPropertyChange(event:PropertyChangeEvent):void
[override] A listener for PropertyChangeEvents on the collectionManager.
BasicCard
 Inherited
onIconChange(event:Event):void
Handle icon change events
SimpleCard
  
onInfoClick(evt:Event):void
The event handler for clicking the info button events.
BasicCard
  
onInfoCloseClick(evt:Event):void
The event handler for closing the BasicCard's info state.
BasicCard
  
onPreviewClick(evt:Event):void
The event handler for clicking the preview button events.
BasicCard
  
partAdded(partName:String, instance:Object):void
[override] Called when a skin has added a skin part for this instance.
BasicCard
  
partRemoved(partName:String, instance:Object):void
[override] Called when a skin has removed a skin part for this instance.
BasicCard
 Inherited
setAspectRatio(value:Number, mediaValue:Boolean = false):void
Set the aspect ratio of the thumbnail for the attachment.
SimpleCard
 Inherited
setAspectRatioField(value:Number):void
Set the aspect ratio of the appropriate field for the attachment
SimpleCard
  
For an extractOrDelete button control set the label to either delete (file or folder, depending on the attachment type) or extract, depending on the authoring mode.
BasicCard
 Inherited
updatePreview(oldRenderer:ISimpleCard):void
Update the preview for this card.
SimpleCard
 Inherited
updatePreviewModelListeners(adding:Boolean):void
Update the listeners for preview model events.
SimpleCard
  
zoomCard(zoomToLarge:Boolean):void
Set the zoomToLarge Boolean switch for the BasicCard and play the relevant zoom effect (zoomLarge or zoomNormal)
BasicCard
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
  
deleteButton:spark.components.Button
Required: false Part Type: Static
deleteButton is the button control to delete the attachment represented by a card. It is an optional skin part, so not necessarily implemented for all skins.
BasicCard
  
extractButton:spark.components.Button
Required: false Part Type: Static
extractButton is the button control to initiate save an attachment to a user-specified location. It is an optional skin part, so not necessarily implemented for all skins.
BasicCard
  
extractOrDeleteButton:spark.components.Button
Required: false Part Type: Static
extractOrDeleteButton behave like deleteButton when in authoring mode, and extractButton otherwise.
BasicCard
 Inherited
icon:mx.controls.Image
Required: false Part Type: Static
The icon image for the card
SimpleCard
  
infoButton:spark.components.Button
Required: false Part Type: Static
infoButton is the button control to toggle the info state of a card. When in the info state, the thumbnail is replaced with additional metadata. It is an optional skin part, so not necessarily implemented for all skins.
BasicCard
  
infoCloseButton:spark.components.Button
Required: false Part Type: Static
infoCloseButton is the button control for closing the Info state (information on the card) for a card.
BasicCard
 Inherited
paddingGroup:mx.core.UIComponent
Required: false Part Type: Static
A UI Component whose left/right/top/bottom values can be adjusted to fit card UI to a particular aspect ratio without affecting the bounds of the card.
SimpleCard
  
previewButton:spark.components.Button
Required: false Part Type: Static
previewButton is the button control to initiate a full preview in the viewing application. It is an optional skin part, so not necessarily implemented for all skins.
BasicCard
 Inherited
ribbon:spark.components.Group
Required: false Part Type: Static
A skin part representing the ribbon component that should be visible when the user is editing the attament in an external application.
SimpleCard
Skin States

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.


 Skin State Description Defined By
  
infoNormal
BasicCard
  
infoOver
BasicCard
  
infoOverAndSelected
BasicCard
  
infoSelected
BasicCard
  
largeNormal
BasicCard
  
largeOver
BasicCard
  
largeOverAndSelected
BasicCard
  
largeSelected
BasicCard
  
mediumNormal
BasicCard
  
mediumOver
BasicCard
  
mediumOverAndSelected
BasicCard
  
mediumSelected
BasicCard
  
normal
BasicCard
  
over
BasicCard
  
overAndSelected
BasicCard
  
selected
BasicCard
  
smallNormal
BasicCard
  
smallOver
BasicCard
  
smallOverAndSelected
BasicCard
  
smallSelected
BasicCard
Public Constants
 ConstantDefined By
 InheritedASPECT_RATIO_FIELD : String = adobe:AspectRatio
[static] A string literal representing the name for the aspect ratio field
SimpleCard
  DEFAULT_SMALL_DIMENSION : Number = 152
[static] String literal used to represent the default dimensions for the small state of BasicCard.
BasicCard
  PART_DELETE_BUTTON : String = deleteButton
[static] String literal used to represent the deleteButton skin part exposed by BasicCard to its skins.
BasicCard
  PART_EXTRACT_BUTTON : String = extractButton
[static] String literal used to represent the extractButton skin part exposed by BasicCard to its skins.
BasicCard
  PART_EXTRACT_OR_DELETE_BUTTON : String = extractOrDeleteButton
[static] String literal used to represent the extractOrDeleteButton skin part exposed by BasicCard to its skins.
BasicCard
 InheritedPART_ICON : String = icon
[static] A string literal used to represent the icon skin part exposed by SimpleCard
SimpleCard
  PART_INFO_BUTTON : String = infoButton
[static] String literal used to represent the infoButton skin part exposed by BasicCard to its skins.
BasicCard
  PART_INFO_CLOSE_BUTTON : String = infoCloseButton
[static] String literal used to represent the infoCloseButton skin part exposed by BasicCard to its skins.
BasicCard
 InheritedPART_PREVIEW : String = preview
[static] A string literal used to represent the preview skin part exposed by SimpleCard
SimpleCard
  PART_PREVIEW_BUTTON : String = previewButton
[static] String literal used to represent the previewButton skin part exposed by BasicCard to its skins.
BasicCard
 InheritedPART_RIBBON : String = ribbon
[static] A string literal used to represent the ribbon skin part exposed by SimpleCard
SimpleCard
  SKIN_STATE_INFO_NORMAL : String = infoNormal
[static] String literals used to represent the normal "info" state of BasicCard.
BasicCard
  SKIN_STATE_INFO_OVER : String = infoOver
[static] String literals used to represent the over "info" state of BasicCard.
BasicCard
  SKIN_STATE_INFO_OVER_AND_SELECTED : String = infoOverAndSelected
[static] String literals used to represent the over and selected "info" state of BasicCard.
BasicCard
  SKIN_STATE_INFO_SELECTED : String = infoSelected
[static] String literals used to represent the selected "info" state of BasicCard.
BasicCard
  SKIN_STATE_LARGE_NORMAL : String = largeNormal
[static] String literal used to represent the large card normal state of a BasicCard skin.
BasicCard
  SKIN_STATE_LARGE_OVER : String = largeOver
[static] String literal used to represent the large card over state of a BasicCard skin.
BasicCard
  SKIN_STATE_LARGE_OVER_AND_SELECTED : String = largeOverAndSelected
[static] String literal used to represent the large card over and selected state of a BasicCard skin.
BasicCard
  SKIN_STATE_LARGE_SELECTED : String = largeSelected
[static] String literal used to represent the large card selected state of a BasicCard skin.
BasicCard
  SKIN_STATE_MEDIUM_NORMAL : String = mediumNormal
[static] String literal used to represent the medium card normal state of a BasicCard skin.
BasicCard
  SKIN_STATE_MEDIUM_OVER : String = mediumOver
[static] String literal used to represent the medium card over state of a BasicCard skin.
BasicCard
  SKIN_STATE_MEDIUM_OVER_AND_SELECTED : String = mediumOverAndSelected
[static] String literal used to represent the medium card over and selected state of a BasicCard skin.
BasicCard
  SKIN_STATE_MEDIUM_SELECTED : String = mediumSelected
[static] String literal used to represent the medium card selected state of a BasicCard skin.
BasicCard
 InheritedSKIN_STATE_NORMAL : String = normal
[static] A string literal used to represent the normal skin state of the SimpleCard
SimpleCard
 InheritedSKIN_STATE_OVER : String = over
[static] A string literal used to represent the "over" skin state of the SimpleCard
SimpleCard
 InheritedSKIN_STATE_OVER_AND_SELECTED : String = overAndSelected
[static] A string literal used to represent the over and selected skin state of the SimpleCard
SimpleCard
 InheritedSKIN_STATE_SELECTED : String = selected
[static] A string literal used to represent the selected skin state of the SimpleCard
SimpleCard
  SKIN_STATE_SMALL_NORMAL : String = smallNormal
[static] String literal used to represent the small card normal state of a BasicCard skin.
BasicCard
  SKIN_STATE_SMALL_OVER : String = smallOver
[static] String literal used to represent the small card over state of a BasicCard skin.
BasicCard
  SKIN_STATE_SMALL_OVER_AND_SELECTED : String = smallOverAndSelected
[static] String literal used to represent the small card over and selected state of a BasicCard skin.
BasicCard
  SKIN_STATE_SMALL_SELECTED : String = smallSelected
[static] String literal used to represent the small card selected state of a BasicCard skin.
BasicCard
 InheritedSTATE_DISABLED : String = disabled
[static]
NavSkinnableComponent
  STATE_INFO : String = info
[static] String literal used to represent the "info" state of BasicCard.
BasicCard
  STATE_LARGE : String = large
[static] String literal used to represent the "large" state of BasicCard.
BasicCard
  STATE_MEDIUM : String = medium
[static] String literal used to represent the "medium" state of BasicCard.
BasicCard
 InheritedSTATE_NORMAL : String = normal
[static]
NavSkinnableComponent
  STATE_SMALL : String = small
[static] String literal used to represent the "small" state of BasicCard.
BasicCard
Protected Constants
 ConstantDefined By
 InheritedcollectionManager : CollectionManager
The navigator's CollectionManager instance.
SimpleCard
Property Detail
allowMultiPageproperty
allowMultiPage:Boolean  [read-only] [override]

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Determines if the attachement supports calculating the number of pages it contains. Calculating the page count is expensive, so only allow multi-page at all if our attachment supports it.


Implementation
    protected function get allowMultiPage():Boolean
dataproperty 
data:Object[override]

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The data object being rendered by the basicCard. Only IAttachment objects are supported.


Implementation
    public function get data():Object
    public function set data(value:Object):void
infoMapproperty 
protected static var infoMap:Dictionary

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The dictionary for the BasicCard's info state

preferredPreviewStateproperty 
preferredPreviewState:String  [read-only] [override]

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Returns the preferred PreviewState. This is based on the MIME type of the attachement if supported.


Implementation
    protected function get preferredPreviewState():String
prefersMediaPreviewproperty 
prefersMediaPreview:Boolean  [read-only] [override]

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Does this card's attachment have a preferredPreviewState of AUDIO or VIDEO


Implementation
    protected function get prefersMediaPreview():Boolean
zoomLargeproperty 
protected var zoomLarge:IEffect

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The Flex effect to run when zooming to a large card size

zoomNormalproperty 
protected var zoomNormal:IEffect

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The Flex effect to run when zooming to a medium card size

zoomToLargeproperty 
protected var zoomToLarge:Boolean = false

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Boolean switch indicating whether to run a large or normal zoom effect.

Constructor Detail
BasicCard()Constructor
public function BasicCard()

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Default constructor for BasicCard.

Method Detail
getCurrentSkinState()method
override protected function getCurrentSkinState():String

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Returns the current state of this instance, which is a variant of the component state depending on whether or not the component is selected.

Returns
String
initZoom()method 
protected function initZoom():void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Initialize zoom effects and set up event listener for such events.

invalidateSkinState()method 
override public function invalidateSkinState():void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Mark the SkinState as invalid.

onDeleteClick()method 
protected function onDeleteClick(evt:Event):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The event handler for the clicking the delete button events.

Parameters

evt:Event

onExtractClick()method 
protected function onExtractClick(evt:Event):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The event handler for clicking the extract button events.

Parameters

evt:Event

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

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The event handler for the handling either clicking the delete button events. or clicking the extract button events.

Parameters

event:Event

onHostPropertyChange()method 
override protected function onHostPropertyChange(event:PropertyChangeEvent):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

A listener for PropertyChangeEvents on the collectionManager.

Parameters

event:PropertyChangeEvent — The property change event that is is to be handled.

onInfoClick()method 
protected function onInfoClick(evt:Event):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The event handler for clicking the info button events.

Parameters

evt:Event

onInfoCloseClick()method 
protected function onInfoCloseClick(evt:Event):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The event handler for closing the BasicCard's info state.

Parameters

evt:Event

onPreviewClick()method 
protected function onPreviewClick(evt:Event):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The event handler for clicking the preview button events.

Parameters

evt:Event

partAdded()method 
override protected function partAdded(partName:String, instance:Object):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Called when a skin has added a skin part for this instance.

Parameters

partName:String
 
instance:Object

partRemoved()method 
override protected function partRemoved(partName:String, instance:Object):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Called when a skin has removed a skin part for this instance.

Parameters

partName:String
 
instance:Object

setCurrentState()method 
override public function setCurrentState(stateName:String, playTransition:Boolean = true):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Sets the state of the skin as well as the state of this instance.

Parameters

stateName:String
 
playTransition:Boolean (default = true)

setExtractOrDeleteInfo()method 
protected function setExtractOrDeleteInfo():void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

For an extractOrDelete button control set the label to either delete (file or folder, depending on the attachment type) or extract, depending on the authoring mode. An extractOrDelete button control behaves like a deleteButton when in authoring mode and like an extractButton when not in authoring mode.

updateRenderer()method 
override public function updateRenderer(oldRenderer:ISimpleCard):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Update the renderer to use for the basicCard

Parameters

oldRenderer:ISimpleCard — The renderer to use.

zoomCard()method 
protected function zoomCard(zoomToLarge:Boolean):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Set the zoomToLarge Boolean switch for the BasicCard and play the relevant zoom effect (zoomLarge or zoomNormal)

Parameters

zoomToLarge:Boolean — a Boolean, true if the zoomLarge effect is to be used, false if the zoomNormal effect is to be used.

Constant Detail
DEFAULT_SMALL_DIMENSIONConstant
public static const DEFAULT_SMALL_DIMENSION:Number = 152

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the default dimensions for the small state of BasicCard. The value is chosen so that the preview size of the small card does not exceed 128x128 pixels

PART_DELETE_BUTTONConstant 
public static const PART_DELETE_BUTTON:String = deleteButton

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the deleteButton skin part exposed by BasicCard to its skins.

PART_EXTRACT_BUTTONConstant 
public static const PART_EXTRACT_BUTTON:String = extractButton

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the extractButton skin part exposed by BasicCard to its skins.

PART_EXTRACT_OR_DELETE_BUTTONConstant 
public static const PART_EXTRACT_OR_DELETE_BUTTON:String = extractOrDeleteButton

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the extractOrDeleteButton skin part exposed by BasicCard to its skins.

PART_INFO_BUTTONConstant 
public static const PART_INFO_BUTTON:String = infoButton

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the infoButton skin part exposed by BasicCard to its skins.

PART_INFO_CLOSE_BUTTONConstant 
public static const PART_INFO_CLOSE_BUTTON:String = infoCloseButton

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the infoCloseButton skin part exposed by BasicCard to its skins.

PART_PREVIEW_BUTTONConstant 
public static const PART_PREVIEW_BUTTON:String = previewButton

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the previewButton skin part exposed by BasicCard to its skins. These match the names of the SkinPart variables.

SKIN_STATE_INFO_NORMALConstant 
public static const SKIN_STATE_INFO_NORMAL:String = infoNormal

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literals used to represent the normal "info" state of BasicCard.

SKIN_STATE_INFO_OVERConstant 
public static const SKIN_STATE_INFO_OVER:String = infoOver

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literals used to represent the over "info" state of BasicCard.

SKIN_STATE_INFO_OVER_AND_SELECTEDConstant 
public static const SKIN_STATE_INFO_OVER_AND_SELECTED:String = infoOverAndSelected

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literals used to represent the over and selected "info" state of BasicCard.

SKIN_STATE_INFO_SELECTEDConstant 
public static const SKIN_STATE_INFO_SELECTED:String = infoSelected

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literals used to represent the selected "info" state of BasicCard.

SKIN_STATE_LARGE_NORMALConstant 
public static const SKIN_STATE_LARGE_NORMAL:String = largeNormal

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the large card normal state of a BasicCard skin.

SKIN_STATE_LARGE_OVERConstant 
public static const SKIN_STATE_LARGE_OVER:String = largeOver

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the large card over state of a BasicCard skin.

SKIN_STATE_LARGE_OVER_AND_SELECTEDConstant 
public static const SKIN_STATE_LARGE_OVER_AND_SELECTED:String = largeOverAndSelected

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the large card over and selected state of a BasicCard skin.

SKIN_STATE_LARGE_SELECTEDConstant 
public static const SKIN_STATE_LARGE_SELECTED:String = largeSelected

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the large card selected state of a BasicCard skin.

SKIN_STATE_MEDIUM_NORMALConstant 
public static const SKIN_STATE_MEDIUM_NORMAL:String = mediumNormal

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the medium card normal state of a BasicCard skin.

SKIN_STATE_MEDIUM_OVERConstant 
public static const SKIN_STATE_MEDIUM_OVER:String = mediumOver

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the medium card over state of a BasicCard skin.

SKIN_STATE_MEDIUM_OVER_AND_SELECTEDConstant 
public static const SKIN_STATE_MEDIUM_OVER_AND_SELECTED:String = mediumOverAndSelected

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the medium card over and selected state of a BasicCard skin.

SKIN_STATE_MEDIUM_SELECTEDConstant 
public static const SKIN_STATE_MEDIUM_SELECTED:String = mediumSelected

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the medium card selected state of a BasicCard skin.

SKIN_STATE_SMALL_NORMALConstant 
public static const SKIN_STATE_SMALL_NORMAL:String = smallNormal

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the small card normal state of a BasicCard skin.

SKIN_STATE_SMALL_OVERConstant 
public static const SKIN_STATE_SMALL_OVER:String = smallOver

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the small card over state of a BasicCard skin.

SKIN_STATE_SMALL_OVER_AND_SELECTEDConstant 
public static const SKIN_STATE_SMALL_OVER_AND_SELECTED:String = smallOverAndSelected

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the small card over and selected state of a BasicCard skin.

SKIN_STATE_SMALL_SELECTEDConstant 
public static const SKIN_STATE_SMALL_SELECTED:String = smallSelected

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the small card selected state of a BasicCard skin.

STATE_INFOConstant 
public static const STATE_INFO:String = info

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the "info" state of BasicCard.

STATE_LARGEConstant 
public static const STATE_LARGE:String = large

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the "large" state of BasicCard.

STATE_MEDIUMConstant 
public static const STATE_MEDIUM:String = medium

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the "medium" state of BasicCard.

STATE_SMALLConstant 
public static const STATE_SMALL:String = small

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

String literal used to represent the "small" state of BasicCard.