Flex 4 SDK ÐÂÌØÐԽ̳ÌϵÁÐ – MXML 2009
ÕâÊÇFlex 4 SDK ÐÂÌØÐԽ̳ÌϵÁеĵÚ3Õ¡£±¾Õ½éÉÜÁËFlex 4ÒýÈëµÄMXML 2009ÃüÃû¿Õ¼äÒÔ¼°Flex×é¼þÓëÃüÃû¿Õ¼äÓ³ÉäµÄ»úÖÆ¡£
Flex 3µÄÃüÃû¿Õ¼ä
Flex 3¶¨ÒåÁËΨһµÄMXMLÃüÃû¿Õ¼ä£¬¼´MXML 2006¡£ÔÚFlex Builder 3ÖÐÉùÃ÷MXML 2006ÃüÃû¿Õ¼äµÄĬÈϸñʽÈçÏ£º
xmlns:mx="http://www.adobe.com/2006/mxml"
ÖµµÃ×¢ÒâµÄÊÇ£¬ºÜ¶à³õѧÕßÎóÈÏΪ”mx”ΪÃüÃû¿Õ¼ä¡£ÊÂʵÉÏ£¬ÉÏÃæµÄÓï¾äÖДmx”Ö»ÊÇÃüÃû¿Õ¼äµÄǰ׺£¬»òÕß˵ÊÇÒ»¸ö“±ðÃû”¡£Äã¿ÉÒÔ½«mxÐÞ¸ÄΪÈÎÒâÖµ£¬ÉõÖÁ¿ÉÒÔʹÓÓ¿Õǰ׺”£¬ÀýÈ磺
<Application xmlns="http://www.adobe.com/2006/mxml">
<Button />
</Application>
MXML 2009
Èç¹ûÄãʹÓÃFlash Builder 4´´½¨Ò»¸öFlex 4Ó¦ÓóÌÐò£¬»á·¢ÏÖĬÈÏÇé¿öÏÂFBΪÄã´´½¨ÁË3¸öÃüÃû¿Õ¼ä£¬ÈçÏÂËùʾ£º
<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/halo"
....
</s:Application>
Çé¿öËƺõ¸´ÔÓÁË£¿ÎªÁ˸üºÃµÄÀí½âFlex 4ÖеÄÃüÃû¿Õ¼ä£¬Ê×ÏÈÐèÒª½éÉÜÁ½¸öÃû´Ê£º“ÓïÑÔ¼¶ÃüÃû¿Õ¼ä”ºÍ“×é¼þ¼¶ÃüÃû¿Õ¼ä”¡£
ÓïÑÔ¼¶ÃüÃû¿Õ¼ä
ÓïÑÔ¼¶ÃüÃû¿Õ¼äÉùÃ÷ÁËÒ»¸öMXMLÎļþËùʹÓõÄÓïÑÔ°æ±¾£¬ÉÏÃæʵÀýÖУ¬
http://ns.adobe.com/mxml/2009¼´ÎªÓïÑÔ¼¶ÃüÃû¿Õ¼ä£¬±íʾµ±Ç°MXMLÎļþʹÓõÄÓïÑ԰汾ΪMXML 2009¡£ÓïÑÔ¼¶ÃüÃû¿Õ¼ä¾ßÓÐÈçÏÂÌص㣺
ÿ¸öMXMLÎļþ±ØÐëÉùÃ÷ÇÒÖ»ÄÜÉùÃ÷Ò»¸öÓïÑÔ¼¶ÃüÃû¿Õ¼ä£¬Flex±àÒëÆ÷¸ù¾ÝÕâ¸öÃüÃû¿Õ¼äÀ´È·¶¨ÒÔºÎÖÖ·½Ê½±àÒë¸ÃMXML¡£
ÔÚÒ»¸öÓ¦ÓóÌÐòÖеĶà¸öMXMLÎļþ¿ÉÒÔʹÓò»Í¬µÄÃüÃû¿Õ¼ä£¨MXML 2006»òMXML 2009£©¡£
³ýÁËÉùÃ÷ÓïÑÔ°æ±¾Í⣬ÓïÑÔ¼¶ÃüÃû¿Õ¼ä»¹¶¨ÒåÁËÒ»×é±êÇ©£¬Èç<Script>£¬<Style>µÈµÈ¡£ÕâЩ±êÇ©¿ÉÒÔÀí½âΪMXMLµÄ“¹Ø¼ü×Ö”¡£ÔÚMXML 2009Öб£ÁôÁËMXML 2006µÄÈ«²¿ÓïÑÔ¼¶±êÇ©£¬²¢Ôö¼ÓÁËһЩеıêÇ©£¬ÒÔÏÂÊÇÍêÕûµÄÁÐ±í£º(´ÖÌåΪFlex 4ÐÂÔö±êÇ©£¬ÎÒÃǽ«ÔÚÏÂÒ»ÕÂÖоßÌå½éÉÜ)
<fx:Binding>
<fx:Component>
<fx:Metadata>
<fx:Model>
<fx:Script>
<fx:Style>
<fx:Declarations>
<fx:Library>
<fx:Definition>
<fx:Private>
<fx:Reparent>
<fx:DesignLayer>
ÁíÒ»·½Ã棬ÓïÑÔ¼¶ÃüÃû¿Õ¼ä»¹¶¨ÒåÁËActi
Ïà¹ØÎĵµ£º
ʹÓÃflex tree ºÍlistʵÏÖÈçÏÂÑ¡ÔñÓû§µÄЧ¹û
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
showCloseButton="true" creationComplete ......
ÓùýFLEXÖÐStringÀàÐ͵ÄÅóÓÑ¿ÉÄÜÖªµÀ£¬replaceÕâ¸ö·½·¨²¢²»¹ýÌæ»»ËùÓÐÄÚÈÝ¡£ÄÇôÎÒÃÇÐèÒªÌæ»»ËùÓÐÄÚÈÝÔõô°ì£¿Ö»ÓÐ×Ô¼º¶¯ÊÖ£¬·áÒÂ×ãʳ¿©£¬ºÇºÇ¡£ÑÔ¹éÕýר£¬ÓÐÁ½ÖÖ·½·¨£¬Ò»ÖÖÊÇÀûÓÃArrayµÄ·½Ê½£¬ÁíÒ»ÖÖÊÇÀûÓÃÕýÔòÈ¥Ìæ»»¡£
/**
* StringReplaceAll
* @param source:String Ô´Êý¾Ý
* @param find:String Ìæ»»¶ÔÏó ......
http://www.cnblogs.com/beniao/archive/2009/01/12/1373921.html
ÎÞ·¨ÔËÐÐÈçÉϲ©¿ÍµÄ´úÂ룬ÓÚÊÇ×Ô¼ºµ½ÍøÉÏÕÒ×ÊÁÏ
·¢ÏÖÔÚhttp://hi.baidu.com/littlelaa/blog/item/bdea73f2382289a6a50f5241.html
¹Ø¼üÊÇC#ÖÐREADLINEÕâ¸ö·½·¨ÎÞ·¨ÔÚÈýÃëÄÚ¶ÁÈ¡£¬ÒòΪ½áβûÓÐ/N /RµÈ×Ö·û¡£
C#¶Ë
using System;
using System.Net.Socke ......
±¾ÎĹ²Á½¸öÎļþ£ºtranslate.mxml ºÍ mapmarking.xml
1¡¢translate.mxml
<?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="librar ......
¸ÅÒª
µ±ÎÒÃǼÓÔØÍⲿswfʱ£¬±ØÐëÒªÁ˽âÓ¦ÓóÌÐòÓò(Application Domain)¡£´ÓAdobe¹Ù·½ÎļþÖУ¬ÎÒÃÇ¿ÉÒÔµÃÖªÓ¦ÓóÌÐòÓòÄܹ»°Ñ´¦ÓÚͬһ¸ö°²È«Óò(Security Domain)ÖеÄÀà·ÖÀ뿪£¬ÕâÑù¾Í¿ÉÒÔÈÃÒ»¸öÀàµÄ¶à¸ö¶¨Òå¹²´æ£¬»òÊÇÈöà¸ö×ÓÓ¦ÓÃÀ´¹²Ïí¸¸Ó¦ÓõÄÀඨÒå¡£¼òµ¥µãÀí½â¾ÍÊÇÓ¦ÓóÌÐòÓòΪÀඨÒåÌṩÁË·ÖÇø¹¦ÄÜ¡£
Ó¦ÓóÌÐòÓò
Ò»¸ ......