flex 倒计时
Program niche
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Style source="skin/yflexskin.css" />
<mx:Script>
<![CDATA[
import flash.events.TimerEvent;
import flash.events.Event;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.utils.Timer;
import mx.controls.Alert;
import mx.events.ColorPickerEvent;
private var timer:Timer;
private var h_num:int;
private var m_num:int;
private var s_num:int;
private var sound:Sound;
private var soundChan:SoundChannel;
[Embed(source="dida.mp3")]
public var mp3: Class;
private function init():void
{
this.timeComplete();
sound = new mp3() as Sound;
timer = new Timer(1000, 0);
timer.addEventListener(TimerEvent.TIMER, onTimer);
}
private function onTimer(event:TimerEvent):void
{
s_num = s_num - 1;
if ((s_num == -1) &&
相关文档:
ViewStack导航容器最为普通,因为它自身不带导航控件。我们需要添加一些导航控件,而其他导航容器均带有自己的控件。
ViewStack是存放数据的逻辑容器,作用是让每个布局容器(其子容器)在顶部互相堆叠。从幕后可知,这些子容器被设置为一个数组(0,1,2…)。
&nb ......
转载自:http://www.blogjava.net/usherlight/archive/2007/04/17/111365.html
首先介绍一下SystemManager. SystemManager是Flex应用的主控者, 它控制着应用窗口, Application实例, 弹出窗口, cursors, 并管理着ApplicationDomain中的类. SystemManager是FlashPlayer实例化的第一个类, 它存储了主应用窗口的大小和位置信息 ......
Flex
与 Asp.Net 通过 Remoting 方式进行通讯
Flex 与 Asp.Net 通过 Remoting 方式进行通讯 (一)http://hi.baidu.com/tsengyuen/blog/item/644e98a3353f7287471064ef.html
Flex 与 Asp.Net 通过 Remoting 方式进行通讯 (二)http://hi.baidu.com/tsengyuen/blog/item/af02730d58d6d7266059f3e8.html
Flex 与 Asp.Net 通 ......
A client asked me to do something seemingly simple.
"I want the Alert to have just this one sentence bolded."
Well, it's not exactly simple, so here's how you do it:
there are two solutions as below :
import mx.core.IUITextField;
use namespace mx.core.mx_internal;
message +="Press ......