È¥µô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" />
Ò²¿ÉÒԴﵽͬÑùЧ¹û¡£
Ïà¹ØÎĵµ£º
1£¬Ö±½ÓÉèÖÃÊôÐÔ£º
Ô´´úÂëÈçÏ£º
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:ri="AAA.test.*" >
<mx:DateChooser dayNames="[ÈÕ,Ò»,¶þ,Èý,ËÄ,Îå,Áù]"
monthNames="[Ò»ÔÂ,¶þÔÂ,ÈýÔÂ,ËÄÔÂ,ÎåÔÂ,ÁùÔÂ,ÆßÔÂ,°ËÔÂ,¾ÅÔÂ,Ê®ÔÂ,ʮһÔÂ,Ê®¶þÔÂ]" />
......
/*============ʹÓÃ==========*/
var contextmenu:ContextMenuManager=new ContextMenuManager();
contextmenu.add("×î´ó»¯",menuHandle);//menuHandle´¦Àíº¯Êý
/**==================ContextMenuManager.as==========================*/
package file
{
import flash.display.Interact ......
Ctrl-F11: Ö´ÐУ¨Run£©
F11: ³ý´í£¨Debug£©
Ctrl-Alt-Down: Öظ´Ä¿Ç°ËùÔÚ±à¼ÁУ¨Repeat current line £©
Alt-Up: Òƶ¯±¾ÁУ¬»òÑ¡ÔñÁÐÍùÉÏÒƶ¯£¨Move line (or selection) up £©
Alt-Down: Òƶ¯±¾ÁУ¬»òÑ¡ÔñÁÐÏÂÍùÒƶ¯£¨Move line (or selection) down £©
Ctrl-Click: ÒÆÖÁ¶¨ÒåÇø£¨Go to definition (also F3) £© ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="initApp()"
backgroundColor="#FFFFFF">
<mx:Canvas id="paper"
......
¸ÅÊö
ÓÎÏ·¿ª·¢ÊǸöºÜ´óµÄ¿ÎÌ⣬¸ÃϵÁÐÖ»¼òµ¥½²ÊöÈçºÎʹÓÃFlex¼¼Êõƽ̨´î½¨Ò»¸ö¼òµ¥µÄÓÎÏ·¿ò¼Ü£¬ÈçºÎÉè¼ÆÄÜÓÅ»¯ÓÎÏ·µÄCPUÕ¼Óã¬ÄÚ´æµÈ£¬×îºóÖÆ×÷Ò»¸öÍêÕûµÄFlexСÓÎÏ·(ÌṩԴÂë)¡£
ÓÎÏ·µÄ³ÊÏÖ
·½Ê½1£ºÔª¼þ·½Ê½
ÕâÖÖ·½Ê½±È½ÏÊʺÏСÐ͵ÄÓÎÏ·£¬ÓÎÏ·Ôª¼þÊýÁ¿ÉÙµÄÇé¿ö¡£µ±ÓÎÏ·Ôª¼þÊýÁ¿´óʱ¾Í²»ºÏÊÊÁË£ºÔª¼þ»á¶ÔÓÎϷͼÐΡ¢ÒôÆ ......