Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.automation 
AutomationManager 
Packagemx.automation
Classpublic class AutomationManager
InheritanceAutomationManager Inheritance EventDispatcher Inheritance Object
Implements IAutomationManager2, IAutomationObjectHelper, IAutomationMouseSimulator

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

Provides the interface for manipulating the automation hierarchy, and for recording and replaying events.

See also



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
  
AutomationManager
  
AutomationManager
 Inherited
Dispatches an event into the event flow.
EventDispatcher
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 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
  
AutomationManager
  
AutomationManager
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
recordAutomatableEvent(recorder:IAutomationObject, event:Event, cacheable:Boolean = false):void
Dispatch the event as a replayable event.
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
  
AutomationManager
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
  
AutomationManager
 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
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Events
 Event Summary Defined By
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active.EventDispatcher
 Inherited[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive.EventDispatcher
Public Constants
 ConstantDefined By
  airWindowIndicatorPropertyName : String = "isAIRWindow"
[static]
AutomationManager
Method Detail

addEventListenersToAllChildApplications

()method
public function addEventListenersToAllChildApplications(eventDetailsArray:Array):void

Parameters

eventDetailsArray:Array

addEventListenersToAllParentApplications

()method 
public function addEventListenersToAllParentApplications(eventDetailsArray:Array):void

Parameters

eventDetailsArray:Array

dispatchToAllChildren

()method 
public function dispatchToAllChildren(event:Event):void

Parameters

event:Event

dispatchToParent

()method 
public function dispatchToParent(event:Event):void

Parameters

event:Event

getAIRWindow

()method 
public function getAIRWindow(windowId:String):DisplayObject

Parameters

windowId:String

Returns
DisplayObject

getAIRWindowUniqueID

()method 
public function getAIRWindowUniqueID(newWindow:DisplayObject):String

Parameters

newWindow:DisplayObject

Returns
String

getAIRWindowUniqueIDFromAutomationIDPart

()method 
public function getAIRWindowUniqueIDFromAutomationIDPart(objectIdPart:AutomationIDPart):String

Parameters

objectIdPart:AutomationIDPart

Returns
String

getAIRWindowUniqueIDFromObjectIDString

()method 
public function getAIRWindowUniqueIDFromObjectIDString(objectId:String):String

Parameters

objectId:String

Returns
String

getApplicationNameFromAutomationIDPart

()method 
public function getApplicationNameFromAutomationIDPart(objectIdPart:AutomationIDPart):String

Parameters

objectIdPart:AutomationIDPart

Returns
String

getAutomationChildrenArray

()method 
public function getAutomationChildrenArray(object:Object):Array

Parameters

object:Object

Returns
Array

getElementFromPoint2

()method 
public function getElementFromPoint2(x:int, y:int, windowId:String):IAutomationObject

Parameters

x:int
 
y:int
 
windowId:String

Returns
IAutomationObject

getMemberFromPartOrObject

()method 
public function getMemberFromPartOrObject(part:Object, obj:Object, name:String):Object

Parameters

part:Object
 
obj:Object
 
name:String

Returns
Object

getPopUpChildObject

()method 
public function getPopUpChildObject(index:int):IAutomationObject

Parameters

index:int

Returns
IAutomationObject

getPopUpChildren

()method 
public function getPopUpChildren():Array

Returns
Array

getPopUpChildrenCount

()method 
public function getPopUpChildrenCount():Number

Returns
Number

getPropertyValueFromPart

()method 
public function getPropertyValueFromPart(part:Object, obj:Object, pd:IAutomationPropertyDescriptor, relativeParent:IAutomationObject = null):Object

Parameters

part:Object
 
obj:Object
 
pd:IAutomationPropertyDescriptor
 
relativeParent:IAutomationObject (default = null)

Returns
Object

getStartPointInScreenCoordinates

()method 
public function getStartPointInScreenCoordinates(windowId:String):Point

Parameters

windowId:String

Returns
Point

getTopApplicationIndex

()method 
public function getTopApplicationIndex(objectList:Array):int

Parameters

objectList:Array

Returns
int

getUniqueApplicationID

()method 
public function getUniqueApplicationID():String

Returns
String

marhsalledBeginRecordHandler

()method 
public function marhsalledBeginRecordHandler(event:Event):void

Parameters

event:Event

marhsalledEndRecordHandler

()method 
public function marhsalledEndRecordHandler(event:Event):void

Parameters

event:Event

recordAutomatableEvent

()method 
public function recordAutomatableEvent(recorder:IAutomationObject, event:Event, cacheable:Boolean = false):void

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

Dispatch the event as a replayable event. Causes the ReplayableEventEvent with REPLAYABLE_EVENT type to be fired. However, this method will not attempt the dispatch if there are no listeners.

Parameters

recorder:IAutomationObject — The IEventReplayer dispatching this event since event.target may not be accurate
 
event:Event — The event that represents the replayable event.
 
cacheable:Boolean (default = false)

recordCustomAutomationEvent

()method 
public function recordCustomAutomationEvent(event:AutomationRecordEvent):Boolean

Parameters

event:AutomationRecordEvent

Returns
Boolean

registerNewApplication

()method 
public function registerNewApplication(application:DisplayObject):void

Parameters

application:DisplayObject

registerNewFlexNativeMenu

()method 
public function registerNewFlexNativeMenu(menu:Object, sm:DisplayObject):void

Parameters

menu:Object
 
sm:DisplayObject

registerNewWindow

()method 
public function registerNewWindow(newWindow:DisplayObject):void

Parameters

newWindow:DisplayObject

storeDragProxy

()method 
public function storeDragProxy(dragProxy:Object):void

Parameters

dragProxy:Object

Constant Detail

airWindowIndicatorPropertyName

Constant
public static const airWindowIndicatorPropertyName:String = "isAIRWindow"