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

Flex setter ÏÝÚå

ÕâÑùµÄÏÝÚ壬˭Äܲ»ÖÐÕУ¿
FlexµÄsetter´ó¼Ò¶¼Óùý°É£¬¿´Àý×Ó£º
Ö÷³ÌÐò£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[

function init():void{
var c:Card = new Card;
c.count=0;
}
]]>
</mx:Script>
</mx:Application>
Card.as:
package
{
import flash.events.EventDispatcher;
[Bindable]
public class Card extends EventDispatcher
{
private var _count:int=0;
public function get count():int{
return _count;
}
public function set count(n:int):void{
trace("Card count setter called");
this._count=n;
}
}
}
¹»¼òµ¥°É£¬ÏÝÚåÒѾ­³öÏÖ¡£
setter²»Äܱ»µ÷Óã¡
Èç¹û°Ñ[Bindable]È¥µô£¬¾Í¿ÉÒÔÁË¡£
ΪʲôÄØ£¿
´¿BUG£¡
´ó¸ÅÊÇÒòΪ[Bindable]ÊôÐÔµÄsetterÊÇÒÀ¾Ý PropertyChangeEvent Çý¶¯µÄ£¬ÓÉÓÚ´ËÀýµÄĬÈÏÖµÊÇ0£¬¸³Öµ²Ù×÷Ò²ÊÇ0£¬¾Í¸É´à²»µ÷ÓÃÁË¡£
º¦ÁËÎÒÒ»¸öСʱ°¡£¡


Ïà¹ØÎĵµ£º

ÈçºÎʹÓÃFlex ProgressBar

<?xml version="1.0"?>  
<!-- Simple example to demonstrate the ProgressBar control. -->  
<!--  
    ÈçºÎʹÓÃFlex ProgressBar  
    MyShareBook.cn ·­Òë  
-->  
<mx:Applic ......

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

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

Flex LogÄ£¿éÈëÃż°À©Õ¹

£¨Ò»£©ÈëÃÅ
Flex¼¯³ÉÒ»¸öLog¿ò¼Ü£¬¿ÉÒÔÍê³ÉºÜ¶àÓÃtrace()×ödebugʱÍê³É²»Á˵ŦÄÜ
Êä³ölogʱ¿ÉÒÔʵÏֵַȼ¶£¨¹²5+1¼¶£©£¬ÓùýÂËÆ÷Ö¸¶¨Êä³öµÄÀ࣬ÒÔ¼°Êä³ö·½Ê½£¨Ä¬ÈÏΪtrace£©
ÐèÒªÓõ½µÄÀà
¸ÃÀàλÓÚmx.logging°üÖУ¬
¹²ÐèÒªÈý¸öÀàºÍÒ»¸ö½Ó¿Ú
mx.logging.Log – Ö÷À࣬Óм¸¸ö¾²Ì¬·½·¨£¬Ìí¼Ó/ÒƳýTraceTargetºÍ»ñÈ ......

ÐÞ¸Äflex chartÖÐLegendµÄ×ÖÌåÑùʽ

×î½üÔÚŪFLEXµÄͼ±í, ·¢ÏÖCHART ÖеÄLegend µÄ×ÖÌåͨ¹ýÖ±½ÓÉèÖÃStyle ²¢Ã»Óа취¸Ä±ä×ÖÌå´óС.
google ÁËÏÂ, ·¢ÏÖÁËÕâ¸ö·½·¨: ͨ¹ýÅÉÉúLegendItemÀ࣬²¢ÉèÖÃLegendµÄItemClassÊôÐÔÀ´ÊµÏÖ¡£
LegendItem ÊÇLengend µÄÔªËØ, ¾ÍÊÇÀïÃæÒ»¸öÒ»¸öµÄͼʾ. ͨ¹ýÅÉÉúÕâ¸öÀà, ¾Í¿ÉÒÔÐÞ¸ÄÆäÏàÓ¦µÄÑùʽ.
 
ÅÉÉúLegendItem Àà, ² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ