hayored
12-09-2002, 10:56 PM
Hi,
I am learning Flash MX and tried to use setInterval function to display current time:
On the first frame I put the code:
function showTime() {
delete objTime ;
objTime = new Date();
ws_time = objTime.getHours() + ":" + objTime.getMinutes() + ":" + objTime.getSeconds() ;
myTime.text = ws_time ;
}
setInterval(showTime(), 1000);
On the second frame I put a dummy command, so I could put breakpoint
a = a + 1;
On the third (the last) frame I put:
gotoAndPlay(2);
Without debug Flash crushes, but with debbuger I see it creates
level0.instance2,
level0.instance4
and so on, until it crushes.
When I try to see property of this level0.instance... Flash crushes too.
Any explanation what happens?
Thanks,
Yh
I am learning Flash MX and tried to use setInterval function to display current time:
On the first frame I put the code:
function showTime() {
delete objTime ;
objTime = new Date();
ws_time = objTime.getHours() + ":" + objTime.getMinutes() + ":" + objTime.getSeconds() ;
myTime.text = ws_time ;
}
setInterval(showTime(), 1000);
On the second frame I put a dummy command, so I could put breakpoint
a = a + 1;
On the third (the last) frame I put:
gotoAndPlay(2);
Without debug Flash crushes, but with debbuger I see it creates
level0.instance2,
level0.instance4
and so on, until it crushes.
When I try to see property of this level0.instance... Flash crushes too.
Any explanation what happens?
Thanks,
Yh