The AsyncToken is dynamic.  You can add pretty much anything you want to
it:

 

var callToken:AsyncToken = myDataService.send();

callToken.myProperty = whateverIWantToPutInHere:

 

private function onResult(oEvent:ResultEvent):void {

 var callToken:AsyncToken = oEvent.token;

 var whateverIWantToPutInHere = calltoken.myProperty;

 

Tracy

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of manfred.maierhofer
Sent: Tuesday, April 03, 2007 12:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Reference to a class variable

 

Thanks, but could you please give an example, how to attach the model
to the token (I guess build a subclass of the AsyncToken and implement
a new property that includes my model???) and most important how to
reference it later in the Handler? I don't know how to reference to
the class property of a current instance without creating a new
instance of the ModelClass.

Thanks,
Mane

 

Reply via email to