FlexµÄDataGridÖÐʱ¼äÈçºÎ¸ñʽ»¯
µÚÒ»£ºÀ¸öDateFormatter ¿Ø¼þ
<mx:DateFormatter id="df" formatString="YYYY-MM-DD"/>
¾«È·µ½Ê±·ÖÃëÔòÊÇYYYY-MM-DD H:NN:SS
µÚ¶þ£ºÐ´¸öº¯Êý
private function formatStart(item:Object,column:DataGridColumn):String{
return df.format(item.startDate);// dfÊÇÒ»¸öDateFormatter£¬ÕâÀï¸ñʽ»¯itemÊý¾ÝÖеÄstartDate×Ö¶Î
}
µÚÈý£º
.........
<mx:DataGridColumn headerText="endDate" dataField="endDate" labelFunction="formatStart"/>
.........
ÓÐÁËÕâÈý¸ö£¬ÏÔʾÊý¾ÝÒѾûÓÐÎÊÌâÁË¡£ÆäʵҲ¿ÉÒÔÕâÑùÓã¬ÈçÔÚº¯ÊýÖÐ
regTime.text=df.format(memberResult.registeTime);//·µ»ØµÄ¸ñÁÖÖÎʱ¼ä¸ñʽ»¯ÎªYYYY-MM-DD¸ñʽ
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/jinxinxin1314/archive/2009/10/27/4731439.aspx
Ïà¹ØÎĵµ£º
ÓÉÓÚavm°æ±¾µÄÎÊÌ⣬flex3ÎÞ·¨Ö±½Óµ÷ÓÃflash×öµÄswfÎļþ£¬ÅªÁËÒ»Ì죬×îºóÖÕÓÚÏëµ½ÁËÒ»¸ö°ì·¨£¬½«LocalConnectºÍflexµ÷ÓÃas3Á½ÖÖ·½Ê½ÔÜÔÚÁËÒ»Æð£¬ËãÊÇÔÝʱ°ÑÕâ¸öÎÊÌâ½â¾öÁË£¡
´æÆðÀ´£¬Áô×ÅÒÔºóÐÞ¸Ä
µÚÒ»²½£ºÓÃflash×öÒ»¸öas2µÄÎļþ
ÎÒÔÚÀïÃæÌí¼ÓÁËÒ»¸ö°´Å¥
ÔÚµÚһ֡дÏÂÃæµÄ´úÂë
mybtn.onRelease=function()
{
......
¼ÙÉ踸´°¿ÚÊÇp,×Ó´°¿ÚÊÇc,×Ó´°¿Ú½øÐвÙ×÷ºó·µ»Ø¸¸´°¿Ú
¸¸´°¿Ú£º
var flag:Boolean = false;
var c:pop = pop(PopUpManager.createPopUp(this,pop,false)); // н¨×Ó´°Ìå¶ÔÏó
c.callFunction = this.fresh; // ×Ó´°ÌåÖпÉÒÔµ÷Óõĸ¸´°Ì庯Êý£¨ÕâÀïÊÇ×Ó´°Ìå¹Ø±Õʱ£¬ÓÃÀ´Ë¢Ð¸¸´°ÌåµÄÄÚÈÝ
function fresh():void
  ......
2ÖÖ·½·¨£¬
Ò»£¬ÀûÓÃjs¶ÁÈ¡ð¤Ìù°æ£º
var content = clipboardData.getData("Text");
document.getElementById("${application}").getClipboardData(content);
¶þ£¬Ö±½Ó¸´ÖƵ½datagrid
ÔÚDataGridÖУ¬µ±°´ÏÂCtrl¼üʱ£¬ÎÒÃÇ´´½¨Ò»¸öÒþ²ØµÄÎı¾£¨TextField£©×é¼þ£¬²¢½«½¹µã¶¨Î»¸øËü£¬ÕâÑù£¬ÎÒÃǾͿÉÒÔ½ÓÊÜÈκÎͨ¹ýCtrl+VÕ ......
ÊÔÓÃÁËÒ»ÏÂFlex£¬´´½¨HelloWorldÓ¦ÓõÄ˳ÐòÈçÏ£º
1 ´´½¨Îļþ: HelloWorld-app.xml
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.5">
<id>com.kdevn.flex.HelloWorld</id>
<version&g ......