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

Àí½â flex component

component¾ÍÊÇÒ»¸öAS class »òÕßÊÇMXML componentÎļþÔÚmanifestÎļþÖÐÓ³ÉäµÄ±êÇ©.·Ö¿ÉÊӺͲ»¿ÉÊÓ
¿ÉÊÓ»¯component°üÀ¨Containers ºÍ UI controls
Containers(Appliction, Panel...)
UI controls(Button, Label)
¿ÉÒÔͨ¹ý3ÖÖ·½Ê½ÉèÖÃcomponentµÄÊôÐÔ
1.tag attributers
Java´úÂë
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">   
</mx:Application>  
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
</mx:Application>
ÖеÄlayout="absolute"
2.nested tags
Java´úÂë
<mx:Button id="exampleButton">   
  <mx:label>Example Button</mx:label>   
</mx:Button>  
<mx:Button id="exampleButton">
<mx:label>Example Button</mx:label>
</mx:Button>
¸üµäÐ͵ÄÓ¦ÓÃ
Java´úÂë
<mx:ComboBox id="exampleComboBox">   
  <mx:dataProvider>   
    <mx:ArrayCollection>   
      <mx:String>A</mx:String>   
      <mx:String>B</mx:String>   
      <mx:String>C</mx:String>   
      <mx:String>D</mx:String>   
    </mx:ArrayCollection>   
  </mx:dataProvider>   
</mx:ComboBox>  
<mx:ComboBox id="exampleComboBox">
<mx:dataProvider>
<mx:ArrayCollection>
<mx:String>A</mx:String>
<mx:String>B</mx:String>
<mx:String>C</mx:String>
<mx:String>D</mx:String>
</mx:ArrayCollection>
</mx:dataProvider>
</mx:ComboBox>
3.AS ;)
¼¸ºõËùÓеÄcomponent(ËùÓеĿÉÊÓ»¯component)¶¼ÓÐidÊôÐÔ...(Âð¶«¶«Ã»ÓÐÄØ?),id ÓÉÊý×Ö


Ïà¹ØÎĵµ£º

Flex·ÖÒ³×é¼þ

ÓкÃÓõĶ«Î÷Ò»¶¨Òª¹²Ïí¡£
PaginationDataGrid.mxmlÎļþ·ÖÒ³×é¼þ
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
<mx:Script source="../../../common/utils/Commo ......

How to get html text in a Flex Alert panel.

A client asked me to do something seemingly simple.
"I want the Alert to have just this one sentence bolded."
Well, it's not exactly simple, so here's how you do it:
there are two solutions as below :
import mx.core.IUITextField;
use namespace mx.core.mx_internal;
   message +="Press ......

flex ¸÷×é¼þ¶ÔÓ¦µÄÑùʽÊôÐÔ(ת)

×ªÔØ×Ôhttp://blog.csdn.net/friendyi/archive/2008/07/07/2621034.aspx
Application×é¼þÑùʽÊôÐÔ
       backgroundImage               ±³¾°Í¼          &nb ......

FLEX ArrayºÍArrayCollectionµÄÇø±ð

µ±ArrayµÄÊý¾Ý·¢Éú±ä»¯µÄʱºò£¬ÓÃËü×÷ΪÊý¾ÝÔ´µÄ¿Ø¼þ²»ÄܸÐÖªÕâÖֱ仯¡£
ÀýÈ磺myArray.push("new value"); Õâʱ£¬Èç¹ûÒ»¸öListÓÃËü×÷ΪdataProvider£¬ListµÄÁбíÖв»»áÔö¼ÓмÓÈëµÄÕâ¸öÖµ¡£
¶øµ±ArrayCollectionµÄÊý¾Ý·¢Éú±ä»¯µÄʱºò£¬Äܹ»Í¨Öª¿Ø¼þ·¢Éú±ä»¯¡£
ÀýÈ磺myArrayCollection.addItem("new item"); Õâʱ£¬È ......

FLEXÄÚ´æÓÅ»¯¼¼Çɼ¯ºÏ

FLEXÄÚ´æÊÍ·ÅÓÅ»¯Ô­Ôò
1. ±»É¾³ý¶ÔÏóÔÚÍⲿµÄËùÓÐÒýÓÃÒ»¶¨Òª±»É¾³ý¸É¾»²ÅÄܱ»ÏµÍ³µ±³ÉÀ¬»ø»ØÊÕ´¦Àíµô£»
2. ¸¸¶ÔÏóÄÚ²¿µÄ×Ó¶ÔÏó±»ÍⲿÆäËû¶ÔÏóÒýÓÃÁË£¬»áµ¼Ö´Ë×Ó¶ÔÏ󲻻ᱻɾ³ý£¬×Ó¶ÔÏ󲻻ᱻɾ³ýÓֻᵼÖÂÁ˸¸¶ÔÏ󲻻ᱻɾ³ý£»
3. Èç¹ûÒ»¸ö¶ÔÏóÖÐÒýÓÃÁËÍⲿ¶ÔÏ󣬵±×Ô¼º±»É¾³ý»òÕß²»ÐèҪʹÓôËÒýÓöÔÏóʱ£¬Ò»¶¨Òª¼ÇµÃ° ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ