[ת]flexÖÐPopup´°¿Ú·ÃÎʸ¸´°¿ÚµÄ4ÖÖ·½·¨ÒÔ¼°Ï໥´«Öµ
1.Èç¹ûʹÓÃMVC¿ò¼Ü£¬ÏàÐÅÕâ²¢²»ÊÇÒ»¸öÎÊÌâ¡£¶øÈç¹ûûÓÐʹÓõĻ°£¬¿ÉÒÔÓÃÀàËƵķ½·¨ÉèÖÃÒ»¸öµ¥Àý£¬×Ó´°¿ÚºÍ¸¸´°¿Úͨ¹ýÕâ¸öµ¥ÀýÀ´½»»¥ÏûÏ¢£¬Èç¹ûÐèÒª½âñÇë·¢ËÍ×Ô¶¨Òåʼþ¡£×ÜÖ®£¬Ö»Òª°´ÕÕMVC˼·À´×ö¾Í¿ÉÒÔÁË¡£
2.ÀàËÆJS£¬ÔÚ×Ó´°¿ÚµÄ¹¹Ô캯ÊýÀïÔö¼ÓÒ»¸ö²ÎÊý£¬½«¸¸´°¿Ú´«²Î½øÈ¥¡£MXMLûÓй¹Ô캯Êý£¬ÓÃÒ»¸öÊôÐÔÀ´±£´æ¸¸´°¿ÚÒýÓÃÒ²¿ÉÒÔ¡£
3.ÎÞÂÛÊÇcreatePopUp»¹ÊÇaddPopUp£¬ËûÃǶ¼ÓÐÒ»¸ö·µ»ØÖµ£¬µÃµ½×Ó´°¿ÚµÄʵÀý¡£¿ÉÒÔ¶ÔÕâ¸öʵÀý¼àÌýremoveʼþ£¬²¢ÔÚÕâ¸öʼþÖÐÖ±½Ó¶ÁÈ¡×Ó´°¿ÚÐèÒª·µ»Ø¸ø¸¸´°¿ÚµÄÊôÐÔ¡££¨¼ÇµÃÒª½«Õâ¸öʼþ×îÖÕÒƳý£©
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Panel x="94" y="178" width="503" height="347" layout="absolute">
<mx:TextInput x="134" y="64" id="tit_usr" text="username"/>
<mx:TextInput x="134" y="125" id="tit_psw" text="password"/>
<mx:Button x="171" y="209" label="Submit" click="mytw_click()"/>
</mx:Panel>
<mx:Script>
<!--[CDATA[
import mx.containers.TitleWindow;
import mx.managers.PopUpManager;
import mx.controls.Text;
private var tw:titlewindow=new titlewindow();
private function mytw_click():void{
if(tw.visible){
PopUpManager.removePopUp(tw);
}
PopUpManager.addPopUp(tw,this);
PopUpManager.centerPopUp(tw);
tw.addEventListener("tw_click",update);
}
private function update(event:Event):void{
tit_usr.text=tw.tw_usr.text;
tit_psw.text=tw.tw_psw.text;
PopUpManager.removePopUp(tw);
}
]]-->
</mx:Script>
</mx:Application>
µ¯³ö´°¿Ú£º
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="498" height="368" showCloseButton="true" close="PopUpManager.removePopUp(this)">
<mx:Label x="96" y="67" text=&
Ïà¹ØÎĵµ£º
--Ó¢ÎÄ
mxmlc -locale=en_US -allow-source-path-overlap=true
-include-resource-bundles=mf,collections,containers,controls,core,effects,formatters,logging,SharedResources,skins,states,styles,validators
-source-path=D:/UBAS_HOME/ClientCode/demo/client/code/MainFrame/assets/locale/en_US
-output=E:/ ......
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text");
......
Ô´xmlÎļþ
<?xml version="1.0" encoding="iso-8859-1"?>
<books>
<stock>
<name>The Picasso Code</name>
<author>Dan Blue</author>
<category>Fiction</category>
<description>Cubist paintings reveal a secret society of people ......
×î½üÔÚÏîÄ¿ÖÐÒªÓõ½flv²¥·ÅÆ÷£¬ÓÉÓÚflex×Ô´øµÄVideoDisplay×é¼þ²»ÊǺܺÃÓ㬾Í×Ô¼º¼òµ¥ÊµÏÖÁËÒ»¸ö£¬½çÃæ²»ÊǺÜÃÀ¹Û£¬µ«¹¦Äܶ¼ÓÐÁË£¬Õý¿ÉνÂéȸËäСÎåÔà¾ãÈ«¡£ÏÂÃæÊDz¥·ÅÆ÷µÄ´úÂ룬»¹²»»áÓÃflash×öflv²¥·ÅÆ÷µÄÅóÓÑ£¬¿ÉÒԲο¼²Î¿¼¡£
Player.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="ht ......
×î½ü×öÓÎÏ·µÄʱºò£¬·¢ÏÖÍ˳öµÇ½ʱURLÉÏ»á×Ô¶¯¼ÓÉÏÒ»¸ö“#”×Ö·û£¬ºÜÆæ¹Ö£¬Google+BaiduÎÞÊý´Î¶¼Ã»ÓÐÕÒµ½´ð°¸¡£½ñÌìÎÞÒâ¼ä¿´µ½¼¸¸ö
ȺÓÑÔÚ˵ͨ¹ý“BrowserManager”»ñÈ¡URL£¬ÓÚÊÇ×Ðϸ²é¿´ÁËAPI£¬ÓÖ·¢ÏÖÁË“HistoryManager”£¬Õâ¸öÎÊÌâÖÕÓÚÃ÷°×ÁË¡£
ÎÒÃÇͨ³£¿´µÄWebÒ³Ãæ
¿ÉÒÔͨ¹ýä¯ÀÀÆ÷µ ......