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
Ïà¹ØÎĵµ£º
±¾ÀýÖн«ÊµÏÖµ±Ó¦ÓÃÔËÐÐʱ²»½øÐÐÈκβÙ×÷¾ÍÏȵ¯³ö´°¿Ú£¬µã»÷¹Ø±Õ/µã»÷´°¿ÚÈÎһλÖà ʱ½«¹Ø±Õ´°¿Ú
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ÓëWeb·þÎñµÄ½»»¥
Ö÷ÒªÄÚÈÝ:
1.ActionScriptÓë·þÎñ¶ËµÄ»ù±¾½»»¥·½Ê½(REST).
2.ActionScriptÌØÓеÄÊý¾Ý´«Êä¸ñʽ(AMF)Óë·þÎñÆ÷½»»¥.
3.FlexÓëWebService.
ҪʵÏÖActionScriptÓë· ......
½« Stage µÄ displayState
ÊôÐÔÉèÖÃΪ StageDisplayState.FULL_SCREEN_INTERACTIVE
»á½«´°¿ÚÖÃÓÚÈ«ÆÁģʽ£¬ÔÚ´ËģʽÏÂÔÊÐí
¼üÅÌÊäÈ루ÔÚä¯ÀÀÆ÷ÖÐÔËÐÐµÄ SWF ÄÚÈÝÖУ¬²»ÔÊÐí¼üÅÌÊäÈ룩¡£ÈôÒªÍ˳öÈ«ÆÁģʽ£¬Óû§ÐèÒª°´ Esc ¼ü¡£
ÀýÈ磬ÒÔÏ Flex ´úÂ붨ÒåÓÃÓÚÉèÖüòµ¥È«ÆÁ¶ËµãµÄ¼òµ¥ AIR Ó¦ÓóÌÐò£º
<?xml ver ......
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
{
......
SWFÖ®¼äͨÐÅ¡¢FlexÓëSWFÖ®¼äͨÐÅ¡¢C#ÓëSWFÖ®¼äͨÐÅ
Ò»¡¢SWFÖ®¼äͨÐÅ£¨¸÷SWFÎļþ¾ùûÓаüº¬¹ØÏµ——·ÇÄÚ²¿Ç¶Èë¼ÓÔØ£¬¾ù¶ÀÁ¢£©
ʹÓà LocalConnection Àà¿ÉÒÔ´´½¨Ò»¸ö LocalConnection ¶ÔÏ󣬸öÔÏó¿ÉÔÚÒ»¸ö SWF ÎļþÖлò¶à¸ö SWF Îļþ¼ä£¬µ÷ÓÃÁíÒ»¸ö LocalConnection ¶ÔÏóÖеķ½·¨¡£ ͨ¹ý±¾µØÁ¬½Ó£¬¿ÉÒÔÔÚ SWF ......