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

Flex Êý¾ÝÒ×·¸´íÎó: ³£¼ûÎóÓúʹíÎó

Íü¼Ç½â³ýºÍ³Ðµ£ÄÚ²éй©·çÏÕ
Äã¿ÉÒÔÔÚ MXML ÖÐʹÓà ±ê¼Ç»ò´óÀ¨ºÅÒÔ±ãʵÏְ󶨹¦ÄÜ£¬È»¶øÕâЩ·½·¨½«»á²úÉú¿ªÏú¡£´ËÍ⣬Äã²»Äܹ»Ê¹ÓÃÕâЩ¼¼ÊõÈ¥³ý°ó¶¨¡£Èç¹ûÄãÏ£Íû¶Ô¸ßÐÔÄÜÓ¦ÓóÌÐò½øÐÐÓÅ»¯£¬Äã¿ÉÒÔʹÓà BindingUtils ÀàÀ´°ó¶¨ÄãµÄ¶ÔÏó¡£ BindingUtils ÀàµÄʹÓ÷½Ê½ÓÐÁ½ÖÖ£º
bindProperty() ·½·¨ÊÇÓÃÓڰ󶨹²ÓÐÊôÐԵľ²Ì¬·½·¨¡£
bindSetter() ·½·¨ÊÇÓÃÓÚ°ó¶¨setterº¯ÊýµÄ¾²Ì¬·½·¨¡£
ÈÃÎÒÃÇÀ´¿´Ò»ÏÂbindProperty ·½·¨Ç©Ãû£º
public static function bindProperty(
site:Object, prop:String,
host:Object, chain:Object,
commitOnly:Boolean = false,
useWeakReference:Boolean = false):ChangeWatcher
Õ¾µãºÍÖ÷»ú²ÎÊý·Ö±ð±íʾĿµÄµØºÍÔ´¶ÔÏó¡£µ±´¦Àí³ÌÐòÖ»»ùÓÚ³Ðŵ¸ü¸Äʼþ£¨committing change event£©µ÷ÓÃʱ£¬Äã¿ÉÒÔ½« commitOnly ÉèÖÃΪtrue£»¶øµ±´¦Àí³ÌÐòÄܹ»»ùÓÚ³ÐŵºÍ·Ç³Ðŵ¸ü¸Äʼþ£¨committing and non-committing change event£©µ÷ÓÃʱ£¬Äã¿ÉÒÔ½«commitOnly ÉèÖÃΪ false£¨Ä¬ÈÏÉèÖã©¡£
useWeakReference ²ÎÊýÔÊÐíÄ㶨Òåµ½Ö÷»úµÄÒýÓÃÊÇstrong»¹ÊÇweak¡£strong ÒýÓÃ(ĬÈÏ) Äܹ»·ÀÖ¹Ö÷»ú±»À¬»øÊÕ¼¯¡£¶øweak ÒýÓò»ÄÜ×öµ½ÕâÒ»µã¡£ÏÂÃæµÄ·¶Àý°üº¬Ò»¸ötextÊäÈë³ÌÐòºÍÒ»¸ö¼òµ¥×é¼þ¡£µ±¶Ô TextInput ¿Ø¼þ½øÐÐÔ¤³õʼ»¯Ê±£¬µ÷ÓÃʹÓà bindProperty ·½·¨µÄ preinitializeHandler() º¯Êý¡£
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx"
   minWidth="1024" minHeight="768">
      <fx:Script>
         <![CDATA[
            import mx.binding.utils.BindingUtils;
            import mx.events.FlexEvent;
                                 
            protected funct


Ïà¹ØÎĵµ£º

flex ³£ÓÃÔª±êÇ©½²½â


      
Flex
ÒýÈëÁËÔªÊý¾Ý±êÇ©µÄ¸ÅÄ´ó¶àÊýÈ˶¼Ê¹ÓùýµÄ
[Bindable]
±êÇ©±ãÊÇÆäÖеÄ
meta tag
Ö®Ò»£¬ËüÔÚ´úÂëÖеÄ×÷ÓþÍÊÇÏò±àÒëÆ÷ÌṩÈçºÎ±àÒë³ÌÐòµÄÐÅÏ¢¡£Êµ¼ÊÉÏ£¬ÕâЩ±êÇ©²¢Ã»Óб»±àÒëµ½Éú³ÉµÄ
SWF
ÎļþÖУ¬¶øÖ»ÊǸæËß±àÒëÆ÷ÈçºÎÉú³É
SWF
Îļþ¡£
adobe
¹ÙÍø
http://l ......

flexµÄCanvas¿ÉÒÔºÍHTMLµÄDIVÒ»Ñù×ö¿é×´µÄÍø¸ñ²¼¾Ö

Óõ½µÄMX±êÇ©£ºconstraintColumns¡¢ConstraintColumn¡¢constraintRows¡¢ConstraintRow
¸ø´ó¼Ò˵˵ǰÌáÇé¿ö£ºÔÚ×öMXML²¼¾Öʱ£¬ÒªÇ¶Ì׺ܶà²ã¼¶£¬ÕâÀïÃæÓкܶàÎÊÌ⣺
1¡¢Ç¶Ì×Ì«¶à²ã¼¶»áÓ°ÏìЧÂÊ£¡
2¡¢Ç¶Ì×Ì«¶à²ã¼¶£¬´úÂëµÄ¿É¶ÁÐÔ¡¢¿Éά»¤ÐԲ
3¡¢Ç¶Ì×Ì«¶à²ã¼¶ÊÇÒòΪCanvas¡¢Vbox¡¢Hbox¹¦Äܵ¥Ò»£¬²»ÄÜÂú×ãÐèÒª£¬¶ø²»ÊDZØÐ ......

flexÈ¡ÕûÔËËã

ת×Ô£ºhttp://hi.baidu.com/wosinmaiken/blog/item/ee59f7a8f72604bdca130c24.html
 /**ceil   ÏòÇ°(ÊýÖáÏòÓÒ)È¡Õû(·µ»ØֵΪNumber)**/
         trace(Math.ceil(10.4));    //11
         trace(Math ......

ÈçºÎʹÓÃFlex HSlider ÖÆ×÷½ø¶ÈÌõ

Í϶¯Ë®Æ½¹ö¶¯ÌõÀ´¸Ä±äͼƬ´óС¡£
<?xml version="1.0"?>  
<!--  
    Simple example to demonstrate the HSlider control.    
    Ë®Æ½Í϶¯Ìõ¡£  
    MyShareBook.cn ·­Òë   ......

FlexǶÌ×ÈÝÆ÷µÄÉú³É´ÎÐò

֮ǰһֱûÔÚÒ⸸ÈÝÆ÷ºÍ×ÓÈÝÆ÷¸÷×ÔµÄÉú³É´ÎÐò£¬ÖªµÀÔÚÏîÄ¿ÖÐÓöµ½Ò»ÖÖcase:³õʼ»¯½çÃæʱ¸¸ÈÝÆ÷³õʼ»¯µÄÄÚÈÝÓÉ×ÓÈÝÆ÷Ïȳõʼ»¯ÔÙ´¥·¢£¬µ«ÊǸ¸ÈÝÆ÷±ØÐëÔÚ³õʼ»¯Ê±¾ÍÒѾ­¼ÓÉÏÁ˶Ô×ÓÈÝÆ÷µÄ¼à¿Ø¡£Õâ¾ÍÔì³ÉÒ»¶Ôì¶Ü£¬¼ÈÏëÏÈÉú³É×ÓÈÝÆ÷ÓÖÏëÏÈÉú³É¸¸ÈÝÆ÷¡£
ÏÈ×Ô¼ºÐ´¶Î´úÂë²âÊÔÒ»ÏÂÉú³É˳Ðò£¬¸¸ÈÝÆ÷
<?xml version="1.0" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ