Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
mx.automation 

IAutomationObjectHelper  - AS3 Flex

Pacchettomx.automation
Interfacciapublic interface IAutomationObjectHelper
Implementatori AutomationManager

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

The IAutomationObjectHelper interface defines helper methods for IAutomationObjects.

Altri esempi



Proprietà pubbliche
 ProprietàDefinito da
  recording : Boolean
[sola lettura] Indicates whether recording is taking place, true, or not, false.
IAutomationObjectHelper
  replaying : Boolean
[sola lettura] Indicates whether replay is taking place, true, or not, false.
IAutomationObjectHelper
Metodi pubblici
 MetodoDefinito da
  
addSynchronization(isComplete:Function, target:Object = null):void
Adds a synchronization object to the automation manager.
IAutomationObjectHelper
  
Returns the parent of the composite object.
IAutomationObjectHelper
  
helpCreateIDPart(parent:IAutomationObject, child:IAutomationObject, automationNameCallback:Function = null, automationIndexCallback:Function = null):AutomationIDPart
Creates an id for a given child within a parent.
IAutomationObjectHelper
  
helpCreateIDPartWithRequiredProperties(parent:IAutomationObject, child:IAutomationObject, properties:Array, automationNameCallback:Function = null, automationIndexCallback:Function = null):AutomationIDPart
Creates an id for a given child within a parent.
IAutomationObjectHelper
  
Returns an Array of children within a parent which match the id.
IAutomationObjectHelper
  
Determines whether an object is a composite or not.
IAutomationObjectHelper
  
Dispatches a MouseEvent.MOUSE_DOWN, MouseEvent.MOUSE_UP, and MouseEvent.CLICK from the specified IInteractionReplayer with the specified modifiers.
IAutomationObjectHelper
  
Replays a click event outside of the main drawing area.
IAutomationObjectHelper
  
Dispatches a KeyboardEvent.KEY_DOWN and KeyboardEvent.KEY_UP event for the specified KeyboardEvent object.
IAutomationObjectHelper
  
replayKeyDownKeyUp(to:IEventDispatcher, keyCode:uint, ctrlKey:Boolean = false, shiftKey:Boolean = false, altKey:Boolean = false):Boolean
Dispatches a KeyboardEvent.KEY_DOWN and KeyboardEvent.KEY_UP event from the specified IInteractionReplayer, for the specified key, with the specified modifiers.
IAutomationObjectHelper
  
Dispatches a MouseEvent while simulating mouse capture.
IAutomationObjectHelper
Descrizione delle proprietà

recording

proprietà
recording:Boolean  [sola lettura]

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Indicates whether recording is taking place, true, or not, false.



Implementazione
    public function get recording():Boolean

replaying

proprietà 
replaying:Boolean  [sola lettura]

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Indicates whether replay is taking place, true, or not, false.



Implementazione
    public function get replaying():Boolean
Descrizione dei metodi

addSynchronization

()metodo
public function addSynchronization(isComplete:Function, target:Object = null):void

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Adds a synchronization object to the automation manager. The automation manager waits until the isComplete method returns true before proceeding with the next replay event.

Parametri

isComplete:Function — Function that indicates whether the synchronized operation is completed.
 
target:Object (default = null) — If null, all replay is stalled until the isComplete method returns true, otherwise the automation manager will only wait if the next operation is on the target.

getAutomationComposite

()metodo 
public function getAutomationComposite(obj:IAutomationObject):IAutomationObject

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns the parent of the composite object.

Parametri

obj:IAutomationObject — Composite object.

Restituisce
IAutomationObject — The parent IAutomationObject of the composite object.

helpCreateIDPart

()metodo 
public function helpCreateIDPart(parent:IAutomationObject, child:IAutomationObject, automationNameCallback:Function = null, automationIndexCallback:Function = null):AutomationIDPart

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Creates an id for a given child within a parent.

Parametri

parent:IAutomationObject — Parent of object for which to create and id.
 
child:IAutomationObject — Object for which to create an id.
 
automationNameCallback:Function (default = null) — A user-supplied function used to determine the child's automationName.
 
automationIndexCallback:Function (default = null) — A user-supplied function used to determine the child's automationIndex.

Restituisce
AutomationIDPart — An AutomationIDPart object representing the child within the parent.

helpCreateIDPartWithRequiredProperties

()metodo 
public function helpCreateIDPartWithRequiredProperties(parent:IAutomationObject, child:IAutomationObject, properties:Array, automationNameCallback:Function = null, automationIndexCallback:Function = null):AutomationIDPart

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Creates an id for a given child within a parent.

Parametri

parent:IAutomationObject — Parent of object for which to create and id.
 
child:IAutomationObject — Object for which to create an id.
 
properties:Array — which needs to be considered for creating the id.
 
automationNameCallback:Function (default = null) — A user-supplied function used to determine the child's automationName.
 
automationIndexCallback:Function (default = null) — A user-supplied function used to determine the child's automationIndex.

Restituisce
AutomationIDPart — An AutomationIDPart object representing the child within the parent.

helpResolveIDPart

()metodo 
public function helpResolveIDPart(parent:IAutomationObject, part:Object):Array

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Returns an Array of children within a parent which match the id.

Parametri

parent:IAutomationObject — Parent object under which the id needs to be resolved.
 
part:Object — AutomationIDPart object representing the child.

Restituisce
Array — Array of children which match the id of part.

isAutomationComposite

()metodo 
public function isAutomationComposite(obj:IAutomationObject):Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Determines whether an object is a composite or not. If an object is not reachable through the automation APIs from the top application then it is considered to be a composite.

Parametri

obj:IAutomationObject — The object.

Restituisce
Booleantrue if the object is a composite.

replayClick

()metodo 
public function replayClick(to:IEventDispatcher, sourceEvent:MouseEvent = null):Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Dispatches a MouseEvent.MOUSE_DOWN, MouseEvent.MOUSE_UP, and MouseEvent.CLICK from the specified IInteractionReplayer with the specified modifiers.

Parametri

to:IEventDispatcher — Event dispatcher.
 
sourceEvent:MouseEvent (default = null) — Mouse event.

Restituisce
Booleantrue if the events were dispatched.

replayClickOffStage

()metodo 
public function replayClickOffStage():Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Replays a click event outside of the main drawing area. use this method to simulate the mouseDownOutside event.

Restituisce
Booleantrue if the event was dispatched.

replayKeyboardEvent

()metodo 
public function replayKeyboardEvent(to:IEventDispatcher, event:KeyboardEvent):Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Dispatches a KeyboardEvent.KEY_DOWN and KeyboardEvent.KEY_UP event for the specified KeyboardEvent object.

Parametri

to:IEventDispatcher — Event dispatcher.
 
event:KeyboardEvent — Keyboard event.

Restituisce
Booleantrue if the events were dispatched.

replayKeyDownKeyUp

()metodo 
public function replayKeyDownKeyUp(to:IEventDispatcher, keyCode:uint, ctrlKey:Boolean = false, shiftKey:Boolean = false, altKey:Boolean = false):Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Dispatches a KeyboardEvent.KEY_DOWN and KeyboardEvent.KEY_UP event from the specified IInteractionReplayer, for the specified key, with the specified modifiers.

Parametri

to:IEventDispatcher — Key code for key pressed.
 
keyCode:uint — Boolean indicating whether Ctrl key pressed.
 
ctrlKey:Boolean (default = false) — Boolean indicating whether Shift key pressed.
 
shiftKey:Boolean (default = false) — Boolean indicating whether Alt key pressed.
 
altKey:Boolean (default = false)

Restituisce
Booleantrue if the events were dispatched.

replayMouseEvent

()metodo 
public function replayMouseEvent(target:IEventDispatcher, event:MouseEvent):Boolean

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 3
Versioni runtime: Flash Player 9, AIR 1.1

Dispatches a MouseEvent while simulating mouse capture.

Parametri

target:IEventDispatcher — Event dispatcher.
 
event:MouseEvent — Mouse event.

Restituisce
Booleantrue if the event was dispatched.




[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.