Section 1
//QueryString (com.abdulqabiz.utils.QueryString)
package com.abdulqabiz.utils {
import flash.external.*;
public class QueryString {
private var _all:String;
private var _params:Object;
private var _queryString:String;
public function QueryString(){
readQueryString();
}
private function readQueryString():void{
var params:Array;
var length:uint;
var i:uint;
var index:int;
var kvPair:String;
var key:String;
var value:String;
_params = {};
try {
_all = ExternalInterface.call("window.location.href.toString");
_queryString = ExternalInterface.call("window.location.search.substring", 1);
if (_queryString){
params = _queryString.split("&");
length = params.length;
i = 0;
index = -1;
while (i < length) {
kvPair = params[i];
var _local2 = kvPair.indexOf("=");
index = _local2;
if (_local2 > 0){
key = kvPair.substring(0, index);
value = kvPair.substring((index + 1));
_params[key] = value;
};
i = (i + 1);
};
};
} catch(e:Error) {
trace("Some error occured. ExternalInterface doesn't work in Standalone player.");
};
}
public function get url():String{
return (_all);
}
public function get parameters():Object{
return (_params);
}
public function get queryString():String{
return (_queryString);
}
}
}//package com.abdulqabiz.utils
Section 2
//Container_2 (InstantCSI5_fla.Container_2)
package InstantCSI5_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
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 Container_2 extends MovieClip {
public var btn:SimpleButton;
public var line1:TextField;
public var line2:TextField;
public var theroot:MovieClip;
public var lines;
public function Container_2(){
addFrameScript(0, frame1);
}
function frame1(){
line1.wordWrap = false;
line1.autoSize = TextFieldAutoSize.CENTER;
line2.wordWrap = false;
line2.autoSize = TextFieldAutoSize.CENTER;
theroot = (this.root as MovieClip);
lines = "";
if (theroot.line){
lines = theroot.line.split("*sunglasses*", 2);
};
if (lines.length > 0){
line1.text = decodeURIComponent(lines[0]);
} else {
line1.visible = false;
};
if (lines.length > 1){
line2.text = decodeURIComponent(lines[1]);
} else {
line2.visible = false;
};
}
}
}//package InstantCSI5_fla
Section 3
//invisiblebox_8 (InstantCSI5_fla.invisiblebox_8)
package InstantCSI5_fla {
import flash.display.*;
public dynamic class invisiblebox_8 extends MovieClip {
public function invisiblebox_8(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package InstantCSI5_fla
Section 4
//MainTimeline (InstantCSI5_fla.MainTimeline)
package InstantCSI5_fla {
import flash.events.*;
import com.abdulqabiz.utils.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
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 qs:QueryString;
public var BTN_MARGIN:Number;
public var line;
public var paramObj;
public var bgClip:MovieClip;
public var btn:MovieClip;
public var BTN_SCALE:Number;
public var autoplay;
public var pic:MovieClip;
public var lines;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 3, frame4);
}
public function resizeBtn(){
var _local1:*;
var _local2:Number;
if (this.btn != null){
btn.x = (stage.scaleX * 50);
btn.y = (stage.scaleY * 50);
_local1 = ((btn.width / btn.scaleX) * BTN_SCALE);
_local2 = ((btn.width / btn.scaleX) / (btn.height / btn.scaleY));
if ((stage.stageWidth / BTN_MARGIN) <= _local1){
btn.width = (stage.stageWidth / BTN_MARGIN);
btn.scaleY = btn.scaleX;
if ((stage.stageHeight / BTN_MARGIN) <= btn.height){
btn.height = (stage.stageHeight / BTN_MARGIN);
btn.scaleX = btn.scaleY;
};
} else {
if ((stage.stageHeight / BTN_MARGIN) <= (_local1 / _local2)){
btn.height = (stage.stageHeight / BTN_MARGIN);
btn.scaleX = btn.scaleY;
} else {
btn.width = _local1;
btn.scaleY = btn.scaleX;
};
};
btn.x = (stage.stageWidth / 2);
btn.y = (stage.stageHeight / 2);
};
}
public function resizeBackground(){
bgClip.x = 0;
bgClip.y = 0;
bgClip.width = stage.stageWidth;
bgClip.height = stage.stageHeight;
}
public function setPicHeight(_arg1:Number){
var _local2:Number;
_local2 = (pic.maxBox.height / (pic.height / pic.scaleY));
pic.height = (_arg1 / _local2);
pic.scaleX = pic.scaleY;
}
public function btnClicked(_arg1:Event=null){
var _local2:Yeah;
var _local3:SoundChannel;
_local2 = new Yeah();
_local3 = _local2.play();
_local3.addEventListener(Event.SOUND_COMPLETE, soundFinished, false, 0, true);
setBGBlack();
playAnim();
}
public function setBGBlack(){
var _local1:ColorTransform;
bgClip.visible = true;
_local1 = new ColorTransform(0, 0, 0, 1, -255, -255, -255);
bgClip.transform.colorTransform = _local1;
}
public function resizePic(){
var _local1:Rectangle;
var _local2:Number;
var _local3:Number;
var _local4:*;
var _local5:Point;
var _local6:*;
var _local7:*;
if (this.pic == null){
return;
};
_local1 = pic.maxBox.getBounds(stage);
_local2 = (pic.minBox.width / pic.minBox.height);
_local3 = (stage.stageWidth / stage.stageHeight);
if (_local2 > _local3){
_local4 = (pic.minBox.width / pic.maxBox.width);
_local6 = (stage.stageWidth / _local4);
setPicWidth(_local6);
} else {
_local4 = (pic.minBox.height / pic.maxBox.height);
_local7 = (stage.stageHeight / _local4);
setPicHeight(_local7);
};
_local5 = new Point(0, 0);
_local5 = pic.minBox.localToGlobal(_local5);
pic.x = (pic.x - (_local5.x - (stage.stageWidth / 2)));
pic.y = (pic.y - (_local5.y - (stage.stageHeight / 2)));
_local1 = pic.maxBox.getBounds(stage);
if (_local1.width < stage.stageWidth){
setPicWidth(stage.stageWidth);
_local1 = pic.maxBox.getBounds(stage);
};
if (_local1.height < stage.stageHeight){
setPicHeight(stage.stageHeight);
_local1 = pic.maxBox.getBounds(stage);
};
if (_local1.left > 0){
pic.x = (pic.x - _local1.left);
_local1 = pic.maxBox.getBounds(stage);
};
if (_local1.right < stage.stageWidth){
pic.x = (pic.x - (_local1.right - stage.stageWidth));
_local1 = pic.maxBox.getBounds(stage);
};
if (_local1.top > 0){
pic.y = (pic.y - _local1.top);
_local1 = pic.maxBox.getBounds(stage);
};
if (_local1.bottom < stage.stageHeight){
pic.y = (pic.y - (_local1.bottom - stage.stageHeight));
_local1 = pic.maxBox.getBounds(stage);
};
}
public function loading(_arg1:Event):void{
if (this.framesLoaded >= totalFrames){
this.removeEventListener(Event.ENTER_FRAME, loading);
btnClicked();
};
}
function frame1(){
stage.align = StageAlign.TOP_LEFT;
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
paramObj = LoaderInfo(this.root.loaderInfo).parameters;
qs = new QueryString();
autoplay = ((paramObj["play"]) || (qs.parameters["play"]));
line = ((paramObj["line"]) || (qs.parameters["line"]));
lines = [];
BTN_SCALE = 0.5913;
BTN_MARGIN = 1.2;
setBGWhite();
stage.addEventListener(Event.RESIZE, stageResized);
stageResized();
if (((autoplay) && (!(workHours())))){
this.addEventListener(Event.ENTER_FRAME, loading);
} else {
play();
};
}
public function stageResized(_arg1:Event=null){
resizeBtn();
resizePic();
resizeBackground();
}
public function playAnim(){
gotoAndStop("anim1");
}
public function soundFinished(_arg1:Event){
gotoAndStop("sunglasses");
setBGWhite();
}
function frame4(){
resizePic();
}
public function setBGWhite(){
var _local1:ColorTransform;
bgClip.visible = false;
_local1 = new ColorTransform(0, 0, 0, 1, 10, 10, 10);
bgClip.transform.colorTransform = _local1;
}
public function workHours():Boolean{
var _local1:Date;
_local1 = new Date();
return ((((((_local1.day >= 1)) && ((_local1.day <= 5)))) && ((((_local1.hours >= 8)) && ((_local1.hours < 18))))));
}
function frame2(){
stop();
btn.btn.addEventListener(MouseEvent.CLICK, btnClicked, false, 0, true);
resizeBtn();
}
public function setPicWidth(_arg1:Number){
var _local2:Number;
_local2 = (pic.maxBox.width / (pic.width / pic.scaleX));
pic.width = (_arg1 / _local2);
pic.scaleY = pic.scaleX;
}
}
}//package InstantCSI5_fla
Section 5
//Sunset2_6 (InstantCSI5_fla.Sunset2_6)
package InstantCSI5_fla {
import flash.display.*;
public dynamic class Sunset2_6 extends MovieClip {
public var minBox:MovieClip;
public var maxBox:MovieClip;
}
}//package InstantCSI5_fla
Section 6
//Yeah (Yeah)
package {
import flash.media.*;
public dynamic class Yeah extends Sound {
}
}//package