Section 1
//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 2
//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 3
//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 4
//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 5
//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 6
//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 7
//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 8
//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 9
//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 10
//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 11
//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 12
//Balletdancer__100_173 (lilys_fla.Balletdancer__100_173)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__100_173 extends MovieClip {
public function Balletdancer__100_173(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package lilys_fla
Section 13
//Balletdancer__108_181 (lilys_fla.Balletdancer__108_181)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__108_181 extends MovieClip {
public function Balletdancer__108_181(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package lilys_fla
Section 14
//Balletdancer__114_185 (lilys_fla.Balletdancer__114_185)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__114_185 extends MovieClip {
public function Balletdancer__114_185(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package lilys_fla
Section 15
//Balletdancer__148_207 (lilys_fla.Balletdancer__148_207)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__148_207 extends MovieClip {
public function Balletdancer__148_207(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package lilys_fla
Section 16
//Balletdancer__149_209 (lilys_fla.Balletdancer__149_209)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__149_209 extends MovieClip {
public function Balletdancer__149_209(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package lilys_fla
Section 17
//Balletdancer__150_210 (lilys_fla.Balletdancer__150_210)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__150_210 extends MovieClip {
public function Balletdancer__150_210(){
addFrameScript(121, frame122);
}
function frame122(){
gotoAndPlay("move");
}
}
}//package lilys_fla
Section 18
//Balletdancer__151_211 (lilys_fla.Balletdancer__151_211)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__151_211 extends MovieClip {
public function Balletdancer__151_211(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package lilys_fla
Section 19
//Balletdancer__152_212 (lilys_fla.Balletdancer__152_212)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__152_212 extends MovieClip {
public function Balletdancer__152_212(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package lilys_fla
Section 20
//Balletdancer__153_213 (lilys_fla.Balletdancer__153_213)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__153_213 extends MovieClip {
public function Balletdancer__153_213(){
addFrameScript(120, frame121);
}
function frame121(){
gotoAndPlay("move");
}
}
}//package lilys_fla
Section 21
//Balletdancer__154_214 (lilys_fla.Balletdancer__154_214)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__154_214 extends MovieClip {
public function Balletdancer__154_214(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package lilys_fla
Section 22
//Balletdancer__155_215 (lilys_fla.Balletdancer__155_215)
package lilys_fla {
import flash.display.*;
public dynamic class Balletdancer__155_215 extends MovieClip {
public function Balletdancer__155_215(){
addFrameScript(119, frame120);
}
function frame120(){
gotoAndPlay("move");
}
}
}//package lilys_fla
Section 23
//Balletdancer__9_152 (lilys_fla.Balletdancer__9_152)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Balletdancer__9_152 extends MovieClip {
public var More_bt:SimpleButton;
public function Balletdancer__9_152(){
addFrameScript(0, frame1);
}
function frame1(){
More_bt.addEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
}
}
}//package lilys_fla
Section 24
//DressuponepreloaderMovieClip_8 (lilys_fla.DressuponepreloaderMovieClip_8)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.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 lilys_fla
Section 25
//EL_3242_5134_123 (lilys_fla.EL_3242_5134_123)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.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).play();
}
}
}//package lilys_fla
Section 26
//EL_8199_5927_71 (lilys_fla.EL_8199_5927_71)
package lilys_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 lilys_fla
Section 27
//EL_8982_9988_30 (lilys_fla.EL_8982_9988_30)
package lilys_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 lilys_fla
Section 28
//EL_9524_1869_34 (lilys_fla.EL_9524_1869_34)
package lilys_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 lilys_fla
Section 29
//Timeline_130 (lilys_fla.Timeline_130)
package lilys_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(43, frame44);
}
function frame44(){
stop();
}
}
}//package lilys_fla
Section 30
//Timeline_135 (lilys_fla.Timeline_135)
package lilys_fla {
import flash.display.*;
public dynamic class Timeline_135 extends MovieClip {
public function Timeline_135(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package lilys_fla
Section 31
//Timeline_137 (lilys_fla.Timeline_137)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Timeline_137 extends MovieClip {
public var More_bt:SimpleButton;
public function Timeline_137(){
addFrameScript(0, frame1);
}
function frame1(){
More_bt.addEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
}
}
}//package lilys_fla
Section 32
//Timeline_149 (lilys_fla.Timeline_149)
package lilys_fla {
import flash.display.*;
public dynamic class Timeline_149 extends MovieClip {
public function Timeline_149(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package lilys_fla
Section 33
//Timeline_151 (lilys_fla.Timeline_151)
package lilys_fla {
import flash.display.*;
public dynamic class Timeline_151 extends MovieClip {
public function Timeline_151(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package lilys_fla
Section 34
//Timeline_269 (lilys_fla.Timeline_269)
package lilys_fla {
import flash.display.*;
public dynamic class Timeline_269 extends MovieClip {
public function Timeline_269(){
addFrameScript(0, frame1);
}
function frame1(){
mouseEnabled = false;
}
}
}//package lilys_fla
Section 35
//Timeline_273 (lilys_fla.Timeline_273)
package lilys_fla {
import flash.display.*;
public dynamic class Timeline_273 extends MovieClip {
public function Timeline_273(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package lilys_fla
Section 36
//Timeline_279 (lilys_fla.Timeline_279)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Timeline_279 extends MovieClip {
public var More_bt:SimpleButton;
public function Timeline_279(){
addFrameScript(0, frame1);
}
function frame1(){
More_bt.addEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
}
}
}//package lilys_fla
Section 37
//Timeline_283 (lilys_fla.Timeline_283)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Timeline_283 extends MovieClip {
public var retry_btn:SimpleButton;
public var menu_btn:SimpleButton;
public function Timeline_283(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
retry_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameRetry);
menu_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameMenu);
}
}
}//package lilys_fla
Section 38
//Timeline_287 (lilys_fla.Timeline_287)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Timeline_287 extends MovieClip {
public var More_bt:SimpleButton;
public function Timeline_287(){
addFrameScript(0, frame1);
}
function frame1(){
More_bt.addEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
}
}
}//package lilys_fla
Section 39
//Timeline_291 (lilys_fla.Timeline_291)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Timeline_291 extends MovieClip {
public var next_btn:SimpleButton;
public var retry_btn:SimpleButton;
public var menu_btn:SimpleButton;
public var 新建符号_1:MovieClip;
public function Timeline_291(){
addFrameScript(56, frame57);
}
function frame57(){
stop();
retry_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameRetry);
menu_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameMenu);
next_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameNextFrame);
}
}
}//package lilys_fla
Section 40
//Timeline_295 (lilys_fla.Timeline_295)
package lilys_fla {
import flash.display.*;
public dynamic class Timeline_295 extends MovieClip {
public var mask_mc:MovieClip;
public function Timeline_295(){
addFrameScript(0, frame1);
}
function frame1(){
mask_mc.scaleX = ((Math.random() * 0.1) + 0.9);
}
}
}//package lilys_fla
Section 41
//Timeline_298 (lilys_fla.Timeline_298)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Timeline_298 extends MovieClip {
public var next_btn:SimpleButton;
public var retry_btn:SimpleButton;
public var menu_btn:SimpleButton;
public var 新建符号_1:MovieClip;
public function Timeline_298(){
addFrameScript(50, frame51);
}
function frame51(){
stop();
retry_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameRetry);
menu_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameMenu);
next_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameNextFrame);
}
}
}//package lilys_fla
Section 42
//Timeline_299 (lilys_fla.Timeline_299)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Timeline_299 extends MovieClip {
public var pause_btn:SimpleButton;
public var menu_btn:SimpleButton;
public function Timeline_299(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
menu_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gameMenu);
pause_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gamePause);
}
}
}//package lilys_fla
Section 43
//Timeline_302 (lilys_fla.Timeline_302)
package lilys_fla {
import flash.display.*;
public dynamic class Timeline_302 extends MovieClip {
public function Timeline_302(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package lilys_fla
Section 44
//Timeline_305 (lilys_fla.Timeline_305)
package lilys_fla {
import flash.display.*;
public dynamic class Timeline_305 extends MovieClip {
public function Timeline_305(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package lilys_fla
Section 45
//Timeline_307 (lilys_fla.Timeline_307)
package lilys_fla {
import flash.display.*;
public dynamic class Timeline_307 extends MovieClip {
public function Timeline_307(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package lilys_fla
Section 46
//Timeline_309 (lilys_fla.Timeline_309)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Timeline_309 extends MovieClip {
public var a:uint;
public var aaa_mc:MovieClip;
public function Timeline_309(){
addFrameScript(0, frame1, 97, frame98, 139, frame140, 248, frame249);
}
function frame140(){
if (a == 3){
gotoAndStop(totalFrames);
};
}
function frame1(){
a = 1;
}
function frame249(){
stop();
if (a == 2){
gotoAndStop(98);
} else {
MovieClip(root).win();
};
}
function frame98(){
a++;
if (a == 2){
aaa_mc.visible = false;
};
}
}
}//package lilys_fla
Section 47
//Timeline_316 (lilys_fla.Timeline_316)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Timeline_316 extends MovieClip {
public function Timeline_316(){
addFrameScript(0, frame1);
}
public function thisDown(_arg1:MouseEvent):void{
MovieClip(root).stepNum++;
MovieClip(root).stepRefresh();
MovieClip(parent).play();
}
function frame1(){
buttonMode = true;
MovieClip(parent).stop();
addEventListener(MouseEvent.MOUSE_DOWN, thisDown);
}
}
}//package lilys_fla
Section 48
//Timeline_334 (lilys_fla.Timeline_334)
package lilys_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class Timeline_334 extends MovieClip {
public function Timeline_334(){
addFrameScript(133, frame134);
}
function frame134(){
stop();
MovieClip(root).win();
}
}
}//package lilys_fla
Section 49
//BgMusic (BgMusic)
package {
import flash.media.*;
public dynamic class BgMusic extends Sound {
}
}//package
Section 50
//Cut (Cut)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Cut extends MovieClip {
public var point_1:CutPoint;
public var point_2:CutPoint;
public var point_3:CutPoint;
private var _step:uint;// = 0
private var pointNum:uint;// = 0
public function Cut(){
pointNum = 0;
var _local1:uint;
while (_local1 < numChildren) {
if ((this.getChildAt(_local1) is CutPoint)){
pointNum = (pointNum + 1);
};
_local1++;
};
}
public function begin(){
var _local1:uint = 1;
while (_local1 <= pointNum) {
this[("point_" + _local1)].addEventListener(MouseEvent.MOUSE_OUT, next);
_local1++;
};
}
public function remove():void{
var _local1:uint = 1;
while (_local1 <= pointNum) {
this[("point_" + _local1)].removeEventListener(MouseEvent.MOUSE_OUT, next);
_local1++;
};
}
private function over():void{
_step = 0;
MovieClip(root).stepNum++;
MovieClip(root).stepRefresh();
var _local1:uint = 1;
while (_local1 <= pointNum) {
this[("point_" + _local1)].removeEventListener(MouseEvent.MOUSE_OUT, next);
_local1++;
};
MovieClip(parent).nextFrame();
}
private function next(_arg1:MouseEvent):void{
var _local2:uint = uint(_arg1.currentTarget.name.substr(6));
if (_step == (_local2 - 1)){
_step = _local2;
};
if (_step == pointNum){
over();
};
}
}
}//package
Section 51
//Cut1 (Cut1)
package {
public dynamic class Cut1 extends Cut {
}
}//package
Section 52
//CutPoint (CutPoint)
package {
import flash.display.*;
public dynamic class CutPoint extends MovieClip {
}
}//package
Section 53
//Cuts (Cuts)
package {
import gs.*;
import flash.events.*;
import flash.display.*;
public dynamic class Cuts extends MovieClip {
public var drag_mc:MovieClip;
private var _cut:Cut;
private var max:uint;// = 3
public var line_mc:MovieClip;
private var now:uint;// = 1
public function Cuts(){
super();
_cut = null;
if (totalFrames == 3){
max = 6;
};
var i:uint;
while (i < numChildren) {
if ((this.getChildAt(i) is Cut)){
_cut = (this.getChildAt(i) as Cut);
};
i = (i + 1);
};
this.initX = this.x;
TweenLite.from(this, 0.5, {x:(this.x - 600), onComplete:function (){
_cut.visible = true;
}});
_cut.visible = false;
i = 0;
while (i < (totalFrames - 1)) {
addFrameScript(i, refurbish);
i = (i + 1);
};
addFrameScript((totalFrames - 1), removeAll);
}
private function cutBegin(_arg1:MouseEvent):void{
((_cut) && (_cut.begin()));
drag_mc.gotoAndStop(2);
line_mc.graphics.moveTo(line_mc.mouseX, line_mc.mouseY);
line_mc.graphics.lineStyle(3, 0xFFFFFF);
stage.addEventListener(MouseEvent.MOUSE_UP, remove);
stage.addEventListener(Event.ENTER_FRAME, lines);
}
private function remove(_arg1:MouseEvent):void{
((_cut) && (_cut.remove()));
drag_mc.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, remove);
stage.removeEventListener(Event.ENTER_FRAME, lines);
line_mc.graphics.clear();
}
private function refurbish():void{
stop();
_cut = null;
var _local1:uint;
while (_local1 < numChildren) {
if ((this.getChildAt(_local1) is Cut)){
_cut = (this.getChildAt(_local1) as Cut);
};
_local1++;
};
if (this.currentFrame == 1){
_cut.visible = false;
drag_mc.visible = true;
};
line_mc.graphics.clear();
stage.addEventListener(MouseEvent.MOUSE_DOWN, cutBegin);
}
private function nextStep():void{
_cut.visible = false;
gotoAndStop(1);
this.x = this.initX;
TweenLite.from(this, 0.5, {x:(this.x - 600), onComplete:function (){
_cut.visible = true;
}});
}
private function removeAll():void{
drag_mc.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, cutBegin);
stage.removeEventListener(MouseEvent.MOUSE_UP, remove);
stage.removeEventListener(Event.ENTER_FRAME, lines);
line_mc.graphics.clear();
if (now < max){
now++;
TweenLite.to(this, 0.5, {x:(this.x + 600), onComplete:nextStep});
} else {
MovieClip(root).win();
};
}
private function lines(_arg1:Event):void{
line_mc.graphics.lineTo(line_mc.mouseX, line_mc.mouseY);
line_mc.graphics.moveTo(line_mc.mouseX, line_mc.mouseY);
}
}
}//package
Section 54
//Cuts1 (Cuts1)
package {
public dynamic class Cuts1 extends Cuts {
}
}//package
Section 55
//Cuts2 (Cuts2)
package {
public dynamic class Cuts2 extends Cuts {
}
}//package
Section 56
//Cuts3 (Cuts3)
package {
public dynamic class Cuts3 extends Cuts {
}
}//package
Section 57
//DrawMove (DrawMove)
package {
import flash.events.*;
import flash.display.*;
public dynamic class DrawMove extends MovieClip {
public var point_1:CutPoint;
public var point_2:CutPoint;
public var point_3:CutPoint;
private var _step:uint;// = 0
private var pointNum:uint;// = 0
public function DrawMove(){
pointNum = 0;
MovieClip(parent).stop();
MovieClip(parent).refurbish();
var _local1:uint;
while (_local1 < numChildren) {
if ((this.getChildAt(_local1) is CutPoint)){
pointNum = (pointNum + 1);
};
_local1++;
};
}
public function begin(){
var _local1:uint = 1;
while (_local1 <= pointNum) {
this[("point_" + _local1)].addEventListener(MouseEvent.MOUSE_OUT, next);
_local1++;
};
}
public function remove():void{
var _local1:uint = 1;
while (_local1 <= pointNum) {
this[("point_" + _local1)].removeEventListener(MouseEvent.MOUSE_OUT, next);
_local1++;
};
}
private function over():void{
_step = 0;
MovieClip(root).stepNum++;
MovieClip(root).stepRefresh();
var _local1:uint = 1;
while (_local1 <= pointNum) {
this[("point_" + _local1)].removeEventListener(MouseEvent.MOUSE_OUT, next);
_local1++;
};
MovieClip(parent).play();
}
private function next(_arg1:MouseEvent):void{
var _local2:uint = uint(_arg1.currentTarget.name.substr(6));
if (_step == (_local2 - 1)){
_step = _local2;
};
if (_step == pointNum){
over();
};
}
}
}//package
Section 58
//DrawMoves (DrawMoves)
package {
import flash.events.*;
import flash.display.*;
public dynamic class DrawMoves extends MovieClip {
public var line_mc:MovieClip;
private var _cut:DrawMove;
private var max:uint;// = 1
private var now:uint;// = 1
public function DrawMoves(){
addFrameScript((totalFrames - 1), removeAll);
}
private function cutBegin(_arg1:MouseEvent):void{
((_cut) && (_cut.begin()));
line_mc.graphics.moveTo(line_mc.mouseX, line_mc.mouseY);
line_mc.graphics.lineStyle(3, 0xFFFFFF);
stage.addEventListener(MouseEvent.MOUSE_UP, remove);
stage.addEventListener(Event.ENTER_FRAME, lines);
}
private function remove(_arg1:MouseEvent):void{
((_cut) && (_cut.remove()));
stage.removeEventListener(MouseEvent.MOUSE_UP, remove);
stage.removeEventListener(Event.ENTER_FRAME, lines);
line_mc.graphics.clear();
}
public function refurbish():void{
_cut = null;
var _local1:uint;
while (_local1 < numChildren) {
if ((this.getChildAt(_local1) is DrawMove)){
_cut = (this.getChildAt(_local1) as DrawMove);
};
_local1++;
};
((line_mc) && (line_mc.graphics.clear()));
stage.addEventListener(MouseEvent.MOUSE_DOWN, cutBegin);
}
private function removeAll():void{
stop();
stage.removeEventListener(MouseEvent.MOUSE_DOWN, cutBegin);
stage.removeEventListener(MouseEvent.MOUSE_UP, remove);
stage.removeEventListener(Event.ENTER_FRAME, lines);
line_mc.graphics.clear();
if (now < max){
now++;
} else {
MovieClip(root).win();
};
}
private function lines(_arg1:Event):void{
line_mc.graphics.lineTo(line_mc.mouseX, line_mc.mouseY);
line_mc.graphics.moveTo(line_mc.mouseX, line_mc.mouseY);
}
}
}//package
Section 59
//DrawMoves1 (DrawMoves1)
package {
public dynamic class DrawMoves1 extends DrawMoves {
}
}//package
Section 60
//DrawMoves2 (DrawMoves2)
package {
public dynamic class DrawMoves2 extends DrawMoves {
}
}//package
Section 61
//Main (Main)
package {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import gs.easing.*;
import flash.system.*;
public dynamic class Main extends MovieClip {
public var porcentaje:Number;
public var peso:Number;
public var my_menu:ContextMenu;
public var stepNum:uint;// = 0
public var init_mc:MovieClip;
public var step1_mc:Cuts3;
public var dh_mc:MovieClip;
public var nowFrame:uint;// = 0
public var volumeSize:uint;// = 1
public var loadDelay:int;
public var _myChannel:SoundChannel;
public var goal_mc:MovieClip;
public var time_mc:MovieClip;
public var 新建符号_1:MovieClip;
public var delayporcen:Number;
public var Loader_txt:TextField;
public var delaycount:int;
public var loadbar:MovieClip;
public var o:Object;
public var knife_mc:MovieClip;
private var step_arr:Array;
private var timeNum:uint;// = 0
public var menu_btn:SimpleButton;
public var sb_mc:MovieClip;
public var step2_mc:Cuts1;
public var pause_btn:SimpleButton;
public var post_mc:MovieClip;
private var step7Num:uint;// = 0
public var _bgMusic:BgMusic;
public var carga:Number;
public var p1:SimpleButton;
public var p2:SimpleButton;
public var p3:SimpleButton;
public var logo_btn:SimpleButton;
public var my_notice;
public var apiLoader:URLLoader;
public var framerate:Number;
public var step_mc:MovieClip;
public var step3_mc:Cuts2;
private var time_arr:Array;
public var pause:Boolean;// = false
public var musicSet:SoundTransform;
public function Main(){
time_arr = [8, 800, 800, 600, 600, 600, 900, 1200, 600];
step_arr = [8, 12, 18, 18, 5, 4, 8, 18, 2];
_bgMusic = new BgMusic();
musicSet = new SoundTransform((volumeSize * 0.5), 0);
super();
addFrameScript(0, frame1, 1, frame2);
addFrameScript(4, gameBegin);
addFrameScript(5, gameStep1);
addFrameScript(6, gameStep2);
addFrameScript(7, gameStep3);
addFrameScript(8, gameStep4);
addFrameScript(9, gameStep5);
addFrameScript(10, gameStep6);
addFrameScript(11, gameStep7);
addFrameScript(12, gameStep8);
addFrameScript(13, gameShow);
addFrameScript(14, gameJump);
}
public function gameNext(_arg1:MouseEvent):void{
nextFrame();
}
private function gameShow():void{
menu_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameMenu);
}
private function gameStep1():void{
refresh();
step1_mc.drag_mc = knife_mc;
knife_mc.startDrag(true);
}
private function gameStep2():void{
refresh();
step2_mc.drag_mc = knife_mc;
knife_mc.startDrag(true);
}
private function gameStep3():void{
refresh();
step3_mc.drag_mc = knife_mc;
knife_mc.startDrag(true);
}
private function gameStep4():void{
refresh();
}
private function gameStep5():void{
refresh();
}
private function gameStep6():void{
refresh();
}
private function gameStep7():void{
refresh();
step7Num = 0;
sb_mc.gotoAndStop(4);
var _local1:uint = 1;
while (_local1 <= 3) {
this[("p" + _local1)].addEventListener(MouseEvent.MOUSE_DOWN, sbStart);
_local1++;
};
newCake();
}
public function lose():void{
if ((((post_mc.currentFrame == 5)) && (!(pause)))){
post_mc.gotoAndStop(1);
stage.removeEventListener(Event.ENTER_FRAME, timeStsrt);
};
}
private function gameStep8():void{
refresh();
}
public function timeStsrt(_arg1:Event):void{
if (((!(pause)) && (time_mc))){
timeNum++;
time_mc.main_mc.main_mc.rotation = ((timeNum * 360) / time_arr[(currentFrame - 5)]);
if (timeNum >= time_arr[(currentFrame - 5)]){
lose();
time_mc.gotoAndStop(1);
} else {
if (timeNum >= (time_arr[(currentFrame - 5)] * 0.75)){
time_mc.play();
};
};
};
}
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 gamePause(_arg1:MouseEvent):void{
post_mc.gotoAndStop((9 - post_mc.currentFrame));
pause = !(pause);
}
public function initA():void{
stage.frameRate = 24;
stage.addEventListener(Event.ENTER_FRAME, progreso);
}
private function gameJump():void{
gotoAndStop(nowFrame);
}
private function sbStart(_arg1:MouseEvent):void{
var _local2:uint = uint(_arg1.currentTarget.name.substr(1));
sb_mc.gotoAndStop(_local2);
sb_mc.startDrag(true);
stage.addEventListener(MouseEvent.MOUSE_UP, sbStop);
}
public function openLink(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest("http://www.dressupone.com"));
}
function frame2(){
stop();
}
public function gameNextFrame(_arg1:MouseEvent):void{
nowFrame = (currentFrame + 1);
gotoAndStop(15);
}
public function gameMenu(_arg1:MouseEvent):void{
gotoAndStop(5);
}
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=3a0239bbb52a9b1e8f3c9eea607ff77f&id=228"));
};
};
} 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);
}
public function stepRefresh():void{
TweenLite.to(step_mc.main_mc, 0.5, {scaleX:(stepNum / step_arr[(currentFrame - 5)])});
}
public function doLaterA(_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, doLaterA);
initA();
}
public function gameRetry(_arg1:MouseEvent):void{
nowFrame = currentFrame;
gotoAndStop(15);
}
private function gameBegin():void{
stop();
dh_mc.play_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameNext);
}
public function gogames(_arg1:MouseEvent){
var _local2:LocalConnection = new LocalConnection();
var _local3:String = _local2.domain;
var _local4:* = "lilys-a-pizza-maker";
var _local5:* = ((("http://www.dressupone.com/?utm_source=" + _local3) + "&utm_medium=game&utm_campaign=") + _local4);
navigateToURL(new URLRequest(_local5), "blank");
}
private function refresh():void{
pause = false;
timeNum = 0;
stepNum = 0;
post_mc.gotoAndStop(5);
((time_mc) && (time_mc.gotoAndStop(1)));
if (step_mc){
step_mc.main_mc.scaleX = 0;
};
pause_btn.addEventListener(MouseEvent.MOUSE_DOWN, gamePause);
stage.addEventListener(Event.ENTER_FRAME, timeStsrt);
}
public function win():void{
if ((((post_mc.currentFrame == 5)) && (!(pause)))){
if (currentFrame == 13){
post_mc.gotoAndStop(3);
} else {
post_mc.gotoAndStop(2);
};
stage.removeEventListener(Event.ENTER_FRAME, timeStsrt);
};
}
private function sbStop(_arg1:MouseEvent):void{
var _local2:uint = 1;
while (_local2 <= 6) {
if (Math.sqrt((((init_mc.main_mc[("p" + _local2)].x - init_mc.main_mc.mouseX) * (init_mc.main_mc[("p" + _local2)].x - init_mc.main_mc.mouseX)) + ((init_mc.main_mc[("p" + _local2)].y - init_mc.main_mc.mouseY) * (init_mc.main_mc[("p" + _local2)].y - init_mc.main_mc.mouseY)))) <= 10){
if (init_mc.main_mc[("p" + _local2)].currentFrame == sb_mc.currentFrame){
if (init_mc.main_mc[("p" + _local2)].alpha < 1){
init_mc.main_mc[("p" + _local2)].alpha = 1;
stepNum++;
stepRefresh();
if ((stepNum % 6) == 0){
if (step7Num >= 3){
win();
} else {
TweenLite.to(init_mc, 0.5, {x:900, onComplete:newCake});
TweenLite.to(goal_mc, 0.5, {x:-100});
};
};
};
};
break;
};
_local2++;
};
sb_mc.stopDrag();
sb_mc.x = -100;
sb_mc.y = -100;
stage.removeEventListener(MouseEvent.MOUSE_UP, sbStop);
}
private function newCake():void{
step7Num++;
var _local1:uint = 1;
while (_local1 <= 6) {
goal_mc.main_mc[("p" + _local1)].gotoAndStop((Math.floor((Math.random() * 3)) + 1));
init_mc.main_mc[("p" + _local1)].gotoAndStop(goal_mc.main_mc[("p" + _local1)].currentFrame);
init_mc.main_mc[("p" + _local1)].alpha = 0.1;
_local1++;
};
init_mc.x = 477.2;
goal_mc.x = 175.3;
TweenLite.from(init_mc, 0.5, {x:900});
TweenLite.from(goal_mc, 0.5, {x:-100});
}
}
}//package
Section 62
//MusicBtn (MusicBtn)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
public dynamic class MusicBtn extends MovieClip {
public function MusicBtn(){
addFrameScript(0, frame1);
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);
}
function frame1(){
stop();
}
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