ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.icc.editors.model.config 

XMLConfigProvider  - AS3 Asset Composer

Packagecom.adobe.icc.editors.model.config
Classpublic class XMLConfigProvider
InheritanceXMLConfigProvider Inheritance Object
Implements IConfigProvider

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Class to load xml config for the editor



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Public Methods
 MethodDefined By
  
Constructor.
XMLConfigProvider
  
Fetches the default date format from the xml config
XMLConfigProvider
  
Fetches the default font from the xml config.
XMLConfigProvider
  
Fetches the default font size from the xml config.
XMLConfigProvider
  
Fetches the default Letter spacing from the xml config.
XMLConfigProvider
  
Fetches the default Line height from the xml config.
XMLConfigProvider
  
Fetch array of fonts from the xml config.
XMLConfigProvider
  
Fetch array of font sizes from the xml config.
XMLConfigProvider
  
Fetches the array of Letter spacings from the xml config.
XMLConfigProvider
  
Fetches the array of Line heights from the xml config.
XMLConfigProvider
  
The content of TBX's TBXXML for generating new line
XMLConfigProvider
  
Fetches the value of the property from the xml config by specifying its name.
XMLConfigProvider
  
Fetches the array of value from the xml config by specifying its property name.
XMLConfigProvider
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
  
Returns the string representation of the CML config.
XMLConfigProvider
 Inherited
Returns the primitive value of the specified object.
Object
  
[static] Returns array from the provided XML
XMLConfigProvider
Constructor Detail

XMLConfigProvider

()Constructor
public function XMLConfigProvider(config:XML)

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10.0
Runtime Versions: AIR (unsupported), Flash Player 10.2

Constructor.

Parameters
config:XML — The XML being loaded.
Method Detail

getDefaultDateFormat

()method
public function getDefaultDateFormat():String

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetches the default date format from the xml config

Returns
String — the default date format

getDefaultFont

()method 
public function getDefaultFont():String

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetches the default font from the xml config.

Returns
String — the default font

getDefaultFontSize

()method 
public function getDefaultFontSize():String

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetches the default font size from the xml config.

Returns
String — the default font size

getDefaultLetterSpacing

()method 
public function getDefaultLetterSpacing():String

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetches the default Letter spacing from the xml config.

Returns
String — the default Letter spacing.

getDefaultLineHeight

()method 
public function getDefaultLineHeight():String

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetches the default Line height from the xml config.

Returns
String — the default Line height

getFonts

()method 
public function getFonts():Array

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetch array of fonts from the xml config.

Returns
Array — array of fonts

getFontSizes

()method 
public function getFontSizes():Array

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetch array of font sizes from the xml config.

Returns
Array — array of font size.

getLetterSpacings

()method 
public function getLetterSpacings():Array

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetches the array of Letter spacings from the xml config.

Returns
Array — the array of Letter spacings

getLineHeights

()method 
public function getLineHeights():Array

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetches the array of Line heights from the xml config.

Returns
Array — the array of Line heights

getNewLineXmlData

()method 
public function getNewLineXmlData():String

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

The content of TBX's TBXXML for generating new line

Returns
String

getProperty

()method 
public function getProperty(name:String):String

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetches the value of the property from the xml config by specifying its name.

Parameters

name:String — Name of the property to be fetched.

Returns
String — value of the property from the xml config by specifying its name.

getPropertyArray

()method 
public function getPropertyArray(name:String):Array

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetches the array of value from the xml config by specifying its property name.

Parameters

name:String — Name of the property to be fetched.

Returns
Array — array of value from the xml config by specifying its property name.

toString

()method 
public function toString():String

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Returns the string representation of the CML config.

Returns
String

xmlToArray

()method 
public static function xmlToArray(xml:XMLList):Array

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Returns array from the provided XML

Parameters

xml:XMLList — The XML

Returns
Array — array from the provided XML