Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.automation 
AutomationMethodDescriptor 
Packagemx.automation
Classpublic class AutomationMethodDescriptor
InheritanceAutomationMethodDescriptor Inheritance Object
Implements IAutomationMethodDescriptor

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Basic method descriptor class. Generates descriptor from event parameters, if necessary

See also



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  name : String
[read-only] The name of the method.
AutomationMethodDescriptor
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  returnType : String
[read-only]
AutomationMethodDescriptor
Public Methods
 MethodDefined By
  
AutomationMethodDescriptor(name:String, asMethodName:String, returnType:String, args:Array)
AutomationMethodDescriptor
  
Returns an Array of argument descriptors for this method.
AutomationMethodDescriptor
 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
  
Encodes an automation event arguments into an Array.
AutomationMethodDescriptor
  
Decodes an argument array and invokes a method.
AutomationMethodDescriptor
 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
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

name

property
name:String  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The name of the method.



Implementation
    public function get name():String

returnType

property 
returnType:String  [read-only]

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1



Implementation
    public function get returnType():String
Constructor Detail

AutomationMethodDescriptor

()Constructor
public function AutomationMethodDescriptor(name:String, asMethodName:String, returnType:String, args:Array)

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Parameters
name:String
 
asMethodName:String
 
returnType:String
 
args:Array
Method Detail

getArgDescriptors

()method
public function getArgDescriptors(obj:IAutomationObject):Array

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Returns an Array of argument descriptors for this method.

Parameters

obj:IAutomationObject — Instance of the IAutomationObject that supports this method.

Returns
Array — Array of argument descriptors for this method.

record

()method 
public function record(target:IAutomationObject, event:Event):Array

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Encodes an automation event arguments into an Array. Not all method descriptors support recording.

Parameters

target:IAutomationObject — Automation event that is being recorded.
 
event:Event

Returns
Array — Array of argument descriptors.

replay

()method 
public function replay(target:IAutomationObject, args:Array):Object

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Decodes an argument array and invokes a method.

Parameters

target:IAutomationObject — Automation object to replay the method on.
 
args:Array — Array of argument values and descriptors to be used to invoke the method.

Returns
Object — Whatever the method invoked returns.