HI all, i have a class file named Main.as and another class calledr icon.as
package {
import icon;
public class main {
public var _time:String;
function main() {
_time="01:10";
iconObj=new icon(this);
}
function timerFunction() {
_time=newTime;
}
}
}
package {
public class icon {
public var mytime:NUmber;
function icon(mainObj:*) {
trace("My time "+mainObj._time)
}
}
}
//sample outout
// My time 01:10
How do i get the current update from the main class without calling the MainObj repeatedly. Is this possible in Flash AS3, or any other alternate method for this idea.