Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

FlexʹÓõ¯³ö´°¿ÚΪDataGridÌí¼ÓÐÂÊý¾Ý

¾­³£ÔÚDemoÖлῴµ½ÁÐ±í£¬±í¸ñµÈ·½Ê½À´ÏÔʾÊý¾Ý¡£µ±È»ÓÐʱºòÒ²ÐèÒªÌí¼ÓÊý¾Ýµ½ÕâЩÁбí»òÕß±í¸ñÖС£Óкܶ෽ʽÌá½»£¬ÕâÀïչʾһ¸öµ¯³ö´°¿ÚµÄ·½Ê½À´Ìí¼ÓеÄÊý¾Ýµ½DataGridÖС£
Àý×Óչʾ£º

Ê×ÏÈ£¬ÎÒÃÇ¿ªÊ¼½¨ÉèÒ»¸ö»ù±¾µÄ½çÃæ½á¹¹£¬Ò»¸ö´øÓС°Notes"±êÌâµÄPanel,Ò»¸öDataGrid£¬ÒÔ¼°Ò»¸öÓÃÓÚÌá½»Êý¾ÝµÄ°´Å¥¡£
Xml´úÂë
<?xml version="1.0" encoding="utf-8"?>  
<mx:Application  
 xmlns:mx="http://www.adobe.com/2006/mxml"  
 layout="absolute"  
 width="500" height="300">  
  <mx:Panel title="Notes"  
   width="100%" height="100%"  
   layout="vertical" horizontalAlign="right"  
   paddingTop="3" paddingLeft="3" paddingRight="3" paddingBottom="3">  
    <mx:DataGrid width="100%" height="100%">  
      <mx:columns>  
        <mx:DataGridColumn headerText="Author" dataField="author" width="80"/>  
        <mx:DataGridColumn headerText="Topic" dataField="topic" width="100"/>  
        <mx:DataGridColumn headerText="Description" dataField="description"/>  
      </mx:columns>  
    </mx:DataGrid>  
    <mx:Button label="Add Note"/>  
  </mx:Panel>  
</mx:Application>  <?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
width="500" height="300">
<mx:Panel title="Notes"
width="100%" height="100%"
layout="v


Ïà¹ØÎĵµ£º

flexʱÐòͼʾÀý

<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>

import mx.collections.ArrayCollection;
......

flex 3 ´ÓÒ³ÃæurlÖÐÈ¡²ÎÊýÈ¡ÖµµÄÍêÃÀ½â¾ö·½°¸

1:µ±ÓÃhttp://xxxxx/xxx.mxml?name=hermit·½Ê½·ÃÎÊ ¿ÉÒÔÓÃthis.parameters.nameÕâÖÖ·½Ê½ÔÚflexÀïÃæÈ¡url²ÎÊý
2:µ±ÓÃhttp://xxxxx/xxx.swf?name=hermit·½Ê½·ÃÎÊ ¿ÉÒÔÓÃthis.parameters.nameÕâÖÖ·½Ê½ÔÚflexÀïÃæÈ¡url²ÎÊý
3:µ±ÓÃhttp://xxxxx/xxx.html?name=hermit·½Ê½·ÃÎÊ ¿ÉÒÔÓÃthis.parameters.nameÕâÖÖ·½Ê½ÔÚflexÀïÃæÈ ......

flex xmlºÍarraycollectionÏ໥ת»»

1¡¢arraycollectionת»¯Îªxml£¬´úÂëÈçÏ£º
    
    //¶¯Ì¬Éú³ÉÊ÷Ðνṹ
public static function flatArrayToXML(arr:Object,rootname:String=null,nodename:String=null, outputString:Boolean=false):Object{
if (arr is Array){

......

FLEXʵ¼ù—¶¯Ì¬Çл»Ó¦ÓÃƤ·ô

     ÔÚͬһ¸öApplicationÖж¯Ì¬Çл»Ö÷Ì⣬ÕâÀï²ÉÓõÄÊǶ¯Ì¬ÒýÓò»Í¬µÄCSSÎļþ¡£
      ¾ßÌå²½ÖèÈçÏ£º
     1£©´´½¨CSSÎļþ
      skyTheme.css
      /* CSS file */
.backgroudSkin
{
&nbs ......

flex TitleWindowÖ®¼äÊý¾Ý´«ÊäµÄʾÀý

ÔÚFlexÀһ°ãµÄµ¯³ö´°¿Ú£¨³ýÁËAlertÒÔÍ⣩¶¼¿ÉÒÔÓÃTitleWindow×é¼þÍê³É£¬Ö÷´°¿ÚºÍTitleWindowµÄÊý¾Ý´«Êä¿ÉÒÔÓÃÒÔÏ·½·¨£º
¼ÙÉèTitleWindowµÄʵÀýÎļþΪtitleWin.mxml£¬ÔòÒªÔÚApplicationÖÐÓÃPopUpManager´´½¨Ò»¸ötitleWinµÄÒýÓÃ
private var popWin:titleWin = titleWin(PopUpManager.createPopUp(this,titleWin,true)) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ