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) &&
相关文档:
Flex Builder 3 正式版,发布于中国时间 2008 年
2 月 25 日;
下载地址一:
http://download.macromedia.com/pub/flex
/flex
_builder/FB3_win.exe
大小: 424 MB ;未进行压缩的 Flex Builder 3 安装文件
不用注
册登录,可以直接下载。
下载地址二:
http://tria
ls.adobe.com/Applications/.../FB3_WW ......
之前发过一片关于Flex Builder 4注册码的文章,但是由于里头的序列号好像都过期了,所以就又找了下看如何激活。
首先把自己的hosts文件里加上一行:
127.0.0.1 activate.adobe.com
然后在打开Flex Builder 4
输入如下注册码:
1424-4118-1138-0912-4001-7222
注册,OK
以后千万记住不要让QQ医生或者360把你的Hosts文 ......
package util
{
public class MD5
{
private var hexcase:int = 0;
private var strsize:int = 8;
static private var md5:MD5;
static public function getInstance():MD5
{
if(!md5)
{
md5 = new MD5()
}
return md5;
}
public function getMD5(s:String):String
{
return binl2hex(core_md5(str2binl(s ......
本贴转自:http://wufenggang.spaces.live.com/String/
APIs、Libs、Components
1、as3ebaylib
http://code.google.com/p/as3ebaylib/
2、as3youtubelib
http://code.google.com/p/as3youtubelib/
3、as3flickrlib
http://code.google.com/p/as3flickrlib/
4、Yahoo ASTRA Flash Components
http://developer.yaho ......
用的是Commons上传组件,下载地址:Commons
网上找的小例子改的,修改了部分错误。
1,FileUpload.java
package com.fileupload;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.Charset;
import java.util.Iterator;
import java.util.List;
import ja ......