mx.automation

# IAutomationMethodDescriptor - AS3 Flex

Package | mx.automation
Interface | public 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.

Learn more

Understanding the automation framework

Public Properties

| Property | Defined By
--- | --- | ---
|  | name : String [read-only] The name of the method. | IAutomationMethodDescriptor
|  | returnType : String [read-only] The return type of the method. | IAutomationMethodDescriptor

Public Methods

| Method | Defined By
--- | --- | ---
|  | getArgDescriptors(obj:IAutomationObject):Array Returns an Array of argument descriptors for this method. | IAutomationMethodDescriptor
|  | record(target:IAutomationObject, event:Event):Array Encodes an automation event arguments into an Array. | IAutomationMethodDescriptor
|  | replay(target:IAutomationObject, args:Array):Object 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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00