Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : flex

ÔÚFLEXÖÐʹÓÃÑùʽ·½·¨

Ò»¡¢Ê¹Óñ¾µØÑùʽ¶¨Òå
ʹÓÃ<mx:Style>±êÇ©ÔÚMXMLÎļþÖд´½¨±¾µØµÄÑùʽ¶¨Òå¡£Õâ¸ö±êÇ©°üº¬ÁË·ûºÏCSS2.0Óï·¨µÄÑùʽ±í¶¨
Òå¡£ÕâЩ¶¨Òå»áÓ¦Óõ½µ±Ç°ÎĵµÒÔ¼°µ±Ç°ÎĵµµÄ×ÓÎĵµ¡£
<mx:style>
.solidBorder{//ÀàÑ¡ÔñÑùʽ
border-style:solid;
}
button{//×é¼þ¶¨ÒåÑùʽ
border-style:solid;
}
....
</mx:style>
//Ó¦Óõ½×é¼þ
<mx:VBoxstyleName="solidBorder"/>
<mx:button/>//ÎĵµÖеÄbutton×Ô¶¯Ó¦ÓÃÑùʽ±íÖеÄÑùʽ
¶þ¡¢Ê¹ÓÃÍⲿÑùʽ±í
FLEXÖ§³ÖÍⲿCSSÑùʽ±í¡£ÒªÓ¦ÓÃÒ»¸öÑùʽ±íµ½µ±Ç°ÎĵµºÍ×ÓÎĵµ£¬Ê¹ÓÃ<mx:Style>±êÇ©ÖеÄsource
ÊôÐÔ¡£
<mx:Application...>
<mx:Stylesource="style/style.css"/>//ÔØÈëÍⲿÑùʽ±í
...
</mx:Application>
style.cssÎļþÖеÄÑùʽ±í¶¨ÒåÓë±¾µØÑùʽ¶¨ÒåÏàͬ¡£
Èý¡¢Ê¹ÓÃÄÚÁªÑùʽ
¿ÉÒÔÏñÉ趨×é¼þµÄÊôÐÔÒ»ÑùÔÚMXML±êÇ©ÖÐÉ趨ÑùʽÊôÐÔ¡£ÄÚÁªÑùʽµÄÓÅÏȼ¶¸ßÓÚ±¾µØÑùʽºÍÍⲿÑùʽ
¡£
<mx:buttonborderStyle="solid">//É趨ÑùʽÊôÐÔ
ËÄ¡¢Ê¹ÓÃsetStyle()·½·¨
¿ÉÒÔÔÚActionScriptÖÐʹÓ÷½·¨À´²Ù×÷×é¼þµÄÑùʽÊôÐÔ¡£Ê¹ÓÃsetStyle()·½·¨µÄÓÅÏȼ¶ÊÇ×î¸ßµÄ¡£
<mx:Appli ......

ÔÚflexÖÐʹÓÃǶÈëhtmlÎļþÒÔ½â¾öÏÔʾhtmlµÄÎÊÌâ

ÏëÔÚflexÖÐÕæʵµÄÏÔʾhtml,µ«ÊÇtexteara,lable,textÖÐÖ»Ö§³Ö²¿·Öhtml±êÇ©
<a>¡¢<b>¡¢<br>¡¢<font>¡¢<img>Èç¹ûÓÃimgÓÖ´æÔÚÏÔʾ×Ô¶¯»»ÐеÄÎÊÌâ¡£Ö»ÓвÉÓÃǶÈëhtmlµÄ·½·¨À´½â¾ö¡£
1.flexdemo1
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*" width="427" height="282" viewSourceURL="srcview/index.html">
<mx:Panel x="10" y="10" width="407" height="262" layout="absolute" title="TabNavigator with HTML IFrame Enclosures">
<mx:TabNavigator x="10" y="10" width="367" height="202">
<local:IFrame source="http://www.ff-power.com"  label="TÍø" width="100%" height="100%">
</local:IFrame>
<local:IFrame source="http://www.ctott.com" label="·É·²¶¯Á¦" width="100%" height="100%">
</local:IFrame>
<local:IFrame source="http://www.ff-power.com/bbs" label="·É·²¶¯Á¦-BBS" width="100%" height="100%">
</local:IFrame>
</mx:TabNavigator> ......

ÔÚflexÖÐʹÓÃǶÈëhtmlÎļþÒÔ½â¾öÏÔʾhtmlµÄÎÊÌâ

ÏëÔÚflexÖÐÕæʵµÄÏÔʾhtml,µ«ÊÇtexteara,lable,textÖÐÖ»Ö§³Ö²¿·Öhtml±êÇ©
<a>¡¢<b>¡¢<br>¡¢<font>¡¢<img>Èç¹ûÓÃimgÓÖ´æÔÚÏÔʾ×Ô¶¯»»ÐеÄÎÊÌâ¡£Ö»ÓвÉÓÃǶÈëhtmlµÄ·½·¨À´½â¾ö¡£
1.flexdemo1
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*" width="427" height="282" viewSourceURL="srcview/index.html">
<mx:Panel x="10" y="10" width="407" height="262" layout="absolute" title="TabNavigator with HTML IFrame Enclosures">
<mx:TabNavigator x="10" y="10" width="367" height="202">
<local:IFrame source="http://www.ff-power.com"  label="TÍø" width="100%" height="100%">
</local:IFrame>
<local:IFrame source="http://www.ctott.com" label="·É·²¶¯Á¦" width="100%" height="100%">
</local:IFrame>
<local:IFrame source="http://www.ff-power.com/bbs" label="·É·²¶¯Á¦-BBS" width="100%" height="100%">
</local:IFrame>
</mx:TabNavigator> ......

Flex AdvancedDataGridµÄʹÓã¬Ë­ÄܸæËßÎÒѽ£¿

×¢£ºµÚÒ»ÁÐÊÇ´øCheckboxµÄTree¡£
»¹ÓÐÎÊÌâÇë½Ì¸÷λ£º
   labelFieldÊÇÔªËضÔÏóµÄÊôÐÔÊÇÏÔʾ²»ÁË£¨carInfo.car_name£©£¬ºÃÏñÖ»¿ÉÏÔʾͬ¼¶µÄÊôÐÔÔõô½â¾ö£¿Ï£Íû¸÷λÄÜ°ïÖúÎÒ£¬Thanks!
 <mx:AdvancedDataGrid id="adg"  width="100%" height="100%" dataProvider="{instance.cars}"
        variableRowHeight="true"  wordWrap="true" verticalGridLineColor="0x339900" headerColors="[0x339900,0xFFEBCD]" horizontalGridLineColor="0x8B4513">
          <mx:columns>
      <mx:AdvancedDataGridColumn headerText="vehicle name" dataField="carInfo.car_name"/>
      <mx:AdvancedDataGridColumn headerText="terminal key" dataField="carInfo.terminal_key" />
      <mx:AdvancedDataGridColumn headerText="sim code" dataField="carInfo.sim_code"/>
            </mx:colu ......

FLEXºÏ²¢Êý×é

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script><!--[CDATA[import mx.collections.ArrayCollection;
public var a1:ArrayCollection = new ArrayCollection ([{ Region:"Region1",Territory:"Territory1",Territory_Rep:"Territory_Rep1",Actual:11,Estimate:111}]);
public var a2:ArrayCollection = new ArrayCollection ([{ Region:"Region2",Territory:"Territory2",Territory_Rep:"Territory_Rep2",Actual:22,Estimate:222}]);
public var a3:ArrayCollection = new ArrayCollection ([{ Region:"Region3",Territory:"Territory3",Territory_Rep:"Territory_Rep3",Actual:33,Estimate:333}]);
public var a4:ArrayCollection = new ArrayCollection ([{ Region:"Region4",Territory:"Territory4",Territory_Rep:"Territory_Rep4",Actual:44,Estimate:444}]);
public var a5:ArrayCollection = new ArrayCollection ([{ Region:"Region5",Territory:"Territory5",Territory_Rep:"Territory_Rep5",Actual:55,Estimate:555}]);
public var dpFlat:ArrayC ......

flexÊ÷ÐÎÑ¡ÔñÓû§µÄʵÏÖ

ʹÓÃflex tree ºÍlistʵÏÖÈçÏÂÑ¡ÔñÓû§µÄЧ¹û
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
                showCloseButton="true" creationComplete="loadMenu()"
                close="closeWindow()" styleName="customPopUp"  width="608" height="482"
                horizontalAlign="center" title="Ñ¡ÔñϵͳÓû§£º">
    <mx:Style source="./css/cssblue.css"/>
    <mx:Script>
<![CDATA[
        import comas.base.common.Globa;
        import mx.controls.Alert;
        import mx.managers.PopUpManager;
     &n ......

FlexÖÐ×Ö·û´®ReplaceAll

ÓùýFLEXÖÐStringÀàÐ͵ÄÅóÓÑ¿ÉÄÜÖªµÀ£¬replaceÕâ¸ö·½·¨²¢²»¹ýÌæ»»ËùÓÐÄÚÈÝ¡£ÄÇôÎÒÃÇÐèÒªÌæ»»ËùÓÐÄÚÈÝÔõô°ì£¿Ö»ÓÐ×Ô¼º¶¯ÊÖ£¬·áÒÂ×ãʳ¿©£¬ºÇºÇ¡£ÑÔ¹éÕýר£¬ÓÐÁ½ÖÖ·½·¨£¬Ò»ÖÖÊÇÀûÓÃArrayµÄ·½Ê½£¬ÁíÒ»ÖÖÊÇÀûÓÃÕýÔòÈ¥Ìæ»»¡£
/**
* StringReplaceAll
* @param source:String Ô´Êý¾Ý
* @param find:String Ìæ»»¶ÔÏó
* @param replacement:Sring Ìæ»»ÄÚÈÝ
* @return String
* **/
private function StringReplaceAll( source:String, find:String, replacement:String ):String{
return source.split( find ).join( replacement );
}
/**
* StringReplaceAll
* @param source:String Ô´Êý¾Ý
* @param find:String Ìæ»»¶ÔÏó
* @param replacement:Sring Ìæ»»ÄÚÈÝ
* @return String
* **/
private function StringReplaceAll( source:String, find:String, replacement:String ):String{
return source.split( find ).join( replacement );
}

--------------------------------------------------------------------------------
ÀûÓÃÕýÔòµÄ·½Ê½Ã»ÓеÚÒ»ÖÖ·½±ã£¬µ«Ò²¿ÉÒÔ½â¾öÌæ»»ËùÓеġ£ÏÂÃæ¾Ù¸ö“È ......
×ܼǼÊý:792; ×ÜÒ³Êý:132; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [12] [13] [14] [15] 16 [17] [18] [19] [20] [21]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ