Section 1
//MainTimeline (j_fun.MainTimeline)
package j_fun {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import km.preloaders.*;
import flash.text.*;
import km.instances.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var btn1:__DefineButton0;
public var btn2:__DefineButton1;
public var _pl_;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 9, frame10, 362, frame363);
}
public function _continue_(_arg1:Event):void{
var _local2:int;
loaderInfo.removeEventListener("complete", _continue_);
loaderInfo.removeEventListener("progress", _pl_.showProgress);
_local2 = 0;
while (_local2 < numChildren) {
removeChildAt(0);
_local2++;
};
if (totalFrames > 3){
gotoAndPlay(3);
} else {
gotoAndStop(3);
};
}
function frame1(){
_pl_ = new GradientBarPreloader();
_pl_.dx = 0;
_pl_.dy = 0;
_pl_.progress_type = 0;
_pl_.line_thickness = 2;
_pl_.text_format = new TextFormat("Verdana", 11, 0x555555, true);
_pl_.text_align = 2;
_pl_.display = 2;
_pl_.os_width = 100;
_pl_.os_height = 10;
_pl_.os_line_color = 0x999999;
_pl_.os_line_alpha = 0.3;
_pl_.os_fill_type = 1;
_pl_.os_fill_colors = [13684960, 13684960];
_pl_.os_fill_alphas = [1, 1];
_pl_.os_fill_ratios = [0, 0xFF];
_pl_.os_roundness = 100;
_pl_.is_padding = 0;
_pl_.is_line_color = 0x999999;
_pl_.is_line_alpha = 0.3;
_pl_.is_fill_type = 1;
_pl_.is_fill_colors = [0x353535, 0xFFFFFF];
_pl_.is_fill_alphas = [1, 1];
_pl_.is_fill_ratios = [0, 0xFF];
_pl_.is_roundness = 100;
_pl_.dx = 0;
_pl_.dy = 0;
_pl_.progress_type = 0;
_pl_.line_thickness = 2;
_pl_.text_format = new TextFormat("Verdana", 11, 0x555555, 1);
_pl_.text_align = 2;
_pl_.display = 2;
_pl_.os_width = 100;
_pl_.os_height = 10;
_pl_.os_line_color = 0x999999;
_pl_.os_line_alpha = 30;
_pl_.os_fill_type = 1;
_pl_.os_fill_colors = [13684960, 13684960];
_pl_.os_fill_alphas = [0xFF, 0xFF];
_pl_.os_fill_ratios = [0, 0xFF];
_pl_.os_roundness = 100;
_pl_.is_padding = 0;
_pl_.is_line_color = 0x999999;
_pl_.is_line_alpha = 30;
_pl_.is_fill_type = 1;
_pl_.is_fill_colors = [0x353535, 0xFFFFFF];
_pl_.is_fill_alphas = [0xFF, 0xFF];
_pl_.is_fill_ratios = [0, 0xFF];
_pl_.is_roundness = 100;
addChild(_pl_);
loaderInfo.addEventListener("complete", _continue_);
loaderInfo.addEventListener("progress", _pl_.showProgress);
if (loaderInfo.bytesLoaded == loaderInfo.bytesTotal){
_continue_(null);
};
}
function frame2(){
stop();
}
function frame10(){
stop();
}
function frame363(){
stop();
stop();
SoundMixer.stopAll();
}
}
}//package j_fun
Section 2
//GUI_Button (km.components.GUI_Button)
package km.components {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.media.*;
import flash.utils.*;
public class GUI_Button extends SimpleButton {
private var ul:URLLoader;
private var ulTarget:Object;
private var rootMC:MovieClip;
private var parentMC:MovieClip;
private var dragging:Boolean;
public function GUI_Button():void{
rootMC = (root as MovieClip);
parentMC = (parent as MovieClip);
addEventListener("rollOut", _rollOut, false, 0, true);
addEventListener("rollOver", _rollOver, false, 0, true);
__setup();
}
private function _rollOut(_arg1:MouseEvent):void{
if (_arg1.buttonDown){
dispatchEvent(new Event("dragOutAS1Style"));
dragging = true;
if (stage){
stage.addEventListener("mouseUp", _mouseUp, false, 0, true);
};
} else {
dispatchEvent(new Event("rollOutAS1Style"));
};
}
private function _mouseUp(_arg1:MouseEvent):void{
if (stage){
stage.removeEventListener("mouseUp", _mouseUp);
};
dragging = false;
}
private function _rollOver(_arg1:MouseEvent):void{
if (dragging){
dispatchEvent(new Event("dragOverAS1Style"));
} else {
dispatchEvent(new Event("rollOverAS1Style"));
};
}
protected function __setup():void{
}
protected function addClickListener(_arg1:Function):void{
addEventListener("click", _arg1, false, 0, true);
}
protected function addDoubleClickListener(_arg1:Function):void{
doubleClickEnabled = true;
addEventListener("doubleClick", _arg1, false, 0, true);
}
protected function addRollOverListener(_arg1:Function):void{
addEventListener("rollOverAS1Style", _arg1, false, 0, true);
}
protected function addRollOutListener(_arg1:Function):void{
addEventListener("rollOutAS1Style", _arg1, false, 0, true);
}
protected function addDragOverListener(_arg1:Function):void{
addEventListener("dragOverAS1Style", _arg1, false, 0, true);
}
protected function addDragOutListener(_arg1:Function):void{
addEventListener("dragOutAS1Style", _arg1, false, 0, true);
}
protected function prevFrame():void{
parentMC.prevFrame();
}
protected function nextFrame():void{
parentMC.nextFrame();
}
protected function stop():void{
parentMC.stop();
}
protected function gotoAndStop(... _args):void{
parentMC.gotoAndStop.apply(parentMC, _args);
}
protected function play():void{
parentMC.play();
}
protected function gotoAndPlay(... _args):void{
parentMC.gotoAndPlay.apply(parentMC, _args);
}
protected function stopSounds():void{
SoundMixer.stopAll();
}
protected function getClickTagURL():void{
var _local1:String;
_local1 = root.loaderInfo.parameters.clickTAG;
if (((_local1) && ((_local1.substr(0, 5) == "http:")))){
getURL(_local1);
};
}
protected function getURL(_arg1:String, _arg2:String=null, _arg3:String=null):void{
var ur:URLRequest;
var uv:URLVariables;
var i:int;
var c:*;
var cn:String;
var url = _arg1;
var window = _arg2;
var method = _arg3;
try {
ur = new URLRequest(url);
if (method){
uv = new URLVariables();
i = 0;
while (i < parent.numChildren) {
c = parent.getChildAt(i);
cn = getQualifiedClassName(c);
if (cn.split("::")[0] == "km.instances"){
cn = getQualifiedSuperclassName(c);
};
switch (cn){
case "flash.text::TextField":
if (c.text){
uv[c.name] = c.text;
};
break;
case "km.components::RichTextEditor":
if (c.text){
uv[c.name] = c.htmlText;
};
break;
};
i = (i + 1);
};
ur.data = uv;
ur.method = method;
};
navigateToURL(ur, window);
} catch(e:Error) {
};
}
protected function loadVariables(_arg1:String, _arg2:Object=null):void{
var url = _arg1;
var target = _arg2;
ulTarget = (target) ? target : rootMC;
ul = new URLLoader();
ul.addEventListener("complete", loadVariablesComplete, false, 0, true);
ul.dataFormat = "variables";
try {
ul.load(new URLRequest(url));
} catch(e:Error) {
};
}
private function loadVariablesComplete(_arg1:Event):void{
var v:String;
var a:Array;
var target:Object;
var e = _arg1;
for (v in ul.data) {
try {
a = v.split(".");
target = ulTarget;
while (a.length > 1) {
target = target[a.shift()];
};
target[a.shift()] = ul.data[v];
} catch(e:Error) {
};
};
}
}
}//package km.components
Section 3
//__DefineButton0 (km.instances.__DefineButton0)
package km.instances {
import km.components.*;
public class __DefineButton0 extends GUI_Button {
public function __DefineButton0():void{
}
override protected function __setup():void{
addClickListener(__event1);
}
private function __event1(_arg1):void{
gotoAndPlay(15);
}
}
}//package km.instances
Section 4
//__DefineButton1 (km.instances.__DefineButton1)
package km.instances {
import km.components.*;
public class __DefineButton1 extends GUI_Button {
public function __DefineButton1():void{
}
override protected function __setup():void{
addClickListener(__event1);
}
private function __event1(_arg1):void{
gotoAndPlay(1);
}
}
}//package km.instances
Section 5
//GradientBarPreloader (km.preloaders.GradientBarPreloader)
package km.preloaders {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
public class GradientBarPreloader extends Sprite {
public var dx:int;
public var dy:int;
public var progress_type:int;
public var line_thickness:int;
public var text_format:TextFormat;
public var text_align:int;
public var display:int;
public var os_width:int;
public var os_height:int;
public var os_line_color:uint;
public var os_line_alpha:Number;
public var os_fill_type:int;
public var os_fill_colors:Array;
public var os_fill_alphas:Array;
public var os_fill_ratios:Array;
public var os_roundness:int;
public var is_padding:int;
public var is_line_color:uint;
public var is_line_alpha:Number;
public var is_fill_type:int;
public var is_fill_colors:Array;
public var is_fill_alphas:Array;
public var is_fill_ratios:Array;
public var is_roundness:int;
private var outer:Shape;
private var inner:Shape;
private var m:Shape;
private var l:TextField;
private var ip:int;
private var hw:int;
private var hh:int;
private var r:Number;
public function GradientBarPreloader():void{
outer = new Shape();
inner = new Shape();
m = new Shape();
l = new TextField();
super();
visible = false;
addChild(outer);
addChild(inner);
addChild(m);
addChild(l);
inner.mask = m;
addEventListener("addedToStage", addedToStage);
}
private function rRect(_arg1:Shape, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int):void{
_arg1.graphics.drawRoundRect(_arg2, _arg3, (_arg4 - _arg2), (_arg5 - _arg3), ((Math.min((_arg4 - _arg2), (_arg5 - _arg3)) * _arg6) / 100));
}
private function addedToStage(_arg1:Event):void{
var _local2:Matrix;
l.defaultTextFormat = text_format;
l.selectable = false;
ip = Math.min(is_padding, (Math.min(os_width, os_height) / 2));
hw = (os_width / 2);
hh = (os_height / 2);
r = (1.5 * Math.sqrt(((hw * hw) + (hh * hh))));
_local2 = new Matrix();
outer.graphics.lineStyle(line_thickness, os_line_color, os_line_alpha, true);
_local2.createGradientBox((2 * hw), (2 * hh), (os_fill_type) ? (-(Math.PI) / 2) : 0, -(hw), -(hh));
outer.graphics.beginGradientFill(((os_fill_type)<2) ? "linear" : "radial", os_fill_colors, os_fill_alphas, os_fill_ratios, _local2);
rRect(outer, -(hw), -(hh), hw, hh, os_roundness);
outer.graphics.lineStyle(line_thickness, is_line_color, is_line_alpha, true);
rRect(outer, (ip - hw), (ip - hh), (hw - ip), (hh - ip), is_roundness);
inner.graphics.lineStyle(line_thickness, is_line_color, is_line_alpha, true);
_local2.createGradientBox((2 * (hw - ip)), (2 * (hh - ip)), (is_fill_type) ? (-(Math.PI) / 2) : 0, (ip - hw), (ip - hh));
inner.graphics.beginGradientFill(((is_fill_type)<2) ? "linear" : "radial", is_fill_colors, is_fill_alphas, is_fill_ratios, _local2);
rRect(inner, (ip - hw), (ip - hh), (hw - ip), (hh - ip), is_roundness);
}
public function showProgress(_arg1:ProgressEvent):void{
var _local2:Number;
var _local3:int;
var _local4:Number;
if (((stage) && (stage.stageWidth))){
visible = true;
x = ((stage.stageWidth / 2) + dx);
y = ((stage.stageHeight / 2) + dy);
_local2 = (_arg1.bytesLoaded / _arg1.bytesTotal);
m.graphics.clear();
m.graphics.lineStyle(line_thickness, 0, 1, true);
m.graphics.beginFill(0);
if (progress_type == 0){
rRect(m, (ip - hw), (ip - hh), ((ip - hw) + ((2 * (hw - ip)) * _local2)), (hh - ip), 0);
} else {
if (progress_type == 1){
rRect(m, (ip - hw), ((ip - hh) + ((2 * (hh - ip)) * (1 - _local2))), (hw - ip), (hh - ip), 0);
} else {
m.graphics.moveTo(0, 0);
_local3 = 0;
while (_local3 <= 360) {
_local4 = (Math.min(_local3, (_local2 * 360)) / 57.296);
m.graphics.lineTo((r * Math.sin(_local4)), (-(r) * Math.cos(_local4)));
_local3 = (_local3 + 45);
};
};
};
m.graphics.endFill();
if (display){
l.text = ((display)>1) ? (Math.floor((_arg1.bytesLoaded / 0x0400)) + " KB") : (Math.floor((100 * _local2)) + " %");
};
l.x = (-(l.textWidth) / 2);
l.y = ((((text_align - 1) * (hh + l.textHeight)) - (l.textHeight / 2)) - 2);
};
}
}
}//package km.preloaders