| 1. |
What Is Calllater () Method? |
|
Answer» The CALLLATER () method queues an operation to be performed for the next SCREEN refresh, rather than in the current UPDATE. Without the callLater () method, you might try to access a property of a component that is not yet available. Syn: callLater(method:Function, args:Array):void Ex: We have a button click event that loads data from a XML file or a webservice. That loading of data WOULD probably have another resultHandler which will wait for the loading to finish. And meanwhile your button click handler might be doing some other things …so in these situations we can use callLater. The callLater () method queues an operation to be performed for the next screen refresh, rather than in the current update. Without the callLater () method, you might try to access a property of a component that is not yet available. Syn: callLater(method:Function, args:Array):void Ex: We have a button click event that loads data from a XML file or a webservice. That loading of data would probably have another resultHandler which will wait for the loading to finish. And meanwhile your button click handler might be doing some other things …so in these situations we can use callLater. |
|