Flex¡¡¿ª·¢ÏîĿС½á
1.µ¯³öд°¿Ú
Flexͨ¹ýPopUpManagerÀàÀ´ÊµÏÖµ¯³öд°¿Ú£º
ÏÈÉèÖúÃÒªµ¯³ö´°¿ÚµÄÒ³Ã棬ȻºóÔÚÖ÷´°¿ÚÖÐÏÈnew³öµ¯³ö´°¿ÚµÄ¶ÔÏó£¬È»ºó¿ÉÒÔ¶Ôµ¯³ö´°¿ÚµÄÊôÐÔ½øÐÐ
¸³Öµ£¬
var genggai : GengGaiWindow = new GengGaiWindow();
genggai.logId = adg.selectedItem.id;
ʹÓÃPopUpManagerÀàÖеÄÒÔÏÂÁ½¸ö·½·¨µ¯³ö´°¿Ú£º
PopUpManager.addPopUp(genggai,this);
PopUpManager.centerPopUp(genggai);
ʹÓÃPopUpManagerÀàÖÐÒÔÏ·½·¨¹Ø±ÕÒѵ¯³öµÄ´°¿Ú£ºPopUpManager.removePopUp(this);
2.Ò³ÃæÌøת——¶àÊÓͼÇл»
FlexÓ¦ÓÃÖУ¬¿ÉÒÔʵÏÖÒÀ¾ÝÓû§µÄ²»Í¬ÐèÇó½øÐв¹Í¬ÊÓͼ¼äµÄÇл»£¬´Ë¹ý³ÌÖÐÖ»ÓÐÒ»¸öÊÓͼ±»ÏÔʾÔÚ¶¥²ã
£¬ÆäËûÊÓͼÒԶѵþµÄÐÎʽ±»Òþ²Ø¡£ÕâÒ»¹¦ÄÜÊÇͬ¹ýViewStackÈÝÆ÷ʵÏֵġ£ ViewStack°üº¬µÄÈÝÆ÷¶¼ÊÇÒ»
¸öÊÓͼ£¬ÊÓͼ¼äµÄÇл»ÒªÍ¨¹ýÆäËû×é¼þ»ò±àдActionScriptÀ´ÊµÏÖ¡£
ÔÚ±¾ÀýÖУ¬<mx:ViewStack >±êǩϵÄÊÓͼ£º
<mx:Canvas id=“View1”> ÊÓͼView1 </mx:Canvas>
<mx:Canvas id=“View1”> ÊÓͼView2 </mx:Canvas>
ÊÓͼ¼äÇл»£ºviewstack1.selectedChild=View2;
3.Flex·ÃÎÊ·þÎñ¶ËµÄjavaÓ¦ÓÃ
»ùÓÚLCDSµÄFlexÓ¦ÓÃ×îÇ¿´óµÄ¹¦ÄܾÍÊÇÄܹ»Ö±½Óͨ¹ýLCDSµ÷Ó÷þÎñ¶ËµÄjava´úÂ루ͨ¹ýʹÓÃRemoting·þÎñ
µÄ·½Ê½£©£º
ʹÓÃʱ½«ºó¶ËµÄjavaÀàÔÚremoting-config.xmlÅäÖÃÎļþµ±ÖÐÃèÊö£¬È»ºóͨ¹ýFlex½«ÅäÖÃÎļþÖеıð
Ãûµ±×÷Ô¶³Ì¶ÔÏó½øÐе÷Óá£ÅäÖÃÎļþ£º
<destination id="UserService">
<properties> <source>service.UserService</source> </properties>
</destination>
Ò³ÃæÖÐͨ¹ýÒÔϱêÇ©Ìæ´úÖ±½ÓÖ»ÓÃÀà¿âµ÷ÓÃÔ¶³Ì¶
Ïà¹ØÎĵµ£º
¹Ø¼ü×Ö: flex, arraycollection
¼¯ºÏÊÇActionScript Öй¦ÄÜÇ¿´óµÄ»ùÓÚË÷ÒýµÄÊý×é×é¼þ£¬Ìí¼ÓÁËÈç¶ÔÄÚÈݽøÐÐÅÅÐòµÈ¹¦ÄÜ£¬
²Ù×÷Êý×éµÄ¶ÁȡλÖ㬴´½¨¾¹ýÅÅÐòµÄÊý×éÊÓͼ¡£¼¯ºÏÒ²ÄÜ֪ͨÆäÈÎÒâʼþ¼àÌýÆ÷¼àÌýÆäÊý
¾ÝÊÇ·ñ¸Ä±ä£¬ÒÔ¼°ÈκÎÊý¾ÝÏî±»Ìí¼Óµ½Ô´Êý×éʱ¿ÉÖ´ÐÐ×Ô¶¨ÒåÂß¼¡£µ±Êý¾Ý¸Ä±äʱ¿É֪ͨÆä
¼àÌýÆ÷£¬ÕâÊǼ¯ºÏµÄй ......
Flex ¶Ô¼¯ºÏµÄ¶à¸ö×ֶνøÐÐÅÅÐò
¹Ø¼ü×Ö: flex, ÅÅÐò, ÈÕÆÚÅÅÐò
ÒòΪÊý×é¿É±»¶à¸öSortFields ÅÅÐò£¬Sort ¶ÔÏóµÄfields ÊôÐÔ¾ÍÊÇÒ»¸öÊý×é¡£ÕâЩsort ´´½¨Ò»
¸ö²ã¼¶µÄ½á¹¹£¬ËùÓжÔÏó½øÐзÖ×éÅÅÐò£¬Ïȸù¾Ýfield ÊôÐÔÀïµÄµÚÒ»¸öSortField ¶ÔÏó£¬ÔÙµÚ
Ò»¸ö£¬ÒÔ´ËÀàÍÆ¡£Õâ¸öÀý×Ó´úÂëÏȸù¾Ýregions ÔÙstates ¶Ô¼¯ºÏ½øÐÐÅÅÐò£º
......
1. µ÷Óô°Ìå
A ´°ÌåÊÇÒ»¸öapplicaton´°Ìå B ´°ÌåÊÇ×Ô¶¨Òå´°Ì壨ÀàËÆDialogÖ®ÀàµÄ´°Ì壬±¾Éí²¢²»ÄܶÀÁ¢ÔËÐУ©
A ´°Ìå Ƭ¶Ï´úÂëÈçÏ£º
<mx:Script>
<!--[CDATA[
import mx.containers.TitleWindow;
import mx.managers.PopUpManager;
function ShowDetailDialog(){
var oInitObj:Object = new Object();
......
Flex Builder 3 ÏÂtrace() ²»Êä³öµÄÎÊÌâ
ÏÂÃæ¸ø³ö¼òµ¥µÄ´úÂ루main.mxml£©£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Button label="Test Trace" click="test()"/>
<mx:Script>
<!--[CDATA[
......
flex ºÍjavascript»¥Ïàµ÷Óá£
Ò»¡¢flex µ÷ÓÃjavascript
Ö»ÐèʹÓþ²Ì¬µÄExternalInterface.call¾Í¿ÉÒÔÁË¡£
call ·½·¨ÖÁÉÙÒªÇóÒ»¸ö²ÎÊý£¬¾ÍËùµ÷ÓöÊýµÄÃû³Æ¡£
Ò²¿ÉÒÔ´«µÝ²ÎÊý¡£
È磺
ExternalInterface.call("alert","hello");
"hello"¾ÍÊÇ×÷Ϊalertµ ......