Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.automation 
IAutomationMethodDescriptor 
Packagemx.automation
Interfacepublic interface IAutomationMethodDescriptor
Implementors AutomationMethodDescriptor

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

The IAutomationMethodDescriptor interface defines the interface for a method descriptor.

See also



Public Properties
 PropertyDefined By
  name : String
[read-only] The name of the method.
IAutomationMethodDescriptor
  returnType : String
[read-only] The return type of the method.
IAutomationMethodDescriptor
Public Methods
 MethodDefined By
  
Returns an Array of argument descriptors for this method.
IAutomationMethodDescriptor
  
Encodes an automation event arguments into an Array.
IAutomationMethodDescriptor
  
Decodes an argument array and invokes a method.
IAutomationMethodDescriptor
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

The return type of the method.



Implementation
    public function get returnType():String
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.