Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÓÃflexÈçºÎÏÔʾÊý×ÖʱÖÓ

 Í¨¹ý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.DateFormatter;
import flash.utils.Timer;
import flash.events.TimerEvent;

private function init():void {
var timer:Timer = new Timer(1000);
timer.addEventListener(TimerEvent.TIMER, this.resetNow);
timer.start();
}

private function resetNow(event:TimerEvent):void {

// »ñÈ¡µÇ¼ʱ¼äºÍÈÕÆÚ
var dateFormatter:DateFormatter = new DateFormatter();
dateFormatter.formatString = "YYYY Äê MM ÔÂ DD ÈÕ";
var time:String = new Date().toLocaleTimeString();
var date:String = dateFormatter.format(new Date());
this.date.text = date;
this.clock.text = time;
}

]]-->
</mx:Script>

<mx:Style>
Application {
font-size: 12;
}
</mx:Style>

<mx:Text id="date" text="" creationComplete="this.init()" x="10" y="20" width="150" top="23"/>

<mx:Text id="clock" text="" creationComplete="this.init()" x="180" y="20" width="150" top="23"/>

</mx:Application>


Ïà¹ØÎĵµ£º

ÎÒµÄFlexѧϰ±Ê¼Ç

ÎÒµÄFlexѧϰ±Ê¼Ç

2009-10-16 ÎÊÌ⣺Debug²»¿ÉÓã¬traceÎÞ·¨ÔÚConsoleÖÐÊä³öÄÚÈÝ¡£µ¯³ö¶Ô»°¿òÌáʾÊÇ·ñÖØÐ°²×°flash player¡£ ½â¾ö£º°²×°flashplayer_debug£¬ÎÊÌâ½â¾ö¡£ http://www.java1995.cn/resource/8a8288881fe2c4f8011fe995e4320002

AS3²»Ö§³Öº¯ÊýÖØ¡£
ÎÊÌ⣺this = new Vector2D()£¬±àÒë´íÎó1050£¬ÎÞ·¨ ......

ÓÃFlexµ÷ÓÃSWF²é¿´PDF

   
ÓÐʱºòһЩ×ÊÁÏÖ»Äܸø±ðÈË¿´£¬Èç¿É´òÓ¡µÄÎĵµÈçDOC£¬PDF£¬µ«²»ÄÜÈÃÆäËûÎÞȨÏÞµÄÈËÁí´æ»òÕß´òÓ¡£¬ÌرðÊÇweb°æµÄÎļþ¹ÜÀíÀàµÄϵͳ£¬×ܻῼÂǵ½Õâ¸ö
ÎÊÌâ¡£µ±ÓÃIEÖ±½Ó´ò¿ªpdfµÄʱºò£¬¾¡¹Ü¿ÉÒÔÆ£±ÖIEµÄÁí´æÎª£¬µ«Êǵã»÷PDFÎļþµÄʱºò£¬ÔÙ°´F8µÄʱºò£¬PDFµÄÔĶÁÆ÷Èç
£¨adobereader£©»áÏÔʾToolsBar£¬ËùÒÔÖ ......

flexÖÐʹÓÃÕýÔò±í´ïʽ

 <mx:TextInput id="userName" maxChars="4" restrict="a-zA-Z0-9" />
restrict Ó÷¨:
TextField.restrict = "´Ë´¦Îª¿ÉÊäÈëµÄÄÚÈÝ";
field.restrict = "^´Ë´¦Îª½ûÖ¹ÊäÈëµÄÄÚÈÝ";
restrictÊôÐÔÖ§³ÖһЩÀàËÆÕýÔò±í´ïʽµÄÑùʽ:
field.restrict = ......

flexµÄһЩÑùʽ˵Ã÷

1¡¢ButtonBar×é¼þ£º
       firstButtonStyleName: "mybuttonBarFirstButtonStyle"; //µÚÒ»¸ö°´Å¥µÄÑùʽ
       lastButtonStyleName: "mybuttonBarLastButtonStyle";//×îºóÒ»¸ö°´Å¥µÄÑùʽ
       buttonStyleNa ......

flex ·Å´óËõСԴÂë

 <?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Zoom effect. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style />
    <mx:Script>
     & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ