FLEX TitleWindowÖ®¼äÊý¾Ý´«ÊäµÄʾÀý
ÔÚFlexÀһ°ãµÄµ¯³ö´°¿Ú£¨³ýÁËAlertÒÔÍ⣩¶¼¿ÉÒÔÓÃTitleWindow×é¼þÍê³É£¬Ö÷´°¿ÚºÍTitleWindowµÄÊý¾Ý´«Êä¿ÉÒÔÓÃÒÔÏ·½·¨
¼ÙÉèTitleWindowµÄʵÀýÎļþΪtitleWin.mxml£¬ÔòÒªÔÚApplicationÖÐÓÃPopUpManager´´½¨Ò»¸ötitleWinµÄÒýÓÃ
private var popWin:titleWin = titleWin(PopUpManager.createPopUp(this,titleWin,true));
Èç¹ûÒª½«ApplicationµÄÒ»¸ö×é¼þµÄÖµ´«¸øtitleWin£¬ÈçApplicationµÄid="userName"µÄTextInputµÄÖµ´«¸øtitleWin,±ØÐëÏÈÔÚtitleWin.mxmlÀïÉùÃ÷Ò»¸öTextInputµÄ×é¼þ£º
public var userNameInPop:TextInput;
È»ºóÔÚApplicationÀ
popWin.userNameInPop=userName;
ÕâÑù¾ÍÏ൱ÓÚ°ÑApplicationµÄuserNameµÄTextInput×é¼þ´«¸øÁËtitleWin,¿ÉÒÔÔÚtitleWin.mxmlÀï°ó¶¨Õâ¸öֵȻºóÔÚÎı¾¿òÀïÏÔʾ³öÀ´:
[Bindable]
public var userNameInPop:TextInput;
<mx:TextInput x="110" y="39" id="popUserName" text="{userNameInPop.text}"/>
¶øÒª°ÑtitleWinµÄÖµ´«¸øApplicationÔòÖ»ÐèÔÚtitleWin.mxmlÀï°ÑTextInputµÄÖµ¸³¸øuserNameInPopµÄtext¼´¿É£º
userNameInPop.text=popUserName.text;
Ïà¹ØÎĵµ£º
¡¾±àÒë²ÎÊý¡¿
-default-background-color int
-default-frame-rate int
-default-size width height
ÉèÖÃSWFµÄ±³¾°É«£¬Ö¡ÆµÓë¿í¸ß£¬Õâ¸öÒ²¿ÉÒÔͨ¹ýÔª±êÇ©ÉèÖã¬ÖîÈç
[SWF(width="720",height="560",backgroundColor="#000000")]
-default-script-limits
-max-recursion-depth
-max-execution-time
¶¨ÒåÓ¦Óýű¾³ÌÐ ......
XMLºÍActionScriptÔÚ´´½¨×é¼þ·½Ãæ¸÷ÓÐÓÅȱµã£º
ÔÚ´´½¨¸´ºÏ×é¼þʱ£¬MXML¿ÉÒÔʱ´´½¨¹ý³Ì±äµÃºÜÈÝÒ×£¬²¢ÇÒ·½±ãÓÚ¶Ô×ӿؼþ½øÐв¼¾Ö¡£
ÔÚÐÞ¸Ä×é¼þÐÐΪʱ£¬ÎÒÃÇ¿ÉÒÔÓÃActionScriptÀ´ÐÞ¸ÄËûÃǵķ½·¨¡£
´ó¶àÊýʱºò£¬ÎÒÃÇ»áʹÓÃMXMLºÍActionScript½áºÏµÄ·½Ê½À´´´½¨Flex×é¼þºÍÓ¦Óá£
FlexÌṩÁ˶àÖÖ·½Ê½À´½áºÏʹÓÃMXMLºÍActionS ......
Ñ¡¶¨¾ØÐεÄÒ»¸ö¶¥µãΪÆðµã£¬¿ªÊ¼»
x0:¶¥µãºá×ø±ê
y0:¶¥µã×Ý×ø±ê
x1:ˮƽÏßÉÏÁíÒ»¶¥µãµÄºá×ø±ê
y1:ˮƽÏßÉÏÁíÒ»¶¡µãµÄ×Ý×ø±ê
private function drawDottenRect(g:Graphics,
x0:Number,
&nbs ......
<?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ÖÐÈçºÎͨ¹ýstrokeWidth, strokeColorºÍshadowColorÑùʽ£¬´´½¨Ò»¸ö×Ô¶¨Òå·ç¸ñµÄHRule»òVRule
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
&nbs ......