Section 1
//DressuponepreloaderMovieClip_8 (cinderella_fla.DressuponepreloaderMovieClip_8)
package cinderella_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class DressuponepreloaderMovieClip_8 extends MovieClip {
public var logo_btn:SimpleButton;
public function DressuponepreloaderMovieClip_8(){
addFrameScript(0, frame1, 287, frame288);
}
function frame1(){
logo_btn.addEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
}
function frame288(){
stop();
}
}
}//package cinderella_fla
Section 2
//EL_3242_5134_123 (cinderella_fla.EL_3242_5134_123)
package cinderella_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class EL_3242_5134_123 extends MovieClip {
public var play_btn:SimpleButton;
public var more_btn:SimpleButton;
public function EL_3242_5134_123(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
more_btn.addEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
play_btn.addEventListener(MouseEvent.CLICK, playscene);
}
public function playscene(_arg1:MouseEvent){
more_btn.removeEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
play_btn.removeEventListener(MouseEvent.CLICK, playscene);
MovieClip(root).gotoAndStop(5);
}
}
}//package cinderella_fla
Section 3
//EL_8199_5927_71 (cinderella_fla.EL_8199_5927_71)
package cinderella_fla {
import flash.display.*;
public dynamic class EL_8199_5927_71 extends MovieClip {
public function EL_8199_5927_71(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package cinderella_fla
Section 4
//EL_8982_9988_30 (cinderella_fla.EL_8982_9988_30)
package cinderella_fla {
import flash.display.*;
public dynamic class EL_8982_9988_30 extends MovieClip {
public function EL_8982_9988_30(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package cinderella_fla
Section 5
//EL_9524_1869_34 (cinderella_fla.EL_9524_1869_34)
package cinderella_fla {
import flash.display.*;
public dynamic class EL_9524_1869_34 extends MovieClip {
public function EL_9524_1869_34(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package cinderella_fla
Section 6
//flower1_158 (cinderella_fla.flower1_158)
package cinderella_fla {
import flash.display.*;
public dynamic class flower1_158 extends MovieClip {
public function flower1_158(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package cinderella_fla
Section 7
//flower1_160 (cinderella_fla.flower1_160)
package cinderella_fla {
import flash.display.*;
public dynamic class flower1_160 extends MovieClip {
public function flower1_160(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package cinderella_fla
Section 8
//flower1_161 (cinderella_fla.flower1_161)
package cinderella_fla {
import flash.display.*;
public dynamic class flower1_161 extends MovieClip {
public function flower1_161(){
addFrameScript(121, frame122);
}
function frame122(){
gotoAndPlay("move");
}
}
}//package cinderella_fla
Section 9
//flower1_162 (cinderella_fla.flower1_162)
package cinderella_fla {
import flash.display.*;
public dynamic class flower1_162 extends MovieClip {
public function flower1_162(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package cinderella_fla
Section 10
//flower1_163 (cinderella_fla.flower1_163)
package cinderella_fla {
import flash.display.*;
public dynamic class flower1_163 extends MovieClip {
public function flower1_163(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package cinderella_fla
Section 11
//flower1_164 (cinderella_fla.flower1_164)
package cinderella_fla {
import flash.display.*;
public dynamic class flower1_164 extends MovieClip {
public function flower1_164(){
addFrameScript(120, frame121);
}
function frame121(){
gotoAndPlay("move");
}
}
}//package cinderella_fla
Section 12
//flower1_165 (cinderella_fla.flower1_165)
package cinderella_fla {
import flash.display.*;
public dynamic class flower1_165 extends MovieClip {
public function flower1_165(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package cinderella_fla
Section 13
//flower1_166 (cinderella_fla.flower1_166)
package cinderella_fla {
import flash.display.*;
public dynamic class flower1_166 extends MovieClip {
public function flower1_166(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package cinderella_fla
Section 14
//MainTimeline (cinderella_fla.MainTimeline)
package cinderella_fla {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import gs.easing.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var porcentaje:Number;
public var replay_btn:SimpleButton;
public var b1:MovieClip;
public var b2:MovieClip;
public var b3:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var peso:Number;
public var my_menu:ContextMenu;
public var show_btn:SimpleButton;
public var b6:MovieClip;
public var star_mc:MovieClip;
public var carga:Number;
public var dh_mc:MovieClip;
public var _bgMusic:BgMusic;
public var volumeSize:uint;
public var loadDelay:int;
public var _myChannel:SoundChannel;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p4:MovieClip;
public var p5:MovieClip;
public var p6:MovieClip;
public var logo_btn:SimpleButton;
public var print_btn:SimpleButton;
public var my_notice;
public var p1n:MovieClip;
public var apiLoader:URLLoader;
public var delayporcen:Number;
public var Loader_txt:TextField;
public var framerate:Number;
public var i:uint;
public var reset_btn:SimpleButton;
public var loadbar:MovieClip;
public var o:Object;
public var delaycount:int;
public var musicSet:SoundTransform;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 4, frame5, 5, frame6);
}
public function gameReset(_arg1:MouseEvent):void{
var _local2:uint = 1;
while (_local2 <= 6) {
this[("p" + _local2)].gotoAndStop(this[("p" + _local2)].totalFrames);
_local2++;
};
p1.gotoAndStop(1);
p1n.gotoAndStop(1);
}
public function doLaterA(_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, doLaterA);
initA();
}
public function progreso(_arg1:Event):void{
var e = _arg1;
try {
MovieClip(root).peso = MovieClip(root).loaderInfo.bytesTotal;
MovieClip(root).carga = MovieClip(root).loaderInfo.bytesLoaded;
MovieClip(root).porcentaje = (carga / peso);
MovieClip(root).delayporcen = (delaycount / loadDelay);
if (delayporcen < porcentaje){
porcentaje = delayporcen;
};
MovieClip(root).Loader_txt.text = (Math.floor((porcentaje * 100)) + "%");
MovieClip(this).loadbar.bar.scaleX = porcentaje;
if (porcentaje >= 1){
stage.frameRate = framerate;
stage.removeEventListener(Event.ENTER_FRAME, progreso);
play();
};
delaycount++;
} catch(err:Error) {
};
}
public function gameShow(_arg1:MouseEvent):void{
var _local3:MovieClip;
var _local2:uint = 1;
while (_local2 <= 6) {
_local3 = this[("b" + _local2)];
if (_local3.x < 400){
TweenLite.to(_local3, 0.5, {x:(_local3.initX - 300), ease:Back.easeOut});
} else {
TweenLite.to(_local3, 0.5, {x:(_local3.initX + 300), ease:Back.easeOut});
};
_local2++;
};
star_mc.gotoAndStop(1);
reset_btn.visible = false;
show_btn.visible = false;
replay_btn.visible = true;
}
public function initA():void{
stage.frameRate = 24;
stage.addEventListener(Event.ENTER_FRAME, progreso);
}
public function dressChange(_arg1:MouseEvent):void{
var _local2:uint = uint(_arg1.currentTarget.name.substr(1));
var _local3:MovieClip = this[("p" + _local2)];
if (_local3.currentFrame == _local3.totalFrames){
_local3.gotoAndStop(1);
} else {
_local3.nextFrame();
};
if (_local2 == 1){
p1n.gotoAndStop(p1.currentFrame);
};
}
public function gogames(_arg1:MouseEvent):void{
var _local2:LocalConnection = new LocalConnection();
var _local3:String = _local2.domain;
var _local4:* = "cinderella-pumpkin-carriage";
var _local5:* = ((("http://www.dressupone.com/?utm_source=" + _local3) + "&utm_medium=game&utm_campaign=") + _local4);
navigateToURL(new URLRequest(_local5), "blank");
}
public function printContent(_arg1:MouseEvent){
var _local2:PrintJob = new PrintJob();
if (_local2.start()){
if (MovieClip(parent).image.width > _local2.pageWidth){
MovieClip(parent).image.width = _local2.pageWidth;
MovieClip(parent).image.scaleY = MovieClip(parent).image.scaleX;
};
_local2.addPage(MovieClip(parent).image);
_local2.send();
};
}
public function gamePlay(_arg1:MouseEvent):void{
gotoAndStop(6);
}
public function openLink(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest("http://www.dressupone.com"));
}
public function PrintStage(_arg1:MouseEvent){
var _local4:*;
var _local5:BitmapData;
var _local6:Bitmap;
var _local7:Number;
var _local8:Rectangle;
var _local2:PrintJob = new PrintJob();
var _local3:PrintJobOptions = new PrintJobOptions();
_local3.printAsBitmap = true;
trace("print called!");
if (_local2.start()){
_local4 = new Sprite();
_local5 = new BitmapData(stage.stageWidth, stage.stageHeight);
_local5.draw(stage);
_local6 = new Bitmap(_local5);
_local4.addChild(_local6);
_local4.x = 2000;
stage.addChild(_local4);
trace(((("before printSprite width: " + _local4.width) + " printJob.pageWidth: ") + _local2.pageWidth));
_local7 = Math.min((_local2.pageWidth / _local4.width), (_local2.pageHeight / _local4.height));
_local4.scaleX = (_local4.scaleY = _local7);
_local8 = new Rectangle(0, 0, (_local2.pageWidth / _local7), (_local2.pageHeight / _local7));
trace(((("after printSprite width: " + _local4.width) + " printJob.pageWidth: ") + _local2.pageWidth));
_local2.addPage(_local4, _local8, _local3);
_local2.send();
stage.removeChild(_local4);
_local4 = null;
};
}
function frame2(){
stop();
volumeSize = 1;
_bgMusic = new BgMusic();
musicSet = new SoundTransform((volumeSize * 0.5), 0);
}
function frame5(){
stop();
dh_mc.play_btn.addEventListener(MouseEvent.MOUSE_DOWN, gamePlay);
}
function frame6(){
i = 1;
while (i <= 6) {
this[("p" + i)].gotoAndStop(this[("p" + i)].totalFrames);
this[("b" + i)].gotoAndStop(i);
this[("b" + i)].initX = this[("b" + i)].x;
this[("b" + i)].addEventListener(MouseEvent.MOUSE_DOWN, dressChange);
i++;
};
p1.gotoAndStop(1);
p1n.gotoAndStop(1);
star_mc.gotoAndStop(2);
reset_btn.visible = true;
show_btn.visible = true;
replay_btn.visible = false;
show_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameShow);
reset_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameReset);
replay_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameReplay);
print_btn.addEventListener(MouseEvent.MOUSE_DOWN, PrintStage);
}
public function gameReplay(_arg1:MouseEvent):void{
var _local3:MovieClip;
var _local2:uint = 1;
while (_local2 <= 6) {
this[("p" + _local2)].gotoAndStop(this[("p" + _local2)].totalFrames);
_local3 = this[("b" + _local2)];
if (_local3.x < 300){
TweenLite.to(_local3, 0.5, {x:_local3.initX, ease:Back.easeOut});
} else {
TweenLite.to(_local3, 0.5, {x:_local3.initX, ease:Back.easeOut});
};
_local2++;
};
p1.gotoAndStop(1);
p1n.gotoAndStop(1);
star_mc.gotoAndStop(2);
p1n.gotoAndStop(1);
reset_btn.visible = true;
show_btn.visible = true;
replay_btn.visible = false;
}
function frame1(){
try {
if (Security){
o = Security;
if (o.sandboxType != "localWithFile"){
apiLoader = new URLLoader();
apiLoader.load(new URLRequest("http://www.britetrade.com/api/gameplay.php?key=2a7c7e3b2c621ae53329c0bfade97df0&id=579"));
};
};
} catch(error:Error) {
};
my_menu = new ContextMenu();
my_menu.hideBuiltInItems();
my_notice = new ContextMenuItem("Dress Up Games");
my_notice.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink);
my_menu.customItems.push(my_notice);
contextMenu = my_menu;
stop();
framerate = stage.frameRate;
loadDelay = 48;
delaycount = 0;
this.addEventListener(Event.ENTER_FRAME, doLaterA);
this.logo_btn.addEventListener(MouseEvent.MOUSE_DOWN, gogames);
}
}
}//package cinderella_fla
Section 15
//Timeline_130 (cinderella_fla.Timeline_130)
package cinderella_fla {
import flash.display.*;
public dynamic class Timeline_130 extends MovieClip {
public var play_btn:SimpleButton;
public var 新建符号_1:MovieClip;
public function Timeline_130(){
addFrameScript(36, frame37);
}
function frame37(){
stop();
}
}
}//package cinderella_fla
Section 16
//Timeline_144 (cinderella_fla.Timeline_144)
package cinderella_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Timeline_144 extends MovieClip {
public function Timeline_144(){
addFrameScript(0, frame1);
}
function frame1(){
getChildAt(0).addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gogames);
}
}
}//package cinderella_fla
Section 17
//Timeline_155 (cinderella_fla.Timeline_155)
package cinderella_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Timeline_155 extends MovieClip {
public function Timeline_155(){
addFrameScript(0, frame1);
}
function frame1(){
getChildAt(0).addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gogames);
}
}
}//package cinderella_fla
Section 18
//Back (gs.easing.Back)
package gs.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package gs.easing
Section 19
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _target:Object;
protected var _visible:Boolean;
protected var _tween:TweenLite;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
}
}//package gs.plugins
Section 20
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _a:Array;
protected var _info:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
public function init(_arg1:Array, _arg2:Array):void{
_a = _arg1;
var _local3:int = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
}
}//package gs.plugins
Section 21
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class FramePlugin extends TweenPlugin {
protected var _target:MovieClip;
public var frame:int;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
}
}//package gs.plugins
Section 22
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 23
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.geom.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _target:DisplayObject;
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
public static const VERSION:Number = 1.1;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg1 is DisplayObject)){
return (false);
};
var _local4:ColorTransform = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _target.transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
}
}//package gs.plugins
Section 24
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var propName:String;
public var onComplete:Function;
public var round:Boolean;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 25
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class VisiblePlugin extends TweenPlugin {
protected var _target:Object;
protected var _visible:Boolean;
protected var _tween:TweenLite;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
}
}//package gs.plugins
Section 26
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _target:Object;
protected var _st:SoundTransform;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
}
}//package gs.plugins
Section 27
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var start:Number;
public var index:uint;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 28
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 29
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.display.*;
import gs.utils.tween.*;
import gs.plugins.*;
import flash.utils.*;
public class TweenLite {
public var started:Boolean;
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var tweens:Array;
public var vars:Object;
public var ease:Function;
public var exposedVars:Object;
public var initTime:Number;
public var combinedTimeScale:Number;
public static const version:Number = 10.092;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
if (_arg1 == null){
return;
};
if (!_tlInitted){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
var _local2:Number = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && (this.target.hasOwnProperty("timeScale")))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
var _local2:uint = (currentTime = getTimer());
var _local3:Dictionary = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local3:Object;
var _local2:Dictionary = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 30
//BgMusic (BgMusic)
package {
import flash.media.*;
public dynamic class BgMusic extends Sound {
}
}//package
Section 31
//MusicBtn (MusicBtn)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
public dynamic class MusicBtn extends MovieClip {
public function MusicBtn(){
if (!MovieClip(root)._myChannel){
MovieClip(root)._myChannel = MovieClip(root)._bgMusic.play(0, 9999);
MovieClip(root)._myChannel.soundTransform = MovieClip(root).musicSet;
};
gotoAndStop((2 - MovieClip(root).volumeSize));
addEventListener(MouseEvent.MOUSE_DOWN, musicChange);
}
private function musicChange(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.currentTarget as MovieClip);
MovieClip(root).volumeSize = (1 - MovieClip(root).volumeSize);
gotoAndStop((3 - currentFrame));
MovieClip(root).musicSet = new SoundTransform((MovieClip(root).volumeSize * 0.5), 0);
MovieClip(root)._myChannel.soundTransform = MovieClip(root).musicSet;
}
}
}//package