打开网址: navigateToURL(new URLRequest('http://www.duzengqiang.com'),'_blank')
页面重载: navigateToURL(new URLRequest("javascript:location.reload();"),"_self")
关闭浏览器:navigateToURL(new URLRequest("javascript:window.close()"),"_self");
编译as -keep-generated-actionscript
最上层 parent.setChildIndex(this,parent.numChildren-1);
随机颜色 :lbl.setStyle('color', 0xffffff*Math.random());
mxmlc -link-report=report.xml Main.mxml
mxmlc -load-externs=report.xml ChartModule.mxml
DataGrid自适应高度:dg.height=dg.measureHeightOfItems(0,dg.dataprovider.length)+dg.headerHeight+2;
+2 for 1 pixel border at top and bottom
判断数据类型:getQualifiedClassName(数据)
复制ArrayCollection:(From: http://blog.shiue.net/?p=490)
//dummy solution( well, it works )
var bar:ArrayCollection = new ArrayCollection();
for each ( var i:Object in ac ){
bar.addItem( i );
}
// fantastic ! //
var bar:ListCollectionView = new ListCollectionView( ListCollectionView( ac ).list );
Alert背景透明:
查看更多...
Tags: flexflex
分类:
资料 |
固定链接 |
禁止评论
| 引用: 0 | 查看次数: 4019