Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Return value to the function that called the http service

flashharry_
Level 1
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