| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
The
AccessorComposer interface defines common
rules to create abstract access to properties or methods
of an object. That interface allow multi-tweens to get
and set both properties and methods of an object in a
transparent way.
An AccessorComposer could access as many properties
or getter/setter pair of methods as needed. Accessor
instance are composed by a AccessorComposer instance
according to passed-in parameters.
In order to the accessor to get or set value with methods, an accessor
must know both getter and setter methods name. If one of these information
is not available, the accessor must throw an exception in order to prevent
the tween to work on unavailable data.
Note : Of course, only public members of the target object could be accessed
by an accessor instance.
public function getGetterHelper():Array
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string name of all getters access used
by this accessor to retreive data from its target
object.
Returns
| Array — the string name of all getters access used
by this accessor
|
public function getSetterHelper():Array
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string name of all setters access used
by this accessor to defines new data to its target
object.
Returns
| Array — the string name of all setters access used
by this accessor
|
public function getTarget():Object
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the target object onto which this accessor
operate.
Returns
| Object — the object onto which this accessor operate
|
public function getValue():Array
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Retreives the values from all target members acceeded
by this accessor. If the type of the data stored by a
member is not a number type, the call must fail with
an exception.
Returns
| Array — array of values stored by each properties/methods
|
Throws
| — ClassCastException — A property or a method
doesn't store a number.
|
public function setValue(values:Array):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Defines the new values for all targets properties and methods.
If the type of the data stored by this object in one of this
properties or methods is not a number, the call must fail with
an exception.
Parameters
| values:Array — new numeric values for the target properties
and methods
|
Throws
| — ClassCastException — a target properties
or method doesn't store a number.
|
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