Section 1
//ball_154 (_fla.ball_154)
package _fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public dynamic class ball_154 extends MovieClip {
public var x0:Number;
public var y0:Number;
public function ball_154(){
addFrameScript(0, frame1);
}
function frame1(){
this.addEventListener(Event.ENTER_FRAME, update);
x0 = mouseX;
y0 = mouseY;
this.mouseChildren = false;
this.mouseEnabled = false;
addEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
}
public function onRemoved(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
removeEventListener(Event.ENTER_FRAME, update);
}
public function getRand(_arg1:int, _arg2:int):int{
return ((Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1));
}
public function update(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:MovieClip;
var _local6:ColorTransform;
_local2 = mouseX;
_local3 = mouseY;
if (((!((_local2 == x0))) || (!((_local3 == y0))))){
_local4 = 0;
while (_local4 < 3) {
_local5 = new ball();
_local6 = new ColorTransform();
_local6.color = ((Math.random() * 0x666666) + 0x999999);
_local5.x = mouseX;
_local5.y = mouseY;
_local5.mouseEnabled = false;
_local5.mouseChildren = false;
addChild(_local5);
_local4++;
};
x0 = mouseX;
y0 = mouseY;
};
}
}
}//package _fla
Section 2
//didilogo_148 (_fla.didilogo_148)
package _fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class didilogo_148 extends MovieClip {
public function didilogo_148(){
addFrameScript(0, frame1);
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, clickHandler);
}
public function clickHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.didigames.com/"), "_blank");
}
}
}//package _fla
Section 3
//makeup_249 (_fla.makeup_249)
package _fla {
import flash.display.*;
public dynamic class makeup_249 extends MovieClip {
public var b2:SimpleButton;
public var b4:SimpleButton;
public var b5:SimpleButton;
public var b6:SimpleButton;
public var b7:SimpleButton;
public var b1:SimpleButton;
public var b3:SimpleButton;
public var b8:SimpleButton;
}
}//package _fla
Section 4
//popgals__mc_143 (_fla.popgals__mc_143)
package _fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class popgals__mc_143 extends MovieClip {
public function popgals__mc_143(){
addFrameScript(0, frame1);
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, linkHandler);
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.popgals.com/"), "_blank");
}
}
}//package _fla
Section 5
//popgals_loading_1 (_fla.popgals_loading_1)
package _fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
public dynamic class popgals_loading_1 extends MovieClip {
public var loading:MovieClip;
public var percent_txt:TextField;
public var logo_btn:SimpleButton;
public var play_btn:SimpleButton;
public function popgals_loading_1(){
addFrameScript(0, frame1, 1, frame2);
}
public function enterFrameHandler(_arg1:Event):void{
var _local2:Number;
_local2 = int(((root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal) * 100));
if (loading.currentFrame < int(((_local2 * this.loading.totalFrames) / 100))){
loading.play();
} else {
loading.stop();
};
if (loading.currentFrame == loading.totalFrames){
this.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
goNext();
};
if (_local2 < 100){
percent_txt.text = (_local2 + "%");
} else {
percent_txt.text = "";
};
}
function frame1(){
stop();
this.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
logo_btn.addEventListener(MouseEvent.CLICK, linkHandler);
}
function frame2(){
stop();
play_btn.addEventListener(MouseEvent.CLICK, playHandler);
}
public function goNext():void{
this.play();
}
public function playHandler(_arg1:MouseEvent):void{
play_btn.removeEventListener(MouseEvent.CLICK, playHandler);
MovieClip(root).play();
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.popgals.com"), "_blank");
}
}
}//package _fla
Section 6
//popgals_sp11_5 (_fla.popgals_sp11_5)
package _fla {
import flash.display.*;
public dynamic class popgals_sp11_5 extends MovieClip {
public function popgals_sp11_5(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package _fla
Section 7
//popgals_sp13_14 (_fla.popgals_sp13_14)
package _fla {
import flash.display.*;
public dynamic class popgals_sp13_14 extends MovieClip {
public function popgals_sp13_14(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package _fla
Section 8
//popgals_sp5_6 (_fla.popgals_sp5_6)
package _fla {
import flash.display.*;
public dynamic class popgals_sp5_6 extends MovieClip {
public function popgals_sp5_6(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package _fla
Section 9
//popgals_sp9_12 (_fla.popgals_sp9_12)
package _fla {
import flash.display.*;
public dynamic class popgals_sp9_12 extends MovieClip {
public function popgals_sp9_12(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package _fla
Section 10
//Timeline_121 (_fla.Timeline_121)
package _fla {
import flash.display.*;
public dynamic class Timeline_121 extends MovieClip {
public function Timeline_121(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package _fla
Section 11
//Timeline_122 (_fla.Timeline_122)
package _fla {
import flash.display.*;
public dynamic class Timeline_122 extends MovieClip {
public function Timeline_122(){
addFrameScript(45, frame46);
}
function frame46(){
stop();
}
}
}//package _fla
Section 12
//Timeline_204 (_fla.Timeline_204)
package _fla {
import flash.display.*;
public dynamic class Timeline_204 extends MovieClip {
public var m7_10:MovieClip;
public var m7_11:MovieClip;
public var m7_12:MovieClip;
public var m7_2:MovieClip;
public var m7_4:MovieClip;
public var m7_6:MovieClip;
public var m7_5:MovieClip;
public var m7_7:MovieClip;
public var m7_9:MovieClip;
public var m7_8:MovieClip;
public var m7_1:MovieClip;
public var m7_3:MovieClip;
}
}//package _fla
Section 13
//Timeline_206 (_fla.Timeline_206)
package _fla {
import flash.display.*;
public dynamic class Timeline_206 extends MovieClip {
public var m8_1:MovieClip;
public var m8_3:MovieClip;
public var m8_6:MovieClip;
public var m8_2:MovieClip;
public var m8_5:MovieClip;
public var m8_4:MovieClip;
}
}//package _fla
Section 14
//Timeline_208 (_fla.Timeline_208)
package _fla {
import flash.display.*;
public dynamic class Timeline_208 extends MovieClip {
public var m6_9:MovieClip;
public var m6_2:MovieClip;
public var m6_1:MovieClip;
public var m6_3:MovieClip;
public var m6_4:MovieClip;
public var m6_6:MovieClip;
public var m6_7:MovieClip;
public var m6_5:MovieClip;
public var m6_8:MovieClip;
}
}//package _fla
Section 15
//Timeline_210 (_fla.Timeline_210)
package _fla {
import flash.display.*;
public dynamic class Timeline_210 extends MovieClip {
public var m5_1:MovieClip;
public var m5_2:MovieClip;
public var m5_3:MovieClip;
public var m5_5:MovieClip;
public var m5_4:MovieClip;
public var m5_6:MovieClip;
}
}//package _fla
Section 16
//Timeline_212 (_fla.Timeline_212)
package _fla {
import flash.display.*;
public dynamic class Timeline_212 extends MovieClip {
public var m9_1:MovieClip;
public var m9_5:MovieClip;
public var m9_6:MovieClip;
public var m9_8:MovieClip;
public var m9_7:MovieClip;
public var m9_9:MovieClip;
public var m9_2:MovieClip;
public var m9_4:MovieClip;
public var m9_3:MovieClip;
public var m9_10:MovieClip;
}
}//package _fla
Section 17
//Timeline_214 (_fla.Timeline_214)
package _fla {
import flash.display.*;
public dynamic class Timeline_214 extends MovieClip {
public var m3_1:MovieClip;
public var m3_2:MovieClip;
public var m3_3:MovieClip;
public var m3_4:MovieClip;
}
}//package _fla
Section 18
//Timeline_215 (_fla.Timeline_215)
package _fla {
import flash.display.*;
public dynamic class Timeline_215 extends MovieClip {
public var m11_3:f3;
public var m11_4:f2;
public var m11_1:f1;
public var m11_2:fff;
}
}//package _fla
Section 19
//Timeline_223 (_fla.Timeline_223)
package _fla {
import flash.display.*;
public dynamic class Timeline_223 extends MovieClip {
public var m2_2:首饰;
public var m1_2:耳环;
public var m1_5:耳环;
public var m1_1:耳环;
public var m1_3:耳环;
public var m1_4:耳环;
public var m2_1:首饰;
public var m2_3:首饰;
public var m2_4:首饰;
public var m2_5:首饰;
}
}//package _fla
Section 20
//Timeline_233 (_fla.Timeline_233)
package _fla {
import flash.display.*;
public dynamic class Timeline_233 extends MovieClip {
public var 新符号_1:MovieClip;
}
}//package _fla
Section 21
//Timeline_234 (_fla.Timeline_234)
package _fla {
import flash.display.*;
public dynamic class Timeline_234 extends MovieClip {
public var 新符号_1:MovieClip;
}
}//package _fla
Section 22
//Timeline_235 (_fla.Timeline_235)
package _fla {
import flash.display.*;
public dynamic class Timeline_235 extends MovieClip {
public var 新符号_1:MovieClip;
}
}//package _fla
Section 23
//Timeline_237 (_fla.Timeline_237)
package _fla {
import flash.display.*;
public dynamic class Timeline_237 extends MovieClip {
public var m10_3:MovieClip;
public var m10_1:MovieClip;
public var m10_2:MovieClip;
}
}//package _fla
Section 24
//Timeline_241 (_fla.Timeline_241)
package _fla {
import flash.display.*;
public dynamic class Timeline_241 extends MovieClip {
public var m4_3:MovieClip;
public var m4_4:MovieClip;
public var m4_2:MovieClip;
public var m4_1:MovieClip;
public var m11_3:MovieClip;
public var m11_4:MovieClip;
public var m11_1:MovieClip;
public var m11_2:MovieClip;
}
}//package _fla
Section 25
//Timeline_242 (_fla.Timeline_242)
package _fla {
import flash.display.*;
public dynamic class Timeline_242 extends MovieClip {
public function Timeline_242(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 26
//Timeline_243 (_fla.Timeline_243)
package _fla {
import flash.display.*;
public dynamic class Timeline_243 extends MovieClip {
public function Timeline_243(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 27
//Timeline_244 (_fla.Timeline_244)
package _fla {
import flash.display.*;
public dynamic class Timeline_244 extends MovieClip {
public function Timeline_244(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 28
//Timeline_245 (_fla.Timeline_245)
package _fla {
import flash.display.*;
public dynamic class Timeline_245 extends MovieClip {
public function Timeline_245(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 29
//Timeline_252 (_fla.Timeline_252)
package _fla {
import flash.display.*;
public dynamic class Timeline_252 extends MovieClip {
public function Timeline_252(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package _fla
Section 30
//Timeline_278 (_fla.Timeline_278)
package _fla {
import flash.display.*;
public dynamic class Timeline_278 extends MovieClip {
public var mk10:body;
public var mk5:眼睫毛;
public var mk9:嘴;
public var mk6:眼睛;
public var mk2:首饰;
public var mk8:腮红;
public var mk1:耳环;
public var mk7:眼影;
public var mk3_1:头发啊;
public var mk3_2:头发上;
}
}//package _fla
Section 31
//Timeline_349 (_fla.Timeline_349)
package _fla {
import flash.display.*;
import flash.events.*;
public dynamic class Timeline_349 extends MovieClip {
public function Timeline_349(){
addFrameScript(24, frame25, 25, frame26);
}
function frame25(){
dispatchEvent(new Event("mOver"));
}
function frame26(){
stop();
}
}
}//package _fla
Section 32
//Timeline_353 (_fla.Timeline_353)
package _fla {
import flash.display.*;
public dynamic class Timeline_353 extends MovieClip {
public function Timeline_353(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package _fla
Section 33
//Timeline_356 (_fla.Timeline_356)
package _fla {
import flash.display.*;
public dynamic class Timeline_356 extends MovieClip {
public function Timeline_356(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package _fla
Section 34
//Timeline_358 (_fla.Timeline_358)
package _fla {
import flash.display.*;
public dynamic class Timeline_358 extends MovieClip {
public function Timeline_358(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package _fla
Section 35
//Timeline_360 (_fla.Timeline_360)
package _fla {
import flash.display.*;
import flash.events.*;
public dynamic class Timeline_360 extends MovieClip {
public function Timeline_360(){
addFrameScript(20, frame21, 21, frame22);
}
function frame22(){
stop();
}
function frame21(){
dispatchEvent(new Event("mOver"));
}
}
}//package _fla
Section 36
//Timeline_366 (_fla.Timeline_366)
package _fla {
import flash.display.*;
import flash.events.*;
public dynamic class Timeline_366 extends MovieClip {
public function Timeline_366(){
addFrameScript(19, frame20, 20, frame21);
}
function frame20(){
dispatchEvent(new Event("mOver"));
}
function frame21(){
stop();
}
}
}//package _fla
Section 37
//Timeline_367 (_fla.Timeline_367)
package _fla {
import flash.display.*;
import flash.events.*;
public dynamic class Timeline_367 extends MovieClip {
public function Timeline_367(){
addFrameScript(37, frame38, 38, frame39);
}
function frame38(){
dispatchEvent(new Event("mOver"));
}
function frame39(){
stop();
}
}
}//package _fla
Section 38
//Timeline_368 (_fla.Timeline_368)
package _fla {
import flash.display.*;
import flash.events.*;
public dynamic class Timeline_368 extends MovieClip {
public function Timeline_368(){
addFrameScript(14, frame15, 15, frame16);
}
function frame15(){
dispatchEvent(new Event("mOver"));
}
function frame16(){
stop();
}
}
}//package _fla
Section 39
//Timeline_397 (_fla.Timeline_397)
package _fla {
import flash.display.*;
public dynamic class Timeline_397 extends MovieClip {
public var 新符号_1:MovieClip;
}
}//package _fla
Section 40
//Timeline_400 (_fla.Timeline_400)
package _fla {
import flash.display.*;
public dynamic class Timeline_400 extends MovieClip {
public var dp1:coats;
public var dp2:coats2;
public var dp3:shoes;
public var mk10:body;
public var mk5:眼睫毛;
public var mk9:嘴;
public var mk6:眼睛;
public var mk2:首饰;
public var mk8:腮红副本;
public var mk1:耳环;
public var mk7:眼影副本;
public var mk10_1:手啊手;
public var mk3_1:头发啊;
public var mk3_2:头发上;
}
}//package _fla
Section 41
//Timeline_410 (_fla.Timeline_410)
package _fla {
import flash.display.*;
public dynamic class Timeline_410 extends MovieClip {
public function Timeline_410(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package _fla
Section 42
//Timeline_413 (_fla.Timeline_413)
package _fla {
import flash.display.*;
public dynamic class Timeline_413 extends MovieClip {
public function Timeline_413(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package _fla
Section 43
//Timeline_415 (_fla.Timeline_415)
package _fla {
import flash.display.*;
public dynamic class Timeline_415 extends MovieClip {
public var 新建符号:MovieClip;
public var 新建符号_1:MovieClip;
}
}//package _fla
Section 44
//Timeline_449 (_fla.Timeline_449)
package _fla {
import flash.display.*;
public dynamic class Timeline_449 extends MovieClip {
public function Timeline_449(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package _fla
Section 45
//Timeline_451 (_fla.Timeline_451)
package _fla {
import flash.display.*;
public dynamic class Timeline_451 extends MovieClip {
public function Timeline_451(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 46
//Config (config.Config)
package config {
import flash.display.*;
import mainGame.ui.*;
public class Config {
public static const MAKEUP:String = "makeup";
public static const FRAME_DRESSUP:String = "dressup";
public static const FRAME_START:String = "start";
public static const MOREGAME_URI:String = "http://www.popgals.com/";
public static const FRAME_SHOW:String = "show";
public static const DRESSUP:String = "dressup";
public static const FRAME_MAKEUP:String = "makeup";
public static var motionArr:Array = [];
public static var makelist:Array = [];
public static var dresslist:Array = [];
public static var makeup_data:Array = [];
public static var makeupObjList:MakeupObjList = null;
public static var dressup_data:Array = [];
public static function broadcast(_arg1:String):void{
var _local2:Array;
var _local3:MovieClip;
if (_arg1 == MAKEUP){
_local2 = makelist;
} else {
_local2 = dresslist;
};
for each (_local3 in _local2) {
if (_local3){
_local3.update();
};
};
}
public static function updateMakeUpObjList(_arg1:int):void{
if (!makeupObjList){
return;
};
makeupObjList.updateShow(_arg1);
}
public static function showMotion(_arg1:int):void{
motionArr[_arg1].gotoAndPlay(1);
}
public static function changeValue(_arg1:String, _arg2:int, _arg3:int, _arg4:Boolean=true):void{
var _local5:Array;
if (_arg1 == MAKEUP){
_local5 = makeup_data;
} else {
_local5 = dressup_data;
};
_local5[_arg2] = _arg3;
if (_arg4){
broadcast(_arg1);
};
}
public static function removeListener(_arg1:MovieClip, _arg2:String):void{
var _local3:Array;
if (_arg2 == MAKEUP){
_local3 = makelist;
} else {
_local3 = dresslist;
};
if (_local3.indexOf(_arg1) != -1){
_local3.splice(_local3.indexOf(_arg1), 1);
};
}
public static function reset():void{
makeup_data = [];
dressup_data = [];
motionArr = [];
makeupObjList = null;
}
public static function addListener(_arg1:MovieClip, _arg2:String):void{
var _local3:Array;
if (_arg2 == MAKEUP){
_local3 = makelist;
} else {
_local3 = dresslist;
};
if (_local3.indexOf(_arg1) == -1){
_local3.push(_arg1);
};
}
}
}//package config
Section 47
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
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 set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
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 killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 48
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a: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"];
}
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--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_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);
}
}
}//package gs.plugins
Section 49
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
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 set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
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);
}
}
}//package gs.plugins
Section 50
//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 51
//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 _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
protected var _target:DisplayObject;
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"];
}
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;
}
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{
var _local4:ColorTransform;
if (!(_arg1 is DisplayObject)){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package gs.plugins
Section 52
//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 round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
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 53
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class VisiblePlugin extends TweenPlugin {
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
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);
}
}
}//package gs.plugins
Section 54
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
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 set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
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);
}
}
}//package gs.plugins
Section 55
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 56
//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 57
//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 delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started: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 vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime: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){
var _local4:int;
super();
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));
_local4 = ((((_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 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 _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_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 get enabled():Boolean{
return ((this.gc) ? false : true);
}
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 _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = 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 _local2:Dictionary;
var _local3:Object;
_local2 = 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 58
//BaseCtrl (mainGame.controls.BaseCtrl)
package mainGame.controls {
import flash.display.*;
public class BaseCtrl {
protected var container:MovieClip;
public function BaseCtrl(_arg1:MovieClip){
container = _arg1;
installUI();
installEvent();
}
protected function uninstallEvent():void{
}
protected function installUI():void{
}
protected function destroy():void{
uninstallEvent();
uninstallUI();
}
protected function uninstallUI():void{
}
protected function installEvent():void{
}
}
}//package mainGame.controls
Section 59
//DressupCtrl (mainGame.controls.DressupCtrl)
package mainGame.controls {
import flash.display.*;
import flash.events.*;
import config.*;
import mainGame.ui.*;
import flash.net.*;
public class DressupCtrl extends BaseCtrl {
private var resetBtn:SimpleButton;
private var showBtn:SimpleButton;
private var dressupList:DressupObjList;
private var makeupBtn:SimpleButton;
private var moreGameBtn:SimpleButton;
public function DressupCtrl(_arg1:MovieClip){
super(_arg1);
}
private function moreGameHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(Config.MOREGAME_URI), "_blank");
}
private function showHandler(_arg1:MouseEvent):void{
destroy();
container.gotoAndStop(Config.FRAME_SHOW);
}
override protected function uninstallUI():void{
super.uninstallUI();
makeupBtn = null;
resetBtn = null;
moreGameBtn = null;
showBtn = null;
}
override protected function uninstallEvent():void{
super.uninstallEvent();
makeupBtn.removeEventListener(MouseEvent.CLICK, makeupHandler);
resetBtn.removeEventListener(MouseEvent.CLICK, resetHandler);
moreGameBtn.removeEventListener(MouseEvent.CLICK, moreGameHandler);
showBtn.removeEventListener(MouseEvent.CLICK, showHandler);
}
private function makeupHandler(_arg1:MouseEvent):void{
destroy();
container.gotoAndStop(Config.FRAME_MAKEUP);
}
private function resetHandler(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
_local2 = Config.dressup_data.length;
_local3 = 0;
while (_local3 < _local2) {
Config.dressup_data[_local3] = -1;
_local3++;
};
Config.broadcast(Config.DRESSUP);
dressupList.reset();
}
override protected function installUI():void{
super.installUI();
makeupBtn = container["makeupBtn"];
resetBtn = container["resetBtn2"];
moreGameBtn = container["moreGameBtn1"];
showBtn = container["showBtn"];
dressupList = container["dressupList"];
}
override protected function installEvent():void{
super.installEvent();
makeupBtn.addEventListener(MouseEvent.CLICK, makeupHandler);
resetBtn.addEventListener(MouseEvent.CLICK, resetHandler);
moreGameBtn.addEventListener(MouseEvent.CLICK, moreGameHandler);
showBtn.addEventListener(MouseEvent.CLICK, showHandler);
}
}
}//package mainGame.controls
Section 60
//MakeupCtrl (mainGame.controls.MakeupCtrl)
package mainGame.controls {
import flash.display.*;
import flash.events.*;
import config.*;
import flash.net.*;
public class MakeupCtrl extends BaseCtrl {
private var motion9:MovieClip;
private var resetBtn:SimpleButton;
private var motion7:MovieClip;
private var motion8:MovieClip;
private var dressupBtn:SimpleButton;
private var moreGameBtn:SimpleButton;
private var motion3:MovieClip;
private var motion5:MovieClip;
public function MakeupCtrl(_arg1:MovieClip){
super(_arg1);
}
override protected function installEvent():void{
super.installEvent();
dressupBtn.addEventListener(MouseEvent.CLICK, dressupHandler);
resetBtn.addEventListener(MouseEvent.CLICK, resetHandler);
moreGameBtn.addEventListener(MouseEvent.CLICK, moreGameHandler);
}
override protected function uninstallEvent():void{
super.uninstallEvent();
dressupBtn.removeEventListener(MouseEvent.CLICK, dressupHandler);
resetBtn.removeEventListener(MouseEvent.CLICK, resetHandler);
moreGameBtn.removeEventListener(MouseEvent.CLICK, moreGameHandler);
}
private function dressupHandler(_arg1:MouseEvent):void{
destroy();
container.gotoAndStop(Config.FRAME_DRESSUP);
}
private function moreGameHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(Config.MOREGAME_URI), "_blank");
}
private function mOverHandler(_arg1:Event):void{
var _local2:String;
var _local3:int;
_local2 = _arg1.currentTarget.name;
_local3 = int(_local2.substr(6));
Config.changeValue(Config.MAKEUP, _local3, Config.makeup_data[_local3], true);
}
override protected function installUI():void{
super.installUI();
dressupBtn = container["dressupBtn"];
resetBtn = container["resetBtn1"];
moreGameBtn = container["moreGameBtn1"];
motion3 = container["motion3"];
motion3.gotoAndStop(motion3.totalFrames);
motion5 = container["motion5"];
motion5.gotoAndStop(motion5.totalFrames);
motion7 = container["motion7"];
motion7.gotoAndStop(motion7.totalFrames);
motion8 = container["motion8"];
motion8.gotoAndStop(motion8.totalFrames);
motion9 = container["motion9"];
motion9.gotoAndStop(motion9.totalFrames);
Config.motionArr[3] = motion3;
Config.motionArr[5] = motion5;
Config.motionArr[7] = motion7;
Config.motionArr[8] = motion8;
Config.motionArr[9] = motion9;
motion3.addEventListener("mOver", mOverHandler);
motion5.addEventListener("mOver", mOverHandler);
motion7.addEventListener("mOver", mOverHandler);
motion8.addEventListener("mOver", mOverHandler);
motion9.addEventListener("mOver", mOverHandler);
}
override protected function uninstallUI():void{
super.uninstallUI();
dressupBtn = null;
resetBtn = null;
moreGameBtn = null;
}
private function resetHandler(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
_local2 = Config.makeup_data.length;
_local3 = 0;
while (_local3 < _local2) {
Config.makeup_data[_local3] = -1;
_local3++;
};
Config.broadcast(Config.MAKEUP);
}
}
}//package mainGame.controls
Section 61
//ShowCtrl (mainGame.controls.ShowCtrl)
package mainGame.controls {
import flash.display.*;
import flash.events.*;
import config.*;
import flash.net.*;
public class ShowCtrl extends BaseCtrl {
private var replayBtn:SimpleButton;
private var moreGameBtn:SimpleButton;
public function ShowCtrl(_arg1:MovieClip){
super(_arg1);
}
private function moreGameHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(Config.MOREGAME_URI), "_blank");
}
override protected function uninstallUI():void{
super.uninstallUI();
replayBtn = null;
moreGameBtn = null;
}
override protected function uninstallEvent():void{
super.uninstallEvent();
replayBtn.removeEventListener(MouseEvent.CLICK, playHandler);
moreGameBtn.removeEventListener(MouseEvent.CLICK, moreGameHandler);
}
private function playHandler(_arg1:MouseEvent):void{
destroy();
Config.reset();
container.gotoAndStop(Config.FRAME_START);
}
override protected function installUI():void{
super.installUI();
replayBtn = container["replayBtn"];
moreGameBtn = container["moreGameBtn1"];
}
override protected function installEvent():void{
super.installEvent();
replayBtn.addEventListener(MouseEvent.CLICK, playHandler);
moreGameBtn.addEventListener(MouseEvent.CLICK, moreGameHandler);
}
}
}//package mainGame.controls
Section 62
//StartPage (mainGame.controls.StartPage)
package mainGame.controls {
import flash.display.*;
import flash.events.*;
import config.*;
import flash.net.*;
public class StartPage extends BaseCtrl {
private var playBtn:SimpleButton;
private var moreGameBtn:SimpleButton;
public function StartPage(_arg1:MovieClip){
super(_arg1);
}
private function moreGameHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(Config.MOREGAME_URI), "_blank");
}
override protected function installUI():void{
super.installUI();
playBtn = container["playBtn"];
moreGameBtn = container["moreGameBtn"];
}
override protected function uninstallUI():void{
super.uninstallUI();
playBtn = null;
moreGameBtn = null;
}
override protected function uninstallEvent():void{
super.uninstallEvent();
playBtn.removeEventListener(MouseEvent.CLICK, playHandler);
moreGameBtn.removeEventListener(MouseEvent.CLICK, moreGameHandler);
}
private function playHandler(_arg1:MouseEvent):void{
destroy();
container.gotoAndStop(Config.FRAME_MAKEUP);
}
override protected function installEvent():void{
super.installEvent();
playBtn.addEventListener(MouseEvent.CLICK, playHandler);
moreGameBtn.addEventListener(MouseEvent.CLICK, moreGameHandler);
}
}
}//package mainGame.controls
Section 63
//AbstractPart (mainGame.ui.AbstractPart)
package mainGame.ui {
import flash.display.*;
import flash.events.*;
import config.*;
public class AbstractPart extends MovieClip {
public var mk11_1:f1;
public var mk11_2:f2;
public var mk4_3:挑染3;
public var mk4_2:挑染2;
public var mk11_4:fff;
public var mk4_1:挑染1;
public var mk4_4:挑染4;
private var type:String;// = ""
public var mk11_3:f3;
private var data:Array;// = null
public var 新符号_1:MovieClip;
private var index:int;
public function AbstractPart(){
data = null;
type = "";
super();
if (stage){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init);
};
}
protected function init(_arg1:Event=null):void{
var _local2:String;
removeEventListener(Event.ADDED_TO_STAGE, init);
addEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
if (this.name != ""){
_local2 = this.name;
index = getIndex(_local2);
switch (_local2.substr(0, 2).toLowerCase()){
case "mk":
data = Config.makeup_data;
type = Config.MAKEUP;
break;
case "dp":
data = Config.dressup_data;
type = Config.DRESSUP;
break;
default:
return;
};
Config.addListener(this, type);
update();
};
}
protected function getIndex(_arg1:String):int{
var _local2:int;
_local2 = _arg1.length;
if (_arg1.indexOf("_") != -1){
_local2 = _arg1.indexOf("_");
};
return (int(_arg1.substring(2, _local2)));
}
private function getData():int{
if (data == null){
return (-1);
};
return (((data[index] == null)) ? -1 : data[index]);
}
private function onRemoved(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
if (type == ""){
return;
};
Config.removeListener(this, type);
}
public function update():void{
var _local1:int;
_local1 = getData();
if (_local1 == -1){
this.gotoAndStop(this.totalFrames);
} else {
this.gotoAndStop(_local1);
};
}
}
}//package mainGame.ui
Section 64
//BGMusic (mainGame.ui.BGMusic)
package mainGame.ui {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class BGMusic extends MovieClip {
public var m_mc:MovieClip;
private static var channel:SoundChannel = null;
private static var position:Number = 0;
private static var soundPlay:Boolean = true;
private static var sound:Sound = null;
public function BGMusic(){
this.mouseChildren = false;
this.buttonMode = true;
if (stage){
init();
} else {
addEventListener(Event.ENTER_FRAME, init);
};
this.addEventListener(MouseEvent.CLICK, toggleSound);
}
private function closeSound():void{
soundPlay = false;
this["m_mc"].gotoAndStop(1);
if (channel){
position = channel.position;
channel.stop();
channel.removeEventListener(Event.SOUND_COMPLETE, onComplete);
};
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.ENTER_FRAME, init);
if (!sound){
sound = new bg_sound();
};
if (soundPlay){
showSound();
} else {
closeSound();
};
}
private function showSound():void{
soundPlay = true;
this["m_mc"].play();
if (channel){
channel.removeEventListener(Event.SOUND_COMPLETE, onComplete);
channel.stop();
};
channel = sound.play(position);
channel.addEventListener(Event.SOUND_COMPLETE, onComplete);
}
private function toggleSound(_arg1:MouseEvent):void{
if (soundPlay){
closeSound();
} else {
showSound();
};
}
private function onComplete(_arg1:Event):void{
if (channel){
channel.stop();
};
position = 0;
channel = sound.play(position);
channel.addEventListener(Event.SOUND_COMPLETE, onComplete);
}
private function onRemoved(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
this.removeEventListener(MouseEvent.CLICK, toggleSound);
if (soundPlay){
closeSound();
soundPlay = true;
};
}
}
}//package mainGame.ui
Section 65
//DressupObjList (mainGame.ui.DressupObjList)
package mainGame.ui {
import flash.display.*;
import st.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.filters.*;
import config.*;
public class DressupObjList extends MovieClip {
private var rg3:RadioGroup;
private var unselObj:InteractiveObject;
public var d3_3:MovieClip;
public var d3_4:MovieClip;
public var d3_5:MovieClip;
public var d3_1:MovieClip;
public var d1_10:coats;
private var rr:RollOverAndOut;
private var dragItem:MovieClip;
public var d3_2:MovieClip;
public var d3_6:MovieClip;
public var d2_4:coats2;
public var d2_2:coats2;
public var d2_1:coats2;
public var d2_6:coats2;
public var d2_7:coats2;
private var rg2:RadioGroup;
public var d2_3:coats2;
public var d2_5:coats2;
private var rg1:RadioGroup;
public var d1_3:coats;
public var d1_4:coats;
public var d1_5:coats;
public var d1_7:coats;
public var d1_8:coats;
public var d1_9:coats;
public var d1_2:coats;
public var d1_6:coats;
public var d1_1:coats;
public function DressupObjList(){
if (stage){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init);
};
}
private function overFun(_arg1:InteractiveObject):void{
_arg1.filters = [getBitmapFilter()];
}
private function outFun(_arg1:InteractiveObject):void{
_arg1.filters = [];
}
private function init(_arg1:Event=null):void{
var _local2:int;
removeEventListener(Event.ADDED_TO_STAGE, init);
addEventListener(Event.REMOVED_FROM_STAGE, destroy);
gotoAndStopByName(this, "d1_", 1);
gotoAndStopByName(this, "d2_", 1);
gotoAndStopByName(this, "d3_", 1);
rg1 = new RadioGroup();
rg2 = new RadioGroup();
rg3 = new RadioGroup();
_local2 = 1;
while (_local2 <= 10) {
rg1.addItem(this[("d1_" + _local2)]);
_local2++;
};
_local2 = 1;
while (_local2 <= 7) {
rg2.addItem(this[("d2_" + _local2)]);
_local2++;
};
_local2 = 1;
while (_local2 <= 6) {
rg3.addItem(this[("d3_" + _local2)]);
_local2++;
};
rg1.setCallback(selFun, unselFun, null);
rg2.setCallback(selFun, unselFun, null);
rg3.setCallback(selFun, unselFun, null);
rg1.allowDup = true;
rg2.allowDup = true;
rg3.allowDup = true;
rg1.start();
rg2.start();
rg3.start();
rr = RollOverAndOut.parse(this, overFun, outFun);
rr.start();
}
private function destroy(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
rg1.destroy();
rg2.destroy();
rg3.destroy();
rg1 = null;
rg2 = null;
rg3 = null;
}
private function upHandler(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
_local2 = int(dragItem.name.substr(1, 1));
_local3 = int(dragItem.name.substr(3));
if (dragItem.hitTestObject(MovieClip(parent).body2)){
if ((((_local2 == 2)) && ((Config.dressup_data[1] > 7)))){
Config.changeValue(Config.DRESSUP, 1, -1, true);
if (rg1.getSelectedItem() != null){
rg1.getSelectedItem().visible = true;
};
};
Config.changeValue(Config.DRESSUP, _local2, _local3, true);
if ((((_local2 == 1)) && ((_local3 > 7)))){
Config.changeValue(Config.DRESSUP, 2, -1);
if (rg2.getSelectedItem() != null){
rg2.getSelectedItem().visible = true;
};
};
unselObj.visible = true;
} else {
if (_local2 == 1){
rg1.getSelectedItem().visible = true;
} else {
if (_local2 == 2){
rg2.getSelectedItem().visible = true;
} else {
rg3.getSelectedItem().visible = true;
};
};
};
stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveHandler);
stage.removeEventListener(MouseEvent.MOUSE_UP, upHandler);
dragItem.parent.removeChild(dragItem);
dragItem = null;
}
private function moveHandler(_arg1:MouseEvent):void{
dragItem.x = (stage.mouseX - dragItem.xo);
dragItem.y = (stage.mouseY - dragItem.yo);
}
private function unselFun(_arg1:InteractiveObject):void{
unselObj = _arg1;
}
public function reset():void{
rg1.execute(showObj);
rg2.execute(showObj);
rg3.execute(showObj);
}
private function showObj(_arg1:InteractiveObject):void{
_arg1.visible = true;
}
private function selFun(_arg1:InteractiveObject):void{
var _local2:int;
var _local3:int;
var _local4:Class;
var _local5:Point;
_local2 = int(_arg1.name.substr(1, 1));
_local3 = int(_arg1.name.substr(3));
if (_local2 == 1){
_local4 = coats;
} else {
if (_local2 == 2){
_local4 = coats2;
} else {
_local4 = shoes;
};
};
_local5 = new Point(_arg1.x, _arg1.y);
_local5 = this.localToGlobal(_local5);
dragItem = (new (_local4) as MovieClip);
dragItem.gotoAndStop(_local3);
dragItem.mouseChildren = false;
dragItem.mouseEnabled = false;
dragItem.name = _arg1.name;
dragItem.x = _local5.x;
dragItem.y = _local5.y;
dragItem.xo = (stage.mouseX - dragItem.x);
dragItem.yo = (stage.mouseY - dragItem.y);
this.parent.addChild(dragItem);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveHandler);
stage.addEventListener(MouseEvent.MOUSE_UP, upHandler);
_arg1.visible = false;
}
private function getBitmapFilter():BitmapFilter{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Boolean;
var _local7:Boolean;
var _local8:Number;
_local1 = 0xFFFFFF;
_local2 = 1;
_local3 = 5;
_local4 = 5;
_local5 = 2;
_local6 = false;
_local7 = false;
_local8 = BitmapFilterQuality.HIGH;
return (new GlowFilter(_local1, _local2, _local3, _local4, _local5, _local8, _local6, _local7));
}
}
}//package mainGame.ui
Section 66
//MakeupMenu1 (mainGame.ui.MakeupMenu1)
package mainGame.ui {
import flash.display.*;
import flash.events.*;
import gs.*;
import config.*;
public class MakeupMenu1 extends MovieClip {
public var nextPage:SimpleButton;
private var initX:Number;
public var toolPanel:MovieClip;
public var prevPage:SimpleButton;
private var w:Number;// = 324
private var page:int;// = 1
private var pages:int;// = 2
public function MakeupMenu1(){
w = 324;
page = 1;
pages = 2;
super();
if (stage){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init);
};
}
private function init(_arg1:Event=null):void{
var _local2:int;
removeEventListener(Event.ADDED_TO_STAGE, init);
addEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
initX = toolPanel.x;
prevPage.addEventListener(MouseEvent.CLICK, pageHandler);
nextPage.addEventListener(MouseEvent.CLICK, pageHandler);
prevPage.visible = false;
_local2 = 1;
while (_local2 <= 8) {
toolPanel[("b" + _local2)].addEventListener(MouseEvent.CLICK, itemHandler);
_local2++;
};
}
private function onRemoved(_arg1:Event):void{
var _local2:int;
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
prevPage.removeEventListener(MouseEvent.CLICK, pageHandler);
nextPage.removeEventListener(MouseEvent.CLICK, pageHandler);
_local2 = 1;
while (_local2 <= 8) {
toolPanel[("b" + _local2)].removeEventListener(MouseEvent.CLICK, itemHandler);
_local2++;
};
}
private function itemHandler(_arg1:MouseEvent):void{
Config.updateMakeUpObjList(int(_arg1.currentTarget.name.substr(1)));
}
private function pageHandler(_arg1:MouseEvent):void{
var _local2:int;
if (_arg1.currentTarget == prevPage){
_local2 = (page - 1);
} else {
_local2 = (page + 1);
};
_local2 = Math.max(1, Math.min(pages, _local2));
if (_local2 == page){
return;
};
page = _local2;
prevPage.visible = (page > 1);
nextPage.visible = (page < pages);
TweenLite.to(toolPanel, 0.5, {x:(initX - ((page - 1) * w))});
}
}
}//package mainGame.ui
Section 67
//MakeupObjList (mainGame.ui.MakeupObjList)
package mainGame.ui {
import flash.display.*;
import st.utils.*;
import flash.events.*;
import gs.*;
import flash.filters.*;
import config.*;
public class MakeupObjList extends MovieClip {
private var selectedIndex:int;// = 0
public var b11:MovieClip;
public var b2:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var b6:MovieClip;
public var b7:MovieClip;
public var b1:MovieClip;
public var nextPage:SimpleButton;
public var b3:MovieClip;
public var b8:MovieClip;
private var rg:RadioGroup;
private var initX:Number;
public var prevPage:SimpleButton;
private var pageArr:Array;
private var rr:RollOverAndOut;
private var w:Number;
private var page:int;
private var pages:int;
public function MakeupObjList(){
selectedIndex = 0;
pageArr = [4, 2, 2, 3, 1, 3, 3, 5];
w = (126.5 + 6.5);
super();
if (stage){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init);
};
}
private function showPrevNext():void{
prevPage.visible = (page > 1);
nextPage.visible = (page < pages);
}
private function b11Mask(_arg1:int):void{
var _local2:int;
_local2 = 1;
while (_local2 <= 4) {
b11[("m11_" + _local2)].gotoAndStop(_arg1);
_local2++;
};
}
private function init(_arg1:Event=null):void{
var _local2:int;
removeEventListener(Event.ADDED_TO_STAGE, init);
addEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
Config.makeupObjList = this;
prevPage.addEventListener(MouseEvent.CLICK, pageHandler);
nextPage.addEventListener(MouseEvent.CLICK, pageHandler);
_local2 = 1;
while (_local2 <= 8) {
this[("b" + _local2)].visible = false;
this[("b" + _local2)].xx = this[("b" + _local2)].x;
_local2++;
};
b11Mask(1);
gotoAndStopByName(b8, "m1_");
gotoAndStopByName(b8, "m2_");
gotoAndStopByName(b1, "m3_");
gotoAndStopByName(b6, "m9_");
gotoAndStopByName(b3, "m5_");
gotoAndStopByName(b4, "m6_");
gotoAndStopByName(b5, "m8_");
gotoAndStopByName(b2, "m7_");
gotoAndStopByName(b11, "m4_");
rg = RadioGroup.parse(b1, selFunc, unselFunc, null);
rr = RollOverAndOut.parse(b1, overFunc, outFunc);
_local2 = 2;
while (_local2 <= 8) {
rg.parseContainer(this[("b" + _local2.toString())]);
rr.parseContainer(this[("b" + _local2.toString())]);
_local2++;
};
rg.parseContainer(b11);
rr.parseContainer(b11);
rg.start();
rr.start();
updateShow(1);
}
private function outFunc(_arg1:InteractiveObject):void{
_arg1.filters = [];
}
private function selFunc(_arg1:InteractiveObject):void{
var _local2:String;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = _arg1.name;
_local3 = _local2.indexOf("_");
_local4 = int(_local2.substr(1, (_local3 - 1)));
_local5 = int(_local2.substr((_local3 + 1)));
if (_local4 == 11){
b1[("m3_" + page)][("m11_" + page)].gotoAndStop(_local5);
if (Config.makeup_data[3] != b1[("m3_" + page)].currentFrame){
Config.changeValue(Config.MAKEUP, 3, b1[("m3_" + page)].currentFrame, false);
Config.showMotion(3);
};
};
if ((((((((((_local4 == 3)) || ((_local4 == 5)))) || ((_local4 == 7)))) || ((_local4 == 8)))) || ((_local4 == 9)))){
Config.changeValue(Config.MAKEUP, _local4, _local5, false);
if (_local4 == 3){
Config.changeValue(Config.MAKEUP, 11, b1[("m3_" + page)][("m11_" + page)].currentFrame, false);
};
Config.showMotion(_local4);
} else {
Config.changeValue(Config.MAKEUP, _local4, _local5, true);
};
}
private function getBitmapFilter():BitmapFilter{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Boolean;
var _local7:Boolean;
var _local8:Number;
_local1 = 0xFFFF00;
_local2 = 1;
_local3 = 5;
_local4 = 5;
_local5 = 2;
_local6 = false;
_local7 = false;
_local8 = BitmapFilterQuality.HIGH;
return (new GlowFilter(_local1, _local2, _local3, _local4, _local5, _local8, _local6, _local7));
}
public function updateShow(_arg1:int):void{
if (selectedIndex == _arg1){
return;
};
if (selectedIndex){
this[("b" + selectedIndex)].visible = false;
if (selectedIndex == 1){
b11.visible = false;
};
};
selectedIndex = _arg1;
this[("b" + selectedIndex)].x = this[("b" + selectedIndex)].xx;
this[("b" + selectedIndex)].visible = true;
initX = this[("b" + selectedIndex)].xx;
if (selectedIndex == 1){
b11Mask(1);
b11.visible = true;
};
page = 1;
pages = pageArr[(selectedIndex - 1)];
showPrevNext();
}
private function onRemoved(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
Config.makeupObjList = null;
prevPage.removeEventListener(MouseEvent.CLICK, pageHandler);
nextPage.removeEventListener(MouseEvent.CLICK, pageHandler);
}
private function unselFunc(_arg1:InteractiveObject):void{
}
private function pageHandler(_arg1:MouseEvent):void{
var _local2:int;
if (_arg1.currentTarget == prevPage){
_local2 = (page - 1);
} else {
_local2 = (page + 1);
};
_local2 = Math.max(1, Math.min(pages, _local2));
if (_local2 == page){
return;
};
if (selectedIndex == 1){
b11Mask(_local2);
};
page = _local2;
showPrevNext();
TweenLite.to(this[("b" + selectedIndex)], 0.5, {x:(initX - ((page - 1) * w))});
}
private function overFunc(_arg1:InteractiveObject):void{
_arg1.filters = [getBitmapFilter()];
}
}
}//package mainGame.ui
Section 68
//gotoAndStopByName (st.utils.gotoAndStopByName)
package st.utils {
import flash.display.*;
public function gotoAndStopByName(_arg1:DisplayObjectContainer, _arg2:String, _arg3:int=1):void{
var _local4:MovieClip;
var _local5:int;
_local5 = _arg3;
while ((_local4 = (_arg1.getChildByName((_arg2 + _local5.toString())) as MovieClip))) {
_local4.gotoAndStop(_local5);
_local5++;
};
}
}//package st.utils
Section 69
//RadioGroup (st.utils.RadioGroup)
package st.utils {
import flash.display.*;
import flash.events.*;
public class RadioGroup {
private var unselFunc:Function;// = null
private var _index:uint;
private var list:Array;
private var clickFunc:Function;// = null
private var _item:InteractiveObject;
public var allowDup:Boolean;// = false
private var selFunc:Function;// = null
public function RadioGroup(){
selFunc = null;
unselFunc = null;
clickFunc = null;
allowDup = false;
super();
}
public function select(_arg1:InteractiveObject):void{
if (((!(allowDup)) && ((_arg1 == _item)))){
return;
};
if (_arg1 == _item){
((!((selFunc == null))) && (selFunc.apply(null, [_item])));
return;
};
if (((!((_item == null))) && (!((unselFunc == null))))){
unselFunc.apply(null, [_item]);
};
_item = _arg1;
((!((selFunc == null))) && (selFunc.apply(null, [_item])));
}
public function getSelectedItem():InteractiveObject{
return (_item);
}
public function parseContainer(_arg1:Sprite):void{
var _local2:DisplayObject;
var _local3:int;
var _local4:int;
if (_arg1.numChildren <= 1){
return;
};
_local3 = _arg1.numChildren;
_local4 = 0;
while (_local4 < _local3) {
_local2 = _arg1.getChildAt(_local4);
addItem(_local2);
_local4++;
};
}
public function addItem(_arg1:DisplayObject):void{
if (!list){
list = new Array();
};
if ((_arg1 is InteractiveObject)){
list.push((_arg1 as InteractiveObject));
};
}
public function setCallback(_arg1:Function, _arg2:Function, _arg3:Function):void{
this.selFunc = _arg1;
this.unselFunc = _arg2;
this.clickFunc = _arg3;
}
public function start():void{
var _local1:InteractiveObject;
for each (_local1 in list) {
_local1.addEventListener(MouseEvent.MOUSE_DOWN, clickHandler);
if ((_local1 is Sprite)){
(_local1 as Sprite).mouseChildren = false;
(_local1 as Sprite).buttonMode = true;
};
if (unselFunc != null){
unselFunc.apply(null, [_local1]);
};
};
}
private function clickHandler(_arg1:MouseEvent):void{
var _local2:InteractiveObject;
_local2 = (_arg1.currentTarget as InteractiveObject);
select(_local2);
}
public function execute(_arg1:Function):void{
var _local2:InteractiveObject;
for each (_local2 in list) {
_arg1(_local2);
};
}
public function destroy():void{
var _local1:InteractiveObject;
for each (_local1 in list) {
_local1.removeEventListener(MouseEvent.MOUSE_DOWN, clickHandler);
};
_local1 = null;
list = null;
clickFunc = null;
selFunc = null;
unselFunc = null;
}
public static function parse(_arg1:Sprite, _arg2:Function, _arg3:Function, _arg4:Function):RadioGroup{
var _local5:RadioGroup;
var _local6:int;
var _local7:int;
var _local8:DisplayObject;
if (_arg1.numChildren <= 1){
return (null);
};
_local5 = new (RadioGroup);
_local6 = _arg1.numChildren;
_local7 = 0;
while (_local7 < _local6) {
_local8 = _arg1.getChildAt(_local7);
_local5.addItem(_local8);
_local7++;
};
_local5.setCallback(_arg2, _arg3, _arg4);
return (_local5);
}
}
}//package st.utils
Section 70
//RollOverAndOut (st.utils.RollOverAndOut)
package st.utils {
import flash.display.*;
import flash.events.*;
public class RollOverAndOut {
private var _item:InteractiveObject;
private var overFunc:Function;// = null
private var outFunc:Function;// = null
private var list:Array;
public function RollOverAndOut(){
overFunc = null;
outFunc = null;
super();
}
public function start():void{
var _local1:InteractiveObject;
for each (_local1 in list) {
_local1.addEventListener(MouseEvent.ROLL_OVER, overHandler);
_local1.addEventListener(MouseEvent.ROLL_OUT, outHandler);
};
}
private function outHandler(_arg1:MouseEvent):void{
outFunc.apply(null, [(_arg1.currentTarget as InteractiveObject)]);
}
public function parseContainer(_arg1:DisplayObjectContainer):void{
var _local2:int;
var _local3:int;
_local2 = _arg1.numChildren;
_local3 = 0;
while (_local3 < _local2) {
var _temp1 = _local3;
_local3 = (_local3 + 1);
addItem((_arg1.getChildAt(_temp1) as InteractiveObject));
};
}
public function addItem(_arg1:InteractiveObject):void{
if (list == null){
list = new Array();
};
if ((_arg1 is InteractiveObject)){
list.push(_arg1);
};
}
public function setCallback(_arg1:Function, _arg2:Function):void{
overFunc = _arg1;
outFunc = _arg2;
}
public function destroy():void{
var _local1:InteractiveObject;
for each (_local1 in list) {
_local1.removeEventListener(MouseEvent.ROLL_OVER, overHandler);
_local1.removeEventListener(MouseEvent.ROLL_OUT, outHandler);
};
_local1 = null;
list = null;
overFunc = null;
outFunc = null;
}
private function overHandler(_arg1:MouseEvent):void{
overFunc.apply(null, [(_arg1.currentTarget as InteractiveObject)]);
}
public static function parse(_arg1:DisplayObjectContainer, _arg2:Function, _arg3:Function):RollOverAndOut{
var _local4:RollOverAndOut;
var _local5:int;
var _local6:int;
_local4 = new (RollOverAndOut);
_local4.setCallback(_arg2, _arg3);
_local5 = 0;
_local6 = _arg1.numChildren;
while (_local5 < _local6) {
var _temp1 = _local5;
_local5 = (_local5 + 1);
_local4.addItem((_arg1.getChildAt(_temp1) as InteractiveObject));
};
return (_local4);
}
}
}//package st.utils
Section 71
//ball (ball)
package {
import flash.display.*;
public dynamic class ball extends MovieClip {
public function ball(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package
Section 72
//bg_sound (bg_sound)
package {
import flash.media.*;
public dynamic class bg_sound extends Sound {
}
}//package
Section 73
//body (body)
package {
import mainGame.ui.*;
public dynamic class body extends AbstractPart {
}
}//package
Section 74
//coats (coats)
package {
import mainGame.ui.*;
public dynamic class coats extends AbstractPart {
}
}//package
Section 75
//coats2 (coats2)
package {
import mainGame.ui.*;
public dynamic class coats2 extends AbstractPart {
}
}//package
Section 76
//f1 (f1)
package {
import mainGame.ui.*;
public dynamic class f1 extends AbstractPart {
public function f1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 77
//f2 (f2)
package {
import mainGame.ui.*;
public dynamic class f2 extends AbstractPart {
public function f2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 78
//f3 (f3)
package {
import mainGame.ui.*;
public dynamic class f3 extends AbstractPart {
public function f3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 79
//fff (fff)
package {
import mainGame.ui.*;
public dynamic class fff extends AbstractPart {
public function fff(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 80
//Main (Main)
package {
import flash.display.*;
import mainGame.controls.*;
import mainGame.ui.*;
public dynamic class Main extends MovieClip {
public var moreGameBtn:SimpleButton;
public var moreGameBtn1:SimpleButton;
public var replayBtn:SimpleButton;
private var startFrame:int;// = 1
public var showBtn:SimpleButton;
public var motion5:MovieClip;
public var motion9:MovieClip;
public var motion3:MovieClip;
public var resetBtn2:SimpleButton;
public var motion7:MovieClip;
public var 新建符号:MovieClip;
public var resetBtn1:SimpleButton;
public var motion8:MovieClip;
public var 新建符号_1:MovieClip;
public var makeupBtn:SimpleButton;
public var 新符号_4:MovieClip;
public var playBtn:SimpleButton;
public var body2:MovieClip;
public var dressupList:DressupObjList;
public var dressupBtn:SimpleButton;
public function Main(){
startFrame = 1;
super();
addFrameScript(0, frame1);
addFrameScript(startFrame, initStart);
addFrameScript((startFrame + 1), initMakeup);
addFrameScript((startFrame + 2), initDressup);
addFrameScript((startFrame + 3), initShow);
}
private function initStart():void{
stop();
new StartPage(this);
}
private function initShow():void{
stop();
new ShowCtrl(this);
}
function frame1(){
stop();
}
private function initMakeup():void{
stop();
new MakeupCtrl(this);
}
private function initDressup():void{
stop();
new DressupCtrl(this);
}
}
}//package
Section 81
//shoes (shoes)
package {
import mainGame.ui.*;
public dynamic class shoes extends AbstractPart {
}
}//package
Section 82
//嘴 (嘴)
package {
import mainGame.ui.*;
public dynamic class 嘴 extends AbstractPart {
}
}//package
Section 83
//头发上 (头å‘上)
package {
import mainGame.ui.*;
public dynamic class 头发上 extends AbstractPart {
}
}//package
Section 84
//头发啊 (头å‘å•Š)
package {
import mainGame.ui.*;
public dynamic class 头发啊 extends AbstractPart {
}
}//package
Section 85
//手啊手 (手啊手)
package {
import mainGame.ui.*;
public dynamic class 手啊手 extends AbstractPart {
}
}//package
Section 86
//挑染1 (挑染1)
package {
import mainGame.ui.*;
public dynamic class 挑染1 extends AbstractPart {
}
}//package
Section 87
//挑染2 (挑染2)
package {
import mainGame.ui.*;
public dynamic class 挑染2 extends AbstractPart {
}
}//package
Section 88
//挑染3 (挑染3)
package {
import mainGame.ui.*;
public dynamic class 挑染3 extends AbstractPart {
}
}//package
Section 89
//挑染4 (挑染4)
package {
import mainGame.ui.*;
public dynamic class 挑染4 extends AbstractPart {
}
}//package
Section 90
//眼影 (眼影)
package {
import mainGame.ui.*;
public dynamic class 眼影 extends AbstractPart {
}
}//package
Section 91
//眼影副本 (眼影副本)
package {
import mainGame.ui.*;
public dynamic class 眼影副本 extends AbstractPart {
}
}//package
Section 92
//眼睛 (眼ç›)
package {
import mainGame.ui.*;
public dynamic class 眼睛 extends AbstractPart {
}
}//package
Section 93
//眼睫毛 (眼ç«æ¯›)
package {
import mainGame.ui.*;
public dynamic class 眼睫毛 extends AbstractPart {
}
}//package
Section 94
//耳环 (耳环)
package {
import mainGame.ui.*;
public dynamic class 耳环 extends AbstractPart {
}
}//package
Section 95
//腮红 (腮红)
package {
import mainGame.ui.*;
public dynamic class 腮红 extends AbstractPart {
}
}//package
Section 96
//腮红副本 (腮红副本)
package {
import mainGame.ui.*;
public dynamic class 腮红副本 extends AbstractPart {
}
}//package
Section 97
//首饰 (首饰)
package {
import mainGame.ui.*;
public dynamic class 首饰 extends AbstractPart {
}
}//package