Highlighted

Return value to the function that called the http service

flashharry_

04-08-2008

With a traditional function call that returns a value, you
simply call the function and store the results in variable



var returnedString:String = myfunction();



How do I get this type of function from a result event.

I have a gui that allows user to create custom searches, the
components are created dynamically. One of the types that can be
created is a combobox with values from a DB.



When the users add this type, I make an httpservice call and
result handler function.



httpAjaxService.addEventListener(ResultEvent.RESULT,process253Values);



The result are process by the function process253Values, it
ends up being an array collection.

I want to return this array collection back to the original
function that call the httpservice send.

I do not want to pre-create public array collection as this
form is dynamic.



Any thoughts or ides