ÐèÇóÈçÏ£º
µ±AIRÆô¶¯ºó£¬¼àÌýÈ«¾Ö¼üÅÌʼþ£¬¼´this.addEventListener( KeyboardEvent.KEY_DOWN, keydownHandler );
ÔËÐкóЧ¹û£º
µ±AIRÔËÐкó£¬ËäÈ»ÕýÈ·¼àÌýÁËKeyboardEvent.KEY_DOWN event£¬µ«ÊDZØÐëÒªÊó±êµã»÷Ò»ÏÂAIR²Å¿ÉÒÔ»ñÈ¡keydownHandler¡£
ÔÒò£º
1¡¢keydownHandlerµÄ»ñÈ¡ÐèÒª¼àÌýµÄ¶ÔÏó»ñµÃ½¹µã£¬µ±mouse click AIRºó£¬ÔòÏ൱ÓÚ»ñÈ¡½¹µã¡£
2¡¢Ö»Óе±¼àÌýµÄ¶ÔÏó»ñÈ¡½¹µãºó£¬²ÅÄܳö½ÓÊÕµ½KeyboardEvent.KEY_DOWN event¡£
Òò´ËÎÊÌâ¸ù½á£º
ÈçºÎÈüàÌý¶ÔÏó×Ô¶¯»ñÈ¡½¹µã¡£
½â¾ö·½°¸£º£¨²½Ö裩
1¡¢
this.dispatchEvent( new MouseEvent( MouseEvent.CLICK ));
ͨ¹ýÒÔÉϵķ½Ê½¼´¿ÉÈóÌÐò“×Ô¶¯µã»÷”dispatchEventµÄ¶ÔÏó¡£
2¡¢
»ñÈ¡½¹µã·½Ê½£º
this.stage.focus = this;
Ƭ¶Î´úÂëÈçÏ£º
<s:WindowedApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
creationComplete="createCompleteHandler (event)">
private function createCompleteHandler( event : FlexEvent ) : void {
//¼àÌýo ......
Adobe Flex¿ª·¢Ó봫ͳµÄWeb¿ª·¢Óкܶ಻֮ͬ´¦¡£ÕýÈ·µÄÀí½âºÍÀûÓÃÕâЩ²»Í¬Ö®´¦£¬¿ÉÒÔ°ïÖúÎÒÃÇ´´½¨¸ü·á¸»µÄÓû§ÌåÑ飬Ҳ¿ÉÒÔ·´¹ýÀ´Ôö¼ÓÍøÕ¾µÄ¿ÉÓÃÐÔÒÔ¼°ä¯ÀÀºÍ¸üÐÂËٶȡ£Flex»¹ÌṩÁË´óÁ¿µÄ×é¼þºÍ¼¼Êõ¿âÀ´ÈÃWeb¿ª·¢¸ü¼ÓÇáËÉ——ËüÌṩµÄÇ¿´ó¹¤¾ßÒªÔ¶Ô¶³¬¹ý´«Í³Web 2.0ÖеÄÒì²½JavaScriptºÍXML£¨Ajax£©Ó¦ÓᣴËÍ⣬Adobe¹«Ë¾×î½ü·¢²¼µÄAdobe Flash Builder 4 beta£¨ÒÔÇ°½ÐAdobe Flex Builder£©ÖÐÌṩÁËÐí¶àеĺ͸ĽøµÄ¹¤¾ß£¬ËûÃÇ¿ÉÒÔÓÃÀ´¿ª·¢´ó¹æÄ£µÄFlexÓ¦ÓóÌÐò¡£Flash Builder 4×ÅÖØÓÚÌá¸ß¿ª·¢ÈËÔ±µÄÉú²úÁ¦ÒÔ¼°Éè¼ÆÈËÔ±ºÍ¿ª·¢ÈËÔ±µÄ¹¤×÷Á÷¡£
Ïà¹Ø³§ÉÌÄÚÈÝ
»ùÓÚFlex´´½¨ÄãµÄµÚÒ»¸öFacebook AIRÓ¦ÓÃ
Àí½âAdobe Flash BuilderÔÚ´´½¨Force.com³ÌÐòʱµÄÊý¾Ý¹ÜÀí
12ÔÂ15ÈÕË÷Äá°®Á¢ÐÅ¿ª·¢Õß¼ÎÄ껪2009±¨Ãû£¨ÍŹºÓŻݣ©
°Ù¶ÈÈ«ÃæÆô¶¯ÕÐƸ£ºÔËά/ËÑË÷/²úÆ·/²âÊÔ/ϵͳµÈ
ÔÚFlash Builder 4 BetaÖÐÌáÉý¿ª·¢ÕßµÄÉú²úÁ¦
Flex¿ª·¢ÖеĹؼüÒªËØÖ®Ò»ÊÇʹÓÃÄ£¿éºÍÔËÐÐʱ¹²Ïí¿â£¨Runtime Shared Libraries£¬RSLs£©£¬ÕâЩģ¿éºÍ¿â¿ÉÒÔ·½±ãϵͳ²»Í¬²¿·ÖµÄ²¢Ðпª·¢ÒÔ¼°¿Í»§¶ËÉϸßЧµÄÄÚ´æ¹ÜÀíµÈµÈ¡£ÁíÍâÒ»¸ö¹Ø¼üÒªËØÊÇʹÓÃSprint BlazeDS¼¯³É£¬Ëü´ó´ó¼ò»¯Á˺ǫ́²»Í¬¼¼Êõ·þÎ ......
×î½ü¼¸Ìì,Ò»Ö±ÔÚÑо¿flex,˵¾äʵÔÚµÄ,ÆäÖеĿàÄÕ²»ÊÇÒ»¾ä»°Á½¾ä»°ÄÜ˵Çå³þµÄ.ûÓнӴ¥¹ý°¡!²»¹ýÏÖÔÚ×ÜËãÊÇ°ÑÊý¾Ý¿âÁ¬ÉÏÁË,×ö³öÁË×Ô¼ºÏëÒªµÄ¶«Î÷.·Ï»°ÉÙ˵,ÏÖÔÚÄØ,ÎҾͰÑÎÒ×öµÄ´úÂëÌù³öÀ´,¸ø´ó¼Ò¿´¿´,¶àÌᱦ¹óÒâ¼û.
ÎÒÓõÄÊÇjdbcµÄÁ¬½Ó·½Ê½(hibernateµÄÁ¬½Ó·½Ê½ÎÒ¿´ÍøÉÏÓÐ,ËùÒԾͲ»Ìù³öÀ´ÁË)
1.flex´úÂë
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="begin()">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import flash.events.MouseEvent;
import mx.controls.*;
public function begin():void{
getitem.Toxml();
}
[Bindable]
public var selectedNode:XML;
[Bindable]
public var XMLData:XMLList;
private function resultHandler(event:ResultEvent):void{
  ......
×î½ü¼¸Ìì,Ò»Ö±ÔÚÑо¿flex,˵¾äʵÔÚµÄ,ÆäÖеĿàÄÕ²»ÊÇÒ»¾ä»°Á½¾ä»°ÄÜ˵Çå³þµÄ.ûÓнӴ¥¹ý°¡!²»¹ýÏÖÔÚ×ÜËãÊÇ°ÑÊý¾Ý¿âÁ¬ÉÏÁË,×ö³öÁË×Ô¼ºÏëÒªµÄ¶«Î÷.·Ï»°ÉÙ˵,ÏÖÔÚÄØ,ÎҾͰÑÎÒ×öµÄ´úÂëÌù³öÀ´,¸ø´ó¼Ò¿´¿´,¶àÌᱦ¹óÒâ¼û.
ÎÒÓõÄÊÇjdbcµÄÁ¬½Ó·½Ê½(hibernateµÄÁ¬½Ó·½Ê½ÎÒ¿´ÍøÉÏÓÐ,ËùÒԾͲ»Ìù³öÀ´ÁË)
1.flex´úÂë
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="begin()">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import flash.events.MouseEvent;
import mx.controls.*;
public function begin():void{
getitem.Toxml();
}
[Bindable]
public var selectedNode:XML;
[Bindable]
public var XMLData:XMLList;
private function resultHandler(event:ResultEvent):void{
  ......
ÔÚ¹Ù·½ÍøÕ¾adobeÉÏ¿ÉÒÔÏÂÔص½±àдFlex³ÌÐòµÄ»ù±¾¹¤¾ß,Ê×ÏÈÎÒÃÇ»¹ÊÇÔËÓÃtextµÄ·½Ê½À´¿ª·¢ÎÒÃǵĵÚÒ»¸ö³ÌÐò£¬²¢ÇÒ½¨ÒéÔËÓÃAnt¹¤¾ßÀ´²¿ÊðÔËÐÐÎÒÃǵijÌÐò¡£¾ßÌåÇé¿öÈçÏ£º
ÉèÖû·¾³±äÁ¿path=D:\FreeFlex\sdks\3.2.0\bin
ÎļþÃû³Æ£ºmxmlc HelloWorld.mxml
mxmlc -keep-generated-actionscript HelloWorld.mxml
ÉÏÊöÖ±½ÓÓÃÊÖ¶¯µÄÈ¥²¿Êð£¬Ö»ÓÐÒ»¸öÎļþµÄʱºò£¬»¹¿ÉÒÔ¡£µ«Èç¹ûÄãµÄ¹¤³ÌÓÐÉÏ°Ù¸öÄØ£¿»áºÜÂé·³£¬ÎÒÃÇ»¹ÊÇÓÃAntÕâ¸ö¹¤¾ß°É¡£
¼´Ê¹ÊÇÒ»¸öºÜ¼òµ¥µÄ¹¤³Ì£¬±ÈÈçHelloWorld.mxmlÎļþ£¬Ò²Ó¦¸ÃÑϸñ×ñÕÕÈçϵIJ½Ö裺
1.ÓÃmxmlc±àÒëÆ÷°ÑHelloWorld.mxmlÎļþ±àÒëΪ.swfÎļþ
2.´´½¨Ò»¸öHTMLÎļþ°ü
3.´´½¨Ò»¸öHelloWorld½«Òª·¢²¼µ½WEB·þÎñÆ÷ÉϵÄ·¾¶
4.È»ºó°Ñ.swfÎļþ¿½±´µ½µÚ3²½Ëù´´½¨µÄ·¾¶
ÓÃantÓïÑԹ淶°ÑÉÏÊöµÄ²½ÖèʵʩÈçÏ£º
<project name="HelloWorld" default="compile">
<property name="flex.mxmlc" location="D:\FreeFlex\sdks\3.2.0\bin\mxmlc.exe"/>
<property name="dest.dir" value="bin"/>
<target name="init">
<delete ......
Frame Rate¶ÔFlex³ÌÐòÕ¼ÓÃϵͳ×ÊÔ´µÄ·ÖÎö£¬ÎÒÃÇͨ¹ýä¯ÀÀÆ÷²»Í¬¡¢Frame Rate²»Í¬µÄÇé¿öÏ£¬ÏµÍ³×ÊÔ´CPUµÄÀûÓÃÂʱȽϡ£
Frame RateµÄÉèÖãº
ĬÈÏFrame´«ÊäËÙÂÊÊÇ24£¬ÎÒÃÇ¿ÉÒÔÕâÑùÀ´ÉèÖã¬mxmlc -defaule-frame-rate 50 HelloWorld.mxml,ͨ¹ýÕâÒ»Óï¾äµÄÉèÖã¬
¿ÉÒÔʹFrame´«ÊäËÙÂÊΪ50.
ÓÐÕâÑùÒ»¸öÊÔÑ飬Ïê¼ûTestFrameRate.mxml£¬ÄÇôÓÐÕâÑùÒ»¸öÊý¾Ý£¬¿É¹©²Î¿¼£º
IEä¯ÀÀÆ÷µÄ²âÊÔÊý¾ÝÈçÏ£º
³ÌÐòÉèÖÃFrame Rate£º10 24 50 100
ʵ¼ÊÔËÐÐFrame Rate£º9-10 18-26 35-52 50-100
CPUÀûÓÃÂÊ£º15-17% 15-20% 18-20%   ......
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Zoom effect. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style />
<mx:Script>
<![CDATA[
import flash.events.MouseEvent;
// import mx.skins.halo.ComboBoxArrowSkin;
//import mx.skins.halo.PanelSkin;
private function button_clickZoomIn(evt:MouseEvent):void{
zoomAll.zoomWidthfrom=zoomAll.zoomWidthTo;
zoomAl ......