This class handles property values that are theme filtered lists. Theme filtered lists
are property lists that filter out subvalues whose names match those of themes
that are not currently active.
[static]
The XML element name for theme filtered lists
ThemeFilteredList
Property Detail
completeSubvalues
property
protected var completeSubvalues:Array
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
The complete (unfiltered) list of subvalues
currentThemeName
property
protected var currentThemeName:String
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
The name of the current active theme
filteredSubvalues
property
protected var filteredSubvalues:Array
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
The filtered list of subvalues; subvalues whose name matches a non-active theme
have been removed.
themedSubvalues
property
protected var themedSubvalues:ArrayCollection
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
An array of subvalues whose name matches a theme name
themeNames
property
protected var themeNames:ArrayCollection
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
An array of all theme names
Constructor Detail
ThemeFilteredList
()
Constructor
public function ThemeFilteredList(target:IEventDispatcher = null)
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Constructor
Parameters
target:IEventDispatcher (default = null)
Method Detail
buildThemedSubvalues
()
method
protected function buildThemedSubvalues(valueArray:Array, forceRebuild:Boolean = false):Boolean
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Create the list of themed subvalues from the valueArray passed.
Parameters
valueArray:Array — The new list of value to
forceRebuild:Boolean (default = false) — If forceRebuild is false (the default), the
themedSubvalues array with not be rebuilt if it already exists. If forceRebuild is true
the current themedSubvalues array will be replaced with the new list.
Returns
Boolean — true if the list of themed values could be built, otherwise false.
getXMLElementName
()
method
override protected function getXMLElementName():String
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Returns the XML element name for this property.
Returns
String
loadFromXML
()
method
override public function loadFromXML(valueXML:XML):Boolean
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Loads the list of property values from the specified XML value.
Parameters
valueXML:XML — The XML object to load that contains the list of property values as its elements.
Returns
Boolean
referenceSubvalueResources
()
method
override public function referenceSubvalueResources(referenceType:int):void
References, dereferences, or touches all URL subvalues.
Parameters
referenceType:int — If greater than zero, referenceResource is called on all URL subvalues;
if less than zero, dereferenceResource is called; if equal to zero,
touchResource is called.
override public function setValueFromString(valueString:String):Boolean
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Set the theme filtered list's active subvalue (the value that is being filtered out)
equal to the specified string.
Parameters
valueString:String — The desired value to filter out, expressed as a string.
Returns
Boolean — Returns true if the specified value is being filterd out,
otherwise it returns false
setXMLElements
()
method
override protected function setXMLElements(propertyXML:XML):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Sets all the XML elements for this property, such as
enabled, visible, label, and description. Also, set any
SelectEffect XML objects in the SelectEffectsArray.
Parameters
propertyXML:XML — XML object representing the desired property