flash on 2015-4-21
♥0 |
Line 25 |
Modified 2015-04-21 19:16:09 |
MIT License
archived:2017-03-20 09:50:30
ActionScript3 source code
/**
* Copyright Hrundik ( http://wonderfl.net/user/Hrundik )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/1rXu
*/
package {
import flash.utils.setTimeout;
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
setTimeout(count, 0);
}
private var callsCount: int = 0;
public function recursed(): void
{
callsCount++;
recursed();
}
private function count():void {
try {
recursed();
} catch (e:Error) {}
var tf:TextField = new TextField();
tf.text = String(callsCount);
addChild(tf);
callsCount = 0;
}
}
}