Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Return value to the function that called the http service

Avatar

Level 1
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
0 Replies