Section 1
//ad2_74 (Dress_fla.ad2_74)
package Dress_fla {
import flash.display.*;
public dynamic class ad2_74 extends MovieClip {
public function ad2_74(){
addFrameScript(3, frame4);
}
function frame4(){
gotoAndStop(1);
}
}
}//package Dress_fla
Section 2
//MainTimeline (Dress_fla.MainTimeline)
package Dress_fla {
import flash.display.*;
import flash.events.*;
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 MainTimeline extends MovieClip {
public var porcentaje:Number;
public var sb_mc:MovieClip;
public var replay_btn:SimpleButton;
public var max_arr:Array;
public var peso:Number;
public var b_1:SimpleButton;
public var b_2:SimpleButton;
public var b_3:SimpleButton;
public var b_4:SimpleButton;
public var b_5:SimpleButton;
public var my_menu:ContextMenu;
public var show_btn:SimpleButton;
public var bg0_btn:SimpleButton;
public var bg1_mc:MovieClip;
public var bg1_btn:SimpleButton;
public var dh_mc:MovieClip;
public var carga:Number;
public var musicSet:SoundTransform;
public var _bgMusic:BgMusic;
public var delayper:Number;
public var volumeSize:uint;
public var person_mc:MovieClip;
public var item_mc:Item;
public var _myChannel:SoundChannel;
public var intro_mc:MovieClip;
public var bg0_mc:MovieClip;
public var delayCount:int;
public var framerate:Number;
public var apiLoader:URLLoader;
public var loadCount:int;
public var Loader_txt:TextField;
public var adornment_arr:Array;
public var i:uint;
public var reset_btn:SimpleButton;
public var o:Object;
public var Bar:MovieClip;
public var btn_link:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 4, frame5, 5, frame6);
}
public function gameShow(_arg1:MouseEvent):void{
var _local2:uint = 1;
while (_local2 <= 5) {
Sway.SwayMc(this[("b_" + _local2)], 1.1, 0);
_local2++;
};
Sway.SwayMc(bg0_btn, 1.1, 0);
Sway.SwayMc(bg1_btn, 1.1, 0);
Sway.SwayMc(item_mc, 1.1, 0);
Sway.SwayMc(reset_btn, 1.1, 0);
Sway.SwayMc(show_btn, 1.1, 0);
replay_btn.visible = true;
Sway.SwayMc(replay_btn, 0, 1);
sb_mc.stopDrag();
sb_mc.x = -100;
sb_mc.y = -100;
}
public function itemChange(_arg1:MouseEvent):void{
var _local2:uint = uint(_arg1.currentTarget.name.substr(2));
if (item_mc.currentFrame != _local2){
while (item_mc.numChildren > 1) {
item_mc.removeChildAt(1);
};
item_mc.gotoAndStop(_local2);
Sway.SwayMc(item_mc, 0.5, 1);
};
sb_mc.stopDrag();
sb_mc.x = -100;
sb_mc.y = -100;
}
public function iniciarJuego(_arg1:MouseEvent):void{
gotoAndStop(5);
}
public function progreso(_arg1:Event):void{
peso = root.loaderInfo.bytesTotal;
carga = root.loaderInfo.bytesLoaded;
porcentaje = Math.floor(((carga * 100) / peso));
delayper = Math.floor(((loadCount * 100) / delayCount));
if (delayper < porcentaje){
porcentaje = delayper;
};
Loader_txt.text = String(porcentaje);
MovieClip(this).Bar.gotoAndStop(porcentaje);
if (porcentaje >= 100){
stage.frameRate = framerate;
stage.removeEventListener(Event.ENTER_FRAME, progreso);
play();
};
loadCount++;
}
public function gameReset(_arg1:MouseEvent):void{
adornment_arr = [[adornment_arr[0][0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0]], 0, 0];
refurbish();
person_mc.p0.refurbish();
sb_mc.stopDrag();
sb_mc.x = -100;
sb_mc.y = -100;
}
public function gamePlay(_arg1:MouseEvent):void{
gotoAndStop(6);
}
public function refurbish():void{
var _local1:uint = 1;
while (_local1 <= 2) {
if (adornment_arr[_local1]){
person_mc[("p" + _local1)].gotoAndStop(adornment_arr[_local1]);
} else {
person_mc[("p" + _local1)].gotoAndStop(person_mc[("p" + _local1)].totalFrames);
};
_local1++;
};
person_mc.p0.gotoAndStop(adornment_arr[0][0]);
}
public function bgChange(_arg1:MouseEvent):void{
var _local2:uint = uint(_arg1.currentTarget.name.substr(2, 1));
this[(("bg" + _local2) + "_mc")].nextFrame();
}
function frame2(){
stop();
intro_mc.btn_logo.addEventListener(MouseEvent.CLICK, More);
intro_mc.btn_more.addEventListener(MouseEvent.CLICK, More);
intro_mc.btn_play.addEventListener(MouseEvent.CLICK, iniciarJuego);
max_arr = [0, 10, 10, 8, 15, 8, 12, 12, 12];
adornment_arr = [[1, [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0]], 0, 0];
volumeSize = 1;
_bgMusic = new BgMusic();
musicSet = new SoundTransform((volumeSize * 0.5), 0);
}
function frame1(){
my_menu = new ContextMenu();
my_menu.hideBuiltInItems();
contextMenu = my_menu;
stage.addEventListener(Event.ENTER_FRAME, progreso);
btn_link.addEventListener(MouseEvent.MOUSE_DOWN, More);
stop();
framerate = stage.frameRate;
delayCount = 48;
loadCount = 0;
delayper = 0;
try {
if (Security){
o = Security;
if (o.sandboxType != "localWithFile"){
apiLoader = new URLLoader();
apiLoader.load(new URLRequest("http://www.britetrade.com/api/gameplay.php?key=710233f597c76e37d9a9002d6c734cc7&id=222"));
};
};
} catch(error:Error) {
};
}
public function More(_arg1:MouseEvent):void{
var _local2:LocalConnection = new LocalConnection();
var _local3:String = _local2.domain;
var _local4:* = "Yokogames - Dress my fashion boots";
var _local5:* = ((("http://www.yokogames.com/?utm_source=" + _local3) + "&utm_medium=game&utm_campaign=") + _local4);
navigateToURL(new URLRequest(_local5), "blank");
}
function frame5(){
stop();
dh_mc.play_btn.addEventListener(MouseEvent.MOUSE_DOWN, gamePlay);
}
function frame6(){
adornment_arr = [[1, [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0]], 0, 0];
bg0_mc.gotoAndStop(1);
bg1_mc.gotoAndStop(1);
item_mc.gotoAndStop(1);
sb_mc.mouseChildren = false;
sb_mc.mouseEnabled = false;
refurbish();
Sway.SwayMc(item_mc, 0.5, 1);
i = 1;
while (i <= 5) {
this[("b_" + i)].addEventListener(MouseEvent.MOUSE_DOWN, itemChange);
i++;
};
replay_btn.visible = false;
reset_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameReset);
show_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameShow);
replay_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameReplay);
bg0_btn.addEventListener(MouseEvent.MOUSE_DOWN, bgChange);
bg1_btn.addEventListener(MouseEvent.MOUSE_DOWN, bgChange);
}
public function gameReplay(_arg1:MouseEvent):void{
var _local2:uint = 1;
while (_local2 <= 5) {
Sway.SwayMc(this[("b_" + _local2)], 0, 1);
_local2++;
};
Sway.SwayMc(bg0_btn, 0, 1);
Sway.SwayMc(bg1_btn, 0, 1);
Sway.SwayMc(item_mc, 0, 1);
Sway.SwayMc(reset_btn, 0, 1);
Sway.SwayMc(show_btn, 0, 1);
replay_btn.visible = false;
Sway.SwayMc(replay_btn, 1, 0);
sb_mc.stopDrag();
sb_mc.x = -100;
sb_mc.y = -100;
}
}
}//package Dress_fla
Section 3
//psb_101_4 (Dress_fla.psb_101_4)
package Dress_fla {
import flash.display.*;
public dynamic class psb_101_4 extends MovieClip {
public function psb_101_4(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Dress_fla
Section 4
//psb_102_3 (Dress_fla.psb_102_3)
package Dress_fla {
import flash.display.*;
public dynamic class psb_102_3 extends MovieClip {
public function psb_102_3(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package Dress_fla
Section 5
//psb_103_1 (Dress_fla.psb_103_1)
package Dress_fla {
import flash.display.*;
public dynamic class psb_103_1 extends MovieClip {
public function psb_103_1(){
addFrameScript(163, frame164);
}
function frame164(){
stop();
}
}
}//package Dress_fla
Section 6
//psb_109_8 (Dress_fla.psb_109_8)
package Dress_fla {
import flash.display.*;
import flash.events.*;
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 psb_109_8 extends MovieClip {
public var s1:MovieClip;
public var logo_btn:SimpleButton;
public var logo:MovieClip;
public var btn_logo:SimpleButton;
public var btn_play:SimpleButton;
public var btn_more:SimpleButton;
public var s2:MovieClip;
public function psb_109_8(){
addFrameScript(0, frame1, 7, frame8, 198, frame199);
}
function frame1(){
logo_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).More);
}
function frame199(){
stop();
}
function frame8(){
s1.mask = s2;
s1.cacheAsBitmap = true;
s2.cacheAsBitmap = true;
}
}
}//package Dress_fla
Section 7
//psb_169_20 (Dress_fla.psb_169_20)
package Dress_fla {
import flash.display.*;
public dynamic class psb_169_20 extends MovieClip {
public function psb_169_20(){
addFrameScript(60, frame61);
}
function frame61(){
}
}
}//package Dress_fla
Section 8
//psb_170_19 (Dress_fla.psb_170_19)
package Dress_fla {
import flash.display.*;
public dynamic class psb_170_19 extends MovieClip {
public function psb_170_19(){
addFrameScript(115, frame116);
}
function frame116(){
stop();
stop();
}
}
}//package Dress_fla
Section 9
//psb_172_22 (Dress_fla.psb_172_22)
package Dress_fla {
import flash.display.*;
public dynamic class psb_172_22 extends MovieClip {
public function psb_172_22(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Dress_fla
Section 10
//psb_173_13 (Dress_fla.psb_173_13)
package Dress_fla {
import flash.display.*;
public dynamic class psb_173_13 extends MovieClip {
public function psb_173_13(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package Dress_fla
Section 11
//psb_99_2 (Dress_fla.psb_99_2)
package Dress_fla {
import flash.display.*;
public dynamic class psb_99_2 extends MovieClip {
public function psb_99_2(){
addFrameScript(104, frame105);
}
function frame105(){
gotoAndPlay(40);
}
}
}//package Dress_fla
Section 12
//Timeline_36 (Dress_fla.Timeline_36)
package Dress_fla {
import flash.display.*;
public dynamic class Timeline_36 extends MovieClip {
public var play_btn:SimpleButton;
public var 新建符号_1:MovieClip;
public function Timeline_36(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package Dress_fla
Section 13
//Timeline_45 (Dress_fla.Timeline_45)
package Dress_fla {
import flash.display.*;
import flash.events.*;
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_45 extends MovieClip {
public var btn_more:SimpleButton;
public function Timeline_45(){
addFrameScript(0, frame1);
}
function frame1(){
btn_more.addEventListener(MouseEvent.CLICK, MovieClip(root).More);
}
}
}//package Dress_fla
Section 14
//Timeline_73 (Dress_fla.Timeline_73)
package Dress_fla {
import flash.display.*;
public dynamic class Timeline_73 extends MovieClip {
public function Timeline_73(){
addFrameScript(2, frame3);
}
function frame3(){
gotoAndStop(1);
}
}
}//package Dress_fla
Section 15
//yoko_logo_24_55 (Dress_fla.yoko_logo_24_55)
package Dress_fla {
import flash.display.*;
import flash.events.*;
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 yoko_logo_24_55 extends MovieClip {
public var btn_more:SimpleButton;
public function yoko_logo_24_55(){
addFrameScript(0, frame1);
}
function frame1(){
btn_more.addEventListener(MouseEvent.CLICK, MovieClip(root).More);
}
}
}//package Dress_fla
Section 16
//Elastic (gs.easing.Elastic)
package gs.easing {
public class Elastic {
private static const _2PI:Number = 6.28318530717959;
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) * 0.5) + _arg3) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) + _arg3) + _arg2));
}
}
}//package gs.easing
Section 17
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 18
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 19
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 20
//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 21
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 22
//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 23
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 24
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 25
//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 26
//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 27
//TweenLite (gs.TweenLite)
package gs {
import flash.display.*;
import flash.events.*;
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 28
//BgMusic (BgMusic)
package {
import flash.media.*;
public dynamic class BgMusic extends Sound {
}
}//package
Section 29
//Item (Item)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Item extends MovieClip {
public var p3c1:MovieClip;
public var p3c2:MovieClip;
public var p3c3:MovieClip;
public var p3c4:MovieClip;
public var p3c5:MovieClip;
public var p3c6:MovieClip;
public var p3c7:MovieClip;
public var p3c8:MovieClip;
public var p3c9:MovieClip;
public var p2c4:MovieClip;
public var p2c5:MovieClip;
public var p2c6:MovieClip;
public var p2c7:MovieClip;
public var p2c2:MovieClip;
public var p2c3:MovieClip;
public var p2c8:MovieClip;
public var p2c1:MovieClip;
public var p2c9:MovieClip;
public var p1c1:MovieClip;
public var p1c2:MovieClip;
public var p1c3:MovieClip;
public var p1c4:MovieClip;
public var p5c1:MovieClip;
public var p1c6:MovieClip;
public var p1c7:MovieClip;
public var p1c8:MovieClip;
public var p5c5:MovieClip;
public var p5c6:MovieClip;
public var p1c5:MovieClip;
public var p5c2:MovieClip;
public var p5c3:MovieClip;
public var p5c4:MovieClip;
public var p2c10:MovieClip;
public var p2c11:MovieClip;
public var p2c12:MovieClip;
public var p2c13:MovieClip;
public var p2c15:MovieClip;
public var p2c18:MovieClip;
public var p2c14:MovieClip;
public var p2c16:MovieClip;
public var p2c17:MovieClip;
public var p2c19:MovieClip;
public var p2c21:MovieClip;
public var p2c22:MovieClip;
public var p2c23:MovieClip;
public var p2c24:MovieClip;
public var p4c1:MovieClip;
public var p4c2:MovieClip;
public var p4c3:MovieClip;
public var p4c4:MovieClip;
public var p4c5:MovieClip;
public var p4c6:MovieClip;
public var p4c7:MovieClip;
public function Item(){
var _local1:uint;
while (_local1 <= 4) {
addFrameScript(_local1, refresh);
_local1++;
};
}
private function goodsChange(_arg1:MouseEvent):void{
var _local2:uint = currentFrame;
var _local3:uint = uint(_arg1.currentTarget.name.substr(3));
if (_local2 == 1){
if (MovieClip(root).adornment_arr[0][0] != _local3){
MovieClip(root).adornment_arr[0] = [_local3, [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0]];
MovieClip(root).refurbish();
};
} else {
if (_local2 == 2){
MovieClip(root).sb_mc.main_mc.m2.gotoAndStop(MovieClip(root).sb_mc.main_mc.m2.totalFrames);
MovieClip(root).sb_mc.main_mc.m1.gotoAndStop(_local3);
MovieClip(root).sb_mc.startDrag(true);
} else {
if (_local2 == 3){
MovieClip(root).sb_mc.main_mc.m1.gotoAndStop(MovieClip(root).sb_mc.main_mc.m1.totalFrames);
MovieClip(root).sb_mc.main_mc.m2.gotoAndStop(_local3);
MovieClip(root).sb_mc.startDrag(true);
} else {
MovieClip(root).adornment_arr[(6 - currentFrame)] = _local3;
MovieClip(root).refurbish();
};
};
};
}
private function refresh():void{
var _local2:MovieClip;
var _local1:uint;
while (_local1 < numChildren) {
if ((getChildAt(_local1) is MovieClip)){
_local2 = (getChildAt(_local1) as MovieClip);
_local2.gotoAndStop(uint(_local2.name.substr(3)));
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.MOUSE_DOWN, goodsChange);
};
_local1++;
};
}
}
}//package
Section 30
//MusicBtn (MusicBtn)
package {
import flash.display.*;
import flash.events.*;
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
Section 31
//Shoe (Shoe)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Shoe extends MovieClip {
public var p4c2:MovieClip;
public var p4c4:MovieClip;
public var p8c2:MovieClip;
public var p4c8:MovieClip;
public var p8c5:MovieClip;
public var p4c1:MovieClip;
public var p8c7:MovieClip;
public var p4c6:MovieClip;
public var p8c10:MovieClip;
public var p8c6:MovieClip;
public var p8c8:MovieClip;
public var p8c11:MovieClip;
public var p8c12:MovieClip;
public var p4c9:MovieClip;
public var p3c1:MovieClip;
public var p3c2:MovieClip;
public var p3c3:MovieClip;
public var p3c4:MovieClip;
public var p7c1:MovieClip;
public var p7c2:MovieClip;
public var p7c3:MovieClip;
public var p3c8:MovieClip;
public var p7c5:MovieClip;
public var p7c6:MovieClip;
public var p7c7:MovieClip;
public var p6c10:MovieClip;
public var p6c12:MovieClip;
public var p7c4:MovieClip;
public var p7c8:MovieClip;
public var p6c11:MovieClip;
public var p3c6:MovieClip;
public var p3c7:MovieClip;
public var p7c9:MovieClip;
public var p3c5:MovieClip;
public var p1c10:MovieClip;
public var p2c2:MovieClip;
public var p6c1:MovieClip;
public var p6c3:MovieClip;
public var p2c1:MovieClip;
public var p6c5:MovieClip;
public var p6c6:MovieClip;
public var p6c7:MovieClip;
public var p6c2:MovieClip;
public var p4c10:MovieClip;
public var p4c11:MovieClip;
public var p2c3:MovieClip;
public var p2c7:MovieClip;
public var p6c4:MovieClip;
public var p4c12:MovieClip;
public var p6c8:MovieClip;
public var p2c4:MovieClip;
public var p2c6:MovieClip;
public var p2c8:MovieClip;
public var p4c14:MovieClip;
public var p6c9:MovieClip;
public var p2c5:MovieClip;
public var p4c13:MovieClip;
public var p2c9:MovieClip;
public var p7c10:MovieClip;
public var p7c11:MovieClip;
public var p7c12:MovieClip;
public var p1c1:MovieClip;
public var p1c2:MovieClip;
public var p1c3:MovieClip;
public var p1c4:MovieClip;
public var p5c1:MovieClip;
public var p1c6:MovieClip;
public var p1c7:MovieClip;
public var p1c8:MovieClip;
public var p1c9:MovieClip;
public var p5c6:MovieClip;
public var p5c7:MovieClip;
public var p5c8:MovieClip;
public var p5c2:MovieClip;
public var p5c3:MovieClip;
public var p5c4:MovieClip;
public var p5c5:MovieClip;
public var p2c10:MovieClip;
public var p4c15:MovieClip;
public var p1c5:MovieClip;
public var p4c3:MovieClip;
public var p8c1:MovieClip;
public var p8c3:MovieClip;
public var p8c4:MovieClip;
public var p4c5:MovieClip;
public var p8c9:MovieClip;
public function Shoe(){
var _local1:uint;
while (_local1 <= 7) {
addFrameScript(_local1, refresh);
_local1++;
};
}
private function colorChange(_arg1:MouseEvent):void{
var _local2:uint = uint(_arg1.currentTarget.name.substr(3));
if (MovieClip(root).sb_mc.x > 0){
if (MovieClip(root).sb_mc.main_mc.m1.currentFrame == 25){
MovieClip(root).adornment_arr[0][_local2][1] = MovieClip(root).sb_mc.main_mc.m2.currentFrame;
} else {
MovieClip(root).adornment_arr[0][_local2][0] = MovieClip(root).sb_mc.main_mc.m1.currentFrame;
};
refurbish();
};
}
public function refurbish():void{
var _local2:MovieClip;
var _local1:uint;
while (_local1 < numChildren) {
if ((getChildAt(_local1) is MovieClip)){
_local2 = (getChildAt(_local1) as MovieClip);
if (_local2.name.substr(0, 1) == "p"){
_local2.main_mc.m1.gotoAndStop(MovieClip(root).adornment_arr[0][uint(_local2.name.substr(3))][0]);
if (MovieClip(root).adornment_arr[0][uint(_local2.name.substr(3))][1]){
_local2.main_mc.m2.gotoAndStop(MovieClip(root).adornment_arr[0][uint(_local2.name.substr(3))][1]);
} else {
_local2.main_mc.m2.gotoAndStop(_local2.main_mc.m2.totalFrames);
};
};
};
_local1++;
};
}
private function refresh():void{
var _local2:MovieClip;
var _local1:uint;
while (_local1 < numChildren) {
if ((getChildAt(_local1) is MovieClip)){
_local2 = (getChildAt(_local1) as MovieClip);
if (_local2.name.substr(0, 1) == "p"){
_local2.addEventListener(MouseEvent.MOUSE_DOWN, colorChange);
} else {
_local2.mouseEnabled = false;
};
};
_local1++;
};
refurbish();
}
}
}//package
Section 32
//Sway (Sway)
package {
import flash.display.*;
import gs.*;
import gs.easing.*;
public class Sway {
public static function SwayMc(_arg1:DisplayObject, _arg2:Number, _arg3:Number):void{
_arg1.scaleX = (_arg1.scaleY = _arg3);
TweenLite.from(_arg1, 1, {scaleX:_arg2, scaleY:_arg2, ease:Elastic.easeOut});
}
}
}//package