Section 1
//BLUSH2_103 (AReallyGreatNight_fla.BLUSH2_103)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class BLUSH2_103 extends MovieClip {
public function BLUSH2_103(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
if (MovieClip(root).Zoom_LVL == 1){
gotoAndPlay(2);
};
if (MovieClip(root).Zoom_LVL == 3){
gotoAndPlay(6);
};
}
function frame6(){
gotoAndPlay(5);
}
function frame1(){
if (MovieClip(root).Zoom_LVL == 2){
gotoAndPlay(4);
};
if (MovieClip(root).Zoom_LVL == 3){
gotoAndPlay(6);
};
}
function frame4(){
gotoAndPlay(3);
}
function frame5(){
if (MovieClip(root).Zoom_LVL == 1){
gotoAndPlay(2);
};
if (MovieClip(root).Zoom_LVL == 2){
gotoAndPlay(4);
};
}
function frame2(){
gotoAndPlay(1);
}
}
}//package AReallyGreatNight_fla
Section 2
//BLUSH3_163 (AReallyGreatNight_fla.BLUSH3_163)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class BLUSH3_163 extends MovieClip {
public function BLUSH3_163(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
if (MovieClip(root).Zoom_LVL == 1){
gotoAndPlay(2);
};
if (MovieClip(root).Zoom_LVL == 3){
gotoAndPlay(6);
};
}
function frame6(){
gotoAndPlay(5);
}
function frame1(){
if (MovieClip(root).Zoom_LVL == 2){
gotoAndPlay(4);
};
if (MovieClip(root).Zoom_LVL == 3){
gotoAndPlay(6);
};
}
function frame4(){
gotoAndPlay(3);
}
function frame5(){
if (MovieClip(root).Zoom_LVL == 1){
gotoAndPlay(2);
};
if (MovieClip(root).Zoom_LVL == 2){
gotoAndPlay(4);
};
}
function frame2(){
gotoAndPlay(1);
}
}
}//package AReallyGreatNight_fla
Section 3
//Button_32 (AReallyGreatNight_fla.Button_32)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Button_32 extends MovieClip {
public function Button_32(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 4
//Cam_39 (AReallyGreatNight_fla.Cam_39)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Cam_39 extends MovieClip {
public var MASK:MovieClip;
public var sH:Number;
public var rp:Point;
public var sW:Number;
public var CAM_FL:MovieClip;
public var S_H:MovieClip;
public var M_BUTTON:MovieClip;
public var bounds_obj:Object;
public var camH:Number;
public var camW:Number;
public var PAN:MovieClip;
public var P_BAR:MovieClip;
public var oldScaleMode:String;
public var P_CONT:TextField;
public var Q_BUTTON:SimpleButton;
public var OP:MovieClip;
public function Cam_39(){
addFrameScript(0, frame1);
}
public function set scaleX2(_arg1:Number):void{
setProperty2("scaleX", _arg1);
}
public function set x2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x + (_arg1 - _local2.x));
}
public function get rotation2():Number{
return (parent.rotation);
}
public function camControl(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
parent.visible = true;
rp.x = x;
rp.y = y;
_local2 = (camH * scaleY);
_local3 = (camW * scaleX);
_local4 = (sH / _local2);
_local5 = (sW / _local3);
x2 = ((_local3 / 2) * _local5);
y2 = ((_local2 / 2) * _local4);
scaleX2 = _local5;
scaleY2 = _local4;
rotation2 = -(rotation);
}
function frame1(){
oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
sW = 550;
sH = 550;
stage.scaleMode = oldScaleMode;
bounds_obj = this.getBounds(this);
camH = bounds_obj.height;
camW = bounds_obj.width;
rp = new Point(x, y);
addEventListener(Event.ENTER_FRAME, camControl);
addEventListener(Event.REMOVED_FROM_STAGE, reset);
camControl();
}
public function set scaleY2(_arg1:Number):void{
setProperty2("scaleY", _arg1);
}
public function get scaleX2():Number{
return (parent.scaleX);
}
public function get x2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.x);
}
public function setProperty2(_arg1:String, _arg2:Number):void{
var _local3:Point;
var _local4:Point;
_local3 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent[_arg1] = _arg2;
_local4 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x - (_local4.x - _local3.x));
parent.y = (parent.y - (_local4.y - _local3.y));
}
public function get scaleY2():Number{
return (parent.scaleY);
}
public function set y2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.y = (parent.y + (_arg1 - _local2.y));
}
public function reset(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, camControl);
removeEventListener(Event.REMOVED_FROM_STAGE, reset);
parent.scaleX = 1;
parent.scaleY = 1;
parent.x = 0;
parent.y = 0;
parent.rotation = 0;
parent.visible = true;
}
public function get y2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.y);
}
public function set rotation2(_arg1:Number):void{
setProperty2("rotation", _arg1);
}
}
}//package AReallyGreatNight_fla
Section 5
//CAM_BACKFLASH_40 (AReallyGreatNight_fla.CAM_BACKFLASH_40)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class CAM_BACKFLASH_40 extends MovieClip {
public function CAM_BACKFLASH_40(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 6
//CAM_CLIM1_240 (AReallyGreatNight_fla.CAM_CLIM1_240)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class CAM_CLIM1_240 extends MovieClip {
public var sH:Number;
public var rp:Point;
public var sW:Number;
public var bounds_obj:Object;
public var camH:Number;
public var camW:Number;
public var oldScaleMode:String;
public function CAM_CLIM1_240(){
addFrameScript(0, frame1, 119, frame120, 120, frame121);
}
public function set scaleX2(_arg1:Number):void{
setProperty2("scaleX", _arg1);
}
public function camControl1(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
parent.visible = true;
rp.x = x;
rp.y = y;
_local2 = (camH * scaleY);
_local3 = (camW * scaleX);
_local4 = (sH / _local2);
_local5 = (sW / _local3);
x2 = ((_local3 / 2) * _local5);
y2 = ((_local2 / 2) * _local4);
scaleX2 = _local5;
scaleY2 = _local4;
rotation2 = -(rotation);
}
function frame1(){
oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
sW = 550;
sH = 550;
stage.scaleMode = oldScaleMode;
bounds_obj = this.getBounds(this);
camH = bounds_obj.height;
camW = bounds_obj.width;
rp = new Point(x, y);
addEventListener(Event.ENTER_FRAME, camControl1);
camControl1();
}
public function set x2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x + (_arg1 - _local2.x));
}
public function get rotation2():Number{
return (parent.rotation);
}
public function set scaleY2(_arg1:Number):void{
setProperty2("scaleY", _arg1);
}
function frame120(){
stop();
reset1();
nextFrame();
}
public function get scaleX2():Number{
return (parent.scaleX);
}
public function get x2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.x);
}
public function setProperty2(_arg1:String, _arg2:Number):void{
var _local3:Point;
var _local4:Point;
_local3 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent[_arg1] = _arg2;
_local4 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x - (_local4.x - _local3.x));
parent.y = (parent.y - (_local4.y - _local3.y));
}
public function set y2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.y = (parent.y + (_arg1 - _local2.y));
}
public function reset1():void{
removeEventListener(Event.ENTER_FRAME, camControl1);
parent.scaleX = 1;
parent.scaleY = 1;
parent.x = 0;
parent.y = 0;
parent.rotation = 0;
parent.visible = true;
}
public function get scaleY2():Number{
return (parent.scaleY);
}
function frame121(){
MovieClip(root).DONE.play();
}
public function get y2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.y);
}
public function set rotation2(_arg1:Number):void{
setProperty2("rotation", _arg1);
}
}
}//package AReallyGreatNight_fla
Section 7
//CAM_MOV_218 (AReallyGreatNight_fla.CAM_MOV_218)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class CAM_MOV_218 extends MovieClip {
public function CAM_MOV_218(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 8
//CLIM_CAM2_217 (AReallyGreatNight_fla.CLIM_CAM2_217)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class CLIM_CAM2_217 extends MovieClip {
public var sH:Number;
public var rp:Point;
public var sW:Number;
public var bounds_obj:Object;
public var camH:Number;
public var camW:Number;
public var oldScaleMode:String;
public function CLIM_CAM2_217(){
addFrameScript(0, frame1, 94, frame95, 95, frame96);
}
public function set scaleX2(_arg1:Number):void{
setProperty2("scaleX", _arg1);
}
function frame95(){
reset2();
stop();
nextFrame();
}
public function camControl2(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
parent.visible = true;
rp.x = x;
rp.y = y;
_local2 = (camH * scaleY);
_local3 = (camW * scaleX);
_local4 = (sH / _local2);
_local5 = (sW / _local3);
x2 = ((_local3 / 2) * _local5);
y2 = ((_local2 / 2) * _local4);
scaleX2 = _local5;
scaleY2 = _local4;
rotation2 = -(rotation);
}
public function set x2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x + (_arg1 - _local2.x));
}
public function get rotation2():Number{
return (parent.rotation);
}
function frame96(){
MovieClip(root).DONE.play();
}
function frame1(){
oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
sW = 550;
sH = 550;
stage.scaleMode = oldScaleMode;
bounds_obj = this.getBounds(this);
camH = bounds_obj.height;
camW = bounds_obj.width;
rp = new Point(x, y);
addEventListener(Event.ENTER_FRAME, camControl2);
camControl2();
}
public function set scaleY2(_arg1:Number):void{
setProperty2("scaleY", _arg1);
}
public function get scaleX2():Number{
return (parent.scaleX);
}
public function get x2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.x);
}
public function setProperty2(_arg1:String, _arg2:Number):void{
var _local3:Point;
var _local4:Point;
_local3 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent[_arg1] = _arg2;
_local4 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x - (_local4.x - _local3.x));
parent.y = (parent.y - (_local4.y - _local3.y));
}
public function set y2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.y = (parent.y + (_arg1 - _local2.y));
}
public function reset2():void{
removeEventListener(Event.ENTER_FRAME, camControl2);
parent.scaleX = 1;
parent.scaleY = 1;
parent.x = 0;
parent.y = 0;
parent.rotation = 0;
parent.visible = true;
}
public function get scaleY2():Number{
return (parent.scaleY);
}
public function get y2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.y);
}
public function set rotation2(_arg1:Number):void{
setProperty2("rotation", _arg1);
}
}
}//package AReallyGreatNight_fla
Section 9
//CLIM_CAM3_233 (AReallyGreatNight_fla.CLIM_CAM3_233)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class CLIM_CAM3_233 extends MovieClip {
public var sH:Number;
public var rp:Point;
public var sW:Number;
public var bounds_obj:Object;
public var camH:Number;
public var camW:Number;
public var oldScaleMode:String;
public function CLIM_CAM3_233(){
addFrameScript(0, frame1, 109, frame110, 110, frame111);
}
public function set scaleX2(_arg1:Number):void{
setProperty2("scaleX", _arg1);
}
function frame1(){
oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
sW = 550;
sH = 550;
stage.scaleMode = oldScaleMode;
bounds_obj = this.getBounds(this);
camH = bounds_obj.height;
camW = bounds_obj.width;
rp = new Point(x, y);
addEventListener(Event.ENTER_FRAME, camControl3);
camControl3();
}
public function set x2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x + (_arg1 - _local2.x));
}
public function get rotation2():Number{
return (parent.rotation);
}
function frame111(){
MovieClip(root).DONE.play();
}
public function camControl3(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
parent.visible = true;
rp.x = x;
rp.y = y;
_local2 = (camH * scaleY);
_local3 = (camW * scaleX);
_local4 = (sH / _local2);
_local5 = (sW / _local3);
x2 = ((_local3 / 2) * _local5);
y2 = ((_local2 / 2) * _local4);
scaleX2 = _local5;
scaleY2 = _local4;
rotation2 = -(rotation);
}
function frame110(){
reset3();
stop();
nextFrame();
}
public function set scaleY2(_arg1:Number):void{
setProperty2("scaleY", _arg1);
}
public function get scaleX2():Number{
return (parent.scaleX);
}
public function get x2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.x);
}
public function setProperty2(_arg1:String, _arg2:Number):void{
var _local3:Point;
var _local4:Point;
_local3 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent[_arg1] = _arg2;
_local4 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x - (_local4.x - _local3.x));
parent.y = (parent.y - (_local4.y - _local3.y));
}
public function set y2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.y = (parent.y + (_arg1 - _local2.y));
}
public function get scaleY2():Number{
return (parent.scaleY);
}
public function reset3():void{
removeEventListener(Event.ENTER_FRAME, camControl3);
parent.scaleX = 1;
parent.scaleY = 1;
parent.x = 0;
parent.y = 0;
parent.rotation = 0;
parent.visible = true;
}
public function get y2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.y);
}
public function set rotation2(_arg1:Number):void{
setProperty2("rotation", _arg1);
}
}
}//package AReallyGreatNight_fla
Section 10
//Clim4_CAM_222 (AReallyGreatNight_fla.Clim4_CAM_222)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Clim4_CAM_222 extends MovieClip {
public var sH:Number;
public var rp:Point;
public var sW:Number;
public var bounds_obj:Object;
public var camH:Number;
public var camW:Number;
public var oldScaleMode:String;
public function Clim4_CAM_222(){
addFrameScript(0, frame1, 94, frame95, 95, frame96);
}
public function set scaleX2(_arg1:Number):void{
setProperty2("scaleX", _arg1);
}
function frame95(){
reset4();
nextFrame();
}
public function camControl4(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
parent.visible = true;
rp.x = x;
rp.y = y;
_local2 = (camH * scaleY);
_local3 = (camW * scaleX);
_local4 = (sH / _local2);
_local5 = (sW / _local3);
x2 = ((_local3 / 2) * _local5);
y2 = ((_local2 / 2) * _local4);
scaleX2 = _local5;
scaleY2 = _local4;
rotation2 = -(rotation);
}
function frame1(){
oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
sW = 550;
sH = 550;
stage.scaleMode = oldScaleMode;
bounds_obj = this.getBounds(this);
camH = bounds_obj.height;
camW = bounds_obj.width;
rp = new Point(x, y);
addEventListener(Event.ENTER_FRAME, camControl4);
camControl4();
}
public function set x2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x + (_arg1 - _local2.x));
}
public function get rotation2():Number{
return (parent.rotation);
}
function frame96(){
MovieClip(root).DONE.play();
}
public function set scaleY2(_arg1:Number):void{
setProperty2("scaleY", _arg1);
}
public function get scaleX2():Number{
return (parent.scaleX);
}
public function get x2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.x);
}
public function setProperty2(_arg1:String, _arg2:Number):void{
var _local3:Point;
var _local4:Point;
_local3 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent[_arg1] = _arg2;
_local4 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x - (_local4.x - _local3.x));
parent.y = (parent.y - (_local4.y - _local3.y));
}
public function set y2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.y = (parent.y + (_arg1 - _local2.y));
}
public function get scaleY2():Number{
return (parent.scaleY);
}
public function reset4():void{
removeEventListener(Event.ENTER_FRAME, camControl4);
parent.scaleX = 1;
parent.scaleY = 1;
parent.x = 0;
parent.y = 0;
parent.rotation = 0;
parent.visible = true;
}
public function get y2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.y);
}
public function set rotation2(_arg1:Number):void{
setProperty2("rotation", _arg1);
}
}
}//package AReallyGreatNight_fla
Section 11
//Climax1_201 (AReallyGreatNight_fla.Climax1_201)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Climax1_201 extends MovieClip {
public function Climax1_201(){
addFrameScript(159, frame160);
}
function frame160(){
gotoAndPlay(100);
}
}
}//package AReallyGreatNight_fla
Section 12
//Climax1_203 (AReallyGreatNight_fla.Climax1_203)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Climax1_203 extends MovieClip {
public function Climax1_203(){
addFrameScript(159, frame160);
}
function frame160(){
gotoAndPlay(100);
}
}
}//package AReallyGreatNight_fla
Section 13
//Climax1_205 (AReallyGreatNight_fla.Climax1_205)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Climax1_205 extends MovieClip {
public function Climax1_205(){
addFrameScript(159, frame160);
}
function frame160(){
gotoAndPlay(100);
}
}
}//package AReallyGreatNight_fla
Section 14
//Climax1_207 (AReallyGreatNight_fla.Climax1_207)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Climax1_207 extends MovieClip {
public function Climax1_207(){
addFrameScript(0, frame1, 14, frame15, 15, frame16, 25, frame26, 27, frame28, 36, frame37, 37, frame38, 50, frame51, 52, frame53, 98, frame99, 159, frame160);
}
function frame160(){
gotoAndPlay(100);
}
function frame15(){
MovieClip(root).SFX1 = MovieClip(root).Sp3.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame16(){
MovieClip(root).SFX2 = MovieClip(root).Sp1.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame1(){
MovieClip(root).SFX5 = MovieClip(root).M6.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame26(){
MovieClip(root).SFX1 = MovieClip(root).Sp2.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).SFX2 = MovieClip(root).M2.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame37(){
MovieClip(root).SFX1 = MovieClip(root).Sp3.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame28(){
MovieClip(root).SFX2 = MovieClip(root).Sp1.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame38(){
MovieClip(root).SFX2 = MovieClip(root).Sp1.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame99(){
MovieClip(root).SFX5 = MovieClip(root).M19.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).REPLAY.visible = true;
}
function frame51(){
MovieClip(root).SFX1 = MovieClip(root).Sp2.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame53(){
MovieClip(root).SFX2 = MovieClip(root).Sp1.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
}
}//package AReallyGreatNight_fla
Section 15
//Climax2_223 (AReallyGreatNight_fla.Climax2_223)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Climax2_223 extends MovieClip {
public function Climax2_223(){
addFrameScript(0, frame1, 15, frame16, 30, frame31, 31, frame32, 41, frame42, 43, frame44, 48, frame49, 53, frame54, 55, frame56, 63, frame64, 64, frame65, 78, frame79, 79, frame80, 80, frame81, 118, frame119, 184, frame185);
}
function frame65(){
MovieClip(root).SFX3 = MovieClip(root).Sp1.play();
MovieClip(root).SFX3.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame64(){
MovieClip(root).SFX1 = MovieClip(root).S22.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).SFX2 = MovieClip(root).S11.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame79(){
MovieClip(root).SFX1 = MovieClip(root).S22.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame80(){
MovieClip(root).SFX2 = MovieClip(root).Sp2.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame81(){
MovieClip(root).SFX3 = MovieClip(root).Sp1.play();
MovieClip(root).SFX3.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame16(){
MovieClip(root).SFX1 = MovieClip(root).S22.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame1(){
MovieClip(root).SFX1 = MovieClip(root).S22.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame185(){
gotoAndPlay(120);
}
function frame31(){
MovieClip(root).SFX1 = MovieClip(root).Sp3.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame44(){
MovieClip(root).SFX2 = MovieClip(root).Sp1.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame32(){
MovieClip(root).SFX2 = MovieClip(root).S12.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).SFX5 = MovieClip(root).M17.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame42(){
MovieClip(root).SFX1 = MovieClip(root).Sp2.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame49(){
MovieClip(root).SFX3 = MovieClip(root).S22.play();
MovieClip(root).SFX3.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame119(){
MovieClip(root).SFX5 = MovieClip(root).M15.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).REPLAY.visible = true;
}
function frame54(){
MovieClip(root).SFX1 = MovieClip(root).Sp3.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame56(){
MovieClip(root).SFX2 = MovieClip(root).Sp1.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
}
}//package AReallyGreatNight_fla
Section 16
//Climax3_234 (AReallyGreatNight_fla.Climax3_234)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Climax3_234 extends MovieClip {
public function Climax3_234(){
addFrameScript(9, frame10, 16, frame17, 28, frame29, 38, frame39, 39, frame40, 56, frame57, 57, frame58, 72, frame73, 77, frame78, 125, frame126, 186, frame187);
}
function frame73(){
MovieClip(root).SFX5 = MovieClip(root).M1.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame78(){
MovieClip(root).SFX2 = MovieClip(root).Sp2.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame10(){
MovieClip(root).SFX1 = MovieClip(root).S19.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame187(){
gotoAndPlay(127);
}
function frame17(){
MovieClip(root).SFX5 = MovieClip(root).M13.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame29(){
MovieClip(root).SFX1 = MovieClip(root).S19.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame39(){
MovieClip(root).SFX5 = MovieClip(root).M18.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).SFX2 = MovieClip(root).S11.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame126(){
MovieClip(root).SFX5 = MovieClip(root).M8.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).REPLAY.visible = true;
}
function frame40(){
MovieClip(root).SFX3 = MovieClip(root).Sp1.play();
MovieClip(root).SFX3.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame57(){
MovieClip(root).SFX2 = MovieClip(root).S11.play();
MovieClip(root).SFX2.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame58(){
MovieClip(root).SFX3 = MovieClip(root).S12.play();
MovieClip(root).SFX3.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
}
}//package AReallyGreatNight_fla
Section 17
//Climax4_219 (AReallyGreatNight_fla.Climax4_219)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Climax4_219 extends MovieClip {
public function Climax4_219(){
addFrameScript(2, frame3, 4, frame5, 22, frame23, 39, frame40, 59, frame60, 68, frame69, 103, frame104, 154, frame155);
}
function frame155(){
gotoAndPlay(105);
}
function frame3(){
MovieClip(root).SFX1 = MovieClip(root).S2.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame23(){
MovieClip(root).SFX1 = MovieClip(root).S2.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame5(){
MovieClip(root).SFX5 = MovieClip(root).M10.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame104(){
MovieClip(root).SFX5 = MovieClip(root).M19.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).REPLAY.visible = true;
MovieClip(root).DONE.play();
}
function frame40(){
MovieClip(root).SFX1 = MovieClip(root).S2.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).SFX5 = MovieClip(root).M2.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame60(){
MovieClip(root).SFX1 = MovieClip(root).Sp1.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame69(){
MovieClip(root).SFX1 = MovieClip(root).S14.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
}
}//package AReallyGreatNight_fla
Section 18
//ClimaxButton_51 (AReallyGreatNight_fla.ClimaxButton_51)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class ClimaxButton_51 extends MovieClip {
public var CLI:SimpleButton;
public function ClimaxButton_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 19
//DONE_38 (AReallyGreatNight_fla.DONE_38)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class DONE_38 extends MovieClip {
public function DONE_38(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 20
//FAIL_190 (AReallyGreatNight_fla.FAIL_190)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class FAIL_190 extends MovieClip {
public function FAIL_190(){
addFrameScript(0, frame1, 54, frame55, 55, frame56, 69, frame70, 70, frame71, 76, frame77, 77, frame78, 190, frame191, 231, frame232);
}
function frame70(){
MovieClip(root).SFX1 = MovieClip(root).P.play();
}
function frame77(){
MovieClip(root).SFX1 = MovieClip(root).P.play();
MovieClip(root).SFX3 = MovieClip(root).G.play();
}
function frame71(){
MovieClip(root).SFX2 = MovieClip(root).SQ.play();
}
function frame78(){
MovieClip(root).SFX2 = MovieClip(root).SQ.play();
}
function frame1(){
MovieClip(root).SFX1 = MovieClip(root).Z.play();
}
function frame191(){
MovieClip(root).SFX1 = MovieClip(root).YOU_SUCK.play();
}
function frame232(){
stop();
MovieClip(root).REPLAY.visible = true;
}
function frame55(){
MovieClip(root).SFX1 = MovieClip(root).P.play();
}
function frame56(){
MovieClip(root).SFX2 = MovieClip(root).SQ.play();
}
}
}//package AReallyGreatNight_fla
Section 21
//Girl_208 (AReallyGreatNight_fla.Girl_208)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Girl_208 extends MovieClip {
public function Girl_208(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 22
//Girl_209 (AReallyGreatNight_fla.Girl_209)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Girl_209 extends MovieClip {
public function Girl_209(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 23
//Girl_220 (AReallyGreatNight_fla.Girl_220)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Girl_220 extends MovieClip {
public function Girl_220(){
addFrameScript(96, frame97);
}
function frame97(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 24
//Girl_221 (AReallyGreatNight_fla.Girl_221)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Girl_221 extends MovieClip {
public function Girl_221(){
addFrameScript(93, frame94);
}
function frame94(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 25
//Girl_224 (AReallyGreatNight_fla.Girl_224)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Girl_224 extends MovieClip {
public function Girl_224(){
addFrameScript(122, frame123);
}
function frame123(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 26
//Girl_225 (AReallyGreatNight_fla.Girl_225)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Girl_225 extends MovieClip {
public function Girl_225(){
addFrameScript(119, frame120);
}
function frame120(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 27
//Girl_235 (AReallyGreatNight_fla.Girl_235)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Girl_235 extends MovieClip {
public function Girl_235(){
addFrameScript(154, frame155);
}
function frame155(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 28
//Girl_236 (AReallyGreatNight_fla.Girl_236)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Girl_236 extends MovieClip {
public function Girl_236(){
addFrameScript(154, frame155);
}
function frame155(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 29
//Idle_75 (AReallyGreatNight_fla.Idle_75)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Idle_75 extends MovieClip {
public function Idle_75(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(root).PLEASURE--;
if (MovieClip(root).PLEASURE == -26){
MovieClip(root).FAILURE();
};
}
}
}//package AReallyGreatNight_fla
Section 30
//Idle2_153 (AReallyGreatNight_fla.Idle2_153)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Idle2_153 extends MovieClip {
public function Idle2_153(){
addFrameScript(29, frame30);
}
function frame30(){
MovieClip(root).PLEASURE--;
if (MovieClip(root).PLEASURE == -26){
MovieClip(root).FAILURE();
};
}
}
}//package AReallyGreatNight_fla
Section 31
//MenuPanel_42 (AReallyGreatNight_fla.MenuPanel_42)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class MenuPanel_42 extends MovieClip {
public var STP:SimpleButton;
public var SWH:SimpleButton;
public var HAN:SimpleButton;
public var SPD:SimpleButton;
public var SPE:SimpleButton;
public var CLI_BUT:MovieClip;
public var PEN:SimpleButton;
}
}//package AReallyGreatNight_fla
Section 32
//MusicButton_60 (AReallyGreatNight_fla.MusicButton_60)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MusicButton_60 extends MovieClip {
public function MusicButton_60(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
MovieClip(root).BGM = MovieClip(root).M_LOOP.play(0, 100000);
}
}
}//package AReallyGreatNight_fla
Section 33
//OptionsPanel_63 (AReallyGreatNight_fla.OptionsPanel_63)
package AReallyGreatNight_fla {
import flash.display.*;
import flash.text.*;
public dynamic class OptionsPanel_63 extends MovieClip {
public var SFX_DOWN:SimpleButton;
public var BGM_NUM:TextField;
public var BGM_UP:SimpleButton;
public var SFX_UP:SimpleButton;
public var SFX_NUM:TextField;
public var BGM_DOWN:SimpleButton;
}
}//package AReallyGreatNight_fla
Section 34
//PleasureBar_69 (AReallyGreatNight_fla.PleasureBar_69)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class PleasureBar_69 extends MovieClip {
public function PleasureBar_69(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 35
//Pos1_112 (AReallyGreatNight_fla.Pos1_112)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Pos1_112 extends MovieClip {
public function Pos1_112(){
addFrameScript(4, frame5, 9, frame10, 39, frame40);
}
function frame10(){
MovieClip(root).SFX1 = MovieClip(root).S14.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame5(){
MovieClip(root).Random = Math.round((Math.random() * 6));
if (MovieClip(root).Wait == false){
if ((((((MovieClip(root).Random == 1)) || ((MovieClip(root).Random == 2)))) || ((MovieClip(root).Random == 3)))){
MovieClip(root).SFX5 = MovieClip(root).M1.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 4)) || ((MovieClip(root).Random == 5)))) || ((MovieClip(root).Random == 6)))){
MovieClip(root).SFX5 = MovieClip(root).M4.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
};
}
function frame40(){
MovieClip(root).PLEASURE++;
}
}
}//package AReallyGreatNight_fla
Section 36
//Pos10_186 (AReallyGreatNight_fla.Pos10_186)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Pos10_186 extends MovieClip {
public function Pos10_186(){
addFrameScript(9, frame10, 11, frame12, 19, frame20);
}
function frame10(){
MovieClip(root).SFX1 = MovieClip(root).S19.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame12(){
MovieClip(root).Random = Math.round((Math.random() * 6));
if (MovieClip(root).Wait == false){
if ((((((MovieClip(root).Random == 1)) || ((MovieClip(root).Random == 2)))) || ((MovieClip(root).Random == 3)))){
MovieClip(root).SFX5 = MovieClip(root).M12.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 4)) || ((MovieClip(root).Random == 5)))) || ((MovieClip(root).Random == 6)))){
MovieClip(root).SFX5 = MovieClip(root).M13.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
};
}
function frame20(){
MovieClip(root).PLEASURE++;
MovieClip(root).PLEASURE++;
}
}
}//package AReallyGreatNight_fla
Section 37
//pos2_125 (AReallyGreatNight_fla.pos2_125)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class pos2_125 extends MovieClip {
public function pos2_125(){
addFrameScript(7, frame8, 14, frame15, 29, frame30);
}
function frame15(){
MovieClip(root).Random = Math.round((Math.random() * 6));
if (MovieClip(root).Wait == false){
if ((((((MovieClip(root).Random == 1)) || ((MovieClip(root).Random == 2)))) || ((MovieClip(root).Random == 3)))){
MovieClip(root).SFX5 = MovieClip(root).M1.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 4)) || ((MovieClip(root).Random == 5)))) || ((MovieClip(root).Random == 6)))){
MovieClip(root).SFX5 = MovieClip(root).M8.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
};
}
function frame8(){
MovieClip(root).SFX1 = MovieClip(root).S24.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame30(){
MovieClip(root).PLEASURE++;
}
}
}//package AReallyGreatNight_fla
Section 38
//Pos3_134 (AReallyGreatNight_fla.Pos3_134)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Pos3_134 extends MovieClip {
public function Pos3_134(){
addFrameScript(0, frame1, 13, frame14, 29, frame30);
}
function frame14(){
MovieClip(root).Random = Math.round((Math.random() * 6));
if (MovieClip(root).Wait == false){
if ((((((MovieClip(root).Random == 1)) || ((MovieClip(root).Random == 2)))) || ((MovieClip(root).Random == 3)))){
MovieClip(root).SFX5 = MovieClip(root).M5.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 4)) || ((MovieClip(root).Random == 5)))) || ((MovieClip(root).Random == 6)))){
MovieClip(root).SFX5 = MovieClip(root).M4.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
};
}
function frame1(){
MovieClip(root).SFX1 = MovieClip(root).S18.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame30(){
MovieClip(root).PLEASURE++;
}
}
}//package AReallyGreatNight_fla
Section 39
//Pos4_142 (AReallyGreatNight_fla.Pos4_142)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Pos4_142 extends MovieClip {
public function Pos4_142(){
addFrameScript(0, frame1, 4, frame5, 9, frame10);
}
function frame10(){
MovieClip(root).PLEASURE++;
MovieClip(root).PLEASURE++;
}
function frame1(){
MovieClip(root).SFX1 = MovieClip(root).S2.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame5(){
MovieClip(root).Random = Math.round((Math.random() * 6));
if (MovieClip(root).Wait == false){
if ((((((MovieClip(root).Random == 1)) || ((MovieClip(root).Random == 2)))) || ((MovieClip(root).Random == 3)))){
MovieClip(root).SFX5 = MovieClip(root).M10.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 4)) || ((MovieClip(root).Random == 5)))) || ((MovieClip(root).Random == 6)))){
MovieClip(root).SFX5 = MovieClip(root).M11.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
};
}
}
}//package AReallyGreatNight_fla
Section 40
//Pos5_150 (AReallyGreatNight_fla.Pos5_150)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Pos5_150 extends MovieClip {
public function Pos5_150(){
addFrameScript(0, frame1, 5, frame6, 15, frame16);
}
function frame6(){
MovieClip(root).Random = Math.round((Math.random() * 9));
if (MovieClip(root).Wait == false){
if ((((((MovieClip(root).Random == 1)) || ((MovieClip(root).Random == 2)))) || ((MovieClip(root).Random == 3)))){
MovieClip(root).SFX5 = MovieClip(root).M6.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 4)) || ((MovieClip(root).Random == 5)))) || ((MovieClip(root).Random == 6)))){
MovieClip(root).SFX5 = MovieClip(root).M11.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 7)) || ((MovieClip(root).Random == 8)))) || ((MovieClip(root).Random == 9)))){
MovieClip(root).SFX5 = MovieClip(root).M3.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
};
}
function frame16(){
MovieClip(root).PLEASURE++;
MovieClip(root).PLEASURE++;
}
function frame1(){
MovieClip(root).SFX1 = MovieClip(root).S23.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
}
}//package AReallyGreatNight_fla
Section 41
//Pos6_170 (AReallyGreatNight_fla.Pos6_170)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Pos6_170 extends MovieClip {
public function Pos6_170(){
addFrameScript(0, frame1, 4, frame5, 29, frame30);
}
function frame1(){
MovieClip(root).Random = Math.round((Math.random() * 6));
if (MovieClip(root).Wait == false){
if ((((((MovieClip(root).Random == 1)) || ((MovieClip(root).Random == 2)))) || ((MovieClip(root).Random == 3)))){
MovieClip(root).SFX5 = MovieClip(root).M14.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 4)) || ((MovieClip(root).Random == 5)))) || ((MovieClip(root).Random == 6)))){
MovieClip(root).SFX5 = MovieClip(root).M16.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
};
}
function frame5(){
MovieClip(root).SFX1 = MovieClip(root).S20.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame30(){
MovieClip(root).PLEASURE++;
}
}
}//package AReallyGreatNight_fla
Section 42
//Pos7_173 (AReallyGreatNight_fla.Pos7_173)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Pos7_173 extends MovieClip {
public function Pos7_173(){
addFrameScript(10, frame11, 16, frame17, 39, frame40);
}
function frame17(){
MovieClip(root).Random = Math.round((Math.random() * 6));
if (MovieClip(root).Wait == false){
if ((((((MovieClip(root).Random == 1)) || ((MovieClip(root).Random == 2)))) || ((MovieClip(root).Random == 3)))){
MovieClip(root).SFX5 = MovieClip(root).M7.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 4)) || ((MovieClip(root).Random == 5)))) || ((MovieClip(root).Random == 6)))){
MovieClip(root).SFX5 = MovieClip(root).M8.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
};
}
function frame11(){
MovieClip(root).SFX1 = MovieClip(root).S14.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame40(){
MovieClip(root).PLEASURE++;
}
}
}//package AReallyGreatNight_fla
Section 43
//Pos8_178 (AReallyGreatNight_fla.Pos8_178)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Pos8_178 extends MovieClip {
public function Pos8_178(){
addFrameScript(11, frame12, 22, frame23, 39, frame40);
}
function frame12(){
MovieClip(root).SFX1 = MovieClip(root).S18.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame23(){
MovieClip(root).Random = Math.round((Math.random() * 6));
if (MovieClip(root).Wait == false){
if ((((((MovieClip(root).Random == 1)) || ((MovieClip(root).Random == 2)))) || ((MovieClip(root).Random == 3)))){
MovieClip(root).SFX5 = MovieClip(root).M7.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 4)) || ((MovieClip(root).Random == 5)))) || ((MovieClip(root).Random == 6)))){
MovieClip(root).SFX5 = MovieClip(root).M8.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
};
}
function frame40(){
MovieClip(root).PLEASURE++;
}
}
}//package AReallyGreatNight_fla
Section 44
//Pos9_184 (AReallyGreatNight_fla.Pos9_184)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Pos9_184 extends MovieClip {
public function Pos9_184(){
addFrameScript(0, frame1, 4, frame5, 15, frame16);
}
function frame16(){
MovieClip(root).PLEASURE++;
MovieClip(root).PLEASURE++;
}
function frame1(){
MovieClip(root).SFX1 = MovieClip(root).S22.play();
MovieClip(root).SFX1.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
}
function frame5(){
MovieClip(root).Random = Math.round((Math.random() * 6));
if (MovieClip(root).Wait == false){
if ((((((MovieClip(root).Random == 1)) || ((MovieClip(root).Random == 2)))) || ((MovieClip(root).Random == 3)))){
MovieClip(root).SFX5 = MovieClip(root).M15.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
if ((((((MovieClip(root).Random == 4)) || ((MovieClip(root).Random == 5)))) || ((MovieClip(root).Random == 6)))){
MovieClip(root).SFX5 = MovieClip(root).M8.play();
MovieClip(root).SFX5.soundTransform = new SoundTransform((MovieClip(root).SFX_VOL / 100), 0);
MovieClip(root).Wait = true;
};
};
}
}
}//package AReallyGreatNight_fla
Section 45
//Preloader_1 (AReallyGreatNight_fla.Preloader_1)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Preloader_1 extends MovieClip {
public var Loaded:Number;
public var Total:Number;
public var LOAD_:MovieClip;
public var PLAY_BUT:MovieClip;
public function Preloader_1(){
addFrameScript(0, frame1);
}
public function PRELOADER(_arg1:Event){
Loaded = stage.loaderInfo.bytesLoaded;
if (Loaded == Total){
PLAY_BUT.gotoAndStop(2);
PLAY_BUT.addEventListener(MouseEvent.CLICK, PLAY_);
removeEventListener(Event.ENTER_FRAME, PRELOADER);
} else {
LOAD_.scaleX = (Loaded / Total);
};
}
function frame1(){
Loaded = stage.loaderInfo.bytesLoaded;
Total = stage.loaderInfo.bytesTotal;
addEventListener(Event.ENTER_FRAME, PRELOADER);
}
public function PLAY_(_arg1:MouseEvent){
Main(root).play();
removeEventListener(MouseEvent.CLICK, PLAY_);
}
}
}//package AReallyGreatNight_fla
Section 46
//SANGWHICH_8 (AReallyGreatNight_fla.SANGWHICH_8)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class SANGWHICH_8 extends MovieClip {
public function SANGWHICH_8(){
addFrameScript(155, frame156);
}
function frame156(){
alpha = 0;
stop();
MovieClip(root).nextFrame();
}
}
}//package AReallyGreatNight_fla
Section 47
//Symbol2_6 (AReallyGreatNight_fla.Symbol2_6)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Symbol2_6 extends MovieClip {
public function Symbol2_6(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 48
//TextTween_34 (AReallyGreatNight_fla.TextTween_34)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class TextTween_34 extends MovieClip {
public function TextTween_34(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 49
//Texttween_44 (AReallyGreatNight_fla.Texttween_44)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class Texttween_44 extends MovieClip {
public function Texttween_44(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 50
//TextTween_46 (AReallyGreatNight_fla.TextTween_46)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class TextTween_46 extends MovieClip {
public function TextTween_46(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 51
//TextTween_48 (AReallyGreatNight_fla.TextTween_48)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class TextTween_48 extends MovieClip {
public function TextTween_48(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 52
//TextTween_50 (AReallyGreatNight_fla.TextTween_50)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class TextTween_50 extends MovieClip {
public function TextTween_50(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 53
//TextTween_53 (AReallyGreatNight_fla.TextTween_53)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class TextTween_53 extends MovieClip {
public function TextTween_53(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 54
//TextTween_55 (AReallyGreatNight_fla.TextTween_55)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class TextTween_55 extends MovieClip {
public function TextTween_55(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 55
//TextTween_58 (AReallyGreatNight_fla.TextTween_58)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class TextTween_58 extends MovieClip {
public function TextTween_58(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 56
//TextTween_65 (AReallyGreatNight_fla.TextTween_65)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class TextTween_65 extends MovieClip {
public function TextTween_65(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 57
//TextTween_67 (AReallyGreatNight_fla.TextTween_67)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class TextTween_67 extends MovieClip {
public function TextTween_67(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 58
//Timeline_16 (AReallyGreatNight_fla.Timeline_16)
package AReallyGreatNight_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_16 extends MovieClip {
public var bar:MovieClip;
public var TotalB:Number;
public var LoadedB:Number;
public var LoadPrecent:Number;
public function Timeline_16(){
addFrameScript(0, frame1, 1, frame2, 145, frame146);
}
public function Preloader(_arg1:Event){
LoadedB = MovieClip(root).loaderInfo.bytesLoaded;
LoadPrecent = ((LoadedB / TotalB) * 100);
bar.scaleY = (LoadPrecent / 100);
if (LoadPrecent == 100){
removeEventListener(Event.ENTER_FRAME, Preloader);
bar.scaleY = 1;
gotoAndPlay("LOADED");
};
}
function frame1(){
LoadedB = MovieClip(root).loaderInfo.bytesLoaded;
TotalB = MovieClip(root).loaderInfo.bytesTotal;
addEventListener(Event.ENTER_FRAME, Preloader);
}
function frame2(){
gotoAndPlay(1);
}
function frame146(){
MovieClip(root).play();
}
}
}//package AReallyGreatNight_fla
Section 59
//YellowButton_3 (AReallyGreatNight_fla.YellowButton_3)
package AReallyGreatNight_fla {
import flash.display.*;
public dynamic class YellowButton_3 extends MovieClip {
public function YellowButton_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AReallyGreatNight_fla
Section 60
//Animator (fl.motion.Animator)
package fl.motion {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
public class Animator extends EventDispatcher {
private var targetState:Object;
public var transformationPoint:Point;
private var _isPlaying:Boolean;// = false
private var _time:int;// = -1
private var _target:DisplayObject;
public var repeatCount:int;// = 1
private var _lastRenderedTime:int;// = -1
private var playCount:int;// = 0
private var _motion:Motion;
public var orientToPath:Boolean;// = false
public var autoRewind:Boolean;// = false
public var positionMatrix:Matrix;
private static var enterFrameBeacon:MovieClip = new MovieClip();
public function Animator(_arg1:XML=null, _arg2:DisplayObject=null){
orientToPath = false;
autoRewind = false;
repeatCount = 1;
_isPlaying = false;
_lastRenderedTime = -1;
_time = -1;
playCount = 0;
super();
this.motion = new Motion(_arg1);
this.target = _arg2;
}
public function stop():void{
enterFrameBeacon.removeEventListener(Event.ENTER_FRAME, this.enterFrameHandler);
this._isPlaying = false;
this.playCount = 0;
this.rewind();
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_END));
}
public function get target():DisplayObject{
return (this._target);
}
public function set time(_arg1:int):void{
var _local2:Motion;
var _local3:Keyframe;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Point;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Matrix;
var _local13:Point;
var _local14:Number;
var _local15:Number;
var _local16:ColorTransform;
var _local17:Number;
var _local18:Number;
var _local19:Number;
if (_arg1 == this._time){
return;
};
_local2 = this.motion;
if (_arg1 > (_local2.duration - 1)){
_arg1 = (_local2.duration - 1);
} else {
if (_arg1 < 0){
_arg1 = 0;
};
};
this._time = _arg1;
this.dispatchEvent(new MotionEvent(MotionEvent.TIME_CHANGE));
_local3 = _local2.getCurrentKeyframe(_arg1);
_local4 = (((_local3.index == this._lastRenderedTime)) && (!(_local3.tweens.length)));
if (_local4){
return;
};
this._target.visible = false;
if (!_local3.blank){
_local5 = _local2.getValue(_arg1, Tweenables.X);
_local6 = _local2.getValue(_arg1, Tweenables.Y);
_local7 = new Point(_local5, _local6);
if (this.positionMatrix){
_local7 = this.positionMatrix.transformPoint(_local7);
};
_local7.x = (_local7.x + this.targetState.x);
_local7.y = (_local7.y + this.targetState.y);
_local8 = (_local2.getValue(_arg1, Tweenables.SCALE_X) * this.targetState.scaleX);
_local9 = (_local2.getValue(_arg1, Tweenables.SCALE_Y) * this.targetState.scaleY);
_local10 = 0;
_local11 = 0;
if (this.orientToPath){
_local17 = _local2.getValue((_arg1 + 1), Tweenables.X);
_local18 = _local2.getValue((_arg1 + 1), Tweenables.Y);
_local19 = (Math.atan2((_local18 - _local6), (_local17 - _local5)) * (180 / Math.PI));
if (!isNaN(_local19)){
_local10 = (_local19 + this.targetState.skewX);
_local11 = (_local19 + this.targetState.skewY);
};
} else {
_local10 = (_local2.getValue(_arg1, Tweenables.SKEW_X) + this.targetState.skewX);
_local11 = (_local2.getValue(_arg1, Tweenables.SKEW_Y) + this.targetState.skewY);
};
_local12 = new Matrix((_local8 * Math.cos((_local11 * (Math.PI / 180)))), (_local8 * Math.sin((_local11 * (Math.PI / 180)))), (-(_local9) * Math.sin((_local10 * (Math.PI / 180)))), (_local9 * Math.cos((_local10 * (Math.PI / 180)))), _local7.x, _local7.y);
_local13 = _local12.transformPoint(this.targetState.transformPointInternal);
_local14 = (_local12.tx - _local13.x);
_local15 = (_local12.ty - _local13.y);
_local12.tx = (_local12.tx + _local14);
_local12.ty = (_local12.ty + _local15);
this._target.rotation = _local11;
this._target.transform.matrix = _local12;
this._target.scaleX = _local8;
this._target.scaleY = _local9;
_local16 = _local2.getColorTransform(_arg1);
if (_local16){
this._target.transform.colorTransform = _local16;
};
this._target.filters = _local2.getFilters(_arg1);
this._target.blendMode = _local3.blendMode;
this._target.cacheAsBitmap = _local3.cacheAsBitmap;
this._target.visible = true;
};
this._lastRenderedTime = this._time;
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_UPDATE));
}
private function enterFrameHandler(_arg1:Event):void{
this.nextFrame();
}
public function set target(_arg1:DisplayObject):void{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Point;
if (!_arg1){
return;
};
this._target = _arg1;
this.targetState = {};
this.targetState.scaleX = this._target.scaleX;
this.targetState.scaleY = this._target.scaleY;
this.targetState.skewX = MatrixTransformer.getSkewX(this._target.transform.matrix);
this.targetState.skewY = MatrixTransformer.getSkewY(this._target.transform.matrix);
this.targetState.matrix = this._target.transform.matrix;
_local2 = (this.targetState.bounds = this._target.getBounds(this._target));
if (this.transformationPoint){
_local3 = ((this.transformationPoint.x * _local2.width) + _local2.left);
_local4 = ((this.transformationPoint.y * _local2.height) + _local2.top);
this.targetState.transformPointInternal = new Point(_local3, _local4);
_local5 = this.targetState.matrix.transformPoint(this.targetState.transformPointInternal);
this.targetState.x = _local5.x;
this.targetState.y = _local5.y;
} else {
this.targetState.transformPointInternal = new Point(0, 0);
this.targetState.x = this._target.x;
this.targetState.y = this._target.y;
};
}
public function get isPlaying():Boolean{
return (_isPlaying);
}
public function resume():void{
enterFrameBeacon.addEventListener(Event.ENTER_FRAME, this.enterFrameHandler, false, 0, true);
this._isPlaying = true;
}
private function handleLastFrame():void{
this.playCount++;
if ((((this.repeatCount == 0)) || ((this.playCount < this.repeatCount)))){
this.rewind();
} else {
this.end();
};
}
public function get motion():Motion{
return (this._motion);
}
public function nextFrame():void{
if (this.time >= (this.motion.duration - 1)){
this.handleLastFrame();
} else {
this.time++;
};
}
public function play():void{
if (!this._isPlaying){
enterFrameBeacon.addEventListener(Event.ENTER_FRAME, this.enterFrameHandler, false, 0, true);
this._isPlaying = true;
};
this.playCount = 0;
this.rewind();
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_START));
}
public function rewind():void{
this.time = 0;
}
public function end():void{
enterFrameBeacon.removeEventListener(Event.ENTER_FRAME, this.enterFrameHandler);
this._isPlaying = false;
this.playCount = 0;
if (this.autoRewind){
this.rewind();
} else {
if (this.time != (this.motion.duration - 1)){
this.time = (this.motion.duration - 1);
};
};
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_END));
}
public function get time():int{
return (this._time);
}
public function pause():void{
enterFrameBeacon.removeEventListener(Event.ENTER_FRAME, this.enterFrameHandler);
this._isPlaying = false;
}
public function set motion(_arg1:Motion):void{
this._motion = _arg1;
if (((_arg1.source) && (_arg1.source.transformationPoint))){
this.transformationPoint = _arg1.source.transformationPoint.clone();
};
}
public static function fromXMLString(_arg1:String, _arg2:DisplayObject=null):Animator{
return (new Animator(new XML(_arg1), _arg2));
}
}
}//package fl.motion
Section 61
//BezierEase (fl.motion.BezierEase)
package fl.motion {
import flash.geom.*;
public class BezierEase implements ITween {
public var points:Array;
private var firstNode:Point;
private var _target:String;// = ""
private var lastNode:Point;
public function BezierEase(_arg1:XML=null){
_target = "";
super();
this.points = [];
this.parseXML(_arg1);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number;
var _local6:Array;
var _local7:Number;
if (_arg4 <= 0){
return (NaN);
};
_local5 = (_arg1 / _arg4);
if (_local5 <= 0){
return (_arg2);
};
if (_local5 >= 1){
return ((_arg2 + _arg3));
};
this.firstNode = new Point(0, _arg2);
this.lastNode = new Point(1, (_arg2 + _arg3));
_local6 = [this.firstNode].concat(this.points);
_local6.push(this.lastNode);
_local7 = CustomEase.getYForPercent(_local5, _local6);
return (_local7);
}
private function parseXML(_arg1:XML=null):BezierEase{
var _local2:XMLList;
var _local3:XML;
if (!_arg1){
return (this);
};
if (_arg1.@target.length()){
this.target = _arg1.@target;
};
_local2 = _arg1.elements();
for each (_local3 in _local2) {
this.points.push(new Point(Number(_local3.@x), Number(_local3.@y)));
};
return (this);
}
}
}//package fl.motion
Section 62
//BezierSegment (fl.motion.BezierSegment)
package fl.motion {
import flash.geom.*;
public class BezierSegment {
public var a:Point;
public var c:Point;
public var b:Point;
public var d:Point;
public function BezierSegment(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point){
this.a = _arg1;
this.b = _arg2;
this.c = _arg3;
this.d = _arg4;
}
public function getYForX(_arg1:Number, _arg2:Array=null):Number{
var _local3:Array;
var _local4:Number;
var _local5:Number;
var _local6:Number;
if (this.a.x < this.d.x){
if (_arg1 <= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 >= (this.d.x - 1E-16)){
return (this.d.y);
};
} else {
if (_arg1 >= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 <= (this.d.x - 1E-16)){
return (this.d.y);
};
};
if (!_arg2){
_arg2 = getCubicCoefficients(this.a.x, this.b.x, this.c.x, this.d.x);
};
_local3 = getCubicRoots(_arg2[0], _arg2[1], _arg2[2], (_arg2[3] - _arg1));
_local4 = NaN;
if (_local3.length == 0){
_local4 = 0;
} else {
if (_local3.length == 1){
_local4 = _local3[0];
} else {
for each (_local6 in _local3) {
if ((((0 <= _local6)) && ((_local6 <= 1)))){
_local4 = _local6;
break;
};
};
};
};
if (isNaN(_local4)){
return (NaN);
};
_local5 = getSingleValue(_local4, this.a.y, this.b.y, this.c.y, this.d.y);
return (_local5);
}
public function getValue(_arg1:Number):Point{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = this.a.x;
_local3 = (((((_arg1 * _arg1) * (this.d.x - _local2)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.x - _local2)) + ((1 - _arg1) * (this.b.x - _local2))))) * _arg1) + _local2);
_local4 = this.a.y;
_local5 = (((((_arg1 * _arg1) * (this.d.y - _local4)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.y - _local4)) + ((1 - _arg1) * (this.b.y - _local4))))) * _arg1) + _local4);
return (new Point(_local3, _local5));
}
public static function getCubicCoefficients(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Array{
return ([(((-(_arg1) + (3 * _arg2)) - (3 * _arg3)) + _arg4), (((3 * _arg1) - (6 * _arg2)) + (3 * _arg3)), ((-3 * _arg1) + (3 * _arg2)), _arg1]);
}
public static function getSingleValue(_arg1:Number, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):Number{
return ((((((_arg1 * _arg1) * (_arg5 - _arg2)) + ((3 * (1 - _arg1)) * ((_arg1 * (_arg4 - _arg2)) + ((1 - _arg1) * (_arg3 - _arg2))))) * _arg1) + _arg2));
}
public static function getCubicRoots(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0):Array{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:int;
var _local16:Number;
if (!_arg1){
return (BezierSegment.getQuadraticRoots(_arg2, _arg3, _arg4));
};
if (_arg1 != 1){
_arg2 = (_arg2 / _arg1);
_arg3 = (_arg3 / _arg1);
_arg4 = (_arg4 / _arg1);
};
_local5 = (((_arg2 * _arg2) - (3 * _arg3)) / 9);
_local6 = (((((_arg2 * _arg2) - (3 * _arg3)) / 9) * _local5) * _local5);
_local7 = ((((((2 * _arg2) * _arg2) * _arg2) - ((9 * _arg2) * _arg3)) + (27 * _arg4)) / 54);
_local8 = (_local6 - (_local7 * _local7));
if (_local8 >= 0){
if (!_local5){
return ([0]);
};
_local9 = Math.acos((_local7 / Math.sqrt(_local6)));
_local10 = Math.sqrt(_local5);
_local11 = (((-2 * _local10) * Math.cos((_local9 / 3))) - (_arg2 / 3));
_local12 = (((-2 * _local10) * Math.cos(((_local9 + (2 * Math.PI)) / 3))) - (_arg2 / 3));
_local13 = (((-2 * _local10) * Math.cos(((_local9 + (4 * Math.PI)) / 3))) - (_arg2 / 3));
return ([_local11, _local12, _local13]);
//unresolved jump
};
_local14 = Math.pow((Math.sqrt(-(_local8)) + Math.abs(_local7)), (1 / 3));
_local15 = ((_local7)>0) ? 1 : ((_local7 < 0)) ? -1 : 0;
_local16 = ((-(_local15) * (_local14 + (_local5 / _local14))) - (_arg2 / 3));
return ([_local16]);
}
public static function getQuadraticRoots(_arg1:Number, _arg2:Number, _arg3:Number):Array{
var _local4:Array;
var _local5:Number;
var _local6:int;
var _local7:Number;
_local4 = [];
if (!_arg1){
if (!_arg2){
return ([]);
};
_local4[0] = (-(_arg3) / _arg2);
return (_local4);
};
_local5 = ((_arg2 * _arg2) - ((4 * _arg1) * _arg3));
_local6 = ((_local5)>0) ? 1 : ((_local5 < 0)) ? -1 : 0;
if (_local6 < 0){
return ([]);
};
if (!_local6){
_local4[0] = (-(_arg2) / (2 * _arg1));
} else {
_local4[0] = (_local4[1] = (-(_arg2) / (2 * _arg1)));
_local7 = (Math.sqrt(_local5) / (2 * _arg1));
_local4[0] = (_local4[0] - _local7);
_local4[1] = (_local4[1] + _local7);
};
return (_local4);
}
}
}//package fl.motion
Section 63
//Color (fl.motion.Color)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 64
//CustomEase (fl.motion.CustomEase)
package fl.motion {
import flash.geom.*;
public class CustomEase implements ITween {
public var points:Array;
private var firstNode:Point;
private var _target:String;// = ""
private var lastNode:Point;
public function CustomEase(_arg1:XML=null){
_target = "";
super();
this.points = [];
this.parseXML(_arg1);
this.firstNode = new Point(0, 0);
this.lastNode = new Point(1, 1);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number;
var _local6:Array;
var _local7:Number;
if (_arg4 <= 0){
return (NaN);
};
_local5 = (_arg1 / _arg4);
if (_local5 <= 0){
return (_arg2);
};
if (_local5 >= 1){
return ((_arg2 + _arg3));
};
_local6 = [this.firstNode].concat(this.points);
_local6.push(this.lastNode);
_local7 = getYForPercent(_local5, _local6);
return ((_arg2 + (_local7 * _arg3)));
}
private function parseXML(_arg1:XML=null):CustomEase{
var _local2:XMLList;
var _local3:XML;
if (!_arg1){
return (this);
};
if (_arg1.@target.length()){
this.target = _arg1.@target;
};
_local2 = _arg1.elements();
for each (_local3 in _local2) {
this.points.push(new Point(Number(_local3.@x), Number(_local3.@y)));
};
return (this);
}
static function getYForPercent(_arg1:Number, _arg2:Array):Number{
var _local3:BezierSegment;
var _local4:Array;
var _local5:int;
var _local6:BezierSegment;
var _local7:Number;
var _local8:int;
var _local9:BezierSegment;
_local3 = new BezierSegment(_arg2[0], _arg2[1], _arg2[2], _arg2[3]);
_local4 = [_local3];
_local5 = 3;
while (_local5 < (_arg2.length - 3)) {
_local4.push(new BezierSegment(_arg2[_local5], _arg2[(_local5 + 1)], _arg2[(_local5 + 2)], _arg2[(_local5 + 3)]));
_local5 = (_local5 + 3);
};
_local6 = _local3;
if (_arg2.length >= 5){
_local8 = 0;
while (_local8 < _local4.length) {
_local9 = _local4[_local8];
if ((((_local9.a.x <= _arg1)) && ((_arg1 <= _local9.d.x)))){
_local6 = _local9;
break;
};
_local8++;
};
};
_local7 = _local6.getYForX(_arg1);
return (_local7);
}
}
}//package fl.motion
Section 65
//FunctionEase (fl.motion.FunctionEase)
package fl.motion {
import flash.utils.*;
public class FunctionEase implements ITween {
private var _functionName:String;// = ""
public var parameters:Array;// = null
private var _target:String;// = ""
public var easingFunction:Function;// = null
public function FunctionEase(_arg1:XML=null){
_functionName = "";
easingFunction = null;
parameters = null;
_target = "";
super();
this.parseXML(_arg1);
}
public function get functionName():String{
return (this._functionName);
}
public function set functionName(_arg1:String):void{
var _local2:Array;
var _local3:String;
var _local4:String;
var _local5:Class;
_local2 = _arg1.split(".");
_local3 = _local2.pop();
_local4 = _local2.join(".");
_local5 = (getDefinitionByName(_local4) as Class);
if ((_local5[_local3] is Function)){
this.easingFunction = _local5[_local3];
this._functionName = _arg1;
};
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Array;
if ((this.parameters is Array)){
_local5 = [_arg1, _arg2, _arg3, _arg4].concat(this.parameters);
return (this.easingFunction.apply(null, _local5));
};
return (this.easingFunction(_arg1, _arg2, _arg3, _arg4));
}
private function parseXML(_arg1:XML=null):FunctionEase{
if (!_arg1){
return (this);
};
if (_arg1.@functionName.length()){
this.functionName = _arg1.@functionName;
};
return (this);
}
}
}//package fl.motion
Section 66
//ITween (fl.motion.ITween)
package fl.motion {
public interface ITween {
function get target():String;
function set target(_arg1:String):void;
function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number;
}
}//package fl.motion
Section 67
//Keyframe (fl.motion.Keyframe)
package fl.motion {
import flash.filters.*;
import flash.display.*;
import flash.utils.*;
public class Keyframe {
public var skewX:Number;// = NAN
public var blendMode:String;
public var skewY:Number;// = NAN
public var firstFrame:String;
public var tweenScale:Boolean;// = true
public var cacheAsBitmap:Boolean;// = false
public var rotateTimes:uint;// = 0
public var tweenSync:Boolean;// = false
public var loop:String;
public var scaleX:Number;// = NAN
private var _index:int;// = -1
public var blank:Boolean;// = false
public var tweenSnap:Boolean;// = false
public var scaleY:Number;// = NAN
public var color:Color;
public var rotateDirection:String;
public var orientToPath:Boolean;// = false
public var tweens:Array;
public var label:String;// = ""
public var x:Number;// = NAN
public var y:Number;// = NAN
public var filters:Array;
public function Keyframe(_arg1:XML=null){
_index = -1;
x = NaN;
y = NaN;
scaleX = NaN;
scaleY = NaN;
skewX = NaN;
skewY = NaN;
label = "";
tweenScale = true;
tweenSnap = false;
tweenSync = false;
cacheAsBitmap = false;
blendMode = BlendMode.NORMAL;
rotateDirection = RotateDirection.AUTO;
rotateTimes = 0;
orientToPath = false;
blank = false;
super();
this.tweens = [];
this.filters = [];
this.parseXML(_arg1);
}
public function set index(_arg1:int):void{
this._index = ((_arg1)<0) ? 0 : _arg1;
if (this._index == 0){
this.setDefaults();
};
}
public function getTween(_arg1:String=""):ITween{
var _local2:ITween;
for each (_local2 in this.tweens) {
if ((((((((_local2.target == _arg1)) || ((((_local2.target == "rotation")) && ((((_arg1 == "skewX")) || ((_arg1 == "skewY")))))))) || ((((_local2.target == "position")) && ((((_arg1 == "x")) || ((_arg1 == "y")))))))) || ((((_local2.target == "scale")) && ((((_arg1 == "scaleX")) || ((_arg1 == "scaleY")))))))){
return (_local2);
};
};
return (null);
}
public function setValue(_arg1:String, _arg2:Number):void{
this[_arg1] = _arg2;
}
public function getValue(_arg1:String):Number{
return (Number(this[_arg1]));
}
public function get index():int{
return (this._index);
}
private function setDefaults():void{
if (isNaN(this.x)){
this.x = 0;
};
if (isNaN(this.y)){
this.y = 0;
};
if (isNaN(this.scaleX)){
this.scaleX = 1;
};
if (isNaN(this.scaleY)){
this.scaleY = 1;
};
if (isNaN(this.skewX)){
this.skewX = 0;
};
if (isNaN(this.skewY)){
this.skewY = 0;
};
if (!this.color){
this.color = new Color();
};
}
public function affectsTweenable(_arg1:String=""):Boolean{
return (((((((((((!(_arg1)) || (!(isNaN(this[_arg1]))))) || ((((_arg1 == "color")) && (this.color))))) || ((((_arg1 == "filters")) && (this.filters.length))))) || (this.blank))) || (this.getTween())));
}
private function parseXML(_arg1:XML=null):Keyframe{
var indexString:String;
var indexValue:int;
var tweenableNames:Array;
var tweenableName:String;
var elements:XMLList;
var filtersArray:Array;
var child:XML;
var attribute:XML;
var attributeValue:String;
var name:String;
var tweenChildren:XMLList;
var tweenChild:XML;
var tweenName:String;
var filtersChildren:XMLList;
var filterXML:XML;
var filterName:String;
var filterClassName:String;
var filterClass:Object;
var filterInstance:BitmapFilter;
var filterTypeInfo:XML;
var accessorList:XMLList;
var ratios:Array;
var attrib:XML;
var attribName:String;
var accessor:XML;
var attribType:String;
var attribValue:String;
var uintValue:uint;
var valuesArray:Array;
var xml = _arg1;
if (!xml){
return (this);
};
indexString = xml.@index.toXMLString();
indexValue = parseInt(indexString);
if (indexString){
this.index = indexValue;
} else {
throw (new Error("<Keyframe> is missing the required attribute \"index\"."));
};
if (xml.@label.length()){
this.label = xml.@label;
};
if (xml.@tweenScale.length()){
this.tweenScale = (xml.@tweenScale.toString() == "true");
};
if (xml.@tweenSnap.length()){
this.tweenSnap = (xml.@tweenSnap.toString() == "true");
};
if (xml.@tweenSync.length()){
this.tweenSync = (xml.@tweenSync.toString() == "true");
};
if (xml.@blendMode.length()){
this.blendMode = xml.@blendMode;
};
if (xml.@cacheAsBitmap.length()){
this.cacheAsBitmap = (xml.@cacheAsBitmap.toString() == "true");
};
if (xml.@rotateDirection.length()){
this.rotateDirection = xml.@rotateDirection;
};
if (xml.@rotateTimes.length()){
this.rotateTimes = parseInt(xml.@rotateTimes);
};
if (xml.@orientToPath.length()){
this.orientToPath = (xml.@orientToPath.toString() == "true");
};
if (xml.@blank.length()){
this.blank = (xml.@blank.toString() == "true");
};
tweenableNames = ["x", "y", "scaleX", "scaleY", "rotation", "skewX", "skewY"];
for each (tweenableName in tweenableNames) {
attribute = xml.attribute(tweenableName)[0];
if (!attribute){
} else {
attributeValue = attribute.toString();
if (attributeValue){
this[tweenableName] = Number(attributeValue);
};
};
};
elements = xml.elements();
filtersArray = [];
for each (child in elements) {
name = child.localName();
if (name == "tweens"){
tweenChildren = child.elements();
for each (tweenChild in tweenChildren) {
tweenName = tweenChild.localName();
if (tweenName == "SimpleEase"){
this.tweens.push(new SimpleEase(tweenChild));
} else {
if (tweenName == "CustomEase"){
this.tweens.push(new CustomEase(tweenChild));
} else {
if (tweenName == "BezierEase"){
this.tweens.push(new BezierEase(tweenChild));
} else {
if (tweenName == "FunctionEase"){
this.tweens.push(new FunctionEase(tweenChild));
};
};
};
};
};
} else {
if (name == "filters"){
filtersChildren = child.elements();
for each (filterXML in filtersChildren) {
filterName = filterXML.localName();
filterClassName = ("flash.filters." + filterName);
if (filterName == "AdjustColorFilter"){
} else {
filterClass = getDefinitionByName(filterClassName);
filterInstance = new (filterClass);
filterTypeInfo = describeType(filterInstance);
accessorList = filterTypeInfo.accessor;
ratios = [];
for each (attrib in filterXML.attributes()) {
attribName = attrib.localName();
accessor = accessorList.(@name == attribName)[0];
attribType = accessor.@type;
attribValue = attrib.toString();
if (attribType == "int"){
filterInstance[attribName] = parseInt(attribValue);
} else {
if (attribType == "uint"){
filterInstance[attribName] = (parseInt(attribValue) as uint);
uintValue = (parseInt(attribValue) as uint);
} else {
if (attribType == "Number"){
filterInstance[attribName] = Number(attribValue);
} else {
if (attribType == "Boolean"){
filterInstance[attribName] = (attribValue == "true");
} else {
if (attribType == "Array"){
attribValue = attribValue.substring(1, (attribValue.length - 1));
valuesArray = null;
if ((((attribName == "ratios")) || ((attribName == "colors")))){
valuesArray = splitUint(attribValue);
} else {
if (attribName == "alphas"){
valuesArray = splitNumber(attribValue);
};
};
if (attribName == "ratios"){
ratios = valuesArray;
} else {
if (valuesArray){
filterInstance[attribName] = valuesArray;
};
};
} else {
if (attribType == "String"){
filterInstance[attribName] = attribValue;
};
};
};
};
};
};
};
if (ratios.length){
filterInstance["ratios"] = ratios;
};
filtersArray.push(filterInstance);
};
};
} else {
if (name == "color"){
this.color = Color.fromXML(child);
};
};
};
this.filters = filtersArray;
};
return (this);
}
public function set rotation(_arg1:Number):void{
if (((isNaN(this.skewX)) || (isNaN(this.skewY)))){
this.skewX = _arg1;
} else {
this.skewX = (this.skewX + (_arg1 - this.skewY));
};
this.skewY = _arg1;
}
public function get rotation():Number{
return (this.skewY);
}
private static function splitNumber(_arg1:String):Array{
var _local2:Array;
var _local3:int;
_local2 = _arg1.split(",");
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3] = Number(_local2[_local3]);
_local3++;
};
return (_local2);
}
private static function splitUint(_arg1:String):Array{
var _local2:Array;
var _local3:int;
_local2 = _arg1.split(",");
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3] = (parseInt(_local2[_local3]) as uint);
_local3++;
};
return (_local2);
}
private static function splitInt(_arg1:String):Array{
var _local2:Array;
var _local3:int;
_local2 = _arg1.split(",");
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3] = (parseInt(_local2[_local3]) as int);
_local3++;
};
return (_local2);
}
}
}//package fl.motion
Section 68
//MatrixTransformer (fl.motion.MatrixTransformer)
package fl.motion {
import flash.geom.*;
public class MatrixTransformer {
public static function getSkewY(_arg1:Matrix):Number{
return ((Math.atan2(_arg1.b, _arg1.a) * (180 / Math.PI)));
}
public static function getScaleX(_arg1:Matrix):Number{
return (Math.sqrt(((_arg1.a * _arg1.a) + (_arg1.b * _arg1.b))));
}
public static function getScaleY(_arg1:Matrix):Number{
return (Math.sqrt(((_arg1.c * _arg1.c) + (_arg1.d * _arg1.d))));
}
public static function setSkewXRadians(_arg1:Matrix, _arg2:Number):void{
var _local3:Number;
_local3 = getScaleY(_arg1);
_arg1.c = (-(_local3) * Math.sin(_arg2));
_arg1.d = (_local3 * Math.cos(_arg2));
}
public static function setRotation(_arg1:Matrix, _arg2:Number):void{
setRotationRadians(_arg1, (_arg2 * (Math.PI / 180)));
}
public static function rotateAroundInternalPoint(_arg1:Matrix, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local5:Point;
_local5 = new Point(_arg2, _arg3);
_local5 = _arg1.transformPoint(_local5);
_arg1.tx = (_arg1.tx - _local5.x);
_arg1.ty = (_arg1.ty - _local5.y);
_arg1.rotate((_arg4 * (Math.PI / 180)));
_arg1.tx = (_arg1.tx + _local5.x);
_arg1.ty = (_arg1.ty + _local5.y);
}
public static function setSkewX(_arg1:Matrix, _arg2:Number):void{
setSkewXRadians(_arg1, (_arg2 * (Math.PI / 180)));
}
public static function setSkewY(_arg1:Matrix, _arg2:Number):void{
setSkewYRadians(_arg1, (_arg2 * (Math.PI / 180)));
}
public static function setScaleX(_arg1:Matrix, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local3 = getScaleX(_arg1);
if (_local3){
_local4 = (_arg2 / _local3);
_arg1.a = (_arg1.a * _local4);
_arg1.b = (_arg1.b * _local4);
} else {
_local5 = getSkewYRadians(_arg1);
_arg1.a = (Math.cos(_local5) * _arg2);
_arg1.b = (Math.sin(_local5) * _arg2);
};
}
public static function setScaleY(_arg1:Matrix, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local3 = getScaleY(_arg1);
if (_local3){
_local4 = (_arg2 / _local3);
_arg1.c = (_arg1.c * _local4);
_arg1.d = (_arg1.d * _local4);
} else {
_local5 = getSkewXRadians(_arg1);
_arg1.c = (-(Math.sin(_local5)) * _arg2);
_arg1.d = (Math.cos(_local5) * _arg2);
};
}
public static function setRotationRadians(_arg1:Matrix, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
_local3 = getRotationRadians(_arg1);
_local4 = getSkewXRadians(_arg1);
setSkewXRadians(_arg1, ((_local4 + _arg2) - _local3));
setSkewYRadians(_arg1, _arg2);
}
public static function setSkewYRadians(_arg1:Matrix, _arg2:Number):void{
var _local3:Number;
_local3 = getScaleX(_arg1);
_arg1.a = (_local3 * Math.cos(_arg2));
_arg1.b = (_local3 * Math.sin(_arg2));
}
public static function getSkewX(_arg1:Matrix):Number{
return ((Math.atan2(-(_arg1.c), _arg1.d) * (180 / Math.PI)));
}
public static function getSkewYRadians(_arg1:Matrix):Number{
return (Math.atan2(_arg1.b, _arg1.a));
}
public static function getSkewXRadians(_arg1:Matrix):Number{
return (Math.atan2(-(_arg1.c), _arg1.d));
}
public static function getRotation(_arg1:Matrix):Number{
return ((getRotationRadians(_arg1) * (180 / Math.PI)));
}
public static function rotateAroundExternalPoint(_arg1:Matrix, _arg2:Number, _arg3:Number, _arg4:Number):void{
_arg1.tx = (_arg1.tx - _arg2);
_arg1.ty = (_arg1.ty - _arg3);
_arg1.rotate((_arg4 * (Math.PI / 180)));
_arg1.tx = (_arg1.tx + _arg2);
_arg1.ty = (_arg1.ty + _arg3);
}
public static function getRotationRadians(_arg1:Matrix):Number{
return (getSkewYRadians(_arg1));
}
public static function matchInternalPointWithExternal(_arg1:Matrix, _arg2:Point, _arg3:Point):void{
var _local4:Point;
var _local5:Number;
var _local6:Number;
_local4 = _arg1.transformPoint(_arg2);
_local5 = (_arg3.x - _local4.x);
_local6 = (_arg3.y - _local4.y);
_arg1.tx = (_arg1.tx + _local5);
_arg1.ty = (_arg1.ty + _local6);
}
}
}//package fl.motion
Section 69
//Motion (fl.motion.Motion)
package fl.motion {
import flash.filters.*;
import flash.geom.*;
import flash.utils.*;
public class Motion {
private var _keyframesCompact:Array;
public var keyframes:Array;
public var source:Source;
private var _duration:int;// = 0
private static var typeCache:Object = {};
public function Motion(_arg1:XML=null){
var _local2:Keyframe;
_duration = 0;
super();
this.keyframes = [];
this.parseXML(_arg1);
if (!this.source){
this.source = new Source();
};
if (this.duration == 0){
_local2 = new Keyframe();
_local2.index = 0;
this.addKeyframe(_local2);
};
}
public function getFilters(_arg1:Number):Array{
var _local2:Array;
var _local3:Keyframe;
var _local4:Array;
var _local5:Number;
var _local6:ITween;
var _local7:Keyframe;
var _local8:Array;
var _local9:Number;
var _local10:Number;
_local2 = null;
_local3 = this.getCurrentKeyframe(_arg1, "filters");
if (((!(_local3)) || (!(_local3.filters.length)))){
return ([]);
};
_local4 = _local3.filters;
_local5 = (_arg1 - _local3.index);
_local6 = ((_local3.getTween("filters")) || (_local3.getTween()));
if ((((_local5 == 0)) || (!(_local6)))){
_local2 = _local4;
} else {
if (_local6){
_local7 = this.getNextKeyframe(_arg1, "filters");
if (((!(_local7)) || (!(_local7.filters.length)))){
_local2 = _local4;
} else {
_local8 = _local7.filters;
_local9 = (_local7.index - _local3.index);
_local10 = _local6.getValue(_local5, 0, 1, _local9);
_local2 = interpolateFilters(_local4, _local8, _local10);
};
};
};
return (_local2);
}
public function getCurrentKeyframe(_arg1:int, _arg2:String=""):Keyframe{
var _local3:int;
var _local4:Keyframe;
if (((((isNaN(_arg1)) || ((_arg1 < 0)))) || ((_arg1 > (this.duration - 1))))){
return (null);
};
_local3 = _arg1;
while (_local3 > 0) {
_local4 = this.keyframes[_local3];
if (((_local4) && (_local4.affectsTweenable(_arg2)))){
return (_local4);
};
_local3--;
};
return (this.keyframes[0]);
}
public function get duration():int{
if (this._duration < this.keyframes.length){
this._duration = this.keyframes.length;
};
return (this._duration);
}
public function get keyframesCompact():Array{
var _local1:Keyframe;
this._keyframesCompact = [];
for each (_local1 in this.keyframes) {
if (_local1){
this._keyframesCompact.push(_local1);
};
};
return (this._keyframesCompact);
}
private function parseXML(_arg1:XML):Motion{
var _local2:XMLList;
var _local3:Number;
var _local4:XML;
var _local5:XML;
if (!_arg1){
return (this);
};
if (_arg1.@duration.length()){
this._duration = parseInt(_arg1.@duration);
};
_local2 = _arg1.elements();
_local3 = 0;
while (_local3 < _local2.length()) {
_local4 = _local2[_local3];
if (_local4.localName() == "source"){
_local5 = _local4.children()[0];
this.source = new Source(_local5);
} else {
if (_local4.localName() == "Keyframe"){
this.addKeyframe(new Keyframe(_local4));
};
};
_local3++;
};
return (this);
}
public function set duration(_arg1:int):void{
if (_arg1 < this.keyframes.length){
_arg1 = this.keyframes.length;
};
this._duration = _arg1;
}
private function indexOutOfRange(_arg1:int):Boolean{
return (((((isNaN(_arg1)) || ((_arg1 < 0)))) || ((_arg1 > (this.duration - 1)))));
}
public function addKeyframe(_arg1:Keyframe):void{
this.keyframes[_arg1.index] = _arg1;
if (this.duration < this.keyframes.length){
this.duration = this.keyframes.length;
};
}
public function setValue(_arg1:int, _arg2:String, _arg3:Number):void{
var _local4:Keyframe;
if (_arg1 == 0){
return;
};
_local4 = this.keyframes[_arg1];
if (!_local4){
_local4 = new Keyframe();
_local4.index = _arg1;
this.addKeyframe(_local4);
};
_local4.setValue(_arg2, _arg3);
}
public function getNextKeyframe(_arg1:int, _arg2:String=""):Keyframe{
var _local3:int;
var _local4:Keyframe;
if (((((isNaN(_arg1)) || ((_arg1 < 0)))) || ((_arg1 > (this.duration - 1))))){
return (null);
};
_local3 = (_arg1 + 1);
while (_local3 < this.keyframes.length) {
_local4 = this.keyframes[_local3];
if (((_local4) && (_local4.affectsTweenable(_arg2)))){
return (_local4);
};
_local3++;
};
return (null);
}
public function getValue(_arg1:Number, _arg2:String):Number{
var _local3:Number;
var _local4:Keyframe;
var _local5:Number;
var _local6:Number;
var _local7:ITween;
var _local8:String;
var _local9:Keyframe;
var _local10:Number;
var _local11:Number;
var _local12:Number;
_local3 = NaN;
_local4 = this.getCurrentKeyframe(_arg1, _arg2);
if (((!(_local4)) || (_local4.blank))){
return (NaN);
};
_local5 = _local4.getValue(_arg2);
if (((isNaN(_local5)) && ((_local4.index > 0)))){
_local5 = this.getValue((_local4.index - 1), _arg2);
};
if (isNaN(_local5)){
return (NaN);
};
_local6 = (_arg1 - _local4.index);
if (_local6 == 0){
return (_local5);
};
_local7 = ((_local4.getTween(_arg2)) || (_local4.getTween()));
if (((((!(_local7)) || (((!(_local4.tweenScale)) && ((((_arg2 == Tweenables.SCALE_X)) || ((_arg2 == Tweenables.SCALE_Y)))))))) || ((((_local4.rotateDirection == RotateDirection.NONE)) && ((((((_arg2 == Tweenables.ROTATION)) || ((_arg2 == Tweenables.SKEW_X)))) || ((_arg2 == Tweenables.SKEW_Y)))))))){
return (_local5);
};
_local8 = _arg2;
if (_local7.target == ""){
_local8 = "";
};
_local9 = this.getNextKeyframe(_arg1, _local8);
if (((!(_local9)) || (_local9.blank))){
return (_local5);
};
_local10 = _local9.getValue(_arg2);
if (isNaN(_local10)){
_local10 = _local5;
};
_local11 = (_local10 - _local5);
if ((((((_arg2 == Tweenables.SKEW_X)) || ((_arg2 == Tweenables.SKEW_Y)))) || ((_arg2 == Tweenables.ROTATION)))){
if (_local4.rotateDirection == RotateDirection.AUTO){
_local11 = (_local11 % 360);
if (_local11 > 180){
_local11 = (_local11 - 360);
} else {
if (_local11 < -180){
_local11 = (_local11 + 360);
};
};
} else {
if (_local4.rotateDirection == RotateDirection.CW){
if (_local11 < 0){
_local11 = ((_local11 % 360) + 360);
};
_local11 = (_local11 + (_local4.rotateTimes * 360));
} else {
if (_local11 > 0){
_local11 = ((_local11 % 360) - 360);
};
_local11 = (_local11 - (_local4.rotateTimes * 360));
};
};
};
_local12 = (_local9.index - _local4.index);
_local3 = _local7.getValue(_local6, _local5, _local11, _local12);
return (_local3);
}
public function set keyframesCompact(_arg1:Array):void{
var _local2:Keyframe;
this._keyframesCompact = _arg1.concat();
this.keyframes = [];
for each (_local2 in this._keyframesCompact) {
this.addKeyframe(_local2);
};
}
public function getColorTransform(_arg1:int):ColorTransform{
var _local2:ColorTransform;
var _local3:Keyframe;
var _local4:ColorTransform;
var _local5:Number;
var _local6:ITween;
var _local7:Keyframe;
var _local8:ColorTransform;
var _local9:Number;
var _local10:Number;
_local2 = null;
_local3 = this.getCurrentKeyframe(_arg1, "color");
if (((!(_local3)) || (!(_local3.color)))){
return (null);
};
_local4 = _local3.color;
_local5 = (_arg1 - _local3.index);
_local6 = ((((_local3.getTween("color")) || (_local3.getTween("alpha")))) || (_local3.getTween()));
if ((((_local5 == 0)) || (!(_local6)))){
_local2 = _local4;
} else {
if (_local6){
_local7 = this.getNextKeyframe(_arg1, "color");
if (((!(_local7)) || (!(_local7.color)))){
_local2 = _local4;
} else {
_local8 = _local7.color;
_local9 = (_local7.index - _local3.index);
_local10 = _local6.getValue(_local5, 0, 1, _local9);
_local2 = Color.interpolateTransform(_local4, _local8, _local10);
};
};
};
return (_local2);
}
private static function getTypeInfo(_arg1):XML{
var _local2:String;
_local2 = "";
if ((_arg1 is String)){
_local2 = _arg1;
} else {
_local2 = getQualifiedClassName(_arg1);
};
if ((_local2 in typeCache)){
return (typeCache[_local2]);
};
if ((_arg1 is String)){
_arg1 = getDefinitionByName(_arg1);
};
return ((typeCache[_local2] = describeType(_arg1)));
}
public static function interpolateFilter(_arg1:BitmapFilter, _arg2:BitmapFilter, _arg3:Number):BitmapFilter{
var _local4:Number;
var _local5:BitmapFilter;
var _local6:XML;
var _local7:XMLList;
var _local8:XML;
var _local9:String;
var _local10:String;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:Array;
var _local15:Array;
var _local16:Array;
var _local17:int;
var _local18:int;
var _local19:int;
var _local20:int;
var _local21:int;
var _local22:Number;
var _local23:uint;
var _local24:Number;
var _local25:int;
var _local26:Number;
var _local27:uint;
var _local28:Number;
var _local29:int;
var _local30:uint;
var _local31:Number;
if (((!(_arg2)) || (!((_arg1["constructor"] == _arg2["constructor"]))))){
return (_arg1);
};
if (_arg3 > 1){
_arg3 = 1;
} else {
if (_arg3 < 0){
_arg3 = 0;
};
};
_local4 = (1 - _arg3);
_local5 = _arg1.clone();
_local6 = getTypeInfo(_arg1);
_local7 = _local6.accessor;
for each (_local8 in _local7) {
_local9 = _local8.@name.toString();
_local10 = _local8.@type;
if ((((_local10 == "Number")) || ((_local10 == "int")))){
_local5[_local9] = ((_arg1[_local9] * _local4) + (_arg2[_local9] * _arg3));
} else {
if (_local10 == "uint"){
switch (_local9){
case "color":
case "highlightColor":
case "shadowColor":
_local11 = _arg1[_local9];
_local12 = _arg2[_local9];
_local13 = Color.interpolateColor(_local11, _local12, _arg3);
_local5[_local9] = _local13;
break;
default:
_local5[_local9] = ((_arg1[_local9] * _local4) + (_arg2[_local9] * _arg3));
break;
};
};
};
};
if ((((_arg1 is GradientGlowFilter)) || ((_arg1 is GradientBevelFilter)))){
_local14 = [];
_local15 = [];
_local16 = [];
_local17 = _arg1["ratios"].length;
_local18 = _arg2["ratios"].length;
_local19 = Math.max(_local17, _local18);
_local20 = 0;
while (_local20 < _local19) {
_local21 = Math.min(_local20, (_local17 - 1));
_local22 = _arg1["ratios"][_local21];
_local23 = _arg1["colors"][_local21];
_local24 = _arg1["alphas"][_local21];
_local25 = Math.min(_local20, (_local18 - 1));
_local26 = _arg2["ratios"][_local25];
_local27 = _arg2["colors"][_local25];
_local28 = _arg2["alphas"][_local25];
_local29 = ((_local22 * _local4) + (_local26 * _arg3));
_local30 = Color.interpolateColor(_local23, _local27, _arg3);
_local31 = ((_local24 * _local4) + (_local28 * _arg3));
_local14[_local20] = _local29;
_local15[_local20] = _local30;
_local16[_local20] = _local31;
_local20++;
};
_local5["colors"] = _local15;
_local5["alphas"] = _local16;
_local5["ratios"] = _local14;
};
return (_local5);
}
public static function interpolateFilters(_arg1:Array, _arg2:Array, _arg3:Number):Array{
var _local4:Array;
var _local5:int;
var _local6:BitmapFilter;
var _local7:BitmapFilter;
var _local8:BitmapFilter;
if (_arg1.length != _arg2.length){
return (null);
};
_local4 = [];
_local5 = 0;
while (_local5 < _arg1.length) {
_local6 = _arg1[_local5];
_local7 = _arg2[_local5];
_local8 = interpolateFilter(_local6, _local7, _arg3);
if (_local8){
_local4.push(_local8);
};
_local5++;
};
return (_local4);
}
public static function fromXMLString(_arg1:String):Motion{
var _local2:XML;
_local2 = new XML(_arg1);
return (new Motion(_local2));
}
}
}//package fl.motion
Section 70
//MotionEvent (fl.motion.MotionEvent)
package fl.motion {
import flash.events.*;
public class MotionEvent extends Event {
public static const MOTION_UPDATE:String = "motionUpdate";
public static const TIME_CHANGE:String = "timeChange";
public static const MOTION_START:String = "motionStart";
public static const MOTION_END:String = "motionEnd";
public function MotionEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new MotionEvent(this.type, this.bubbles, this.cancelable));
}
}
}//package fl.motion
Section 71
//RotateDirection (fl.motion.RotateDirection)
package fl.motion {
public class RotateDirection {
public static const CW:String = "cw";
public static const CCW:String = "ccw";
public static const NONE:String = "none";
public static const AUTO:String = "auto";
}
}//package fl.motion
Section 72
//SimpleEase (fl.motion.SimpleEase)
package fl.motion {
public class SimpleEase implements ITween {
private var _ease:Number;// = 0
private var _target:String;// = ""
public function SimpleEase(_arg1:XML=null){
_ease = 0;
_target = "";
super();
this.parseXML(_arg1);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
private function parseXML(_arg1:XML=null):SimpleEase{
if (_arg1){
if (_arg1.@ease.length()){
this.ease = Number(_arg1.@ease);
};
};
return (this);
}
public function get ease():Number{
return (this._ease);
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (easeQuadPercent(_arg1, _arg2, _arg3, _arg4, this.ease));
}
public function set ease(_arg1:Number):void{
this._ease = ((_arg1 > 1)) ? 1 : ((_arg1 < -1)) ? -1 : (isNaN(_arg1)) ? 0 : _arg1;
}
public static function easeQuadPercent(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Number{
if (_arg4 <= 0){
return (NaN);
};
if (_arg1 <= 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 >= 1){
return ((_arg2 + _arg3));
};
if (!_arg5){
return (((_arg3 * _arg1) + _arg2));
};
if (_arg5 > 1){
_arg5 = 1;
} else {
if (_arg5 < -1){
_arg5 = -1;
};
};
if (_arg5 < 0){
return ((((_arg3 * _arg1) * ((_arg1 * -(_arg5)) + (1 + _arg5))) + _arg2));
};
return ((((_arg3 * _arg1) * (((2 - _arg1) * _arg5) + (1 - _arg5))) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg4 <= 0){
return (NaN);
};
if (_arg1 <= 0){
return (_arg2);
};
if (_arg1 >= _arg4){
return ((_arg2 + _arg3));
};
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.motion
Section 73
//Source (fl.motion.Source)
package fl.motion {
import flash.geom.*;
public class Source {
public var instanceName:String;// = ""
public var symbolName:String;// = ""
public var dimensions:Rectangle;
public var scaleX:Number;// = 1
public var skewY:Number;// = 0
public var skewX:Number;// = 0
public var scaleY:Number;// = 1
public var elementType:String;// = ""
public var transformationPoint:Point;
public var linkageID:String;// = ""
public var frameRate:Number;// = NAN
public var x:Number;// = 0
public var y:Number;// = 0
public var rotation:Number;// = 0
public function Source(_arg1:XML=null){
frameRate = NaN;
elementType = "";
symbolName = "";
instanceName = "";
linkageID = "";
x = 0;
y = 0;
scaleX = 1;
scaleY = 1;
skewX = 0;
skewY = 0;
rotation = 0;
super();
this.parseXML(_arg1);
}
private function parseXML(_arg1:XML=null):Source{
var _local2:XMLList;
var _local3:XML;
var _local4:XML;
var _local5:XML;
if (!_arg1){
return (this);
};
if (_arg1.@instanceName){
this.instanceName = String(_arg1.@instanceName);
};
if (_arg1.@symbolName){
this.symbolName = String(_arg1.@symbolName);
};
if (_arg1.@linkageID){
this.linkageID = String(_arg1.@linkageID);
};
if (!isNaN(_arg1.@frameRate)){
this.frameRate = Number(_arg1.@frameRate);
};
_local2 = _arg1.elements();
for each (_local3 in _local2) {
if (_local3.localName() == "transformationPoint"){
_local4 = _local3.children()[0];
this.transformationPoint = new Point(Number(_local4.@x), Number(_local4.@y));
} else {
if (_local3.localName() == "dimensions"){
_local5 = _local3.children()[0];
this.dimensions = new Rectangle(Number(_local5.@left), Number(_local5.@top), Number(_local5.@width), Number(_local5.@height));
};
};
};
return (this);
}
}
}//package fl.motion
Section 74
//Tweenables (fl.motion.Tweenables)
package fl.motion {
public class Tweenables {
public static const SCALE_X:String = "scaleX";
public static const SCALE_Y:String = "scaleY";
public static const SKEW_X:String = "skewX";
public static const SKEW_Y:String = "skewY";
public static const X:String = "x";
public static const Y:String = "y";
public static const ROTATION:String = "rotation";
}
}//package fl.motion
Section 75
//Bl1 (Bl1)
package {
import flash.media.*;
public dynamic class Bl1 extends Sound {
}
}//package
Section 76
//Bl2 (Bl2)
package {
import flash.media.*;
public dynamic class Bl2 extends Sound {
}
}//package
Section 77
//GIRL (GIRL)
package {
import flash.media.*;
public dynamic class GIRL extends Sound {
}
}//package
Section 78
//HIDE (HIDE)
package {
import flash.display.*;
public dynamic class HIDE extends MovieClip {
}
}//package
Section 79
//LOOP (LOOP)
package {
import flash.media.*;
public dynamic class LOOP extends Sound {
}
}//package
Section 80
//LOOP1 (LOOP1)
package {
import flash.media.*;
public dynamic class LOOP1 extends Sound {
}
}//package
Section 81
//Main (Main)
package {
import flash.events.*;
import fl.motion.*;
import flash.filters.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Main extends MovieClip {
public var LOADER:MovieClip;
public var CAM1_animator:Animator;
public var B2:Bl2;
public var B1:Bl1;
public var CAM2_xml:XML;
public var S2:Sm2;
public var S8:Sm8;
public var P:PUN;
public var G:GIRL;
public var Z:ZOOM;
public var CAM1:MovieClip;
public var CAM2:MovieClip;
public var CAM4:MovieClip;
public var CAM3:MovieClip;
public var SFX2:SoundChannel;
public var SFX3:SoundChannel;
public var SFX4:SoundChannel;
public var SFX5:SoundChannel;
public var SFX1:SoundChannel;
public var SQ:SQU;
public var M1_LOOP:LOOP1;
public var BGM_PLAY:Boolean;
public var CAM3_animator:Animator;
public var YOU_SUCK:SUCK;
public var Per25_MAX:Number;
public var EVENT_CODE:Number;
public var BGM_VOL:Number;
public var BGM:SoundChannel;
public var BGM_DONE:Boolean;
public var CAM1_xml:XML;
public var PLAY_BUT:SimpleButton;
public var Per50_MAX:Number;
public var Random:Number;
public var Q_CH:Boolean;
public var M10:Mo10;
public var M11:Mo11;
public var M12:Mo12;
public var M13:Mo13;
public var M14:Mo14;
public var Z_IN:ContextMenuItem;
public var MyMENU:ContextMenu;
public var M17:Mo17;
public var M19:Mo19;
public var M16:Mo16;
public var CAM4_xml:XML;
public var M18:Mo18;
public var M15:Mo15;
public var Sp1:Spt1;
public var M_LOOP:LOOP;
public var CAM2_animator:Animator;
public var Sp3:Spt3;
public var Delay:Number;
public var Sp2:Spt2;
public var Per25_MIN:Number;
public var DONE:MovieClip;
public var M2:Mo2;
public var M4:Mo4;
public var M6:Mo6;
public var M7:Mo7;
public var M1:Mo1;
public var M5:Mo5;
public var CAM4_animator:Animator;
public var Wait:Boolean;
public var ACT_CODE:Number;
public var Wait_cont:Number;
public var M3:Mo3;
public var copyRight:ContextMenuItem;
public var PLEASURE:Number;
public var S11:Sm11;
public var S12:Sm12;
public var CAM:MovieClip;
public var CAM_LOCK:Boolean;
public var CAM3_xml:XML;
public var Zoom_LVL:Number;
public var NG:ContextMenuItem;
public var S19:Sm19;
public var S14:Sm14;
public var Z_OUT:ContextMenuItem;
public var M8:Mo8;
public var Per50_MIN:Number;
public var S22:Sm22;
public var C_LOCK:ContextMenuItem;
public var S24:Sm24;
public var SFX_VOL:Number;
public var USER:ContextMenuItem;
public var S23:Sm23;
public var BLACK:HIDE;
public var S20:Sm20;
public var REPLAY:SimpleButton;
public var S18:Sm18;
public function Main(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 180, frame181, 222, frame223, 385, frame386, 386, frame387, 400, frame401, 401, frame402, 402, frame403, 403, frame404, 406, frame407);
}
public function CAMERA_LOCK(_arg1:KeyboardEvent){
if (_arg1.keyCode == 13){
if (CAM_LOCK == false){
CAM_LOCK = true;
} else {
CAM_LOCK = false;
};
};
}
public function ACT_SPEED(_arg1:MouseEvent){
if (EVENT_CODE == 2){
if (ACT_CODE == 5){
gotoAndStop("ORAL_FAST");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 6;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
} else {
if (ACT_CODE == 6){
gotoAndStop("ORAL_SLOW");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 5;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
} else {
if (ACT_CODE == 3){
gotoAndStop("HAND_FAST");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 4;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
} else {
if (ACT_CODE == 4){
gotoAndStop("HAND_SLOW");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 3;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
};
};
};
};
} else {
if (EVENT_CODE == 1){
if (ACT_CODE == 5){
gotoAndStop("SEX_FAST");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 6;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
} else {
if (ACT_CODE == 6){
gotoAndStop("SEX_SLOW");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 5;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
} else {
if (ACT_CODE == 3){
gotoAndStop("FING_FAST");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 4;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
} else {
if (ACT_CODE == 4){
gotoAndStop("FING_SLOW");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 3;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
};
};
};
};
};
};
}
public function ACT_HAND(_arg1:MouseEvent){
if (EVENT_CODE == 1){
if (((!((ACT_CODE == 3))) && (!((ACT_CODE == 4))))){
gotoAndStop("FING_SLOW");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 3;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
};
} else {
if (EVENT_CODE == 2){
if (((!((ACT_CODE == 3))) && (!((ACT_CODE == 4))))){
gotoAndStop("HAND_SLOW");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 3;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
};
};
};
}
public function MASK_BAR(_arg1:Event){
CAM.P_CONT.text = (PLEASURE + "%".toString());
Delay++;
if (PLEASURE > 100){
PLEASURE = 100;
};
if (PLEASURE >= 100){
if (Delay == 1){
CAM.P_BAR.gotoAndStop(2);
CAM.PAN.CLI_BUT.gotoAndStop(2);
};
} else {
if (Delay == 1){
CAM.P_BAR.gotoAndStop(1);
CAM.PAN.CLI_BUT.gotoAndStop(1);
};
};
if (Delay == 2){
Delay = 0;
};
CAM.MASK.scaleX = (PLEASURE / 100);
if (CAM_LOCK == true){
C_LOCK.caption = "Cam Lock: ON";
} else {
C_LOCK.caption = "Cam Lock: OFF";
};
}
public function VOL_SFX_DOWN(_arg1:MouseEvent){
if (SFX_VOL != 0){
SFX_VOL = (SFX_VOL - 10);
};
}
public function RESET_BUTTON(_arg1:MouseEvent){
if (REPLAY.visible == true){
gotoAndStop("START");
};
}
public function BGM_BUT(_arg1:MouseEvent){
if (BGM_PLAY == true){
BGM_PLAY = false;
BGM.stop();
} else {
BGM_PLAY = true;
};
}
public function CAMERA_PAN(_arg1:Event){
if (Zoom_LVL != 1){
if (CAM_LOCK == false){
CAM.x = (CAM.x + ((stage.mouseX - CAM.x) / 8));
CAM.y = (CAM.y + ((stage.mouseY - CAM.y) / 8));
};
if (Zoom_LVL == 2){
if (CAM.x < Per50_MIN){
CAM.x = Per50_MIN;
};
if (CAM.x > Per50_MAX){
CAM.x = Per50_MAX;
};
if (CAM.y < Per50_MIN){
CAM.y = Per50_MIN;
};
if (CAM.y > Per50_MAX){
CAM.y = Per50_MAX;
};
};
if (Zoom_LVL == 3){
if (CAM.x < Per25_MIN){
CAM.x = Per25_MIN;
};
if (CAM.x > Per25_MAX){
CAM.x = Per25_MAX;
};
if (CAM.y < Per25_MIN){
CAM.y = Per25_MIN;
};
if (CAM.y > Per25_MAX){
CAM.y = Per25_MAX;
};
};
};
}
function frame3(){
LOADER.alpha = 0;
stage.addEventListener(Event.ENTER_FRAME, SEE_LOAD);
}
function frame4(){
M_LOOP = new LOOP();
M1_LOOP = new LOOP1();
YOU_SUCK = new SUCK();
Z = new ZOOM();
G = new GIRL();
P = new PUN();
SQ = new SQU();
B1 = new Bl1();
B2 = new Bl2();
M19 = new Mo19();
M18 = new Mo18();
M17 = new Mo17();
M16 = new Mo16();
M14 = new Mo14();
M15 = new Mo15();
M12 = new Mo12();
M13 = new Mo13();
M7 = new Mo7();
M2 = new Mo2();
M1 = new Mo1();
M4 = new Mo4();
M8 = new Mo8();
M5 = new Mo5();
M3 = new Mo3();
M6 = new Mo6();
M10 = new Mo10();
M11 = new Mo11();
S11 = new Sm11();
S12 = new Sm12();
Sp1 = new Spt1();
Sp2 = new Spt2();
Sp3 = new Spt3();
S23 = new Sm23();
S19 = new Sm19();
S8 = new Sm8();
S24 = new Sm24();
S18 = new Sm18();
S2 = new Sm2();
S20 = new Sm20();
S14 = new Sm14();
S22 = new Sm22();
}
function frame181(){
SFX1 = M1_LOOP.play(0, 100000);
SFX1.soundTransform = new SoundTransform((SFX_VOL / 100), 0);
}
function frame1(){
stop();
NewgroundsAPI.linkAPI(this);
NewgroundsAPI.connectMovie(1810);
}
public function VOL_BGM_UP(_arg1:MouseEvent){
if (BGM_VOL != 100){
BGM_VOL = (BGM_VOL + 10);
};
}
function frame402(){
CAM4_xml = <Motion duration="93" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="30" x="-23.35" y="22.5" scaleX="0.884" scaleY="0.884" rotation="0" elementType="movie clip" symbolName="CAM_MOV-WINDOW">
<dimensions>
<geom:Rectangle left="-183" top="-183" width="366" height="366"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<color>
<Color alphaMultiplier="0.3"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="52" tweenSnap="true" tweenSync="true" y="-90" scaleX="1.4389140271493213" scaleY="1.4389140271493213">
<color>
<Color alphaMultiplier="0.3"/>
</color>
<tweens>
<SimpleEase ease="-1"/>
</tweens>
</Keyframe>
<Keyframe index="53" tweenSnap="true" tweenSync="true">
<color>
<Color alphaMultiplier="0.3"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="54" tweenSnap="true" tweenSync="true" x="-2" y="92.9" scaleX="0.4309954751131222" scaleY="0.4309954751131222">
<color>
<Color alphaMultiplier="0.3"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="70" tweenSnap="true" tweenSync="true">
<color>
<Color alphaMultiplier="0.3"/>
</color>
<tweens>
<SimpleEase ease="1"/>
</tweens>
</Keyframe>
<Keyframe index="92" x="-1.6499999999999986" y="-103.5" scaleX="1.6990950226244343" scaleY="1.6990950226244343">
<color>
<Color alphaMultiplier="0.3"/>
</color>
</Keyframe>
</Motion>
;
CAM4_animator = new Animator(CAM4_xml, CAM4);
CAM4_animator.play();
}
function frame2(){
stop();
BLACK = new HIDE();
stage.addChild(BLACK);
Wait = false;
Wait_cont = 0;
Random = 0;
SFX_VOL = 100;
BGM_VOL = 80;
SFX1 = new SoundChannel();
SFX2 = new SoundChannel();
SFX3 = new SoundChannel();
SFX4 = new SoundChannel();
SFX5 = new SoundChannel();
BGM = new SoundChannel();
Delay = 0;
PLEASURE = 0;
EVENT_CODE = 1;
ACT_CODE = 1;
Per50_MIN = 137.5;
Per50_MAX = 412.5;
Per25_MIN = 68.8;
Per25_MAX = 481.3;
Q_CH = false;
Zoom_LVL = 1;
CAM_LOCK = false;
BGM_PLAY = true;
BGM_DONE = false;
MyMENU = new ContextMenu();
MyMENU.hideBuiltInItems();
copyRight = new ContextMenuItem("©Joshua Silver 2008", true, false, true);
NG = new ContextMenuItem("HOLY CRAP NEWGROUDS!", true, true, true);
USER = new ContextMenuItem("MY ROYAL CHAMBER!", false, true, true);
Z_IN = new ContextMenuItem("Zoom:In", true, true, false);
Z_OUT = new ContextMenuItem("Zoom:Out", false, true, false);
C_LOCK = new ContextMenuItem("Cam Lock: OFF", true, true, false);
MyMENU.customItems.push(copyRight);
MyMENU.customItems.push(NG);
MyMENU.customItems.push(USER);
MyMENU.customItems.push(Z_IN);
MyMENU.customItems.push(Z_OUT);
MyMENU.customItems.push(C_LOCK);
contextMenu = MyMENU;
NG.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, LOAD_NG);
USER.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, LOAD_USER);
Z_IN.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, ZOOM_IN);
Z_OUT.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, ZOOM_OUT);
C_LOCK.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, LOCK_CAM_M);
}
public function CAMERA_ZOOM(_arg1:KeyboardEvent){
if (_arg1.keyCode == 109){
if (Zoom_LVL == 2){
CAM.scaleX = 1;
CAM.scaleY = 1;
CAM.x = 275;
CAM.y = 275;
CAM_LOCK = false;
Zoom_LVL = 1;
} else {
if (Zoom_LVL == 3){
CAM.scaleX = 0.5;
CAM.scaleY = 0.5;
Zoom_LVL = 2;
};
};
};
if (_arg1.keyCode == 107){
if (Zoom_LVL == 2){
CAM.scaleX = 0.25;
CAM.scaleY = 0.25;
Zoom_LVL = 3;
} else {
if (Zoom_LVL == 1){
CAM.scaleX = 0.5;
CAM.scaleY = 0.5;
Zoom_LVL = 2;
};
};
};
}
function frame407(){
nextFrame();
}
public function ACT_CLIMAX(_arg1:MouseEvent){
if (PLEASURE == 100){
if (EVENT_CODE == 1){
if ((((ACT_CODE == 5)) || ((ACT_CODE == 6)))){
Z_IN.visible = false;
Z_OUT.visible = false;
C_LOCK.visible = false;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
BGM.stop();
CAM.PAN.CLI_BUT.removeEventListener(MouseEvent.CLICK, ACT_CLIMAX);
CAM.PAN.PEN.removeEventListener(MouseEvent.CLICK, ACT_PENETRATE);
CAM.PAN.HAN.removeEventListener(MouseEvent.CLICK, ACT_HAND);
CAM.PAN.SPD.removeEventListener(MouseEvent.CLICK, ACT_SPEED);
CAM.PAN.SPE.removeEventListener(MouseEvent.CLICK, ACT_SPECIAL);
CAM.PAN.STP.removeEventListener(MouseEvent.CLICK, ACT_STOP);
CAM.PAN.SWH.removeEventListener(MouseEvent.CLICK, ACT_SWITCH);
CAM.Q_BUTTON.removeEventListener(MouseEvent.CLICK, CHANGE_QUALITY);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, CAMERA_ZOOM);
stage.removeEventListener(Event.ENTER_FRAME, CAMERA_PAN);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, CAMERA_LOCK);
stage.removeEventListener(Event.ENTER_FRAME, MASK_BAR);
CAM.OP.SFX_UP.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_UP);
CAM.OP.SFX_DOWN.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_DOWN);
CAM.OP.BGM_UP.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_UP);
CAM.OP.BGM_DOWN.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_DOWN);
stage.removeEventListener(Event.ENTER_FRAME, Vol);
stage.removeEventListener(Event.ENTER_FRAME, BGM_CON);
CAM.M_BUTTON.removeEventListener(MouseEvent.MOUSE_DOWN, BGM_BUT);
CAM.P_CONT.removeEventListener(Event.CHANGE, FAILURE);
gotoAndStop("SEX_CLIMAX");
};
if ((((ACT_CODE == 3)) || ((ACT_CODE == 4)))){
Z_IN.visible = false;
Z_OUT.visible = false;
C_LOCK.visible = false;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
BGM.stop();
CAM.PAN.CLI_BUT.removeEventListener(MouseEvent.CLICK, ACT_CLIMAX);
CAM.PAN.PEN.removeEventListener(MouseEvent.CLICK, ACT_PENETRATE);
CAM.PAN.HAN.removeEventListener(MouseEvent.CLICK, ACT_HAND);
CAM.PAN.SPD.removeEventListener(MouseEvent.CLICK, ACT_SPEED);
CAM.PAN.SPE.removeEventListener(MouseEvent.CLICK, ACT_SPECIAL);
CAM.PAN.STP.removeEventListener(MouseEvent.CLICK, ACT_STOP);
CAM.PAN.SWH.removeEventListener(MouseEvent.CLICK, ACT_SWITCH);
CAM.Q_BUTTON.removeEventListener(MouseEvent.CLICK, CHANGE_QUALITY);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, CAMERA_ZOOM);
stage.removeEventListener(Event.ENTER_FRAME, CAMERA_PAN);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, CAMERA_LOCK);
stage.removeEventListener(Event.ENTER_FRAME, MASK_BAR);
CAM.OP.SFX_UP.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_UP);
CAM.OP.SFX_DOWN.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_DOWN);
CAM.OP.BGM_UP.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_UP);
CAM.OP.BGM_DOWN.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_DOWN);
stage.removeEventListener(Event.ENTER_FRAME, Vol);
stage.removeEventListener(Event.ENTER_FRAME, BGM_CON);
CAM.M_BUTTON.removeEventListener(MouseEvent.MOUSE_DOWN, BGM_BUT);
CAM.P_CONT.removeEventListener(Event.CHANGE, FAILURE);
gotoAndStop("FING_CLIMAX");
};
} else {
if (EVENT_CODE == 2){
if ((((ACT_CODE == 5)) || ((ACT_CODE == 6)))){
Z_IN.visible = false;
Z_OUT.visible = false;
C_LOCK.visible = false;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
BGM.stop();
CAM.PAN.CLI_BUT.removeEventListener(MouseEvent.CLICK, ACT_CLIMAX);
CAM.PAN.PEN.removeEventListener(MouseEvent.CLICK, ACT_PENETRATE);
CAM.PAN.HAN.removeEventListener(MouseEvent.CLICK, ACT_HAND);
CAM.PAN.SPD.removeEventListener(MouseEvent.CLICK, ACT_SPEED);
CAM.PAN.SPE.removeEventListener(MouseEvent.CLICK, ACT_SPECIAL);
CAM.PAN.STP.removeEventListener(MouseEvent.CLICK, ACT_STOP);
CAM.PAN.SWH.removeEventListener(MouseEvent.CLICK, ACT_SWITCH);
CAM.Q_BUTTON.removeEventListener(MouseEvent.CLICK, CHANGE_QUALITY);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, CAMERA_ZOOM);
stage.removeEventListener(Event.ENTER_FRAME, CAMERA_PAN);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, CAMERA_LOCK);
stage.removeEventListener(Event.ENTER_FRAME, MASK_BAR);
CAM.OP.SFX_UP.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_UP);
CAM.OP.SFX_DOWN.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_DOWN);
CAM.OP.BGM_UP.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_UP);
CAM.OP.BGM_DOWN.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_DOWN);
stage.removeEventListener(Event.ENTER_FRAME, Vol);
stage.removeEventListener(Event.ENTER_FRAME, BGM_CON);
CAM.M_BUTTON.removeEventListener(MouseEvent.MOUSE_DOWN, BGM_BUT);
CAM.P_CONT.removeEventListener(Event.CHANGE, FAILURE);
gotoAndStop("ORAL_CLIMAX");
} else {
if ((((ACT_CODE == 3)) || ((ACT_CODE == 4)))){
Z_IN.visible = false;
Z_OUT.visible = false;
C_LOCK.visible = false;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
BGM.stop();
CAM.PAN.CLI_BUT.removeEventListener(MouseEvent.CLICK, ACT_CLIMAX);
CAM.PAN.PEN.removeEventListener(MouseEvent.CLICK, ACT_PENETRATE);
CAM.PAN.HAN.removeEventListener(MouseEvent.CLICK, ACT_HAND);
CAM.PAN.SPD.removeEventListener(MouseEvent.CLICK, ACT_SPEED);
CAM.PAN.SPE.removeEventListener(MouseEvent.CLICK, ACT_SPECIAL);
CAM.PAN.STP.removeEventListener(MouseEvent.CLICK, ACT_STOP);
CAM.PAN.SWH.removeEventListener(MouseEvent.CLICK, ACT_SWITCH);
CAM.Q_BUTTON.removeEventListener(MouseEvent.CLICK, CHANGE_QUALITY);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, CAMERA_ZOOM);
stage.removeEventListener(Event.ENTER_FRAME, CAMERA_PAN);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, CAMERA_LOCK);
stage.removeEventListener(Event.ENTER_FRAME, MASK_BAR);
CAM.OP.SFX_UP.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_UP);
CAM.OP.SFX_DOWN.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_DOWN);
CAM.OP.BGM_UP.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_UP);
CAM.OP.BGM_DOWN.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_DOWN);
stage.removeEventListener(Event.ENTER_FRAME, Vol);
stage.removeEventListener(Event.ENTER_FRAME, BGM_CON);
CAM.M_BUTTON.removeEventListener(MouseEvent.MOUSE_DOWN, BGM_BUT);
CAM.P_CONT.removeEventListener(Event.CHANGE, FAILURE);
gotoAndStop("HAND_CLIMAX");
};
};
};
};
};
}
public function Vol(_arg1:Event){
CAM.OP.SFX_NUM.text = (SFX_VOL + "%".toString());
CAM.OP.BGM_NUM.text = (BGM_VOL + "%".toString());
}
function frame401(){
CAM2_xml = <Motion duration="45" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="30" x="-0.4" y="37.3" scaleX="0.528" scaleY="0.528" rotation="0" elementType="movie clip" symbolName="CAM_MOV-WINDOW">
<dimensions>
<geom:Rectangle left="-183" top="-183" width="366" height="366"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<color>
<Color alphaMultiplier="0.23"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="10" tweenSnap="true" tweenSync="true" y="27">
<color>
<Color alphaMultiplier="0.23"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="16" tweenSnap="true" tweenSync="true" y="-68.4" scaleX="1.6893939393939394" scaleY="1.6893939393939394">
<color>
<Color alphaMultiplier="0.23"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="44" y="-158.35" scaleX="2.4545454545454546" scaleY="2.4545454545454546">
<color>
<Color alphaMultiplier="0.23"/>
</color>
</Keyframe>
</Motion>
;
CAM2_animator = new Animator(CAM2_xml, CAM2);
CAM2_animator.play();
}
public function ACT_PENETRATE(_arg1:MouseEvent){
if (EVENT_CODE == 1){
if (((!((ACT_CODE == 5))) && (!((ACT_CODE == 6))))){
gotoAndStop("SEX_SLOW");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 5;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
};
} else {
if (EVENT_CODE == 2){
if (((!((ACT_CODE == 5))) && (!((ACT_CODE == 6))))){
gotoAndStop("ORAL_SLOW");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 5;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
};
};
};
}
public function ZOOM_OUT(_arg1:ContextMenuEvent){
if (Zoom_LVL == 2){
CAM.scaleX = 1;
CAM.scaleY = 1;
CAM.x = 275;
CAM.y = 275;
CAM_LOCK = false;
Zoom_LVL = 1;
} else {
if (Zoom_LVL == 3){
CAM.scaleX = 0.5;
CAM.scaleY = 0.5;
Zoom_LVL = 2;
};
};
}
function frame403(){
CAM3_xml = <Motion duration="89" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="30" x="206.05" y="-142.95" scaleX="1.117" scaleY="1.117" rotation="0" elementType="movie clip" symbolName="CAM_MOV-WINDOW">
<dimensions>
<geom:Rectangle left="-183" top="-183" width="366" height="366"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<color>
<Color alphaMultiplier="0.23"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="29" tweenSnap="true" tweenSync="true" x="-111.50000000000001" y="79.14999999999999" scaleX="0.7179946284691138" scaleY="0.7179946284691138">
<color>
<Color alphaMultiplier="0.23"/>
</color>
<tweens>
<SimpleEase ease="1"/>
</tweens>
</Keyframe>
<Keyframe index="37" tweenSnap="true" tweenSync="true" x="-41.25" y="-3.5500000000000114">
<color>
<Color alphaMultiplier="0.23"/>
</color>
<tweens>
<SimpleEase ease="1"/>
</tweens>
</Keyframe>
<Keyframe index="88" x="-32.25" y="55.79999999999998" scaleX="1.2014324082363474" scaleY="1.2014324082363474">
<color>
<Color alphaMultiplier="0.23"/>
</color>
</Keyframe>
</Motion>
;
CAM3_animator = new Animator(CAM3_xml, CAM3);
CAM3_animator.play();
}
public function GO(_arg1:MouseEvent){
SFX4 = B2.play();
SFX4.soundTransform = new SoundTransform((SFX_VOL / 100), 0);
play();
stage.removeEventListener(MouseEvent.CLICK, GO);
}
function frame404(){
CAM1_xml = <Motion duration="87" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="30" x="0" y="0" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="CAM_MOV-WINDOW">
<dimensions>
<geom:Rectangle left="-183" top="-183" width="366" height="366"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="1"/>
</tweens>
</Keyframe>
<Keyframe index="38" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="1"/>
</tweens>
</Keyframe>
<Keyframe index="43" tweenSnap="true" tweenSync="true" x="-29.95" y="-28" scaleX="0.672" scaleY="0.672">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="72" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="1"/>
</tweens>
</Keyframe>
<Keyframe index="86" tweenSync="true" x="66.85" y="-68.65" scaleX="1.328" scaleY="1.328"/>
</Motion>
;
CAM1_animator = new Animator(CAM1_xml, CAM1);
CAM1_animator.play();
}
public function SFX_WAIT(_arg1:Event){
if (Wait == true){
Wait_cont++;
};
if (Wait_cont == 100){
Wait = false;
Wait_cont = 0;
};
}
public function ZOOM_IN(_arg1:ContextMenuEvent){
if (Zoom_LVL == 2){
CAM.scaleX = 0.25;
CAM.scaleY = 0.25;
Zoom_LVL = 3;
} else {
if (Zoom_LVL == 1){
CAM.scaleX = 0.5;
CAM.scaleY = 0.5;
Zoom_LVL = 2;
};
};
}
public function BGM_CON(_arg1:Event){
if (BGM_PLAY == true){
CAM.M_BUTTON.gotoAndStop(2);
} else {
CAM.M_BUTTON.gotoAndStop(1);
};
BGM.soundTransform = new SoundTransform((BGM_VOL / 100), 0);
}
public function CHANGE_QUALITY(_arg1:MouseEvent){
if (stage.quality == "MEDIUM"){
stage.quality = "HIGH";
} else {
if (stage.quality == "LOW"){
stage.quality = "MEDIUM";
} else {
if (stage.quality == "HIGH"){
stage.quality = "LOW";
};
};
};
}
public function FAILURE(){
Z_IN.visible = false;
Z_OUT.visible = false;
C_LOCK.visible = false;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
BGM.stop();
CAM.PAN.CLI_BUT.removeEventListener(MouseEvent.CLICK, ACT_CLIMAX);
CAM.PAN.PEN.removeEventListener(MouseEvent.CLICK, ACT_PENETRATE);
CAM.PAN.HAN.removeEventListener(MouseEvent.CLICK, ACT_HAND);
CAM.PAN.SPD.removeEventListener(MouseEvent.CLICK, ACT_SPEED);
CAM.PAN.SPE.removeEventListener(MouseEvent.CLICK, ACT_SPECIAL);
CAM.PAN.STP.removeEventListener(MouseEvent.CLICK, ACT_STOP);
CAM.PAN.SWH.removeEventListener(MouseEvent.CLICK, ACT_SWITCH);
CAM.Q_BUTTON.removeEventListener(MouseEvent.CLICK, CHANGE_QUALITY);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, CAMERA_ZOOM);
stage.removeEventListener(Event.ENTER_FRAME, CAMERA_PAN);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, CAMERA_LOCK);
stage.removeEventListener(Event.ENTER_FRAME, MASK_BAR);
CAM.OP.SFX_UP.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_UP);
CAM.OP.SFX_DOWN.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_DOWN);
CAM.OP.BGM_UP.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_UP);
CAM.OP.BGM_DOWN.removeEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_DOWN);
stage.removeEventListener(Event.ENTER_FRAME, Vol);
stage.removeEventListener(Event.ENTER_FRAME, BGM_CON);
CAM.M_BUTTON.removeEventListener(MouseEvent.MOUSE_DOWN, BGM_BUT);
CAM.P_CONT.removeEventListener(Event.CHANGE, FAILURE);
gotoAndStop("FAIL_GAME");
}
function frame223(){
stop();
PLAY_BUT.addEventListener(MouseEvent.CLICK, GO);
}
public function SEE_LOAD(_arg1:Event){
LOADER.alpha = (LOADER.alpha + 0.05);
if (LOADER.alpha >= 1){
stage.removeEventListener(Event.ENTER_FRAME, SEE_LOAD);
};
}
public function LOAD_USER(_arg1:ContextMenuEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://josilver.newgrounds.com");
navigateToURL(_local2, "_blank");
}
public function ACT_SWITCH(_arg1:MouseEvent){
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
if (EVENT_CODE == 1){
gotoAndStop("IDLE2");
EVENT_CODE = 2;
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 1;
} else {
if (EVENT_CODE == 2){
gotoAndStop("IDLE1");
EVENT_CODE = 1;
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 1;
};
};
}
public function LOCK_CAM_M(_arg1:ContextMenuEvent){
if (CAM_LOCK == false){
CAM_LOCK = true;
} else {
CAM_LOCK = false;
};
}
public function ACT_STOP(_arg1:MouseEvent){
if (EVENT_CODE == 1){
if (ACT_CODE != 1){
gotoAndStop("IDLE1");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 1;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
};
} else {
if (EVENT_CODE == 2){
if (ACT_CODE != 1){
gotoAndStop("IDLE2");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 1;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
};
};
};
}
public function LOAD_NG(_arg1:ContextMenuEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.newgrounds.com");
navigateToURL(_local2, "_blank");
}
public function VOL_SFX_UP(_arg1:MouseEvent){
if (SFX_VOL != 100){
SFX_VOL = (SFX_VOL + 10);
};
}
public function ACT_SPECIAL(_arg1:MouseEvent){
if (EVENT_CODE == 1){
if (ACT_CODE != 2){
gotoAndStop("PROD");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 2;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
};
} else {
if (EVENT_CODE == 2){
if (ACT_CODE != 2){
gotoAndStop("LICK");
CAM.CAM_FL.gotoAndPlay(2);
ACT_CODE = 2;
SFX1.stop();
SFX2.stop();
SFX3.stop();
SFX4.stop();
};
};
};
}
function frame386(){
REPLAY.addEventListener(MouseEvent.CLICK, RESET_BUTTON);
REPLAY.visible = false;
DONE.gotoAndStop(1);
nextFrame();
SFX1.stop();
Z_IN.visible = true;
Z_OUT.visible = true;
C_LOCK.visible = true;
}
public function VOL_BGM_DOWN(_arg1:MouseEvent){
if (BGM_VOL != 0){
BGM_VOL = (BGM_VOL - 10);
};
}
function frame387(){
EVENT_CODE = 1;
ACT_CODE = 1;
REPLAY.visible = false;
DONE.gotoAndStop(1);
CAM.PAN.CLI_BUT.addEventListener(MouseEvent.CLICK, ACT_CLIMAX);
CAM.PAN.PEN.addEventListener(MouseEvent.CLICK, ACT_PENETRATE);
CAM.PAN.HAN.addEventListener(MouseEvent.CLICK, ACT_HAND);
CAM.PAN.SPD.addEventListener(MouseEvent.CLICK, ACT_SPEED);
CAM.PAN.SPE.addEventListener(MouseEvent.CLICK, ACT_SPECIAL);
CAM.PAN.STP.addEventListener(MouseEvent.CLICK, ACT_STOP);
CAM.PAN.SWH.addEventListener(MouseEvent.CLICK, ACT_SWITCH);
CAM.Q_BUTTON.addEventListener(MouseEvent.CLICK, CHANGE_QUALITY);
stage.addEventListener(KeyboardEvent.KEY_DOWN, CAMERA_ZOOM);
stage.addEventListener(Event.ENTER_FRAME, CAMERA_PAN);
stage.addEventListener(KeyboardEvent.KEY_DOWN, CAMERA_LOCK);
stage.addEventListener(Event.ENTER_FRAME, MASK_BAR);
CAM.OP.SFX_UP.addEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_UP);
CAM.OP.SFX_DOWN.addEventListener(MouseEvent.MOUSE_DOWN, VOL_SFX_DOWN);
CAM.OP.BGM_UP.addEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_UP);
CAM.OP.BGM_DOWN.addEventListener(MouseEvent.MOUSE_DOWN, VOL_BGM_DOWN);
stage.addEventListener(Event.ENTER_FRAME, Vol);
stage.addEventListener(Event.ENTER_FRAME, BGM_CON);
CAM.M_BUTTON.addEventListener(MouseEvent.MOUSE_DOWN, BGM_BUT);
stage.addEventListener(Event.ENTER_FRAME, SFX_WAIT);
CAM.P_CONT.addEventListener(Event.CHANGE, FAILURE);
PLEASURE = 0;
CAM.CAM_FL.gotoAndPlay(2);
nextFrame();
}
}
}//package
Section 82
//Mo1 (Mo1)
package {
import flash.media.*;
public dynamic class Mo1 extends Sound {
}
}//package
Section 83
//Mo10 (Mo10)
package {
import flash.media.*;
public dynamic class Mo10 extends Sound {
}
}//package
Section 84
//Mo11 (Mo11)
package {
import flash.media.*;
public dynamic class Mo11 extends Sound {
}
}//package
Section 85
//Mo12 (Mo12)
package {
import flash.media.*;
public dynamic class Mo12 extends Sound {
}
}//package
Section 86
//Mo13 (Mo13)
package {
import flash.media.*;
public dynamic class Mo13 extends Sound {
}
}//package
Section 87
//Mo14 (Mo14)
package {
import flash.media.*;
public dynamic class Mo14 extends Sound {
}
}//package
Section 88
//Mo15 (Mo15)
package {
import flash.media.*;
public dynamic class Mo15 extends Sound {
}
}//package
Section 89
//Mo16 (Mo16)
package {
import flash.media.*;
public dynamic class Mo16 extends Sound {
}
}//package
Section 90
//Mo17 (Mo17)
package {
import flash.media.*;
public dynamic class Mo17 extends Sound {
}
}//package
Section 91
//Mo18 (Mo18)
package {
import flash.media.*;
public dynamic class Mo18 extends Sound {
}
}//package
Section 92
//Mo19 (Mo19)
package {
import flash.media.*;
public dynamic class Mo19 extends Sound {
}
}//package
Section 93
//Mo2 (Mo2)
package {
import flash.media.*;
public dynamic class Mo2 extends Sound {
}
}//package
Section 94
//Mo3 (Mo3)
package {
import flash.media.*;
public dynamic class Mo3 extends Sound {
}
}//package
Section 95
//Mo4 (Mo4)
package {
import flash.media.*;
public dynamic class Mo4 extends Sound {
}
}//package
Section 96
//Mo5 (Mo5)
package {
import flash.media.*;
public dynamic class Mo5 extends Sound {
}
}//package
Section 97
//Mo6 (Mo6)
package {
import flash.media.*;
public dynamic class Mo6 extends Sound {
}
}//package
Section 98
//Mo7 (Mo7)
package {
import flash.media.*;
public dynamic class Mo7 extends Sound {
}
}//package
Section 99
//Mo8 (Mo8)
package {
import flash.media.*;
public dynamic class Mo8 extends Sound {
}
}//package
Section 100
//NewgroundsAPI (NewgroundsAPI)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class NewgroundsAPI {
public static const ADS_APPROVED:Number = 3;
public static const bridge:Sprite = new Sprite();
private static const STAT_NEW_VERSION:Number = 4;
private static const STAT_AUTHOR_SITE:Number = 2;
private static const GATEWAY_URL:String = "http://www.ngads.com/gateway.php";
private static const NEWGROUNDS_URL:String = "http://www.newgrounds.com";
private static const STAT_CUSTOM_STATS:Number = 50;
private static const STAT_MOVIE_VIEWS:Number = 1;
private static const STAT_NEWGROUNDS:Number = 3;
public static const NEW_VERSION:Number = 2;
public static const DENY_HOST:Number = 1;
private static var tracker_id:Number;
private static var movie_options:Object = new Object();
private static var connected:Boolean;
private static var custom_events:Object = new Object();
private static var host:String;
private static var linked:Boolean;
private static var events:Object = new Object();
private static var debug:Boolean;
private static var version:String;
private static var custom_links:Object = new Object();
public static function getNewVersionURL(){
return (((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + STAT_NEW_VERSION));
}
private static function ReadGatewayData(_arg1:Object){
var _local2:*;
var _local3:String;
var _local4:*;
var _local5:URLLoader;
for (_local2 in _arg1) {
_arg1[_local2] = unescape(_arg1[_local2]);
movie_options[_local2] = _arg1[_local2];
};
if (_arg1["settings_loaded"]){
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage((("Movie Identified as '" + movie_options["movie_name"]) + "'"));
if (movie_options["message"]){
SendMessage(movie_options["message"]);
};
if (movie_options["ad_url"]){
SendMessage("Your movie has been approved to run Flash Ads");
if (events[ADS_APPROVED]){
var _local6 = events;
_local6[ADS_APPROVED](movie_options["ad_url"]);
} else {
onAdsApproved(movie_options["ad_url"]);
};
};
if (((movie_options["movie_version"]) && (!((String(movie_options["movie_version"]) == String(version)))))){
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
if (events[NEW_VERSION]){
_local6 = events;
_local6[NEW_VERSION]({version:movie_options["movie_version"], real_url:getMovieURL(), redirect_url:getNewVersionURL()});
} else {
onNewVersionAvailable(movie_options["movie_version"], getMovieURL(), getNewVersionURL());
};
};
if (movie_options["deny_host"]){
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
if (events[DENY_HOST]){
_local6 = events;
_local6[DENY_HOST]({host:host, real_url:getMovieURL(), redirect_url:getNewVersionURL()});
} else {
onDenyHost(host, getMovieURL(), getNewVersionURL());
};
};
if (movie_options["request_portal_url"]){
_local3 = bridge.root.loaderInfo.url;
_local4 = ((((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_local3));
_local5 = new URLLoader(new URLRequest(_local4));
};
if (events[69]){
_local6 = events;
_local6[69]();
};
} else {
if (!movie_options["settings_loaded"]){
SendError("Could not establish connection to the API gateway.");
};
};
}
public static function setMovieVersion(_arg1){
if (!_arg1){
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = String(_arg1);
};
}
public static function loadCustomLink(_arg1:String){
if (!_arg1){
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else {
if (!custom_links[_arg1]){
SendError(("Attempted to open undefined custom link: " + _arg1));
} else {
SendLink(custom_links[_arg1]);
};
};
}
public static function addCustomLink(_arg1:Number, _arg2:String){
if (!_arg1){
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
if (!_arg2){
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[_arg2] = (STAT_CUSTOM_STATS + _arg1);
SendMessage(((("Created custom link " + _arg1) + ": ") + _arg2));
};
};
}
public static function getMovieURL(){
if (movie_options["movie_url"]){
return (movie_options["movie_url"]);
};
return ("Newgrounds.com");
}
public static function debugMode(){
debug = true;
}
public static function getAdURL(){
return (movie_options["ad_url"]);
}
private static function SendStat(_arg1:Number, _arg2:Boolean, _arg3=null){
var target_url:*;
var XML_Loaded:Function;
var x:*;
var request:URLRequest;
var gateway_loader:URLLoader;
var stat_id = _arg1;
var open_in_browser = _arg2;
var extra = _arg3;
if (!tracker_id){
SendError("You must call NewgroundsAPI.connectMovie() with a valid movie id before using API features!");
} else {
XML_Loaded = function (_arg1:Event){
var _local2:XML;
var _local3:Object;
var _local4:XMLList;
var _local5:XML;
var _local6:*;
var _local7:*;
XML.ignoreWhitespace = true;
_local2 = XML(_arg1.target.data);
_local3 = new Object();
_local4 = _local2.children();
for each (_local5 in _local4) {
_local6 = _local5.localName();
_local7 = _local5.attribute("value");
if (_local7 == Number(_local7)){
_local7 = Number(_local7);
};
_local3[_local6] = _local7;
};
ReadGatewayData(_local3);
};
target_url = (((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id) + addSeed());
if (extra){
for (x in extra) {
target_url = (target_url + ((("&" + escape(x)) + "=") + escape(extra[x])));
};
};
if (debug){
target_url = (target_url + "&debug=1");
};
if (open_in_browser){
request = new URLRequest((target_url + addSeed()));
navigateToURL(request, "_blank");
} else {
gateway_loader = new URLLoader(new URLRequest((target_url + addSeed())));
gateway_loader.addEventListener(Event.COMPLETE, XML_Loaded);
};
};
}
public static function onAdsApproved(_arg1:String){
}
public static function loadMySite(_arg1:Event=null){
SendLink(STAT_AUTHOR_SITE);
}
private static function SendMessage(_arg1:String){
trace(("[NEWGROUNDS API] :: " + _arg1));
}
public static function linkAPI(_arg1){
_arg1.addChild(bridge);
linked = true;
}
public static function loadNewgrounds(_arg1:Event=null, _arg2:String=null){
var _local3:URLRequest;
var _local4:*;
if (!tracker_id){
_local3 = new URLRequest(((NEWGROUNDS_URL + "/") + _arg2));
navigateToURL(_local3, "_blank");
} else {
_local4 = null;
if (_arg2){
_local4 = new Object();
_local4.page = _arg2;
};
SendLink(STAT_NEWGROUNDS, _local4);
};
}
private static function SendLink(_arg1, _arg2=null){
SendStat(_arg1, true, _arg2);
}
public static function logCustomEvent(_arg1:String){
if (!_arg1){
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else {
if (!custom_events[_arg1]){
SendError(("Attempted to log undefined custom event: " + _arg1));
} else {
SendEvent(custom_events[_arg1]);
};
};
}
private static function SendError(_arg1:String){
trace(("[NEWGROUNDS API ERROR] :: " + _arg1));
}
public static function addCustomEvent(_arg1:Number, _arg2:String){
if (!_arg1){
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
if (!_arg2){
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[_arg2] = (STAT_CUSTOM_STATS + _arg1);
SendMessage(("Created custom event: " + _arg2));
};
};
}
private static function addSeed(){
return (("&seed=" + Math.random()));
}
public static function addEventListener(_arg1:Number, _arg2:Function){
events[_arg1] = _arg2;
}
private static function SendEvent(_arg1){
SendStat(_arg1, false);
}
public static function onNewVersionAvailable(_arg1:String, _arg2:String, _arg3:String){
var sw:*;
var sh:*;
var tw:*;
var th:*;
var mg:*;
var _root:*;
var overlay:MovieClip;
var overlay_x:*;
var overlay_y:*;
var close_x:*;
var blankarea:TextField;
var header:TextField;
var header_format:TextFormat;
var msgtext:TextField;
var msgtext_format:TextFormat;
var msgtext_link:TextFormat;
var version = _arg1;
var movie_url = _arg2;
var redirect_url = _arg3;
sw = bridge.stage.stageWidth;
sh = bridge.stage.stageHeight;
tw = 350;
th = 160;
mg = 20;
_root = bridge.root;
overlay = new MovieClip();
overlay.graphics.beginFill(0, 0.6);
overlay.graphics.lineStyle(0, 0);
overlay.graphics.drawRect(0, 0, sw, sh);
overlay.graphics.endFill();
overlay_x = Math.round(((sw - tw) / 2));
overlay_y = Math.round(((sh - th) / 2));
overlay.graphics.beginFill(102);
overlay.graphics.lineStyle(10, 0);
overlay.graphics.drawRect((overlay_x - mg), (overlay_y - mg), (tw + mg), (th + mg));
overlay.graphics.endFill();
overlay.close = function (_arg1:Event){
_root.removeChild(overlay);
};
close_x = new MovieClip();
close_x.graphics.beginFill(0, 0.1);
close_x.graphics.lineStyle(3, 22015);
close_x.graphics.drawRect(0, 0, 16, 16);
close_x.graphics.endFill();
close_x.graphics.moveTo(4, 4);
close_x.graphics.lineTo(13, 13);
close_x.graphics.moveTo(13, 4);
close_x.graphics.lineTo(4, 13);
close_x.x = ((overlay_x + tw) - 26);
close_x.y = (overlay_y - 10);
close_x.addEventListener(MouseEvent.CLICK, overlay.close);
blankarea = new TextField();
blankarea.x = (overlay_x - mg);
blankarea.y = (overlay_y - mg);
blankarea.width = (tw + mg);
blankarea.height = (th + mg);
blankarea.selectable = false;
header = new TextField();
header.width = tw;
header.x = overlay_x;
header.y = overlay_y;
header.height = 100;
header.selectable = false;
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.color = 0xFFFFFF;
header_format.size = 20;
header.defaultTextFormat = header_format;
header.text = "New Version Available!";
msgtext = new TextField();
msgtext.x = overlay_x;
msgtext.y = (overlay_y + 70);
msgtext.width = tw;
msgtext.height = 60;
msgtext.selectable = false;
msgtext_format = new TextFormat();
msgtext_format.font = "Arial";
msgtext_format.color = 0xFFFFFF;
msgtext_format.size = 12;
msgtext_format.bold = true;
msgtext_link = new TextFormat();
msgtext_link.font = "Arial";
msgtext_link.color = 0xFFFF00;
msgtext_link.size = 12;
msgtext_link.bold = true;
msgtext_link.url = redirect_url;
msgtext_link.target = "_blank";
if (version){
version = ("Version " + version);
} else {
version = "A new version";
};
msgtext.defaultTextFormat = msgtext_format;
msgtext.appendText((version + " is now available"));
if (movie_url){
msgtext.appendText(" at:\n");
msgtext.defaultTextFormat = msgtext_link;
msgtext.appendText(movie_url);
} else {
msgtext.appendText("!");
};
_root.addChild(overlay);
overlay.addChild(blankarea);
overlay.addChild(header);
overlay.addChild(msgtext);
overlay.addChild(close_x);
}
public static function onDenyHost(_arg1:String, _arg2:String, _arg3:String){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:MovieClip;
var _local10:TextField;
var _local11:TextField;
var _local12:TextFormat;
var _local13:TextField;
var _local14:TextFormat;
var _local15:TextFormat;
_local4 = bridge.stage.stageWidth;
_local5 = bridge.stage.stageHeight;
_local6 = 350;
_local7 = 160;
_local8 = bridge.root;
_local9 = new MovieClip();
_local9.graphics.beginFill(0x660000);
_local9.graphics.lineStyle(20, 0);
_local9.graphics.drawRect(0, 0, _local4, _local5);
_local9.graphics.endFill();
_local10 = new TextField();
_local10.x = 0;
_local10.y = 0;
_local10.width = _local4;
_local10.height = _local5;
_local10.selectable = false;
_local11 = new TextField();
_local11.x = Math.round(((_local4 - _local6) / 2));
_local11.y = Math.round(((_local5 - _local7) / 2.5));
_local11.width = _local6;
_local11.height = 100;
_local11.selectable = false;
_local12 = new TextFormat();
_local12.font = "Arial Black";
_local12.color = 0xFF0000;
_local12.size = 38;
_local11.defaultTextFormat = _local12;
_local11.text = "ERROR!";
_local13 = new TextField();
_local13.x = Math.round(((_local4 - _local6) / 2));
_local13.y = (Math.round(((_local5 - _local7) / 2.5)) + 80);
_local13.width = _local6;
_local13.height = 80;
_local13.selectable = false;
_local14 = new TextFormat();
_local14.font = "Arial";
_local14.color = 0xFFFFFF;
_local14.size = 12;
_local14.bold = true;
_local15 = new TextFormat();
_local15.font = "Arial";
_local15.color = 0xFFFF00;
_local15.size = 12;
_local15.bold = true;
_local15.url = _arg3;
_local15.target = "_blank";
_local13.defaultTextFormat = _local14;
_local13.appendText((("This movie has not been approved for use on " + _arg1) + "\n"));
_local13.appendText("For an approved copy, please visit:\n");
_local13.defaultTextFormat = _local15;
_local13.appendText(_arg2);
_local8.addChild(_local9);
_local9.addChild(_local10);
_local9.addChild(_local11);
_local9.addChild(_local13);
}
public static function connectMovie(_arg1:Number){
var _local2:String;
var _local3:*;
if (!_arg1){
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else {
if (!linked){
SendError("Attempted to call MewgroundsAPI.connectMovie() without first calling NewgroundsAPI.linkAPI(this)");
} else {
if (!tracker_id){
SendMessage("Connecting to API gateway...");
tracker_id = _arg1;
_local2 = bridge.root.loaderInfo.url;
host = _local2.split("/")[2].toLowerCase();
if (host.length < 1){
host = "localhost";
};
_local3 = new Object();
SendEvent(STAT_MOVIE_VIEWS);
};
};
};
}
public static function isInstalled(){
return (true);
}
}
}//package
Section 101
//PUN (PUN)
package {
import flash.media.*;
public dynamic class PUN extends Sound {
}
}//package
Section 102
//Sm11 (Sm11)
package {
import flash.media.*;
public dynamic class Sm11 extends Sound {
}
}//package
Section 103
//Sm12 (Sm12)
package {
import flash.media.*;
public dynamic class Sm12 extends Sound {
}
}//package
Section 104
//Sm14 (Sm14)
package {
import flash.media.*;
public dynamic class Sm14 extends Sound {
}
}//package
Section 105
//Sm18 (Sm18)
package {
import flash.media.*;
public dynamic class Sm18 extends Sound {
}
}//package
Section 106
//Sm19 (Sm19)
package {
import flash.media.*;
public dynamic class Sm19 extends Sound {
}
}//package
Section 107
//Sm2 (Sm2)
package {
import flash.media.*;
public dynamic class Sm2 extends Sound {
}
}//package
Section 108
//Sm20 (Sm20)
package {
import flash.media.*;
public dynamic class Sm20 extends Sound {
}
}//package
Section 109
//Sm22 (Sm22)
package {
import flash.media.*;
public dynamic class Sm22 extends Sound {
}
}//package
Section 110
//Sm23 (Sm23)
package {
import flash.media.*;
public dynamic class Sm23 extends Sound {
}
}//package
Section 111
//Sm24 (Sm24)
package {
import flash.media.*;
public dynamic class Sm24 extends Sound {
}
}//package
Section 112
//Sm8 (Sm8)
package {
import flash.media.*;
public dynamic class Sm8 extends Sound {
}
}//package
Section 113
//Spt1 (Spt1)
package {
import flash.media.*;
public dynamic class Spt1 extends Sound {
}
}//package
Section 114
//Spt2 (Spt2)
package {
import flash.media.*;
public dynamic class Spt2 extends Sound {
}
}//package
Section 115
//Spt3 (Spt3)
package {
import flash.media.*;
public dynamic class Spt3 extends Sound {
}
}//package
Section 116
//SQU (SQU)
package {
import flash.media.*;
public dynamic class SQU extends Sound {
}
}//package
Section 117
//SUCK (SUCK)
package {
import flash.media.*;
public dynamic class SUCK extends Sound {
}
}//package
Section 118
//ZOOM (ZOOM)
package {
import flash.media.*;
public dynamic class ZOOM extends Sound {
}
}//package