Section 1
//ComicSystemLauncher_1 (Bibliophilia_fla.ComicSystemLauncher_1)
package Bibliophilia_fla {
import flash.display.*;
public dynamic class ComicSystemLauncher_1 extends MovieClip {
public var Comic:MovieClip;
public var init:Boolean;
public var i:int;
public var CS:ComicSystem;
public function ComicSystemLauncher_1(){
addFrameScript(0, frame1);
}
function frame1(){
Comic = (root as MovieClip);
Comic.stop();
init = false;
i = 0;
while (i < Comic.numChildren) {
if ((Comic.getChildAt(i) is ComicSystem)){
init = true;
break;
};
i++;
};
if (!init){
CS = new ComicSystem();
Comic.addChild(CS);
};
Comic.removeChild(this);
}
}
}//package Bibliophilia_fla
Section 2
//ComicSystem (ComicSystem)
package {
import flash.events.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ComicSystem extends MovieClip {
public var Comic:MovieClip;
public var Init:Boolean;
public var Preloader:PreloaderScreen;
public var GUI_Holder:MovieClip;
public var GUI_Base:MovieClip;
public var GUI_NavPrev:MovieClip;
public var GUI_NavNext:MovieClip;
public var GUI_PageCount:MovieClip;
public var KeyDown:Boolean;
public function ComicSystem(){
addFrameScript(0, frame1);
}
public function Initialize():void{
stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyPressed, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, KeyReleased, false, 0, true);
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
GUI_Holder.addChild(GUI_Base);
GUI_Base.gotoAndStop(9);
GUI_Holder.addChild(GUI_PageCount);
GUI_PageCount.gotoAndStop(10);
GUI_Holder.addChild(GUI_NavPrev);
GUI_NavPrev.gotoAndStop(1);
GUI_NavPrev.base = 1;
GUI_NavPrev.buttonMode = true;
GUI_Holder.addChild(GUI_NavNext);
GUI_NavNext.gotoAndStop(5);
GUI_NavNext.base = 5;
GUI_NavNext.buttonMode = true;
addChild(GUI_Holder);
GUI_NavPrev.addEventListener(MouseEvent.MOUSE_OVER, MouseOver, false, 0, true);
GUI_NavPrev.addEventListener(MouseEvent.MOUSE_OUT, MouseOut, false, 0, true);
GUI_NavPrev.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown, false, 0, true);
GUI_NavPrev.addEventListener(MouseEvent.CLICK, ButtonPrev, false, 0, true);
GUI_NavNext.addEventListener(MouseEvent.MOUSE_OVER, MouseOver, false, 0, true);
GUI_NavNext.addEventListener(MouseEvent.MOUSE_OUT, MouseOut, false, 0, true);
GUI_NavNext.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown, false, 0, true);
GUI_NavNext.addEventListener(MouseEvent.CLICK, ButtonNext, false, 0, true);
Init = true;
}
public function Update(_arg1:Event):void{
var _local2:Rectangle;
if (!Init){
if (KeyDown){
if ((Comic.loaderInfo.bytesLoaded / Comic.loaderInfo.bytesTotal) >= 1){
Initialize();
} else {
Preloader = new PreloaderScreen();
Comic.addChild(Preloader);
};
KeyDown = false;
};
if ((Comic.loaderInfo.bytesLoaded / Comic.loaderInfo.bytesTotal) >= 1){
Initialize();
};
} else {
GUI_Holder.y = stage.stageHeight;
if (Comic.currentFrame == 1){
GUI_NavPrev.gotoAndStop(4);
GUI_NavPrev.buttonMode = false;
} else {
if (!GUI_NavPrev.buttonMode){
GUI_NavPrev.gotoAndStop(1);
GUI_NavPrev.buttonMode = true;
};
};
if (Comic.currentFrame == Comic.totalFrames){
GUI_NavNext.gotoAndStop(8);
GUI_NavNext.buttonMode = false;
} else {
if (!GUI_NavNext.buttonMode){
GUI_NavNext.gotoAndStop(5);
GUI_NavNext.buttonMode = true;
};
};
_local2 = GUI_Base.getBounds(GUI_Holder);
GUI_Base.x = (GUI_Base.x - _local2.x);
GUI_Base.y = (GUI_Base.y - (GUI_Base.height + _local2.y));
GUI_Base.width = stage.stageWidth;
_local2 = GUI_PageCount.getBounds(GUI_Holder);
GUI_PageCount.x = (((stage.stageWidth - GUI_PageCount.width) / 2) + (GUI_PageCount.x - _local2.x));
GUI_PageCount.y = (GUI_PageCount.y - (GUI_PageCount.height + _local2.y));
if (GUI_PageCount.height < GUI_Base.height){
GUI_PageCount.y = (GUI_PageCount.y - ((GUI_Base.height - GUI_PageCount.height) / 2));
};
_local2 = GUI_NavPrev.getBounds(GUI_Holder);
GUI_NavPrev.x = (GUI_NavPrev.x - _local2.x);
GUI_NavPrev.y = (GUI_NavPrev.y - (GUI_NavPrev.height + _local2.y));
if (GUI_NavPrev.height < GUI_Base.height){
GUI_NavPrev.y = (GUI_NavPrev.y - ((GUI_Base.height - GUI_NavPrev.height) / 2));
};
_local2 = GUI_NavNext.getBounds(GUI_Holder);
GUI_NavNext.x = ((stage.stageWidth - GUI_NavNext.width) + (GUI_NavNext.x - _local2.x));
GUI_NavNext.y = (GUI_NavNext.y - (GUI_NavNext.height + _local2.y));
if (GUI_NavNext.height < GUI_Base.height){
GUI_NavNext.y = (GUI_NavNext.y - ((GUI_Base.height - GUI_NavNext.height) / 2));
};
Comic.stop();
};
}
public function MouseScroll(_arg1:MouseEvent):void{
if (_arg1.delta < 0){
Comic.nextFrame();
} else {
if (_arg1.delta > 0){
Comic.prevFrame();
};
};
UpdateGUI();
}
public function MouseOver(_arg1:MouseEvent):void{
if (_arg1.target.buttonMode){
_arg1.target.gotoAndStop((_arg1.target.base + 1));
};
Update(_arg1);
}
public function MouseOut(_arg1:MouseEvent):void{
if (_arg1.target.buttonMode){
_arg1.target.gotoAndStop(_arg1.target.base);
};
Update(_arg1);
}
public function MouseDown(_arg1:MouseEvent):void{
if (_arg1.target.buttonMode){
_arg1.target.gotoAndStop((_arg1.target.base + 2));
};
Update(_arg1);
}
public function ButtonNext(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop((_arg1.target.base + 1));
Comic.nextFrame();
UpdateGUI();
}
public function ButtonPrev(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop((_arg1.target.base + 1));
Comic.prevFrame();
UpdateGUI();
}
public function KeyPressed(_arg1:KeyboardEvent):void{
var _local2:int;
if (!KeyDown){
_local2 = _arg1.keyCode;
if ((((((((((((((((_local2 == 32)) || ((_local2 == 13)))) || ((_local2 == 34)))) || ((_local2 == 39)))) || ((_local2 == 190)))) || ((_local2 == 187)))) || ((_local2 == 107)))) || ((_local2 == 68)))){
Comic.nextFrame();
} else {
if ((((((((((((((((((_local2 == 8)) || ((_local2 == 46)))) || ((_local2 == 110)))) || ((_local2 == 33)))) || ((_local2 == 37)))) || ((_local2 == 188)))) || ((_local2 == 189)))) || ((_local2 == 109)))) || ((_local2 == 65)))){
Comic.prevFrame();
} else {
if ((((_local2 == 27)) || ((_local2 == 82)))){
Comic.gotoAndStop(1);
};
};
};
KeyDown = true;
UpdateGUI();
};
}
public function KeyReleased(_arg1:KeyboardEvent):void{
KeyDown = false;
}
public function UpdateGUI():void{
Comic.removeChild(this);
Comic.addChild(this);
}
function frame1(){
Comic = (root as MovieClip);
Init = false;
GUI_Holder = new MovieClip();
GUI_Base = new GUIParts();
GUI_NavPrev = new GUIParts();
GUI_NavNext = new GUIParts();
GUI_PageCount = new GUIParts();
KeyDown = true;
addEventListener(Event.ENTER_FRAME, Update, false, 0, true);
}
}
}//package
Section 3
//GUIParts (GUIParts)
package {
import flash.display.*;
public dynamic class GUIParts extends MovieClip {
}
}//package
Section 4
//PreloaderScreen (PreloaderScreen)
package {
import flash.events.*;
import flash.display.*;
public dynamic class PreloaderScreen extends MovieClip {
public var Progress:MovieClip;
public var Comic:MovieClip;
public var FadeCounter;
public function PreloaderScreen(){
addFrameScript(0, frame1);
}
public function Update(_arg1:Event):void{
var _local2:DisplayObject;
this.x = (stage.stageWidth / 2);
this.y = (stage.stageHeight / 2);
_local2 = this.getChildByName("Backdrop");
if (_local2 != null){
_local2.width = stage.stageWidth;
_local2.height = stage.stageHeight;
_local2.x = (-(stage.stageWidth) / 2);
_local2.y = (-(stage.stageHeight) / 2);
};
if (Comic.currentFrame > 1){
Comic.gotoAndStop(1);
};
var _local3:Number = ((Comic.loaderInfo.bytesLoaded / Comic.loaderInfo.bytesTotal) * 100);
Progress.scaleX = (1 - (_local3 / 100));
if (_local3 >= 100){
FadeCounter++;
alpha = ((30 - FadeCounter) / 30);
if (FadeCounter >= 30){
removeEventListener(Event.ENTER_FRAME, Update);
Comic.removeChild(this);
};
};
}
function frame1(){
Comic = (root as MovieClip);
addEventListener(Event.ENTER_FRAME, Update);
FadeCounter = 0;
blendMode = BlendMode.LAYER;
}
}
}//package