flash on 2014-2-17
♥0 |
Line 19 |
Modified 2014-02-17 09:42:10 |
MIT License
archived:2017-03-20 17:39:44
ActionScript3 source code
/**
* Copyright mwelsh ( http://wonderfl.net/user/mwelsh )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/wVff
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
import flash.events.UncaughtErrorEvent;
public class FlashTest extends Sprite {
private var tf:TextField;
public function FlashTest() {
tf = new TextField();
addChild(tf);
loaderInfo.uncaughtErrorEvents.addEventListener( UncaughtErrorEvent.UNCAUGHT_ERROR, onUncaughtError );
tf.text = "";
tf.text = "" + (Sprite as int);
}
public function onUncaughtError(e:UncaughtErrorEvent):void
{
tf.text = (e.error).toString();
}
}
}