A CardFactory instance is a "factory object" which Flex uses
to generate card, folder, and placeholder instances.
You specify a generator class when you construct the cardFactory object.
Then you set the properties property on the cardFactory object.
Flex uses the factory object to generate instances by calling the
cardFactory object's newInstance() method.
The newInstance() method creates a new instance of the generator class,
and sets the properties specified by properties in the new instance.
If you need to further customize the generated instances, you can
override the newInstance() method.
The CardFactory class implements the IFactory interface. Therefore,
it lets you create objects that can be assigned to properties of type IFactory,
such as the itemRenderer property.
cardType:String (default = NaN) — The type of card to create; default is a basicCard
currentState:String (default = null) — The initial state of the card
dropShadowPreference:String (default = null) — The preferred drop shadown effect.
This is a string specifying the preferred location for a drop shadow effect on this component.
This is used as a hint to skins when specifying filters.
rollOverPreference:String (default = null) — The preferred rollover effect: none, glow, or scale.
alpha:Number (default = 1) — The alpha value (transparency) of the card; the default is 1 (completely opaque)
enableThumbnailGeneration:Boolean (default = true) — If true (the default) then generate thumbnail images for the card.
adjustAspectRatio:Boolean (default = false) — If true then adjust the aspect ratio when rendering; default is false.
Returns the function that will render the proper item for the
attachment. This will be a cardFactory, folderFactory, or
placeholderFactory, based on the attachment type.
Parameters
supportBasic:Boolean (default = true) — If true then basicCards are supported; if false
then simpleCards are used instead of basicCards.
supportFolder:Boolean (default = true) — If true then folders are supported.
supportPlaceholders:Boolean (default = true) — If true then placeholder cards are supported.
basicState:String (default = null)
dropShadowPreference:String (default = null) — The preferred drop shadow effect.
This is a string specifying the preferred location for a drop shadow effect on this component.
This is used as a hint to skins when specifying filters.
rollOverPreference:String (default = null) — The preferred rollover effect: none, glow, or scale.
alpha:Number (default = 1) — The alpha value (transparency) of the item; the default is 1 (completely opaque)
enableThumbnailGeneration:Boolean (default = true) — If true (the default) then generate thumbnail images for the card
adjustAspectRatio:Boolean (default = false) — If true then adjust the aspect ratio when rendering; default is false
Returns
Function
Constant Detail
BASIC_CARD
Constant
public static const BASIC_CARD:String = BasicCard
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
String literal used to represent a BasicCard value for the cardType
when constructing a CardFactory.
DROP_SHADOW_BOTTOM
Constant
public static const DROP_SHADOW_BOTTOM:String = bottom
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
A string literal used to represent the preferred location, "bottom" of a dropshadow effect.