Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
This is the main class that is exposed to the end user for connecting to the
server to fetch and synchronize the data with the server.
public var cfContextRoot:String
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Context root of the ColdFusion server.
public var cfPort:int
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Port where the ColdFusion server is running.
public var cfServer:String
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Name or IP address of the ColdFusion server.
public var destination:String
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Specifies the destination for the remoting call.
public var secureHttp:Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Boolean value that specifies if secure HTTP is used:
yes
: uses secure HTTPno
: does not use secure HTTP
public var syncCFC:String
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Fully qualified CFC name that implements the CFIDE.AIR.ISyncManager
interface.
public function SyncManager()
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Creates an instance of the SyncManager class.
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event.
Parameters
| 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.
|
public function dispatchEvent(evt:Event):Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Dispatches an event into the event flow.
Parameters
| 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.
|
Returns | 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.
|
public function fetch(fetchMethod:String, ... args):mx.rpc:AsyncToken
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Fetches the data from the server.
Parameters
| fetchMethod:String — The name of the fetch method to be executed on the server.
|
|
| ... args — The arguments for fetchMethod
|
Returns public function getCurrentSession():Session
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Returns the Session instance that is currently open.
Returns public function hasEventListener(type:String):Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | 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()
.
Parameters
| type:String — The type of event.
|
Returns | Boolean — A value of true if a listener of the specified type is registered;
false otherwise.
|
public function openSession(dbfile:File, id:uint):coldfusion.air:SessionToken
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Creates a session with a specific database file.
Parameters
| dbfile:File — The File reference associated with the database file
|
|
| id:uint — Unique session ID per session
|
Returns public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Removes a listener from the EventDispatcher object.
Parameters
| 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.
|
public function sync(operations:Array, newInstances:Array, oldInstances:Array, successFunction:Function, faultFunction:Function):mx.rpc:AsyncToken
Parameters
Returns public function willTrigger(type:String):Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | 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.
Parameters
| type:String — The type of event.
|
Returns | Boolean — A value of true if a listener of the specified type will be triggered;
false otherwise.
|
Event Object Type: coldfusion.air.events.SyncFaultEvent
property SyncFaultEvent.type = coldfusion.air.events.SyncFaultEvent.FAULT
Dispatched when a session service call fails.
The type of the event.
Event Object Type: coldfusion.air.events.SyncResultEvent
property SyncResultEvent.type = coldfusion.air.events.SyncResultEvent.RESULT
Dispatched when a syncmanager call returns successfully.
The type of the event.
© 2009 Adobe Systems Incorporated. All rights reserved.
Fri Aug 14 2009, 04:09 PM +05:30