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

flex as°æ¼ÆʱÆ÷


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init()">
 
    <mx:Script>
        <![CDATA[
            import flash.utils.Timer;
            import flash.events.TimerEvent;
 
            private const MIN_MASK:String = "00";
            private const SEC_MASK:String = "00";
            private const MS_MASK:String = "000";
            private const TIMER_INTERVAL:int = 10;
 
            private var baseTimer:int;
 
            private var t:Timer;
 
            private function init():void {
                t = new Timer(TIMER_INTERVAL);
                t.addEventListener(TimerEvent.TIMER, updateTimer);
            }
 
            private function updateTimer(evt:TimerEvent):void {
                var d:Date = new Date(getTimer() - baseTimer);
                var min:String = (MIN_MASK + d.minutes).substr(-MIN_MASK.length);
                var sec:String = (SEC_MASK + d.seconds).substr(-SEC_MASK.length);
                var ms:String = (MS_MASK + d.milliseconds).substr(-MS_MASK.length);
        &nbs


Ïà¹ØÎĵµ£º

flexʱÐòͼʾÀý

<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>

import mx.collections.ArrayCollection;
......

flex ×é¼þµÄ²¼¾Ö Òþ²Ø×é¼þ

×é¼þÖصþÏÔʾ£¬Ê¹ÓÃÊôÐÔincludeInLayoutµÄtrue»òfalse
ÔÚFlexÖУ¬½«includeInLayoutÉèÖÃΪfalse£¬²¢²»´ú±í´Ó“²¼¾Ö”ÖГÒþ²Ø”µôÕâ¸öUIComponent£¬¶ø½ö½öÊǽ«Õâ¸öUIComponent´Ó²¼¾ÖÖкöÂÔ£¬Ö±½Ó²¼¾ÖÏÂÒ»¸ö¶ÔÏó¡£Èç¹ûÏëÍêÈ«´ÓÈÝÆ÷ÖÐÒþ²ØµôÒ»¸ö¶ÔÏó£¬ÇëͬʱʹÓÃvisible=”false” includeInL ......

¼òµ¥½éÉÜFlexÓëWeb·þÎñ¶ËµÄ½»»¥

¼òµ¥½éÉÜÐÅFlexÓëWeb·þÎñµÄ½»»¥
Ö÷ÒªÄÚÈÝ:
       1.ActionScriptÓë·þÎñ¶ËµÄ»ù±¾½»»¥·½Ê½(REST).
       2.ActionScriptÌØÓеÄÊý¾Ý´«Êä¸ñʽ(AMF)Óë·þÎñÆ÷½»»¥.
       3.FlexÓëWebService.
 
ҪʵÏÖActionScriptÓë· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ