I know my syntax is correct because both samples compile but only the first sample calls QueryResult.
The reason i need to pass function pointers i baecause since flex remoteobjects are async i have a function that i may want to handle the results differently based on form data bindings
This works :
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<mx:Button label="Execute Query" click="ExecuteQuery(RequestParams.requestXML,RequestParams.dataflow,RequestParams.provider,null);"/>
function ExecuteQuery(requestXML:String, dataflowName:String, providerGroup:String)
{
mySDK.addEventListener("ExecuteQueryResult", Delegate.create(this, QueryResult));
mySDK.ExecuteQuery(requestXML, dataflowName, providerGroup);
}
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
But this Does NOT :
<mx:Button label="Execute Query" click="ExecuteQuery(RequestParams.requestXML,RequestParams.dataflow,RequestParams.provider,null,Delegate.create(this, QueryResult));"/>
function ExecuteQuery(requestXML:String, dataflowName:String, providerGroup:String, callBack:Function)
{
mySDK.addEventListener("ExecuteQueryResult", callBack);
mySDK.ExecuteQuery(requestXML, dataflowName, providerGroup);
}
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
can anyone tell me how to pass function pointers correctly?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

