ActionScript® 3.0 Referenzhandbuch für die Adobe® Flash®-Plattform
Home  |  Liste der Pakete und Klassen ausblenden |  Pakete  |  Klassen  |  Neue Funktionen  |  Stichwortverzeichnis  |  Anhänge  |  Warum auf Englisch?
Filter: Daten werden vom Server abgerufen...
Daten werden vom Server abgerufen...
coldfusion.air 

SyncManager  - AS3 CF

Paketcoldfusion.air
Klassepublic class SyncManager
VererbungSyncManager Inheritance Object
Implementiert IEventDispatcher

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

This is the main class that connects to the ColdFusion server to fetch and synchronize offline data with the server.



Öffentliche Eigenschaften
 EigenschaftDefiniert von
  autoCommit : Boolean = false
If autoCommit is set to true, then the changes from the offline database will be commited to the server after save/update/saveUpdate or remove function is invoked.
SyncManager
  cfContextRoot : String
Context root of the ColdFusion server.
SyncManager
  cfPort : int
Port where the ColdFusion server is running.
SyncManager
  cfServer : String
Name or IP address of the ColdFusion server.
SyncManager
 Inheritedconstructor : Object
Ein Verweis auf das Klassenobjekt oder die Konstruktorfunktion für eine angegebene Objektinstanz.
Object
  destination : String
Specifies the destination for the remoting call.
SyncManager
  secureHttp : Boolean
Boolean value that specifies if secure HTTP is used: yes: uses secure HTTP no: does not use secure HTTP
SyncManager
  syncCFC : String
Fully qualified CFC name that implements the CFIDE.AIR.ISyncManager interface.
SyncManager
Öffentliche Methoden
 MethodeDefiniert von
  
Creates an instance of the SyncManager class.
SyncManager
  
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.
SyncManager
  
Dispatches an event into the event flow.
SyncManager
  
fetch(fetchMethod:String, ... args):mx.rpc:AsyncToken
Fetches the data from the server.
SyncManager
  
Returns the Session instance that is currently open.
SyncManager
  
Returns the RemoteObject instance used by the offline library to make the remote object call.
SyncManager
  
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
SyncManager
 Inherited
Gibt an, ob für ein Objekt eine bestimmte Eigenschaft definiert wurde.
Object
 Inherited
Gibt an, ob eine Instanz der Object-Klasse in der Prototypkette des Objekts vorhanden ist, das als Parameter angegeben wurde.
Object
  
openSession(dbfile:File, id:uint, encryptionKey:ByteArray = null, cacheDirectory:File = null):coldfusion.air:SessionToken
Creates a session with a specific database file.
SyncManager
 Inherited
Gibt an, ob die angegebene Eigenschaft vorhanden ist und durchlaufen werden kann.
Object
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
SyncManager
 Inherited
Legt die Verfügbarkeit einer dynamischen Eigenschaft für Schleifenoperationen fest.
Object
 Inherited
Gibt die Stringdarstellung dieses Objekts zurück, formatiert entsprechend den Konventionen des Gebietsschemas.
Object
 Inherited
Gibt das angegebene Objekt als String zurück.
Object
 Inherited
Gibt den Grundwert des angegebenen Objekts zurück.
Object
  
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
SyncManager
Ereignisse
 Ereignis Übersicht Definiert von
  Dispatched when a session service call fails.SyncManager
  Dispatched when a syncmanager call returns successfully.SyncManager
Eigenschaftendetails

autoCommit

Eigenschaft
public var autoCommit:Boolean = false

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

If autoCommit is set to true, then the changes from the offline database will be commited to the server after save/update/saveUpdate or remove function is invoked. Effectively, it would be equivalent to calling session.commit() function after the save/update/saveUpdate/remove functions are executed.

cfContextRoot

Eigenschaft 
public var cfContextRoot:String

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Context root of the ColdFusion server.

cfPort

Eigenschaft 
public var cfPort:int

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Port where the ColdFusion server is running.

cfServer

Eigenschaft 
public var cfServer:String

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Name or IP address of the ColdFusion server.

destination

Eigenschaft 
public var destination:String

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Specifies the destination for the remoting call.

secureHttp

Eigenschaft 
public var secureHttp:Boolean

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Boolean value that specifies if secure HTTP is used:

  • yes: uses secure HTTP
  • no: does not use secure HTTP

syncCFC

Eigenschaft 
public var syncCFC:String

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Fully qualified CFC name that implements the CFIDE.AIR.ISyncManager interface.

Konstruktordetails

SyncManager

()Konstruktor
public function SyncManager()

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Creates an instance of the SyncManager class.

Methodendetails

addEventListener

()Methode
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.

Parameter

type:String — The type of event.
 
listener:Function — The listener function that processes the event.
 
useCapture:Boolean (default = false) — Determines whether the listener works in the capture phase or the target and bubbling phases:
  • If useCapture is set to true, the listener processes the event only during the capture phase and not in the target or bubbling phase.
  • If useCapture is false, the listener processes the event only during the target or bubbling phase.
 
priority:int (default = 0) — The priority level of the event listener. The priority is designated by a signed 32-bit integer.
 
useWeakReference:Boolean (default = false) — Determines whether the reference to the listener is strong or weak.

dispatchEvent

()Methode 
public function dispatchEvent(evt:Event):Boolean

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Dispatches an event into the event flow.

Parameter

evt:Event — The Event object that is dispatched into the event flow. If the event is being redispatched, a clone of the event is created automatically.

Rückgabewerte
Boolean — A value of true if the event was successfully dispatched. A value of false indicates failure or that preventDefault() was called on the event.

fetch

()Methode 
public function fetch(fetchMethod:String, ... args):mx.rpc:AsyncToken

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Fetches the data from the server.

Parameter

fetchMethod:String — The name of the fetch method to be executed on the server.
 
... args — The arguments for fetchMethod

Rückgabewerte
mx.rpc:AsyncToken — An AsyncToken with which call backs can be registered.

getCurrentSession

()Methode 
public function getCurrentSession():Session

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Returns the Session instance that is currently open.

Rückgabewerte
Session

getRemoteObject

()Methode 
public function getRemoteObject():RemoteObject

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Returns the RemoteObject instance used by the offline library to make the remote object call.

Rückgabewerte
RemoteObject

hasEventListener

()Methode 
public function hasEventListener(type:String):Boolean

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Checks whether the EventDispatcher object has any listeners registered for a specific type of event. This allows you to determine where an EventDispatcher object has altered handling of an event type in the event flow hierarchy. To determine whether a specific event type actually triggers an event listener, use willTrigger().

Parameter

type:String — The type of event.

Rückgabewerte
Boolean — A value of true if a listener of the specified type is registered; false otherwise.

openSession

()Methode 
public function openSession(dbfile:File, id:uint, encryptionKey:ByteArray = null, cacheDirectory:File = null):coldfusion.air:SessionToken

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9.0.1
Laufzeitversionen: Flash Player 9, AIR 1.0

Creates a session with a specific database file.

Parameter

dbfile:File — The File reference associated with the database file
 
id:uint — Unique session ID per session
 
encryptionKey:ByteArray (default = null) — Optional key to encrypt the database files
 
cacheDirectory:File (default = null) — Optional directory where the cache database file, used internally by the framework, is stored. By default, the cache file is stored in the flash.filesystem.File.applicationStorageDirectory.

Rückgabewerte
coldfusion.air:SessionToken — The session token associated with the call

removeEventListener

()Methode 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Removes a listener from the EventDispatcher object.

Parameter

type:String — The type of event.
 
listener:Function — The listener object to remove.
 
useCapture:Boolean (default = false) — Specifies whether the listener was registered for the capture phase or the target and bubbling phases.

willTrigger

()Methode 
public function willTrigger(type:String):Boolean

Sprachversion: ActionScript 3.0
Produktversion: ColdFusion 9
Laufzeitversionen: Flash Player 9, AIR 1.0

Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.

Parameter

type:String — The type of event.

Rückgabewerte
Boolean — A value of true if a listener of the specified type will be triggered; false otherwise.
Ereignisdetails

fault

Ereignis
Ereignisobjekttyp: coldfusion.air.events.SyncFaultEvent
Eigenschaft SyncFaultEvent.type = coldfusion.air.events.SyncFaultEvent.FAULT

Dispatched when a session service call fails.

The type of the event.

result

Ereignis  
Ereignisobjekttyp: coldfusion.air.events.SyncResultEvent
Eigenschaft SyncResultEvent.type = coldfusion.air.events.SyncResultEvent.RESULT

Dispatched when a syncmanager call returns successfully.

The type of the event.




[ X ]Warum auf Englisch?
Inhalt des ActionScript 3.0-Referenzhandbuchs wird in englischer Sprache angezeigt

Nicht alle Teile des ActionScript 3.0-Referenzhandbuchs wurden in alle Sprachen übersetzt. Wenn der Text zu einem Sprachelement nicht übersetzt wurde, wird er auf Englisch angezeigt. Zum Beispiel wurden die Informationen zur ga.controls.HelpBox-Klasse nicht in andere Sprachen übersetzt. In der deutschen Version des Referenzhandbuchs erscheint der Abschnitt zur ga.controls.HelpBox-Klasse deshalb auf Englisch.