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

flex¹ú¼Ê»¯

£¨ÉÏ£©
µ±ÒªÊ¹Óò»Í¬ÓïÑԵİ汾µÄʱºò£¬±ãÐèÒªÁËÓ¦ÓóÌÐòµÄ¹ú¼Ê»¯¡£
¹ú¼Ê»¯²»µ¥Ö¸×Ö·û´®µÄ¹ú¼Ê»¯£¬»¹ÓÐǶÈëʽ×ÊÔ´£¨Í¼Æ¬£©µÄ¹ú¼Ê»¯£¬½Å±¾ÀඨÒåµÄÒýÓá£ÔÚ³ÌÐòµ±ÖÐʹÓùú¼Ê»¯µÄÒªµã°üÀ¨Á˱àд×ÊÔ´Îļþ£¬²ÎÊýµÄÉèÖ㬱¾µØ»¯Ïà¹ØµÄflex¿ò¼ÜÄÚÈÝ¡£
×ÊÔ´ÎļþÊÇÓúó׺ÃûΪ“.properties”½áÊøµÄÎļþ£¬ÒÔÒ»ÖÖ¼üÖµµÄÐÎʽ´æÔÚ£¬±ÈÈçlanguage=Chinese¡£ÍƼöÔÚÏîÄ¿ÏÂÃ潨Îļþ¼Ð£¬Ãû×ÖΪlocale£¬ÔÙ½¨ÏàÓ¦ÓïÑÔÃû³ÆµÄÎļþ¼ÐÀ´´æ·Å×ÊÔ´Îļþ£¬ÕâÑùµÄºÃ´¦ÊÇʹµÃϵͳÈÝÒ×ÕÒµ½×ÊÔ´Îļþ¡£»¹ÓеãС¼¼ÇÉ£º½«Ò»Ð©¾ßÓй«¹²ÊôÐÔµÄ×ÊÔ´Îļþ³éÈ¡³öÀ´£¬×ö³É¹«¹²µÄ×ÊÔ´Îļþ£¬´ïµ½¸´ÓõÄÄ¿µÄ£»¿ÉÒÔ°´Ä£¿éÀ´¹ÜÀí×ÊÔ´Îļþ¡£
ÔÚ³ÌÐòµ±ÖУ¬Ê¹ÓÃָʾ·û@Resouce£¬±àÒëÆ÷±ã¿ÉÒÔÌæ»»Êʵ±µÄÊôÐÔÖµ£»Ê¹ÓÃÔªÊý¾Ý±êÇ©ResouceBundle¿ÉÒÔÈñàÒëÆ÷Á˽âʹÓÃÄÇЩ×ÊÔ´Îļþ¡£
±àÒë³ÌÐò֮ǰ£¬±ØÐë±¾µØ»¯Ïà¹ØµÄflex¿ò¼ÜÄÚÈÝ¡£·½·¨ÊÇתµ½binÎļþ¼ÐÏÂÃ棬ִÐÐCopylocaleÃüÁ±ÈÈçCopylocale.exe en_US zh_CN¡£
×îºó±ãÊDzÎÊýµÄÉèÖãº-locale zh_CN -source-path=../locale/zh_CN¡£µÚÒ»¸ö²ÎÊýÊDZ¾µØ»¯µÄÓïÑÔ£¬µÚ¶þ¸öÊÇ×ÊÔ´Îļþ·¾¶£¬Â·¾¶¶¼ÊÇÏà¶ÔÔ´Îļþ¼Ðsrc¶øÑԵġ£
¶àÖÖÓïÑÔµÄÖ§³Ö£º£º-locale =zh_CN£¬en_US£¬Í¬Ê±ÔÚsource pathÏÂÃæн¨Îļþ¼Ðlocale,±à¼­²ÎÊýlocale/{locale} 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Metadata>
[ResourceBundle("localizedContent")]
</mx:Metadata>
<mx:Button label="@Resource(key='language',bundle='localizedContent')" horizontalCenter="0" verticalCenter="0"/>
</mx:Application>

/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
£¨ÖУ©
ÎÒÃÇflex³ÌÐòÔ±ÓÖ¸ÃÈçºÎÓ¦¶ÔÔËÐÐʱ¸Ä±äÓïÑÔÄØ£¿Ê¹ÓÃResouceManagerÕâ¸öÀà¿ÉÒÔ°ïµ½ÎÒÃÇ¡£ËüʹµÃÎÒÃÇ¿ÉÒÔÔÚÔËÐÐʱ»ñÈ¡²»Í¬µÄ×ÊÔ´Îļþ£¬´ïµ½ÔËÐÐʱ¸Ä±äÓïÑÔ±¾µØ»¯µÄÄ¿µÄ¡£¹ØÓÚÕâ¸öÀàµÄʹÓý«Ê¹ÓÃÉÏÃæµÄ³ÌÐòÉÔ×÷¸Ä¶¯£¬¼ÓÒÔ˵Ã÷¡£ÓÉÓÚÎÒ²»ÖªµÀÔõô½«±à¼­Æ÷¸Ä³ÉÖ§³ÖÖÐÎĵıàÂ룬ËùÒÔÖÐÎÄ×ÊÔ´Îļþµ±ÖÐʹÓÃÁËÓ¢Óï¡£
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Metadata>
[Resour


Ïà¹ØÎĵµ£º

flexʱÐòͼʾÀý

<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>

import mx.collections.ArrayCollection;
......

flex+java

1.ÎÒµÄÅäÖû·¾³Îª:
  flexBuilder3,LCDS251,MyEclipse 5.5.1
GA+
2.°²×°lcds2.5.1£¬´ò¿ªÄ¿Â¼£¬ÀïÃæÓÐÒ»¸öflex
.war
3.¹Ø±Õtomcat(Èç¹û´ò¿ªÔڵĻ°)
4.½«flex
.war¿½ÈëtomcatµÄwebappsĿ¼
5.ÖØÆôtomcat,¿ÉÒÔ¿´µ½webappsÀï¶àÁËÒ»¸öĿ¼flex
£¬Õâ±ãÊÇÎÒÃÇÒªµÄ¶«Î÷
6.¿ÉÒÔ½«flex
.warɾ³ý
7.½«flex
Îļ ......

flexÖУ¬´ø×îС»¯£¬×î´ó»¯£¬¹Ø±ÕµÄPanel

package
{
import mx.containers.Panel;
import mx.controls.Button;
import flash.events.Event;
import mx.events.FlexEvent;
import flash.events.MouseEvent;
import mx.controls.Alert;
/**
* This class is used to create a Custom Panel
* with Maximum, Minimum, close
* and also drag p ......

FlexÓë·þÎñÆ÷½»»¥Ö®Ò»£¨URLRequest +URLLoaderÓ¦Óã©

   ÓÉÓÚFlexÖ»ÊÇÒ»ÖÖ¿Í»§¶Ë¼¼ÊõÆä±¾Éí²¢²»ÄÜÖ±½ÓͬÊý¾Ý¿â½»»¥£¬ÔÚʵ¼ÊµÄÓ¦Óÿª·¢¹ý³ÌÖÐFlexÌṩÁËÈçURLRequest¡¢HTTPService¡¢RemoteObject¡¢WebServiceµÈÀàÒÔʵÏÖͬ·þÎñÆ÷µÄͨѶºÍÊý¾Ý½»»¥£¬ÏÂÃæ×öһЩ½éÉܺÍʵÀý½âÎö:
   1¡¢Ê¹ÓÃURLRequestÏò·þÎñÆ÷·¢ËÍÇëÇó£¬Ê¹ÓÃURLLoader½ÓÊÕ·þÎñÆ÷·µ»ØµÄÊý¾Ý:
& ......

FlexÓÎϷƪ——ÓÎÏ·¿ª·¢¸ÅÊö

¸ÅÊö
ÓÎÏ·¿ª·¢ÊǸöºÜ´óµÄ¿ÎÌ⣬¸ÃϵÁÐÖ»¼òµ¥½²ÊöÈçºÎʹÓÃFlex¼¼Êõƽ̨´î½¨Ò»¸ö¼òµ¥µÄÓÎÏ·¿ò¼Ü£¬ÈçºÎÉè¼ÆÄÜÓÅ»¯ÓÎÏ·µÄCPUÕ¼Óã¬ÄÚ´æµÈ£¬×îºóÖÆ×÷Ò»¸öÍêÕûµÄFlexСÓÎÏ·(ÌṩԴÂë)¡£
ÓÎÏ·µÄ³ÊÏÖ
·½Ê½1£ºÔª¼þ·½Ê½
ÕâÖÖ·½Ê½±È½ÏÊʺÏСÐ͵ÄÓÎÏ·£¬ÓÎÏ·Ôª¼þÊýÁ¿ÉÙµÄÇé¿ö¡£µ±ÓÎÏ·Ôª¼þÊýÁ¿´óʱ¾Í²»ºÏÊÊÁË£ºÔª¼þ»á¶ÔÓÎϷͼÐΡ¢ÒôÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ