Packagecom.bourre.core
Interfacepublic interface AccessorComposer
ImplementorsMultiAccessor

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.

See also

Accessor.html
../transitions/AbstractTween.html


Public Methods
 MethodDefined by
  
Returns the string name of all getters access used by this accessor to retreive data from its target object.
AccessorComposer
  
Returns the string name of all setters access used by this accessor to defines new data to its target object.
AccessorComposer
  
getTarget():Object
Returns the target object onto which this accessor operate.
AccessorComposer
  
getValue():Array
Retreives the values from all target members acceeded by this accessor.
AccessorComposer
  
setValue(values:Array):void
Defines the new values for all targets properties and methods.
AccessorComposer
Method detail
getGetterHelper()method
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
getSetterHelper()method 
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
getTarget()method 
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
getValue()method 
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.
setValue()method 
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.