Section 1
//MainTimeline (seasidescene_fla.MainTimeline)
package seasidescene_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var lainsound;
public var time_txt:TextField;
public var title_txt:TextField;
public var soundChannel:SoundChannel;
public var tracktitles:Array;
public var idlefonsound;
public var song;
public var bmask:Symbol7;
public var date_txt:TextField;
public var songtitle;
public var bibiosound;
public var ampm_txt:TextField;
public var max;
public var afterWait:Function;
public var wait;
public var bg5:Symbol5;
public var bg6:Symbol6;
public var bg3:Symbol3;
public var day_txt:TextField;
public var bg4:Symbol4;
public var bg2:Symbol2;
public var bg1:Symbol1;
public var index;
public var hue:huebutton;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 13, frame14, 19, frame20, 25, frame26, 31, frame32, 37, frame38);
}
public function ampm(){
var _local1:Date;
var _local2:*;
var _local3:*;
_local1 = new Date();
_local2 = _local1.getHours();
_local3 = ((_local2)<12) ? "AM" : "PM";
return (_local3);
}
public function getDate(){
var _local1:Date;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = new Date();
_local2 = _local1.getFullYear();
_local3 = (_local1.getMonth() + 1);
_local4 = _local1.getDate();
_local5 = (_local2 + "/");
_local5 = (_local5 + ((((_local3)<10) ? " " : "" + _local3) + "/"));
_local5 = (_local5 + (((_local4)<10) ? " " : "" + _local4));
return (_local5);
}
public function getTime(){
var _local1:Date;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = new Date();
_local2 = _local1.getHours();
_local3 = _local1.getMinutes();
_local4 = ((_local2)>12) ? (_local2 - 12) : _local2;
_local5 = (((_local4)<10) ? " " : "" + _local4);
_local5 = (_local5 + (((_local3)<10) ? ":0" : ":" + _local3));
return (_local5);
}
function frame14(){
}
public function getDay(){
var _local1:Date;
var _local2:*;
var _local3:*;
_local1 = new Date();
_local2 = _local1.getDay();
_local3 = "(";
switch (_local2){
case 0:
_local3 = (_local3 + "SUN");
break;
case 1:
_local3 = (_local3 + "MON");
break;
case 2:
_local3 = (_local3 + "TUE");
break;
case 3:
_local3 = (_local3 + "WED");
break;
case 4:
_local3 = (_local3 + "THU");
break;
case 5:
_local3 = (_local3 + "FRI");
break;
case 6:
_local3 = (_local3 + "SAT");
break;
};
_local3 = (_local3 + ")");
return (_local3);
}
function frame8(){
}
function frame2(){
hue.addEventListener(MouseEvent.CLICK, clickHandler);
time_txt.text = getTime();
date_txt.text = getDate();
day_txt.text = getDay();
ampm_txt.text = ampm();
title_txt.text = nexttext();
wait = new Timer(1666);
afterWait = function (_arg1:TimerEvent):void{
wait.removeEventListener(TimerEvent.TIMER, afterWait);
wait = null;
title_txt.text = nexttext();
};
wait.addEventListener(TimerEvent.TIMER, afterWait);
wait.start();
}
public function nextsong(){
song = ((song)<(tracktitles.length - 1)) ? (song + 1) : 0;
songtitle = tracktitles[song];
index = 0;
soundChannel.stop();
switch (song){
case 0:
soundChannel = bibiosound.play(0, int.MAX_VALUE);
break;
case 1:
soundChannel = idlefonsound.play(0, int.MAX_VALUE);
break;
case 2:
soundChannel = lainsound.play(0, int.MAX_VALUE);
break;
};
}
function frame20(){
}
function frame38(){
gotoAndPlay(2);
}
function frame1(){
bibiosound = new bibio();
idlefonsound = new idlefon();
lainsound = new lain();
soundChannel = bibiosound.play(0, int.MAX_VALUE);
tracktitles = new Array("Bibio - The First Daffodils", "Idlefon - FairLight", "Nakaido \"Chabo\" Reichi - Hitoribocchi A");
song = 0;
songtitle = tracktitles[0];
index = 0;
max = 13;
}
public function clickHandler(_arg1:MouseEvent):void{
nextsong();
}
function frame26(){
}
public function nexttext(){
var _local1:*;
_local1 = new String(((songtitle + ". ") + songtitle));
index = (index + 2);
if (index > (songtitle.length + 2)){
index = 0;
};
return (_local1.substr(index, max));
}
function frame32(){
}
}
}//package seasidescene_fla
Section 2
//bibio (bibio)
package {
import flash.media.*;
public dynamic class bibio extends Sound {
}
}//package
Section 3
//huebutton (huebutton)
package {
import flash.display.*;
public dynamic class huebutton extends SimpleButton {
}
}//package
Section 4
//idlefon (idlefon)
package {
import flash.media.*;
public dynamic class idlefon extends Sound {
}
}//package
Section 5
//lain (lain)
package {
import flash.media.*;
public dynamic class lain extends Sound {
}
}//package
Section 6
//Symbol1 (Symbol1)
package {
import flash.display.*;
public dynamic class Symbol1 extends MovieClip {
}
}//package
Section 7
//Symbol2 (Symbol2)
package {
import flash.display.*;
public dynamic class Symbol2 extends MovieClip {
}
}//package
Section 8
//Symbol3 (Symbol3)
package {
import flash.display.*;
public dynamic class Symbol3 extends MovieClip {
}
}//package
Section 9
//Symbol4 (Symbol4)
package {
import flash.display.*;
public dynamic class Symbol4 extends MovieClip {
}
}//package
Section 10
//Symbol5 (Symbol5)
package {
import flash.display.*;
public dynamic class Symbol5 extends MovieClip {
}
}//package
Section 11
//Symbol6 (Symbol6)
package {
import flash.display.*;
public dynamic class Symbol6 extends MovieClip {
}
}//package
Section 12
//Symbol7 (Symbol7)
package {
import flash.display.*;
public dynamic class Symbol7 extends MovieClip {
}
}//package