I am working on a little android app [Air for Android],and I am struggling on how to listen a method’s completion.
I wrote some code like this:
//these code are written in MXML file
var oauthConnection:OauthConnection = new OauthConnection();
busyOn();
init();
busyOff();
which init() is a function that I wrote in a class named OauthConnection,
saved as file named [OauthConnection.as]
My problem is when init() is still executing though, busyOff() got executed.
what i should do to make sure busyOff() is executed after init() is done.
Someboy,Anybody, if you have a clue,help me! thanks!
Normally this would be done with the Event structure of ActionScript (this is an incredibly simple example):