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

È¥µôFlexÀ¶É«Ñ¡ÖÐ״̬

 Æäʵһ°ãµÄÇé¿öÏÂÊDz»»áÓõ½ÕâÖÖÇé¿öµÄ£¬Ò»°ãÔÚ³ÌÐòÀ±ÈÈçÑ¡ÖÐÒªÌîдµÄÏîÄ¿£¬¶¼Ï²»¶ÓÐÒ»¸öÑ¡ÖеÄ״̬£¬µ«ÊÇÏÖÔÚÎÒÃÇÀ´¸ö·´ÆäµÀ¶øÐÐ,Èç¹ûÎÒ²»ÏëÒªÕâ¸ö״̬¸ÃÔõô°ìÄØ?
      ²Î¿¼ÁËЩ×ÊÁÏ,ÆäʵҲ¼òµ¥,Óкü¸ÖÖ·½·¨£¬µ«ÊÇ·¢ÏÖÁËÒ»¸ö×îÓÐÓõķ½·¨,Ê×ÏÈÎÒÃÇÔÚÎę̀ÉÏËæÒâ·Å¼¸¸öTEXTINPUT×öΪ²âÊÔ£¬Èç¹ûûÓмÓÈ¡ÏûÑ¡ÖÐ״̬µÄ´úÂëµÄ»°£¬Ö»ÒªËæ±ãµã»÷ÈκÎÒ»¸öTEXTINPUT,ËüµÄ±ß¿ò¶¼ÊÇÀ¶É«µÄ¡£ÄÇô»Øµ½´úÂë±à¼­,ÊäÈëÒÔÏ´úÂë:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
  initialize="focusCancel(event)">
<mx:Script>
        <![CDATA[
      import flash.events.FocusEvent;
      import mx.managers.FocusManager;
      private function focusCancel(event:Event):void {
             this.addEventListener(FocusEvent.FOCUS_IN, isFocusCancle);
      }
      private function  isFocusCancle(event:FocusEvent):void {
            this.focusManager.hideFocus();
      }
  ]]>
</mx:Script>
  <mx:TextInput   x="109" y="132"/>
  <mx:TextInput x="109" y="192"/>
</mx:Application>
     Ò²¾ÍÊÇ˵£¬ÔÚ³ÌÐò¿ªÊ¼³õʼ»¯µÄʱºò£¬ÏÈдһ¸öÓÃfocusCanclel,ÈÃËü¼àÌýFOCUSʼþ,È»ºóÔÙдһ¸ö¼àÌýʼþµÄFUNCTION:isFocusCancle,Ö±½ÓÓÃfocusManager°ÑÑ¡ÖÐ״̬¸øÒþ²ØÆðÀ´.µ±È»,»¹ÄܼÓÒ»¶Î¼àÌýʼþ£¬ÔÚʲôÇé¿öÏ£¬Ñ¡ÖÐ״̬ÓÖ»Ö¸´.¿ÉÒÔÓÃfocusManager.showFocus()Õâ¸öÃüÁî.
<mx:textInput borderStyle="solid" focusThickness="0" />
Ò²¿ÉÒԴﵽͬÑùЧ¹û¡£


Ïà¹ØÎĵµ£º

Flex Java Object¶ÔÓ¦¹Øϵ

Flex Java Object¶ÔÓ¦¹Øϵ
Ä¿Ç°LCDSÖ»ÄÜÓëJ2EEµÄ·þÎñ¶Ë½øÐÐͨÐÅ£¬ËùÒÔÄ¿Ç°Ö»ÊÇActionScript 3.0Êý¾ÝÀàÐͺÍJavaÊý¾ÝÀàÐ͵Äת»»¡£ActionScript 3.0ÓëJavaÊý¾ÝÀàÐÍת»»ÊDz»¶Ô³ÆµÄ¡£
ActionScript3.0ÏòJavaת»»Ê±Êý¾ÝÀàÐ͵ĶÔÓ¦¹Øϵ
ActionScriptÊý¾ÝÀàÐÍ -------------------JavaÊý¾ÝÀàÐÍ
null -------------------null ......

Flex no.2

--------------ex2_01_solution  ѡȡʱ¼ä-----------------------
 ...
   private function dateChangeHandler():void
   {
    // The Alert.show() message displays a static string plus the selected date in the startDate control
   ......

³£ÓõÄFlex´úÂë×ܽá

³£ÓõÄFlex´úÂë×ܽá
1.Ë¢ÐÂä¯ÀÀÆ÷

¡¡¡¡navigateToURL(new URLRequest("javascript:location.reload();"),"_self")

¡¡¡¡2.¹Ø±Õä¯ÀÀÆ÷

¡¡¡¡navigateToURL(new URLRequest("javascript:window.close()"),"_self");

¡¡¡¡3.´ò¿ªÒ»¸öÐÂä¯ÀÀÆ÷´°¿Ú

¡¡¡¡navigateToURL(new URLRequest('ht ......

flex ʹÓÃRSL¼õСswfµÄÌå»ý£¬ÒÔ¼°Óöµ½µÄÎÊÌâ

ÔÚ¿ª·¢ÏîĿʱ£¬ÏîÄ¿Ô½´ó£¬swfÉú³ÉµÄÌå»ýÔ½´ó£¬¶ÔÓÚ¾ÖÓòÍøÓ°Ïì²»´ó£¬µ«ÊǶÔÓÚ»¥ÁªÍø¾ÍºÜÍ·ÌÛÁË¡£
¼ÓÔØÒ»¸ö½çÃæÒªºÜ¾Ã¡£Ò»°ãÈ˸ù±¾Ã»ÄÍÐÔµÈÄã¼ÓÔØÍê¡£
ΪÁ˼õСswfÌå»ý£¬¸öÈË×ܽáÁËÁ½¸ö°ì·¨¡£°ì·¨ÈçÏ£º
µÚÒ»£¬¾¡Á¿Ê¹ÓÃmodule£¬ÉÙÁ¿Ê¹ÓÃ×Ô¶¨Òå×é¼þ£¬ÕâÑù¿ÉÒÔ¼õÉÙ¼ÓÔصÄʱ¼ä
µÚ¶þ£¬Ê¹ÓÃRSL£¬¼õСswfÌå»ý¡£RSLʹÓÃÈçÏ£º
Ó ......

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

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