Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Token representing the call to a method on the
Session
class.
It also allows an IResponder to be attached for an individual call.
The SessionToken can be referenced in SessionResultEvent and SessionFaultEvent from the sessionToken property.
responders:Array
[read-only]
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
An array of IResponder handlers that will be called when
the asynchronous request completes.
Each responder assigned to the token will have its result
or fault
function called by passing in the
matching event before the operation or service dispatches the
event itself.
Implementation public function get responders():Array
public var result:Object
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
The result that was returned by the associated call.
session:Session
[read-only]
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
The session object associated with the token.
Implementation public function get session():Session
UID:String
[read-only]
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Returns the UID associated with the token.
Implementation public function get UID():String
public function SessionToken(session:Session)
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Creates an instance of the SessionToken
class.
Parameters public function addResponder(responder:IResponder):void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
addResponder
adds a responder to an Array of responders.
The object assigned to the responder parameter must implement
mx.rpc.IResponder
.
Parameters
| responder:IResponder — A handler which will be called when the asynchronous request completes.
|
See also
public function hasResponder():Boolean
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 9, AIR 1.0 |
Determines if this token has at least one mx.rpc.IResponder
registered.
Returns | Boolean — true if at least one responder has been added to this token.
|
© 2009 Adobe Systems Incorporated. All rights reserved.
Fri Aug 14 2009, 04:09 PM +05:30