Section 1
//hg8_mc_2 (count_fla.hg8_mc_2)
package count_fla {
import flash.display.*;
public dynamic class hg8_mc_2 extends MovieClip {
public var hg8:MovieClip;
public function hg8_mc_2(){
addFrameScript(16, frame17);
}
function frame17(){
gotoAndPlay(1);
}
}
}//package count_fla
Section 2
//MainTimeline (count_fla.MainTimeline)
package count_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public dynamic class MainTimeline extends MovieClip {
public var old_timer;
public var draw_count;
public var snd:CTSound;
public var tbox:TextField;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
snd = new CTSound();
snd.Add_Sound(0, se_clock);
snd.set_Volume(1);
snd.SoundBGM_Play(0, 0);
snd.BGM_Fade(1, 0.01);
}
function frame2(){
stop();
draw_count = 0;
old_timer = getTimer();
tbox.visible = false;
stage.addEventListener(Event.ENTER_FRAME, function (){
draw_count = (draw_count + 1);
if ((getTimer() - old_timer) >= 1000){
tbox.text = draw_count;
old_timer = getTimer();
draw_count = 0;
};
});
}
}
}//package count_fla
Section 3
//movie_1 (count_fla.movie_1)
package count_fla {
import flash.display.*;
import flash.filters.*;
public dynamic class movie_1 extends MovieClip {
public var cfiltersArray:Array;
public var hg1:MovieClip;
public var hg2:MovieClip;
public var hg3:MovieClip;
public var hg4:MovieClip;
public var dshadowFilter:DropShadowFilter;
public var hg5:MovieClip;
public var hg5b:MovieClip;
public var hg7:MovieClip;
public var filtersArray:Array;
public var hari1:MovieClip;
public var hari0:MovieClip;
public var hg7b:MovieClip;
public var fade:int;
public var bevelFilter:BevelFilter;
public var fadein:MovieClip;
public var ds:MovieClip;
public var hari2:MovieClip;
public var date:Date;
public var hg3b:MovieClip;
public function movie_1(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
prevFrame();
}
function frame1(){
fade = 0;
filtersArray = new Array();
bevelFilter = new BevelFilter();
bevelFilter.angle = 45;
bevelFilter.blurX = 1;
bevelFilter.blurY = 1;
bevelFilter.distance = 2;
bevelFilter.highlightAlpha = 0.7;
bevelFilter.highlightColor = 0xFFFFFF;
bevelFilter.knockout = false;
bevelFilter.quality = BitmapFilterQuality.LOW;
bevelFilter.shadowAlpha = 0.7;
bevelFilter.shadowColor = 0;
bevelFilter.strength = 0.5;
bevelFilter.type = BitmapFilterType.INNER;
filtersArray.push(bevelFilter);
dshadowFilter = new DropShadowFilter();
dshadowFilter.alpha = 0.5;
dshadowFilter.angle = 45;
dshadowFilter.blurX = 8;
dshadowFilter.blurY = 8;
dshadowFilter.color = 0;
dshadowFilter.distance = 5;
dshadowFilter.hideObject = false;
dshadowFilter.inner = false;
dshadowFilter.knockout = false;
dshadowFilter.quality = BitmapFilterQuality.LOW;
dshadowFilter.strength = 1;
filtersArray.push(dshadowFilter);
hg5.filters = filtersArray;
hg5b.filters = filtersArray;
hg7.filters = filtersArray;
hg7b.filters = filtersArray;
hari0.filters = filtersArray;
cfiltersArray = new Array();
dshadowFilter = new DropShadowFilter();
dshadowFilter.alpha = 0.5;
dshadowFilter.angle = 45;
dshadowFilter.blurX = 12;
dshadowFilter.blurY = 12;
dshadowFilter.color = 0;
dshadowFilter.distance = 10;
dshadowFilter.hideObject = false;
dshadowFilter.inner = false;
dshadowFilter.knockout = false;
dshadowFilter.quality = BitmapFilterQuality.LOW;
dshadowFilter.strength = 1;
cfiltersArray.push(dshadowFilter);
hari1.filters = cfiltersArray;
hari2.filters = cfiltersArray;
fadein.alpha = 1;
ds.alpha = 0;
nextFrame();
}
function frame2(){
set_rotation(hg1, -10);
set_rotation(hg2, -4);
set_rotation(hg3, -1);
set_rotation(hg3b, 0.5);
set_rotation(hg4, 0.5);
set_rotation(hg7, -1);
set_rotation(hg7b, 1);
date = new Date();
hari0.rotation = ((date.seconds / 60) * 360);
hari1.rotation = ((date.minutes / 60) * 360);
hari2.rotation = (((date.hours / 24) * 720) + ((date.minutes / 60) * 30));
if (fade == 0){
if (fadein.alpha > 0){
fadein.alpha = (fadein.alpha - 0.02);
} else {
fadein.visible = false;
fade = 1;
};
} else {
if (fade == 1){
if (ds.alpha < 1){
ds.alpha = (ds.alpha + 0.05);
} else {
fade = 2;
};
};
};
play();
}
public function set_rotation(_arg1:MovieClip, _arg2:Number):void{
_arg1.rotation = (_arg1.rotation + _arg2);
if (_arg1.rotation < 0){
_arg1.rotation = (_arg1.rotation + 360);
} else {
if (_arg1.rotation > 360){
_arg1.rotation = (_arg1.rotation - 360);
};
};
}
}
}//package count_fla
Section 4
//CTSound (CTSound)
package {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class CTSound {
private static const CT_SOUND_MAX:int = 50;
private static var ct_NowBGM:int;
private static var ct_Sound_list:Array;
private static var ct_fade:int;
private static var ct_SoundVolume:Number;
private static var ct_init:Boolean = false;
private static var ct_fdvolume:Number;
private static var ct_mute:Boolean;
private static var ct_Cannel_list:Array;
private static var ct_Soundmix:SoundTransform;
private static var ct_Volume_list:Array;
private static var ct_timer:Timer;
private static var ct_fdspeed:Number;
public function CTSound():void{
if (!ct_init){
Sound_Init();
ct_init = true;
};
}
public function Sound_Init():void{
var _local1:int;
ct_Sound_list = new Array();
ct_Volume_list = new Array();
ct_Cannel_list = new Array();
ct_SoundVolume = 1;
ct_mute = false;
ct_NowBGM = -1;
_local1 = 0;
while (_local1 < CT_SOUND_MAX) {
ct_Sound_list[_local1] = null;
ct_Volume_list[_local1] = 0;
ct_Cannel_list[_local1] = null;
_local1++;
};
set_Volume(ct_SoundVolume);
}
public function BGM_Fade(_arg1:Number, _arg2:Number=0.05):void{
var _local3:SoundTransform;
if (ct_NowBGM < 0){
return;
};
_local3 = ct_Cannel_list[ct_NowBGM].soundTransform;
ct_fdvolume = _arg1;
ct_fdspeed = _arg2;
if (_local3.volume < ct_fdvolume){
ct_fade = 1;
} else {
if (_local3.volume > ct_fdvolume){
ct_fade = -1;
} else {
return;
};
};
ct_timer = new Timer(50, 0);
ct_timer.start();
ct_timer.addEventListener(TimerEvent.TIMER, FadeHandler);
}
public function Sound_Play(_arg1:int, _arg2:int=1, _arg3:Number=1):void{
var _local4:SoundTransform;
if (ct_Sound_list[_arg1] == null){
return;
};
if (_arg2 == 0){
_arg2 = 8388607;
};
ct_Cannel_list[_arg1] = ct_Sound_list[_arg1].play(0, _arg2);
ct_Volume_list[_arg1] = _arg3;
_local4 = ct_Cannel_list[_arg1].soundTransform;
_local4.volume = ct_Volume_list[_arg1];
ct_Cannel_list[_arg1].soundTransform = _local4;
}
public function Mute_on():void{
ct_mute = true;
trace(ct_mute);
set_Volume(ct_SoundVolume);
}
public function SoundBGM_Stop():void{
if (ct_NowBGM >= 0){
Sound_Stop(ct_NowBGM);
};
ct_NowBGM = -1;
ct_fade = 0;
}
public function Mute_off():void{
ct_mute = false;
set_Volume(ct_SoundVolume);
}
public function Sound_Volume(_arg1:int, _arg2:Number):void{
var _local3:SoundTransform;
if (ct_Cannel_list[_arg1] == null){
return;
};
_local3 = ct_Cannel_list[_arg1].soundTransform;
_local3.volume = _arg2;
ct_Volume_list[_arg1] = _arg2;
ct_Cannel_list[_arg1].soundTransform = _local3;
}
public function FadeHandler(_arg1:TimerEvent):void{
var _local2:SoundTransform;
_local2 = ct_Cannel_list[ct_NowBGM].soundTransform;
if (ct_fade == 1){
ct_Volume_list[ct_NowBGM] = (ct_Volume_list[ct_NowBGM] + ct_fdspeed);
if (ct_Volume_list[ct_NowBGM] < ct_fdvolume){
_local2.volume = ct_Volume_list[ct_NowBGM];
ct_Cannel_list[ct_NowBGM].soundTransform = _local2;
} else {
_local2.volume = ct_fdvolume;
ct_Volume_list[ct_NowBGM] = ct_fdvolume;
ct_Cannel_list[ct_NowBGM].soundTransform = _local2;
ct_timer.removeEventListener(TimerEvent.TIMER, FadeHandler);
ct_fade = 0;
};
} else {
if (ct_fade == -1){
ct_Volume_list[ct_NowBGM] = (ct_Volume_list[ct_NowBGM] - ct_fdspeed);
if (ct_Volume_list[ct_NowBGM] > ct_fdvolume){
_local2.volume = ct_Volume_list[ct_NowBGM];
ct_Volume_list[ct_NowBGM] = ct_Volume_list[ct_NowBGM];
ct_Cannel_list[ct_NowBGM].soundTransform = _local2;
} else {
_local2.volume = ct_fdvolume;
ct_Volume_list[ct_NowBGM] = ct_fdvolume;
ct_Cannel_list[ct_NowBGM].soundTransform = _local2;
ct_timer.removeEventListener(TimerEvent.TIMER, FadeHandler);
ct_fade = 0;
if (ct_fdvolume == 0){
SoundBGM_Stop();
};
};
} else {
ct_timer.removeEventListener(TimerEvent.TIMER, FadeHandler);
ct_fade = 0;
};
};
}
public function All_Sound_Stop():void{
var _local1:int;
_local1 = 0;
while (_local1 < CT_SOUND_MAX) {
if (ct_Cannel_list[_local1] != null){
ct_Cannel_list[_local1].stop();
ct_Cannel_list[_local1] = null;
};
_local1++;
};
ct_fade = 0;
}
public function Add_Sound(_arg1:int, _arg2:Class):void{
ct_Sound_list[_arg1] = new (_arg2);
}
public function Sound_Stop(_arg1:int):void{
if (ct_Cannel_list[_arg1] == null){
return;
};
ct_Cannel_list[_arg1].stop();
ct_Cannel_list[_arg1] = null;
}
public function set_Volume(_arg1:Number):void{
ct_SoundVolume = _arg1;
if (ct_mute){
_arg1 = 0;
};
ct_Soundmix = SoundMixer.soundTransform;
ct_Soundmix.volume = _arg1;
SoundMixer.soundTransform = ct_Soundmix;
}
public function get _mute():Boolean{
return (ct_mute);
}
public function SoundBGM_Play(_arg1:int, _arg2:Number=1):void{
if (ct_NowBGM == _arg1){
return;
};
if (ct_NowBGM >= 0){
Sound_Stop(ct_NowBGM);
};
ct_NowBGM = _arg1;
Sound_Play(_arg1, 0, _arg2);
}
}
}//package
Section 5
//se_clock (se_clock)
package {
import flash.media.*;
public dynamic class se_clock extends Sound {
}
}//package