Flexʼþ»úÖÆ
Flexʼþ»úÖÆ
Flexʼþ»úÖÆÊǹ۲ìÕßģʽ£¬¼´Ê×ÏÈҪע²áʼþ£¬Ê¼þ·Ö·¢ºóͨ¹ýʼþÏìÓ¦º¯Êý½øÐд¦Àí¡£
ÀýÈçÔÚAS3ÖУº
button.addEventListener(“click”,onClick);//Ïòbutton×¢²áÒ»¸öclickʼþ
internal function onClick(evt:MouseEvent):void{txt.text=“click a button!”;}//ʼþÏìÓ¦º¯Êý
ÄÇôע²áʼþ×¢²áʲôÄØ£¿Í¨¹ýaddEventListener×¢²áº¯ÊýµÄ²ÎÊý¿ÉÒÔ¿´³ö£¬Ê×ÏÈÐèҪע²áʼþÀàÐÍ£¨µÚÒ»¸ö²ÎÊý£©£¬È»ºó×¢²áÏìÓ¦º¯Êý£¬¼´Ê¼þ·¢ÉúºóÐèÒª×öʲôÊÂÇ飬Ҳ¾ÍÊÇ˵µ÷ÓÃÄÄÒ»¸ö·½·¨¡£
ÄÇôÏìÓ¦º¯ÊýÐèҪʲôҪÇóÄØ£¿ÏìÓ¦º¯Êý±ØÐëÒªÒ»¸ö²ÎÊý£¬Ö¸Ã÷×¢²áµÄʼþµÄʼþÀàÐÍ£¬ÈçÉÏÃæµÄÀý×Ó£¬ÎÒÃÇ×¢²áµÄÊÇÒ»¸öÊó±êʼþÀàÐÍ£¬¼´Êó±êµ¥»÷ʼþ¡£
×¢²áµÄʼþÀàÐͱØÐëºÍÏìÓ¦º¯ÊýµÄʼþÀàÐÍÒ»Ö£¡
µ½µ×ÓÐÄÄЩʼþÀàÐÍÄØ£¿³ýÁËÓÐϵͳĬÈϵÄʼþÀàÐÍÍ⣬ÎÒÃÇ¿ÉÒÔ¶¨Òå×Ô¼ºµÄʼþºÍʼþÀàÐÍ¡£
¼òµ¥µÄ˵£¬Ê¼þÀàÐ;ÍÊǶ¨ÒåÔÚʼþÀàµÄ³£Á¿ÊôÐÔ¡£
ʼþÁ÷
1.²¶»ñ½×¶Î£¨´Ó¸ù½Úµãµ½×ӽڵ㣬¼ì²â¶ÔÏóÊÇ·ñ×¢²áÁ˼àÌýÆ÷£¬ÊÇÔòµ÷ÓüàÌýº¯Êý£©
2.Ä¿±ê½×¶Î£¨µ÷ÓÃÄ¿±ê¶ÔÏó±¾Éí×¢²áµÄ¼àÌý³ÌÐò£©
3.ðÅݽ׶Σ¨´ÓÄ¿±ê½Úµãµ½¸ù½Úµã£¬¼ì²â¶ÔÏóÊÇ·ñ×¢²áÁ˼àÌýÆ÷£¬ÊÇÔòµ÷ÓüàÌýº¯Êý£©
×¢£ºÊ¼þ·¢Éúºó£¬Ã¿¸ö½Úµã¿ÉÒÔÓÐ2¸ö»ú»á£¨2Ñ¡1£©ÏìӦʼþ£¬Ä¬ÈϹرղ¶»ñ½×¶Î¡£
´ÓÉϵ½Ï£¨´Ó¸ùµ½Ä¿±ê£©ÊDz¶»ñ½×¶Î1£¬µ½´ïÁËÄ¿±êºóÊÇÄ¿±ê½×¶Î2£¬È»ºó´ÓÄ¿±êÏòÉÏ·µ»ØÊÇðÅݽ׶Î3¡£
Èç¹ûÔÚ¹¹Ôìʼþʱ£¬Event(type:String, bubbles:Boolean = false,cancelable:Boolean = false)
bubblesΪfalse£¬Ôò²»Ö´ÐÐðÅݽ׶Ρ£
ÔõÑùÀí½âʼþÁ÷£¿
µ±Ê¼þ·¢Éúʱ£¬FLEXͨ¹ýʼþµÄ·Ö·¢Æ÷EventDispatcher½øÐÐʼþ·Ö·¢£¬·Ö·¢µÄ˳ÐòÊÇ£º´ÓÉÏÍùϵ½´ïÄ¿±ê£¬È»ºó´ÓÏÂÍùÉÏ£¬´ÓÄ¿±ê¿ªÊ¼·µ»Ø¡£ÈçÉÏÃæ1¡¢2¡¢3Ëù˵µÄÄÇÑù£¬ÕâÀï¾Í»áÓÐÒ»¸öÎÊÌ⣬ÔÚʼþµÄÁ÷¾¹ý³ÌÖУ¬²»ÊÇÄ¿±êµÄ¶ÔÏóÈç¹û×¢²áÁËʼþ£¬Ò²ÓÐÁËÏàÓ¦µÄʼþÏìÓ¦º¯Êý£¬ÄÇô²»ÊÇÄ¿±êµÄ¶ÔÏóÏìÓ¦ÁËʼþµÄ´¦Àí£¬ÕâÔõô°ìÄØ£¿
ÓÉÓÚÉÏÃæ˵µÄÄÇÑù£¬addEventListenerÔÚÖ»ÓÐÈçÉÏÁ½¸ö²ÎÊýµÄÄÁÈËÇé¿öÏÂÊǹرղ¶»ñ½×¶ÎµÄ£¬Ò²¾ÍÊÇ˵ʼþÁ÷ÊÇ´ÓÄ¿±ê½×¶Î¿ªÊ¼µÄ£¬È»ºóÊÇðÅݽ׶Σ¬µ±³öÏÖÈÝÆ÷°üº¬¿Ø¼þµÄʱºò£¬¿ÉÒÔʹÓÃÅжÏ
if(evt.target == evt.currentTarget)
À´È·¶¨µ±Ç°Ê¼þÁ÷Éϵĵ±Ç°Á÷¾¶ÔÏóÊÇ·ñ¾ÍÊÇÄ¿±ê¶ÔÏó£¬Èç¹ûÊǾͽøÐÐÏàÓ¦µÄ´¦Àí¡£
ÒƳý¶ÔÏóµÄʼþÁ÷£ºremoveEventListener(),²ÎÊýÓë×¢²áʼþÏàͬ¡£
×è¶ÏʼþÁ÷ÖÐÄ¿±ê¶ÔÏóµÄºó¼Ìʼþ£¬¼´Í¨¹ýÁËÄ¿±
Ïà¹ØÎĵµ£º
FlexÍÏק-Á½¸öListÖ®¼äÍÏק
¹Ø¼ü×Ö: flexÍÏק, list
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="creationHandler();">
<mx:Script>
<![CDATA[
import mx.events.DragEvent;
imp ......
1. µ÷Óô°Ìå
A ´°ÌåÊÇÒ»¸öapplicaton´°Ìå B ´°ÌåÊÇ×Ô¶¨Òå´°Ì壨ÀàËÆDialogÖ®ÀàµÄ´°Ì壬±¾Éí²¢²»ÄܶÀÁ¢ÔËÐУ©
A ´°Ìå Ƭ¶Ï´úÂëÈçÏ£º
<mx:Script>
<!--[CDATA[
import mx.containers.TitleWindow;
import mx.managers.PopUpManager;
function ShowDetailDialog(){
var oInitObj:Object = new Object();
......
¼¸ÖÖµ¼º½Ñ¡Ï
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:ButtonBar dataProvider="myPages">
</mx:ButtonBar>
<mx:ToggleButtonBar dataProvider="myPages">
</mx:ToggleButto ......
Ò»¡¢ ½«±£´æmxdµØͼÎĵµµÄÎļþ¼ÐÉèΪ¹²Ïí£¬²¢¸øSOC,SOM,MANAGER£¬¹ÜÀíÔ±ÕË»§ÊÚËùÓÐȨÏÞ¡£
¶þ¡¢ ÔÚArcCatalogÖУ¬µã»÷connector to folder£¬½«ÉÏÃæµÄĿ¼Ìí¼Óµ½CatalogÖС£
Èý¡¢ ÔÚÄ㽨Á¢µÄGIS ServerÉÏÓÒ¼ü£¬Ð½¨Ò»¸ö·þÎñ¡£
1¡¢ Ó ......