相关文档(https://help.adobe.com/zh_CN/FlashPlatform/reference/actionscript/3/String.html)
1.列表格式化时间脚本:
<mx:DataGridColumn dataField="FCreateTime" headerText="修改时间" labelFunction="formatDateTime1" width="160" />
private function formatDateTime1(item:Object,column:DataGridColumn):String
{
return DateUtil.formatDateTime(item["FCreateTime"]);
}
2.下拉项实时触发脚本:
<db:DropBox id="xxx" commit="DropBoxcommit(event)" />
<sb:SelectBox id="xxx" commit="SelectBoxcommit(event)"/>
protected function DropBoxcommit(event:DropBoxEvent):void{ }
protected function SelectBoxcommit(event:SelectBoxEvent):void{}
记录学习中的点点滴滴,不懂就记。