How to return a variable from an actionscript Event? Loading XML file?

You can do something like a promise or future, where you return empty XML and then populate it with the actual XML when the call returns. Since you are using Flex, you have access to data binding, which should allow this approach to work just fine.

You can't. Because xml load request is asynchronous. When you called loadXML, onXMLLoad not yet arrived.

So such work impossible asynchronous return. Surely you can waiting the function process while loop using, but this method not good. Because to full use a cpu resource, overkill.

You must next process in onXMLLoad function. It's the most appropriate. Or xml variable declared as global, and using a ENTER_FRAME or TimerEvent as a way to continue to operate if the xml is not null.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions