flash里alert

一个小函数,方便用来打印变量:

function alert(s:String) {
    import mx.controls.Alert;
    Alert.show(s);
}

这样调用

_level0.alert("Hello World!");

原文地址:https://www.cnblogs.com/luoluo/p/959853.html