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 const titleincrement = 2;
public var title_txt:TextField;
public var tracktitles:Array;
public var bmask:Symbol7;
public var date_txt:TextField;
public var ampm_txt:TextField;
public var art:artlink;
public var bibiosound;
public var songtitle;
public var bg1:Symbol1;
public var bg5:Symbol5;
public var bg6:Symbol6;
public var bg2:Symbol2;
public var bg3:Symbol3;
public var bg4:Symbol4;
public var index;
public var soundChannel:SoundChannel;
public var hue:huebutton;
public var song;
public var idlefonsound;
public var day_txt:TextField;
public var max;
public var afterWait:Function;
public var wait;
public var net:netbutton;
public var date:Date;
public var radioplaying;
public var radiosound;
public var lainsound;
public var time_txt:TextField;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 13, frame14, 19, frame20, 25, frame26, 31, frame32, 37, frame38);
}
public function radio(){
var _local1:URLRequest;
var _local2:SoundLoaderContext;
soundChannel.stop();
safeclose();
index = (-1 * titleincrement);
songtitle = "Digitally Imported.fm - Ambient";
_local1 = new URLRequest("http://pub8.di.fm:80/di_ambient");
_local2 = new SoundLoaderContext(1000, true);
radiosound = new Sound();
radiosound.load(_local1, _local2);
soundChannel = radiosound.play();
radioplaying = 1;
}
public function getDate(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = _arg1.getFullYear();
_local3 = (_arg1.getMonth() + 1);
_local4 = _arg1.getDate();
_local5 = (_local2 + "/");
_local5 = (_local5 + ((((_local3)<10) ? " " : "" + _local3) + "/"));
_local5 = (_local5 + (((_local4)<10) ? " " : "" + _local4));
return (_local5);
}
function frame14(){
}
function frame1(){
radioplaying = 0;
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;
}
function frame2(){
hue.addEventListener(MouseEvent.CLICK, clickHandler);
art.addEventListener(MouseEvent.CLICK, artHandler);
net.addEventListener(MouseEvent.CLICK, netHandler);
date = new Date();
time_txt.text = getTime(date);
date_txt.text = getDate(date);
day_txt.text = getDay(date);
ampm_txt.text = ampm(date);
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 getDay(_arg1){
var _local2:*;
var _local3:*;
_local2 = _arg1.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 frame26(){
}
function frame8(){
}
public function nextsong(){
song = ((song)<(tracktitles.length - 1)) ? (song + 1) : 0;
songtitle = tracktitles[song];
index = (-1 * titleincrement);
soundChannel.stop();
safeclose();
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 frame32(){
}
public function nexttext(){
var _local1:*;
_local1 = new String(((songtitle + ". ") + songtitle));
index = (index + titleincrement);
if (index > (songtitle.length + titleincrement)){
index = 0;
};
return (_local1.substr(index, max));
}
public function clickHandler(_arg1:MouseEvent):void{
nextsong();
}
public function safeclose(){
if (radioplaying == 1){
radioplaying = 0;
radiosound.close();
};
}
public function netHandler(_arg1:MouseEvent):void{
radio();
}
public function ampm(_arg1){
var _local2:*;
var _local3:*;
_local2 = _arg1.getHours();
_local3 = ((_local2)<12) ? "AM" : "PM";
return (_local3);
}
public function getTime(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = _arg1.getHours();
_local3 = _arg1.getMinutes();
_local4 = ((_local2)>12) ? (_local2 - 12) : _local2;
if (_local4 == 0){
_local4 = 12;
};
_local5 = (((_local4)<10) ? " " : "" + _local4);
_local5 = (_local5 + (((_local3)<10) ? ":0" : ":" + _local3));
return (_local5);
}
public function artHandler(_arg1:MouseEvent):void{
var _local2:URLRequest;
var _local3:String;
_local2 = new URLRequest("http://1041uuu.tumblr.com/");
_local2.method = URLRequestMethod.GET;
_local3 = "_blank";
navigateToURL(_local2, _local3);
}
}
}//package seasidescene_fla
Section 2
//artlink (artlink)
package {
import flash.display.*;
public dynamic class artlink extends SimpleButton {
}
}//package
Section 3
//bibio (bibio)
package {
import flash.media.*;
public dynamic class bibio extends Sound {
}
}//package
Section 4
//huebutton (huebutton)
package {
import flash.display.*;
public dynamic class huebutton extends SimpleButton {
}
}//package
Section 5
//idlefon (idlefon)
package {
import flash.media.*;
public dynamic class idlefon extends Sound {
}
}//package
Section 6
//lain (lain)
package {
import flash.media.*;
public dynamic class lain extends Sound {
}
}//package
Section 7
//netbutton (netbutton)
package {
import flash.display.*;
public dynamic class netbutton extends SimpleButton {
}
}//package
Section 8
//Symbol1 (Symbol1)
package {
import flash.display.*;
public dynamic class Symbol1 extends MovieClip {
}
}//package
Section 9
//Symbol2 (Symbol2)
package {
import flash.display.*;
public dynamic class Symbol2 extends MovieClip {
}
}//package
Section 10
//Symbol3 (Symbol3)
package {
import flash.display.*;
public dynamic class Symbol3 extends MovieClip {
}
}//package
Section 11
//Symbol4 (Symbol4)
package {
import flash.display.*;
public dynamic class Symbol4 extends MovieClip {
}
}//package
Section 12
//Symbol5 (Symbol5)
package {
import flash.display.*;
public dynamic class Symbol5 extends MovieClip {
}
}//package
Section 13
//Symbol6 (Symbol6)
package {
import flash.display.*;
public dynamic class Symbol6 extends MovieClip {
}
}//package
Section 14
//Symbol7 (Symbol7)
package {
import flash.display.*;
public dynamic class Symbol7 extends MovieClip {
}
}//package