FLEX ·ÂGoogleÁªÏë¿òЧ¹û
FLEX--·ÂGoogleÁªÏë¿òЧ¹û--ÏÖÔںöàµØ·½¶¼Óõ½ÁËÕâÑùµÄЧ¹û,µ±È»,ÏÖÔÚGoogleÏÂÏßÁË,²»ÈÃÓÃÁË,µ«ÊǸúÍøÉÏ˵µÄÒ»Ñù,Ïë°ì·¨,Ëü»¹ÊÇÄܳöÀ´µÄ
Ê×ÏÈÊÇʼþÔ´£¬Ò²¾ÍÊǴӺζøÆð£¬ÈçϵÄÒ»¸öÊäÈë¿ò£º
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
<mx:FormItem label="¼¯ÍÅ¿Í»§:" width="42%">
<!--change1-->
<mx:TextInput id="txtAssociation" width="235" maxChars="32" change="associate();"/>
</mx:FormItem>
È»ºó¾ÍÊÇ´¦ÀíЧ¹û£¬ÕâЩÄÚÈݶ¼ÊÇ´ÓÊý¾Ý¿âµÃµ½µÄÊý¾Ý£¬¶¯Ì¬µÄ²é³öµÄ¡£
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
import mx.collections.ArrayCollection;
import mx.events.FlexMouseEvent;
import mx.events.ListEvent;
import mx.managers.PopUpManager;
import resources.com.list.Association;
// ¾¹ýäÖȾµÄÁªÏë½á¹ûList
private var list:Association;
// ÁÙʱ×Ö·û´®,ÓÃÓÚÅжϵ±keyUpʼþ·¢Éúʱ,ÁªÏë¿òµÄÖµÊÇ·ñ·¢Éú¸Ä±ä,Èçδ¸Ä±äÔò²»ÁªÏë
private var temp:String = '';
private function changeAssociation():void{
temp='';
txtAssociation.text='';
associationResult=null;
if(list != null){
PopUpManager.removePopUp(list);
list = null;
// Çå¿ÕÁÙʱ×Ö·û´®
}
}
private function associate():void {
var str:String = txtAssociation.text;
if(str.length<2){
associationResult=null;
}
if (str != temp) {
if(str.length < 2){
if(list != null){
PopUpManager.removePopUp(list);
list = null;
// Çå¿ÕÁÙʱ×Ö·û´®
temp = '';
}
return;
}
temp = str;
var params:Object = {};
params['areaNO'] = cbxArea.selectedItem.data;
params['netType'] = cbxNetType.selectedItem.data;
params['str'] = str;
params['handle'] = 'associate';
service4association.send(params);
}
}
private function openAssociation():void {
if(service4association.lastResult.items != null)
createAndShow(service4association.lastResult.items.item);
else if(list != null){
PopUpManager.removePopUp(list);
list = null;
// Çå¿ÕÁÙʱ×Ö·û´®
temp = '';
}
}
private function createAndShow(dp:Object):void {
// ÿ´Î´ò¿ªÁªÏë¿òÒÔÇ°, ÏÈÇåÀí»º´æ
if(list != null){
// ½«ÁªÏë¿ò´ÓPopUpManagerÖÐÒƳý
PopUpManager.
Ïà¹ØÎĵµ£º
×î½ü×öÓÎÏ·µÄʱºò£¬·¢ÏÖÍ˳öµÇ½ʱURLÉÏ»á×Ô¶¯¼ÓÉÏÒ»¸ö“#”×Ö·û£¬ºÜÆæ¹Ö£¬Google+BaiduÎÞÊý´Î¶¼Ã»ÓÐÕÒµ½´ð°¸¡£½ñÌìÎÞÒâ¼ä¿´µ½¼¸¸ö
ȺÓÑÔÚ˵ͨ¹ý“BrowserManager”»ñÈ¡URL£¬ÓÚÊÇ×Ðϸ²é¿´ÁËAPI£¬ÓÖ·¢ÏÖÁË“HistoryManager”£¬Õâ¸öÎÊÌâÖÕÓÚÃ÷°×ÁË¡£
ÎÒÃÇͨ³£¿´µÄWebÒ³Ãæ
¿ÉÒÔͨ¹ýä¯ÀÀÆ÷µ ......
Flex ÖпÉÄܵ¼ÖÂÄÚ´æй¶µÄµØ·½
ÊÕ¼¯Á˲»ÉٵĻᵼÖÂÄÚ´æ鶵ÄÇé¿ö£º
ʼþ¼àÌý£º
¶Ô¸¸¼¶¶ÔÏó¼ÓÁ˼àÌýº¯Êý£¬»áÔì³ÉÄÚ´æй¶£¬Àý£º
override protected function mouseDownHandler(…):void
{
systemManager.addEventListener(“mouseUp”, mouseUpHandler);
......
½â¾ö£º
ÔÚÏú»Ù¶ÔÏóµÄʱºò£ ......
1¡¢XMLSocket¶ÔÏó¼ò½é
ÔÚ¸ÅÊöÀÒѾÌáµ½¹ýÁËFlashÀïµÄXMLSocket¶ÔÏó£¬ËüÊÇʵÏÖFalshºÍ·þÎñÆ÷Socket¼ä
ͨÐŵĺËÐÄ¡£ËüÔÊÐí°üº¬FlashÓ¦ÓõÄä¯ÀÀÆ÷Óë·þÎñ¶Ë½¨Á¢socketÁ¬½Ó£¬Ö®ºóFlashÓ¦ÓÃÓë·þÎñ¶Ë¾Í¿ÉÒÔÏ໥·¢ËÍXMLÊý¾Ý£¬¶øÇÒÔÚÒ»¸ö
socketÁ¬½Ó½¨Á¢Ö®ºó£¬ÔÚ¸ÃÁ¬½ÓÉÏ´«Ë͵ÄÊý¾ÝÁ¿ÊÇûÓÐÏÞÖƵģ¬Ö±µ½socketÁ¬½Ó¹Ø±Õ¡£XMLSoc ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
viewSourceURL="srcview/index.html" backgroundColor="0x000000" layout="absolute">
<mx:Script>
&nb ......
ÔÚFlexÀһ°ãµÄµ¯³ö´°¿Ú£¨³ýÁËAlertÒÔÍ⣩¶¼¿ÉÒÔÓÃTitleWindow×é¼þÍê³É£¬Ö÷´°¿ÚºÍTitleWindowµÄÊý¾Ý´«Êä¿ÉÒÔÓÃÒÔÏ·½·¨
¼ÙÉèTitleWindowµÄʵÀýÎļþΪtitleWin.mxml£¬ÔòÒªÔÚApplicationÖÐÓÃPopUpManager´´½¨Ò»¸ötitleWinµÄÒýÓÃ
private var popWin:titleWin = titleWin(PopUpManager.createPopUp(this,titleWin,true) ......