Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ʵ¼ù—ĬÈϵ¯³ö´°¿Ú

±¾ÀýÖн«ÊµÏÖµ±Ó¦ÓÃÔËÐÐʱ²»½øÐÐÈκβÙ×÷¾ÍÏȵ¯³ö´°¿Ú£¬µã»÷¹Ø±Õ/µã»÷´°¿ÚÈÎһλÖà ʱ½«¹Ø±Õ´°¿Ú
1£©´´½¨Component—DefaultWin.mxml £¨Ä¿Â¼½á¹¹src/components/DefaultWin.mxml£©
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
    ......

flex³ÌÐòFirefoxÏÂÖÐÎÄÊäÈëÂÒÂëµÄbug

firefoxϵ±flashÉèÖòÎÊý wmode Ϊ transparent »òÕß Opaque ʱºòÎı¾¿òÖÐÊäÈëÖÐÎÄ»á³öÏÖÎÊÌâ¡£
µÍ°æ±¾µÄfirefoxÖÐÎÞ·¨ÊäÈëÖÐÎÄ£¬¸ß°æ±¾ÖÐÔò³öÏÖÂÒÂë¡£
ÂÒÂëÓëflashºÍÒ³Ãæ±àÂ뷽ʽ¶¼Ã»ÓйØÏµ£¬ÊÇfirefoxµÄbugÔì³ÉµÄ¡£
½â¾ö·½·¨Ö»ÓÐʹÓÃwmodeµÄĬÈÏÖµ£¬µ«ÊÇÕâÑùʹµÃflashÔÚÕû¸öÒ³ÃæµÄ×îÉϲ㣬divµÈ¶¼»á±»ÆäÕÚµ²×¡¡£
¼Ç ......

flex °ÙÒ¶´°Ð§¹û

Blinds.as
package effects
{

import effects.effectClasses.BlindsInstance;

import mx.controls.scrollClasses.ScrollBarDirection;
import mx.effects.IEffectInstance;
import mx.effects.TweenEffect;

public class Blinds extends TweenEffect
{

......

´ÓͷѧFLEX no.1

1.µ±ÏÂÔØÁËflash builder 4 beta £¬°²×°Æô¶¯Ê±ºò£¬»ØÌáʾÊäÈë×¢²áÂë¡£¿Éͨ¹ýÍøÖ·https://freeriatools.adobe.com/flashbuilder4beta/ ÊäÈëFlex Builder 3 Serial #: À´»»È¡ builder 4 betaµÄ×¢²áÂë¡£ÔÚÓʼþÖвéÊÕ
2.ͨ¹ýhttp://www.adobe.com/devnet/flex/videotraining/flex4beta/À´Ñ§Ï°flex4.¸öÈ˸оõvideo×öµÄºÜ²» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ