Section 1
//MainTimeline (sevenseas_fla.MainTimeline)
package sevenseas_fla {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var wave:Sprite;
public var version;
public var planedelta;
public var my_menu:ContextMenu;
public var planeData:Plane;
public var planecount;
public var waveData:Waves;
public var plane:Sprite;
public var planebasis;
public var pRotDelta;
public var thissong;
public var credit;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function openSClink(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest("https://simplemachinesband.bandcamp.com/"));
}
function frame1(){
stage.align = StageAlign.TOP_LEFT;
my_menu = new ContextMenu();
my_menu.hideBuiltInItems();
version = new ContextMenuItem("Seven Seas rev.1");
version.enabled = false;
credit = new ContextMenuItem("Rubber NAND 2015");
credit.enabled = false;
thissong = new ContextMenuItem("Simple Machines - Spirit of the Shoreland EP - 04 Seven Seas");
thissong.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openSClink);
thissong.separatorBefore = true;
my_menu.customItems.push(version, credit, thissong);
contextMenu = my_menu;
planeData = new Plane(834, 959);
plane = new Sprite();
plane.graphics.beginBitmapFill(planeData);
plane.graphics.drawRect(0, -959, 834, 959);
plane.x = 130;
plane.y = 1020;
planebasis = 1020;
planedelta = 40;
stage.addChild(plane);
waveData = new Waves(1040, 1040);
wave = new Sprite();
wave.graphics.beginBitmapFill(waveData);
wave.graphics.drawRect(0, 0, 2080, 1040);
wave.graphics.endFill();
wave.y = -240;
stage.addChild(wave);
planecount = 0;
pRotDelta = 3;
}
function frame3(){
update();
gotoAndPlay(2);
}
function frame2(){
update();
}
public function update(){
if (wave.x > -1040){
wave.x = (wave.x - 1);
} else {
wave.x = 0;
};
planecount = (planecount + 0.005);
plane.y = (planebasis + (planedelta * Math.sin((planecount % (Math.PI * 2)))));
plane.rotation = (pRotDelta * Math.cos((planecount % (Math.PI * 2))));
}
}
}//package sevenseas_fla
Section 2
//Plane (Plane)
package {
import flash.display.*;
public dynamic class Plane extends BitmapData {
public function Plane(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 3
//Waves (Waves)
package {
import flash.display.*;
public dynamic class Waves extends BitmapData {
public function Waves(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package