Ҳ̸Flex×é¼þµÄÉúÃüÖÜÆÚ
Òý×Ó£º×÷ÓÚÒ»ÃûÓÉASP.NET¿ª·¢×ªµ½Flex¿ª·¢µÄ³ÌÐòÔ±£¬×ʼÊÊÓ¦µÄ¹ý³ÌÊÇÏ൱ÓäÔúÍÇáËɵġ£ÓÉÓÚÎÒÔçÔÚASP.NETÖÐÏ°¹ßÁ˱êǩʽµÄ²¼¾ÖºÍ¶ÔÓ¦µÄcode behindµÄ±à³Ì·½Ê½£¬ÔÚFlexÖеÄMXMLÓïÑÔÖ»²»¹ýÊÇMXMLÔªËغÍAS3Óï·¨µÄÖØÐÂÊìϤ¡£µ«ÊǾÍÏñASP.NETÖеıê¼ÇÓïÑÔ£¬MXMLÖ»²»¹ýÊÇAS3µÄÒ»ÖÖ·â×°£¬¹é¸ùµ½µ×Ëü»á±»×ª»¯³ÉAS3ÔÙ½øÐбàÒ룬ËùÒÔ£¬Ö»ÓÐÁ˽âÕâÃÅÓïÑԵĵײãÔËÐлúÖÆ£¬²ÅÓпÉÄÜÕæÕý³ÉΪһÃûÓÅÐãµÄFlex¿ª·¢ÈËÔ±¡£ÓÉÓÚÓйýASP.NETµÄ¿ª·¢¾Ñ飬ÎÒÇå³þµØÈÏʶµ½ÏñÕâÖÖÒÔXML±êǩΪ»ù´¡µÄ×é¼þʽµÄ¿ª·¢·½Ê½£¬Ö»ÓÐŪÇå³þ×é¼þµÄÉúÃüÖÜÆÚ£¬²ÅÄܽøÐи߼¶¿ª·¢£¬²ÅÄÜÔÚÓöµ½¸´ÔÓÇé¿öʱÓÐ˼·ȥ½â¾ö£¬¾ÍÏñ×öASP.NETµÄ¿ª·¢ÒªÊìϤҳÃæµÄÉúÃüÖÜÆÚÒ»Ñù¡£
Ϊ´Ë£¬ÎÒ¸Õ½Ó´¥Flex²»¾Ã¾Í¿ªÊ¼Ñо¿Flex×é¼þµÄÉúÃüÖÜÆÚ¡£ÐÒÔ˵ÄÊÇ£¬Flex BuilderÄÚǶµÄ°ïÖúÎļþÊ®·ÖϬÀû£¬ºÜÈÝÒ׾Ͳ鵽ÁËFlex×é¼þµÄµÄÉúÃüÖÜÆÚ²¿·Ö¡£²»ÐÒµÄÊÇ×÷ΪûÓÐFlash¿ª·¢¾ÑéµÄ³ÌÐòÔ±£¬¶ÔÀïÃæµÄijЩÃû´Ê²¢²»ÊǺÜÃ÷°×¡£¾ÍÕâÑùÔÚûÓÐFlash»ù´¡µÄÇé¿öÏ£¬ÎÒÔø¾¿´¹ýºÜ¶à±é°ïÖúÎļþ£¬µ«¸Ð¾õÄÔ×ÓÀïÒ»Ö±²»ÊǺÜÇå³þ£¬¶ÔÕû¸öÉúÃüÖÜÆÚ²»ÄÜÐγÉÒ»¸öÍêÕûµÄÂÖÀª¡£×îºóÖÕÓÚÂËÇåÁËһЩ˼·£¬½á¹û»¹ÊÇÍ£ÔÚÁËÒ»¸öÃû´ÊÉÏ£¬½Ð×ö“Render Event”¡£ÀïÃæÁ½´ÎÌáµ½ÁËÕâ¸ö´Ê£¬¶¼ÊÇÔڹؼüµÄµØ·½¡£Ç°Ð©Ìì¸ãµ½ÁË¡¶Essential.ActionScript.3.0¡·µÄµç×Ӱ棬ÔÄÖ®Èçõ®õ¹à¶¥£¬²»À¢ÎªAS3µÄ¾µä¡£ÆäÖÐÒ»Õ¾ÍרÃŽ²ÁËFlashÔËÐÐʱµÄÆÁÄ»¸üлúÖÆ£¬ÀïÃ浱ȻҲÌáµ½ÁËFlex°ïÖúÎļþÖÐËùνµÄ“Render Event”¡£
ÏÈ¿´¿´Flex°ïÖúÎļþÊÇÔõô˵µÄ°É£¬ÕâÀ�±´ÁËÔÎÄ£¨¿ÉÒÔÏÈÂÔ¹ý£¬Ö»ÎªÌṩ²Î¿¼£©£º
You call the component’s constructor, as the following code shows:
// Create a Button control.
var b:Button = new Button()
You configure the component by setting its properties, as the following code shows:
// Configure the button control.
b.label = "Submit";
Component setter methods might call the invalidateProperties(), invalidateSize(), or invalidateDisplayList() methods.
You call the addChild() method to add the component to its parent, as the following code shows:
// Add the Button control to the Box container.
boxContainer.addChild(b);
Flex performs the following actions:
Sets the parent property for the component to reference its parent container.
Comput
Ïà¹ØÎĵµ£º
ºÜ¾ÃûȥÁ·Ï°flex ¿ªÊ¼ÓеãÉúÊ裬ÓÃÆðÀ´»¹ÊǺÜÊæ·þ¡£flex 3ºÍflex4Ö®¼ä´æÔÚһЩ²î±ð£¬ËùÒÔÔÚÑ¡ÔñµÄʱºòÐèҪСÐÄÒ»µã£¬½ñÄêÖ÷ÍÆflex 4 ËùÒÔ³õѧµÄÈË¿ÉÒÔÌø¹ýflex 3Ö±½Óѧflex4¡£ ÒòΪflex ¿ª·¢Êǽ¨Á¢ÔÚas 3»ù´¡ÉÏ£¬¹Ê´ËÑо¿Àà¿âÖ®¼ä½á¹¹ÊÇÒ»¼þºÜ²»´íµÄÊÂÇé¡£±Ï¾¹½á¹¹ÃÀÊÇѧϰ±à³ÌÒ»ÖÖÃÀѧÁ÷¡£
½ñÌìµÄ´¿´âÁ·Ï° ......
Æäʵ¶ÔÓÚÕâ¸öÌâÄ¿ÊDz»Ç¡µ±µÄ£¬ÒòΪflexÖÐÊÇûÓÐÒ³ÃæÕâ¸ö¸ÅÄîµÄ£¬Ò³ÃæÔÚflexÀïÃæÆäʵ¾ÍÊÇÒ»¸ö¸öµÄCanvas£¬vbox£¬
hboxµÈµÈÖ®ÀàµÄ¶«Î÷£¬¿´µ½µÄ²»Í¬Ò³ÃæµÄÇл»£¬¾ÍÊÇÕâЩԪËØÒ»²ã²ãµÄ¶Ñ»ý£¬»òÕßÌæ»»£¬µ«ÊÇΪÁ˺ÃÀí½â£¬»¹ÊdzÆ֮Ϊ
"Ò³ÃæÌøת"¡£ÆäʵÎÒÃÇ¿ÉÒԶԱȴ«Í³µÄC/S¿ª·¢Ä£Ê½£¬Ã»Ò³ÃæÌøת£¬Ö»Óд°ÌåºÍÔª¼þµÄÏÔʾºÍÒþ²Ø¡ ......
×¢£ºµÚÒ»ÁÐÊÇ´øCheckboxµÄTree¡£
»¹ÓÐÎÊÌâÇë½Ì¸÷λ£º
labelFieldÊÇÔªËضÔÏóµÄÊôÐÔÊÇÏÔʾ²»ÁË£¨carInfo.car_name£©£¬ºÃÏñÖ»¿ÉÏÔʾͬ¼¶µÄÊôÐÔÔõô½â¾ö£¿Ï£Íû¸÷λÄÜ°ïÖúÎÒ£¬Thanks!
<mx:AdvancedDataGrid id="adg" width="100%" height="100%" dataProvider="{instance.cars}"
&n ......
×î½üÓöµ½ÁËflex µÄ°²È«É³ÏäÎÊÌ⣬ÕÒÁ˺ܶà×ÊÁÏ·¢ÏÖ²»ÊǶ¼ÊǺÍÎÒ£¬ÎҵijÌÐòÐèÒªsocketÁ¬½Ó£¬¶ø´ó¶àÊý½²µÄ¶¼ÊÇ¿çÓòÎļþ¶ÁÈ¡µÄ¡£ÎÒÏÈ°ÑÁ½ÖÖ·½·¨¶¼×ܽá³öÀ´£º
¿çÓòÎļþ¶ÁÈ¡
·½·¨Ò»£ºÔÚÄ¿±ê·þÎñÆ÷Éϲ¼Êðcrossdomain.xmlÎļþ(ÎÒÓõĴ˷½·¨ºÜ¹ÜÓ㬷ÅÉϾÍûÎÊÌâÁË) ÐèÒªÔ¶³Ì·þÎñ¸ùĿ¼¶¨ÒåÓÐcrossdomain.xmlÎļþ£¬ÈçÏ£º
<?x ......
Flex ºÍC++ Ö®¼ä´«Êä½á¹¹ÌåÊý¾Ý
Ò»Ö±ÏëÊÔÑéÓýṹÌå´«Êý¾Ý
µ«ÊÇFlex ºÍC++ µÄÀàÐÍËùÕ¼µÄ×Ö½ÚÊýÓÐʱ²»Ò»Ñù
Èçint ÔÚC++ÖÐÕ¾2¸ö×Ö½Ú£¬¶øÔÚFlexÖÐÕ¼4¸ö×Ö½Ú¡£
ת»»±È½ÏÂé·³¡£
×îºó¾ö¶¨ÓÃXML½øÐд«Êä
È»ºóÁ½±ß¶¼¼ÓÒ»¸öXML ½âÎöºÍ·â×°Àà¡£
C++ ¶ËʹÓõÄtinyXML Àà
FlexÖ±½ÓʹÓÃ×Ô¼º´øµÄ E4X Àà
Flex´úÂëÈçÏÂ
&nb ......