[static]
The XML element name for numeric property values
PropertyNumberValue
Property Detail
hasMinMax
property
hasMinMax:Boolean [read-only] [override]
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Returns a value of true if this property has relevant minimum or maximum values.
It returns false otherwise.
This applies to numeric properties.
Implementation public function get hasMinMax():Boolean
isInt
property
isInt:Boolean [read-only]
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Returns true if the propertyNumberValue is an int;
returns false otherwise.
Implementation public function get isInt():Boolean
isUint
property
isUint:Boolean [read-only]
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Returns true if the propertyNumberValue is an unsigned integer;
returns false otherwise.
Implementation public function get isUint():Boolean
maxValue
property
maxValue:Number[override]
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
The maximum value of this numeric property.
This applies to numeric properties.
Implementation public function get maxValue():Number public function set maxValue(value:Number):void
minValue
property
minValue:Number[override]
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
The minimum value of this numeric property.
This applies to numeric properties.
Implementation public function get minValue():Number public function set minValue(value:Number):void
numType
property
protected var numType:String
The numeric type of this property. If "int" then the value is treated as
an int; if "uint" then the value is treated as a uint; otherwise the
value is treated as a Number.
numValue
property
numValue:Number
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
The value as a number. Setting this value will trigger a numValue PropertyChangeEvent as well.
This property can be used as the source for data binding.
Implementation public function get numValue():Number public function set numValue(value:Number):void
type
property
type:String [read-only] [override]
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Identifies the data type of this IProperty.
It must be one of the property types defined in PropertyType.
public function PropertyNumberValue(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
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
Load the specified value from an XML object.
If possible, the localized label and description will be used.
Parameters
valueXML:XML
Returns
Boolean — true if the property was successfully loaded,
false otherwise.
setValueFromString
()
method
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 property number value equal to the specified string.
The value parsed will depend on the numType of the propertyNumberValue.
If the type is an integer or unsigned integer, the value will be parsed as an integer,
otherwise it will be parse as a floating point number.
Parameters
valueString:String — The numeric value as a string.
Returns
Boolean
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
Constant Detail
XML_ELEMENT_NAME
Constant
public static const XML_ELEMENT_NAME:String = PropertyNumber