| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
The
ProcessingHelper helper gives method for
xml context content pre processing.
Example
var oLoader : ApplicationLoader = new ApplicationLoader( this, false );
oLoader.addProcessingMethod( ProcessingHelper.changeObjectAttribute, "cross", "visible", "false" );
oLoader.addProcessingMethod( ProcessingHelper.changePropertyValue, "cross", "x", 600 );
oLoader.addProcessingMethod( ProcessingHelper.addResource, "newStyle", "myStyle.css" );
public static function addDLL(xml:XML, url:String):String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Adds a new dll definition.
Parameters
| xml:XML — XML content ( the context )
|
| |
| url:String — DLL url
|
Returns
public static function addNode(xml:XML, node:XML):XML
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Adds xml node.
Parameters
| xml:XML — XML content ( the context )
|
| |
| node:XML — New xml node
|
Returns
public static function addResource(xml:XML, id:String, url:String):String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Adds a new resource definition.
Parameters
| xml:XML — XML content ( the context )
|
| |
| id:String — Resource identifier
|
| |
| url:String — Resource url
|
Returns
public static function changeMethodArgumentValue(xml:XML, id:String, name:String, index:uint, value:Object = null, type:String = null):XML
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Changes method argument value.
Parameters
| xml:XML — XML content ( the context )
|
| |
| id:String — Identifier to search for
|
| |
| name:String — Method name to search for
|
| |
| index:uint — Argument index to replace
|
| |
| value:Object (default = null) — New argument value
|
| |
| type:String (default = null) — New argument type
|
Returns
public static function changeObjectAttribute(xml:XML, id:String, attributeName:String, value:Object, create:Boolean = false):XML
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Changes object attribute value.
Parameters
| xml:XML — XML content ( the context )
|
| |
| id:String — Identifier to search for
|
| |
| attributeName:String — Attribute name to search for
|
| |
| value:Object — New attribute value
|
| |
| create:Boolean (default = false) — If true attribute is created if not exist
|
Returns
public static function changeObjectID(xml:XML, id:String, newID:String):XML
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Changes object identifier.
All references to replaced ID are updated.
Parameters
| xml:XML — XML content ( the context )
|
| |
| id:String — Identifier to search for
|
| |
| newID:String — New identifier value to replace
|
Returns
public static function changePropertyValue(xml:XML, id:String, name:String, value:Object):XML
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Changes a context property value.
Parameters
| xml:XML — XML content ( the context )
|
| |
| id:String — Identifier to search for
|
| |
| name:String — Property name to search for
|
| |
| value:Object — New property value
|
Returns
LowRA API documentation 2008- 2009
Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1
mer. févr. 25 2009, 9:22 AM GMT+01:00