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;
È«²¿´úÂëÈçÏÂ:
titleWin.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300" showCloseButton="true" close="PopUpManager.removePopUp(this)">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
//[Bindable]
//public var userName:TextInput;
[Bindable]
public var userNameInPop:TextInput;
[Bindable]
public var userEmailInPop:TextInput;
private function showText():void
&
Ïà¹ØÎĵµ£º
ͨ¹ýFlexÖеÄTimer¿ÉÊÇʵÏÖÊý×ÖʱÖÓµÄЧ¹û£¬ÆäЧ¹ûͼÈçÏ£º
ʵÏֵĴúÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<!--[CDATA[
import mx.formatters.DateFormatt ......
flex builder ÉèÖ÷ÇϵͳĬÈÏ×ÖÌ壺
´æÔÚÎÊÌ⣺text²»ÄÜÉèÖÃbold£¬·ñÔò²»Æð×÷Óá£
·½·¨Ò»£º£¨css£©
<mx:Style>
@font-face
{
font-family: myFont;
& ......
Mxml×é¼þµÄ´ò¿ªºÍ¹Ø±ÕÌØÐ§
openDuration="1000" openEasingFunction="Bounce.easeOut"
closeDuration="1000" closeEasingFunction="Bounce.easeIn"
//²Ëµ¥Í¸Ã÷Ч¹û
background-color:#000000;
background-alpha:0.1;
border-style:solid;
drop-shadow-color:#000000;
drop-shadow-enabled:yes;
//Õ¹¿ªËù ......
Æäʵ¶ÔÓÚÕâ¸öÌâÄ¿ÊDz»Ç¡µ±µÄ£¬ÒòΪflexÖÐÊÇûÓÐÒ³ÃæÕâ¸ö¸ÅÄîµÄ£¬Ò³ÃæÔÚflexÀïÃæÆäʵ¾ÍÊÇÒ»¸ö¸öµÄCanvas£¬vbox£¬
hboxµÈµÈÖ®ÀàµÄ¶«Î÷£¬¿´µ½µÄ²»Í¬Ò³ÃæµÄÇл»£¬¾ÍÊÇÕâÐ©ÔªËØÒ»²ã²ãµÄ¶Ñ»ý£¬»òÕßÌæ»»£¬µ«ÊÇΪÁ˺ÃÀí½â£¬»¹ÊdzÆÖ®Îª
"Ò³ÃæÌø×ª"¡£ÆäʵÎÒÃÇ¿ÉÒԶԱȴ«Í³µÄC/S¿ª·¢Ä£Ê½£¬Ã»Ò³ÃæÌø×ª£¬Ö»Óд°ÌåºÍÔª¼þµÄÏÔʾºÍÒ ......
ÔÚͬһ¸öApplicationÖж¯Ì¬Çл»Ö÷Ì⣬ÕâÀï²ÉÓõÄÊǶ¯Ì¬ÒýÓò»Í¬µÄCSSÎļþ¡£
¾ßÌå²½ÖèÈçÏ£º
1£©´´½¨CSSÎļþ
skyTheme.css
/* CSS file */
.backgroudSkin
{
&nbs ......