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

Flex ¼¯ºÏ(ArrayCollection)

ºÏÊÇActionScript Öй¦ÄÜÇ¿´óµÄ»ùÓÚË÷ÒýµÄÊý×é×é¼þ£¬Ìí¼ÓÁËÈç¶ÔÄÚÈݽøÐÐÅÅÐòµÈ¹¦ÄÜ£¬
²Ù×÷Êý×éµÄ¶ÁȡλÖ㬴´½¨¾­¹ýÅÅÐòµÄÊý×éÊÓͼ¡£¼¯ºÏÒ²ÄÜ֪ͨÆäÈÎÒâʼþ¼àÌýÆ÷¼àÌýÆäÊý
¾ÝÊÇ·ñ¸Ä±ä£¬ÒÔ¼°ÈκÎÊý¾ÝÏî±»Ìí¼Óµ½Ô´Êý×éʱ¿ÉÖ´ÐÐ×Ô¶¨ÒåÂß¼­¡£µ±Êý¾Ý¸Ä±äʱ¿É֪ͨÆä
¼àÌýÆ÷£¬ÕâÊǼ¯ºÏµÄй¦ÄÜ£¬½ÐÊý¾Ý°ó¶¨£¬»¹ÓоÍÊÇÔÊÐíDataGrid ºÍList ×é¼þ¶ÔÆäÄÚÈݽø
ÐÐÅÅÐòºÍ¹ýÂË¡£¼¯ºÏÊÇʹÓÃÊý¾ÝÇý¶¯¿Ø¼þÒÔ¼°´ÓÊý¾Ý¿â·µ»ØµÄ·þÎñÆ÷¶Ë·þÎñµÄÖØÒªÄÚÈÝ¡£
¾­³£±»Ê¹ÓõÄÁ½¸ö¼¯ºÏÀàÐÍÊÇArrayCollection ÀàXMLListCollection Àà¡£ArrayCollection ÊÇ
Array µÄ°ü×°À࣬Ìṩ¸ü·½±ãµÄÈçÌí¼ÓºÍÒƳýÊý¾ÝÏîÒÔ¼°Äܹ»´´½¨ÓαêÆôÓÃÒªÇáËɵش洢Êý
×éÖеÄ×îºó¶ÁÈ¡µÄλÖõȷ½·¨¡£¶øXMLListCollection ÊÇXML ¶ÔÏóµÄ°ü×°À࣬ÌṩµÄ¹¦ÄÜ
ÓУº¸ù¾ÝË÷Òý·ÃÎÊÊý¾Ý£¬Ìí¼ÓжÔÏóÒÔ¼°ÓαêµÈ·½·¨¡£XMLListCollection ¶ÔÓÚ´¦ÀíXML ¶Ô
ÏóÒÔ¼°¾­³£ÐèÒª½âÎöXML ΪÊý×éʱÌرðÓÐÓá£
ʹÓÃaddItemAt »òaddItem ·½·¨²åÈë¶ÔÏóµ½ArrayCollection £¬
getItemIndex »òcontains ·½·¨ÓÃÓÚ¼ì²âÊý¾ÝÏîÊÇ·ñÒÑ´æÔÚÓÚÊý×éÖУ¬¶øArrayCollection µÄsort
ÊôÐÔÊǶÔArrayCollection ÅÅÐòÒÔ¼°Í¨¹ýij¸ö×ֶξö¶¨½ÓÊÕµÚÒ»¸ö»ò×îºóÒ»¸öÊý¾Ý¡£
Flex´úÂë
<mx:Script>   
<![CDATA[   
import mx.collections.SortField;   
import mx.collections.Sort;   
import mx.collections.ArrayCollection;   
private var coll:ArrayCollection;   
private function init():void {   
coll = new ArrayCollection(   
[{name:"Martin Foo", age:25},   
{name:"Joe Bar", age:15},   
{name:"John Baz", age:23}]);   
}   
Òª²åÈëÔªËص½Ö¸¶¨Î»Ö㬿ÉʹÓÃaddItemAt ·½·¨£º   
private function addItem():void {   
coll.addItemAt({name:"James Fez", age:40}, 0);   
}   
]]>   
</mx:Script>  
<mx:Script>
<![CDATA[
import mx.collections.SortField;
import mx.collections.Sort;
import mx.collections.ArrayCollection;
private var coll


Ïà¹ØÎĵµ£º

flex DataGrid·ÖÒ³£¨demo£©

·ÖÒ³×é¼þ£ºPage.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" >
    <mx:Script>
         <![CDATA[
       &nbs ......

FlexÖÐÈçºÎÈ¥µôTree¿Ø¼þĬÈÏÎļþ¼Ðͼ±ê¡¢Ò¶×Ó½Úµãͼ±ê

  .treeStyte{
    selectionColor: #417597;
    /* È¥µôĬÈÏͼ±ê */
    folderClosedIcon: ClassReference(null);
            folderOpenIcon: ClassReference(null);
   &nbs ......

flex faster and faster

±¾ÎĽéÉÜһϹØÓÚflexÐÔÄÜÓÅ»¯,ÒÔ¼°flexÉú³ÉµÄµÄswf´óСÓÅ»¯.
1.¹Øµôbuild automaticly
2.רÐÄ×öÒ»¸öÏîÄ¿£¬¿ªÆðÀ´Ò»¸öflex builder
3.ÓÃflex builder¶ø²»ÓÃEclipse²å¼þ£¬ÕâÑù²»ÓÃÊÜÆäËüµÄ²å¼þµÄÓ°Ïì¡£
ÖÁÓÚºóÀ´ºÍÊý¾Ý¿âµÄ¾ÍÏȲ»ËµÁË,ÒòΪˮƽÓÐÏÞ
as3Ò»³öÀ´,flexÒ²¸ú×Å»ðÒ»°Ñ,ĿǰѧϰflexµÄÈËÒ²Ô½À´Ô½¶àÁË,µ«ÊǹúÄÚfl ......

FlexµÄ¶¯»­Ð§¹ûÓë±ä»»

ÔÚFlexÀïÃæ²»ÏñÔÚFlashÀïÃæËæÒâÖÆ×÷¶¯»­ÁË£¬Flex¸üÇ÷ÏòÓÚÓ¦ÓóÌÐò£¬¶ø²»ÊǶ¯»­ÖÆ×÷ÁË£¬ËùÒÔûÓÐÁËʱ¼äÖáµÄ¸ÅÄî¡£ÔÚFlexÖÐʹÓö¯»­Ð§¹û£¬¿ÉÒÔÓÃFlex×Ô´øµÄEffect£¬»òÕß×ÔÒѶ¨ÖÆEffect£¬ÒòΪºÜ¶àÈ˶¼Ïë½èFlashÀïÃæµÄÒ»Ñù²Ù×÷Flex£¬±ÈÈçÔÚFlashÀïÃæ×öÒ»¸ö¶¯Ì¬°´Å¥ºÜÈÝÒ×£¬µ±Êó±êÒƶ¯µ½ÉÏÃæʱ£¬»áÓкܶ෢¹âµÄµãÅܳöÀ´£¨Ó«»ð³æÐ ......

flex ¸÷×é¼þ¶ÔÓ¦µÄÑùʽÊôÐÔ ÏÂ

Button×é¼þÑùʽÊôÐÔ
       cornerRadius                   ±ß¿òÔ²½Ç¶È                  &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ