Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÓëSpring¼¯³ÉµÄ»ù±¾Ô­Àí

    Spring IoCµÄÖ÷Ҫ˼ÏëÊÇʹÓÃÈÝÆ÷À´ÊµÀý»¯×é¼þ£¨²¢¸ø×é¼þ×¢ÈëËùÒÀÀµµÄ£©¡£µ«ÊÇÒ»°ãÇé¿öÏ£¬ÓÉFlex¿Í»§¶ËËùÔ¶³Ì·ÃÎʵÄ×é¼þÊÇÔÚ·þÎñÆ÷ÖÐÓÉBlazedsÀ´ÊµÀý»¯µÄ¡£Òò´ËÅäÖÃBlazeDSÀ´ÈÃSpringÈÝÆ÷¸ºÔðʵÀý»¯Spring beans¡£BlazeDSÖ§³Ö¹¤³§µÄ¸ÅÄîÀ´Ê¹µÃÕâÖÖ×Ô¶¨Òå×é¼þ¿ÉÒÔʵÀý»¯¡£¹¤³§µÄ×÷Óýö½öÊÇÏòBlazeDSÌá¹©Ò ......

Flex ʱ¼ä¸ñʽ»¯ (ת»»)

ÔÚFlexÓ¦ÓÃÖг£³£ÐèÒªÒÔÒ»¶¨µÄ¸ñʽÀ´ÏÔʾʱ¼ä£¬ÒÔÏÂÊÇÒ»ÖÖ×ö·¨¡£
Ê×ÏÈ´´½¨Ò»¸öDateFormatter ¿Ø¼þ
<mx:DateFormatter id="df" formatString="YYYY-MM-DD JJ:NN:SS"/>
formatString="YYYY-MM-DD JJ:NN:SS"Ö¸¶¨ÁËʱ¼äµÄ¸ñʽΪ2009-6-20 19:02:27£¬ÕâÀï¿ÉÒÔÉèÖóÉ×Ô¼ºÐèÒªµÄ¸ñʽ¡£
È»ºóд¸öº¯Êý
    ......

Ò»ÖÜÄÚѧ»áFlex£¨ÖÐÎÄÊÓÆµ½Ì³Ì£©ÍêÕûĿ¼

Learning Flex in a week – Day1
Flex,Flash,Flash
Player,AIR¸ÅÊö
ÁË
½âFlex Builder
Flex
Builder¹¤×÷¿Õ¼ä
ÁË
½âFlexÔ¤±àÒë×é¼þ
ÁË
½âMXML
×é
¼þµÄÊý¾Ý°ó¶¨
´¦
ÀíÓû§Ê¼þ
ÁË
½âʼþ¶ÔÏó
ʹ
ÓÃActionScriptÌí¼ÓʼþÕìÌýÆ÷
ʹ
ÓÃHttpService»ñÈ¡Êý¾Ý ......

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

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

Flex/FlashBuidlerÖÐÅúÁ¿Ìí¼ÓModule


´«Í³µÄÔÚFlex¹¤³ÌÖÐÌí¼ÓModuleµÄ·½·¨ÊÇ£ºÔÚFlashBuilderÖÐÓÒ¼ü¹¤³ÌĿ¼->Porperties->Flex Modules, È»ºó¾Í¿ÉÒÔadd/edit/removeÐèÒªµÄmoduleÁË£¬
µ«ÎÊÌâ ÊÇÎÞÂÛÌí¼Ó¶àÉÙmodule¶¼Òªµã»÷add°´Å¥Ò»¸öÒ»¸öÌí¼Ó! ÏñÎÒÃǵÄÏîĿһ¸ödemo¾ÍÓÃÁ˺ü¸Ê®¸ömodule£¬Ò»¸öÒ»¸öÌí¼Ó¿ÉÒª·³ËÀÁË
ÍøÉÏËÑ‘ÅúÁ¿Ìí¼Ómodule&rsquo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ