flash lite as2.0 取手机屏幕大小

var myListener:Object = new Object();
myListener.onResize = function() {
    trace(Stage.width+"  "+Stage.height);
    Stage.removeListener(myListener);
};
Stage.addListener(myListener);
posted @ 2010-03-05 17:37  天纯蓝  阅读(280)  评论(0编辑  收藏  举报