Section 1
//ICounterAttributes (com.ICounterAttributes)
package com {
import mattel.utils.Counter.*;
public class ICounterAttributes extends CounterAttributes {
public function ICounterAttributes(){
displayDays = false;
displayHours = false;
displayMinutes = true;
displaySeconds = true;
}
}
}//package com
Section 2
//ICounterMain (com.ICounterMain)
package com {
import mattel.utils.Counter.*;
import flash.text.*;
public class ICounterMain extends CounterMain {
public var txt_minutes:TextField;
public var txt_minutes1:TextField;
public var txt_colon3:TextField;
public var txt_colon1:TextField;
public var txt_hours:TextField;
public var txt_secs1:TextField;
public var txt_colon2:TextField;
public var txt_days1:TextField;
public var txt_secs:TextField;
public var txt_hours1:TextField;
public var txt_days:TextField;
public function ICounterMain(){
addFrameScript(0, frame1);
initApp = initCounterApp;
}
function frame1(){
}
public function initCounterApp():void{
trace("setting new counter att");
counterAttributes = new ICounterAttributes();
}
}
}//package com
Section 3
//Accessories (gameClasses.Accessories)
package gameClasses {
import flash.display.*;
public class Accessories extends Sprite {
private var _mcSunglasse:MovieClip;
private var _ribbon:Number;
private var _barrette:Number;
private var _glitter:Number;
private var _scarve:Number;
private var _mcBarrette:MovieClip;
private var _sunglasse:Number;
private var _mcGlitter:MovieClip;
private var _mcHeadband:MovieClip;
private var _mcRibbon:MovieClip;
private var _headband:Number;
private var _mcScarve:MovieClip;
public function Accessories(_arg1:MovieClip=null, _arg2:MovieClip=null, _arg3:MovieClip=null, _arg4:MovieClip=null, _arg5:MovieClip=null, _arg6:MovieClip=null, _arg7:Number=0, _arg8:Number=0, _arg9:Number=0, _arg10:Number=0, _arg11:Number=0, _arg12:Number=0){
_mcGlitter = _arg1;
_mcBarrette = _arg2;
_mcHeadband = _arg3;
_mcScarve = _arg4;
_mcRibbon = _arg5;
_mcSunglasse = _arg6;
glitter = _arg7;
barrette = _arg8;
headband = _arg9;
scarve = _arg10;
ribbon = _arg11;
sunglasse = _arg12;
}
public function get mcRibbon():MovieClip{
return (_mcRibbon);
}
public function get headband():Number{
return (_headband);
}
public function get mcScarve():MovieClip{
return (_mcScarve);
}
public function set headband(_arg1:Number):void{
_headband = _arg1;
}
public function set barrette(_arg1:Number):void{
_barrette = _arg1;
}
public function set mcRibbon(_arg1:MovieClip):void{
_mcRibbon = _arg1;
}
public function set mcScarve(_arg1:MovieClip):void{
_mcScarve = _arg1;
}
public function get glitter():Number{
return (_glitter);
}
public function resetAccessories():void{
glitter = 0;
barrette = 0;
headband = 0;
scarve = 0;
ribbon = 0;
sunglasse = 0;
updateAccessories();
}
public function set sunglasse(_arg1:Number):void{
_sunglasse = _arg1;
}
public function get mcBarrette():MovieClip{
return (_mcBarrette);
}
public function set mcHeadband(_arg1:MovieClip):void{
_mcHeadband = _arg1;
}
public function cloneAccessories():Accessories{
return (new Accessories(mcGlitter, mcBarrette, mcHeadband, mcScarve, mcRibbon, mcSunglasse, glitter, barrette, headband, scarve, ribbon, sunglasse));
}
public function get barrette():Number{
return (_barrette);
}
public function updateAccessories():void{
if (mcGlitter != null){
if (glitter == 0){
mcGlitter.gotoAndStop("off");
} else {
mcGlitter.gotoAndStop(("glitter" + glitter));
};
};
if (mcBarrette != null){
if (barrette == 0){
mcBarrette.gotoAndStop("off");
} else {
mcBarrette.gotoAndStop(("barrettes" + barrette));
};
};
if (mcHeadband != null){
if (headband == 0){
mcHeadband.gotoAndStop("off");
} else {
mcHeadband.gotoAndStop(("headbands" + headband));
};
};
if (mcScarve != null){
if (scarve == 0){
mcScarve.gotoAndStop("off");
} else {
mcScarve.gotoAndStop(("scarves" + scarve));
};
};
if (mcRibbon != null){
if (ribbon == 0){
mcRibbon.gotoAndStop("off");
} else {
mcRibbon.gotoAndStop(("ribbons" + ribbon));
};
};
if (mcSunglasse != null){
if (sunglasse == 0){
mcSunglasse.gotoAndStop("off");
} else {
mcSunglasse.gotoAndStop(("sunglasses" + sunglasse));
};
};
}
public function set glitter(_arg1:Number):void{
_glitter = _arg1;
}
public function set ribbon(_arg1:Number):void{
_ribbon = _arg1;
}
public function set mcBarrette(_arg1:MovieClip):void{
_mcBarrette = _arg1;
}
public function get sunglasse():Number{
return (_sunglasse);
}
public function set mcSunglasse(_arg1:MovieClip):void{
_mcSunglasse = _arg1;
}
public function traceAccessories():void{
trace(("mcGlitter = " + mcGlitter));
trace(("glitter = " + (glitter + 1)));
trace(("barrette = " + (barrette + 1)));
trace(("headband = " + (headband + 1)));
trace(("scarve = " + (scarve + 1)));
trace(("ribbon = " + (ribbon + 1)));
trace(("sunglasse = " + (sunglasse + 1)));
}
public function set mcGlitter(_arg1:MovieClip):void{
_mcGlitter = _arg1;
}
public function equals(_arg1:Accessories):Boolean{
if (((((((((((!((glitter == _arg1.glitter))) || (!((barrette == _arg1.barrette))))) || (!((headband == _arg1.headband))))) || (!((scarve == _arg1.scarve))))) || (!((ribbon == _arg1.ribbon))))) || (!((sunglasse == _arg1.sunglasse))))){
return (false);
};
return (true);
}
public function get mcHeadband():MovieClip{
return (_mcHeadband);
}
public function copyFrom(_arg1:Accessories):void{
if (_arg1 != null){
glitter = _arg1.glitter;
barrette = _arg1.barrette;
headband = _arg1.headband;
scarve = _arg1.scarve;
ribbon = _arg1.ribbon;
sunglasse = _arg1.sunglasse;
};
}
public function get mcGlitter():MovieClip{
return (_mcGlitter);
}
public function get ribbon():Number{
return (_ribbon);
}
public function set scarve(_arg1:Number):void{
_scarve = _arg1;
}
public function get mcSunglasse():MovieClip{
return (_mcSunglasse);
}
public function get scarve():Number{
return (_scarve);
}
}
}//package gameClasses
Section 4
//ColorGenerator (gameClasses.ColorGenerator)
package gameClasses {
import flash.display.*;
import flash.events.*;
public class ColorGenerator {
private var mcBrownColor:MovieClip;
private var mcRedColor:MovieClip;
private var undoColorsBtn:Object;
private var mcYellowColor:MovieClip;
private var mcBlackColor:MovieClip;
private var mcBowlColor2:MovieClip;
private var _finalColor:String;
private var mcBowlColor1:MovieClip;
private var color1:String;
private var color2:String;
private var mcWhiteColor:MovieClip;
private var mcBlueColor:MovieClip;
public static var colorArray:Array;
public function ColorGenerator(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip, _arg4:MovieClip, _arg5:MovieClip, _arg6:MovieClip, _arg7:MovieClip, _arg8:MovieClip, _arg9:Object){
mcBlackColor = _arg1;
mcWhiteColor = _arg2;
mcBrownColor = _arg3;
mcRedColor = _arg4;
mcBlueColor = _arg5;
mcYellowColor = _arg6;
mcBowlColor1 = _arg7;
mcBowlColor2 = _arg8;
undoColorsBtn = _arg9;
color1 = null;
color2 = null;
_finalColor = null;
mcBlackColor.addEventListener(MouseEvent.CLICK, blackColorSelected);
mcWhiteColor.addEventListener(MouseEvent.CLICK, blackWhiteSelected);
mcBrownColor.addEventListener(MouseEvent.CLICK, blackBrownSelected);
mcRedColor.addEventListener(MouseEvent.CLICK, blackRedSelected);
mcBlueColor.addEventListener(MouseEvent.CLICK, blackBlueSelected);
mcYellowColor.addEventListener(MouseEvent.CLICK, blackYellowSelected);
undoColorsBtn.addEventListener(MouseEvent.CLICK, undoColors);
Utile.disableButton(undoColorsBtn);
updateBowlColors();
}
private function blackRedSelected(_arg1:MouseEvent):void{
updateUserSelectedColors(Constants.RED);
}
public function get finalColor():String{
return (_finalColor);
}
private function blackYellowSelected(_arg1:MouseEvent):void{
updateUserSelectedColors(Constants.YELLOW);
}
private function updateBowlColors():void{
trace(((((("color1=" + color1) + " color2=") + color2) + " finalColor=") + finalColor));
mcBowlColor1.filters = [Utile.getPureColorFilter(finalColor)];
mcBowlColor2.filters = [Utile.getPureColorFilter(finalColor)];
}
public function resetColors():void{
color1 = null;
color2 = null;
_finalColor = null;
}
private function blackBlueSelected(_arg1:MouseEvent):void{
updateUserSelectedColors(Constants.BLUE);
}
private function blackWhiteSelected(_arg1:MouseEvent):void{
updateUserSelectedColors(Constants.WHITE);
}
private function blackColorSelected(_arg1:MouseEvent):void{
updateUserSelectedColors(Constants.BLACK);
}
private function updateSelectedColor():void{
if (color1 == null){
_finalColor = null;
} else {
if ((((color2 == null)) || ((color1 == color2)))){
_finalColor = color1;
} else {
if ((((((color1 == Constants.BLACK)) && ((color2 == Constants.WHITE)))) || ((((color2 == Constants.BLACK)) && ((color1 == Constants.WHITE)))))){
_finalColor = Constants.BLACK_WHITE;
} else {
if ((((((color1 == Constants.BLACK)) && ((color2 == Constants.BROWN)))) || ((((color2 == Constants.BLACK)) && ((color1 == Constants.BROWN)))))){
_finalColor = Constants.BLACK_BROWN;
} else {
if ((((((color1 == Constants.BLACK)) && ((color2 == Constants.RED)))) || ((((color2 == Constants.BLACK)) && ((color1 == Constants.RED)))))){
_finalColor = Constants.BLACK_RED;
} else {
if ((((((color1 == Constants.BLACK)) && ((color2 == Constants.BLUE)))) || ((((color2 == Constants.BLACK)) && ((color1 == Constants.BLUE)))))){
_finalColor = Constants.BLACK_BLUE;
} else {
if ((((((color1 == Constants.BLACK)) && ((color2 == Constants.YELLOW)))) || ((((color2 == Constants.BLACK)) && ((color1 == Constants.YELLOW)))))){
_finalColor = Constants.BLACK_YELLOW;
} else {
if ((((((color1 == Constants.WHITE)) && ((color2 == Constants.BROWN)))) || ((((color2 == Constants.WHITE)) && ((color1 == Constants.BROWN)))))){
_finalColor = Constants.WHITE_BROWN;
} else {
if ((((((color1 == Constants.WHITE)) && ((color2 == Constants.RED)))) || ((((color2 == Constants.WHITE)) && ((color1 == Constants.RED)))))){
_finalColor = Constants.WHITE_RED;
} else {
if ((((((color1 == Constants.WHITE)) && ((color2 == Constants.BLUE)))) || ((((color2 == Constants.WHITE)) && ((color1 == Constants.BLUE)))))){
_finalColor = Constants.WHITE_BLUE;
} else {
if ((((((color1 == Constants.WHITE)) && ((color2 == Constants.YELLOW)))) || ((((color2 == Constants.WHITE)) && ((color1 == Constants.YELLOW)))))){
_finalColor = Constants.WHITE_YELLOW;
} else {
if ((((((color1 == Constants.BROWN)) && ((color2 == Constants.RED)))) || ((((color2 == Constants.BROWN)) && ((color1 == Constants.RED)))))){
_finalColor = Constants.BROWN_RED;
} else {
if ((((((color1 == Constants.BROWN)) && ((color2 == Constants.BLUE)))) || ((((color2 == Constants.BROWN)) && ((color1 == Constants.BLUE)))))){
_finalColor = Constants.BROWN_BLUE;
} else {
if ((((((color1 == Constants.BROWN)) && ((color2 == Constants.YELLOW)))) || ((((color2 == Constants.BROWN)) && ((color1 == Constants.YELLOW)))))){
_finalColor = Constants.BROWN_YELLOW;
} else {
if ((((((color1 == Constants.RED)) && ((color2 == Constants.BLUE)))) || ((((color2 == Constants.RED)) && ((color1 == Constants.BLUE)))))){
_finalColor = Constants.RED_BLUE;
} else {
if ((((((color1 == Constants.RED)) && ((color2 == Constants.YELLOW)))) || ((((color2 == Constants.RED)) && ((color1 == Constants.YELLOW)))))){
_finalColor = Constants.RED_YELLOW;
} else {
if ((((((color1 == Constants.BLUE)) && ((color2 == Constants.YELLOW)))) || ((((color2 == Constants.BLUE)) && ((color1 == Constants.YELLOW)))))){
_finalColor = Constants.BLUE_YELLOW;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
updateBowlColors();
}
private function blackBrownSelected(_arg1:MouseEvent):void{
updateUserSelectedColors(Constants.BROWN);
}
public function undoColors(_arg1:MouseEvent):void{
if (color2 != null){
color2 = null;
} else {
if (color1 != null){
color1 = null;
Utile.disableButton(undoColorsBtn);
};
};
updateSelectedColor();
}
private function updateUserSelectedColors(_arg1:String):void{
if (color1 == null){
color1 = _arg1;
Utile.enableButton(undoColorsBtn);
} else {
if ((((color2 == null)) && (!((color1 == _arg1))))){
color2 = _arg1;
} else {
if (((!((color1 == null))) && (!((color2 == null))))){
resetColors();
color1 = _arg1;
};
};
};
updateSelectedColor();
}
}
}//package gameClasses
Section 5
//CompleteHairStyle (gameClasses.CompleteHairStyle)
package gameClasses {
import flash.display.*;
public class CompleteHairStyle extends Sprite {
private var backHairLeft:MovieClip;
private var backHairRight:MovieClip;
private var _backHairRightLength:String;
private var _accessories:Accessories;
private var _backHairRightColor:String;
private var _backHairLeftLength:String;
private var _backHairLeftColor:String;
private var _hairRegion2:HairRegion;
private var _hairRegion3:HairRegion;
private var _hairRegion6:HairRegion;
private var _hairRegion1:HairRegion;
private var _hairRegion5:HairRegion;
private var _hairRegion4:HairRegion;
public static var currentTool:PicknDrag;
public function CompleteHairStyle(_arg1:HairRegion, _arg2:HairRegion, _arg3:HairRegion, _arg4:HairRegion, _arg5:HairRegion, _arg6:HairRegion, _arg7:Accessories=null, _arg8:MovieClip=null, _arg9:MovieClip=null){
trace("CompleteHairStyle object created");
_hairRegion1 = _arg1;
_hairRegion2 = _arg2;
_hairRegion3 = _arg3;
_hairRegion4 = _arg4;
_hairRegion5 = _arg5;
_hairRegion6 = _arg6;
backHairLeft = _arg8;
backHairRight = _arg9;
if (_arg7 != null){
_accessories = _arg7;
} else {
_accessories = new Accessories();
};
if (((!((_hairRegion1.mcHairRegion == null))) && (!(_hairRegion1.mcHairRegion.hasEventListener(CustomEvents.ANIMATION_COMPLETED))))){
_hairRegion1.mcHairRegion.addEventListener(CustomEvents.ANIMATION_COMPLETED, animationComplete);
_hairRegion2.mcHairRegion.addEventListener(CustomEvents.ANIMATION_COMPLETED, animationComplete);
_hairRegion3.mcHairRegion.addEventListener(CustomEvents.ANIMATION_COMPLETED, animationComplete);
_hairRegion4.mcHairRegion.addEventListener(CustomEvents.ANIMATION_COMPLETED, animationComplete);
_hairRegion5.mcHairRegion.addEventListener(CustomEvents.ANIMATION_COMPLETED, animationComplete);
_hairRegion6.mcHairRegion.addEventListener(CustomEvents.ANIMATION_COMPLETED, animationComplete);
trace("ANIMATION_COMPLETED listener added to all hairRegions");
};
if (((!((_hairRegion1.mcHairRegion == null))) && (!(_hairRegion1.mcHairRegion.hasEventListener(CustomEvents.UPDATE_COLOR))))){
_hairRegion1.mcHairRegion.addEventListener(CustomEvents.UPDATE_COLOR, updateHeadMovieClipColor);
_hairRegion2.mcHairRegion.addEventListener(CustomEvents.UPDATE_COLOR, updateHeadMovieClipColor);
_hairRegion3.mcHairRegion.addEventListener(CustomEvents.UPDATE_COLOR, updateHeadMovieClipColor);
_hairRegion4.mcHairRegion.addEventListener(CustomEvents.UPDATE_COLOR, updateHeadMovieClipColor);
_hairRegion5.mcHairRegion.addEventListener(CustomEvents.UPDATE_COLOR, updateHeadMovieClipColor);
_hairRegion6.mcHairRegion.addEventListener(CustomEvents.UPDATE_COLOR, updateHeadMovieClipColor);
trace("UPDATE_COLOR, listener added to all hairRegions");
};
if (((!((_hairRegion5 == null))) && (!(_hairRegion5.hasEventListener(CustomEvents.COLOR_UPDATED))))){
_hairRegion5.addEventListener(CustomEvents.COLOR_UPDATED, updateBackHairMovieClipColor);
_hairRegion6.addEventListener(CustomEvents.COLOR_UPDATED, updateBackHairMovieClipColor);
};
}
public function set hairRegion6(_arg1:HairRegion):void{
_hairRegion6 = _arg1;
}
public function set hairRegion3(_arg1:HairRegion):void{
_hairRegion3 = _arg1;
}
public function set hairRegion5(_arg1:HairRegion):void{
_hairRegion5 = _arg1;
}
public function get backHairRightLength():String{
return (_backHairRightLength);
}
public function set hairRegion4(_arg1:HairRegion):void{
_hairRegion4 = _arg1;
}
public function cloneHairStyle():CompleteHairStyle{
return (new CompleteHairStyle(hairRegion1.cloneRegion(), hairRegion2.cloneRegion(), hairRegion3.cloneRegion(), hairRegion4.cloneRegion(), hairRegion5.cloneRegion(), hairRegion6.cloneRegion(), accessories.cloneAccessories(), backHairLeft, backHairRight));
}
public function get backHairLeftLength():String{
return (_backHairLeftLength);
}
public function updateHairStyle():void{
hairRegion1.updateHairStyle();
hairRegion2.updateHairStyle();
hairRegion3.updateHairStyle();
hairRegion4.updateHairStyle();
hairRegion5.updateHairStyle();
hairRegion6.updateHairStyle();
showHideBackHair();
if (accessories != null){
accessories.updateAccessories();
};
}
public function set backHairLeftLength(_arg1:String):void{
_backHairLeftLength = _arg1;
}
public function traceHairStyle():void{
hairRegion1.traceHairStyle();
hairRegion2.traceHairStyle();
hairRegion3.traceHairStyle();
hairRegion4.traceHairStyle();
hairRegion5.traceHairStyle();
hairRegion6.traceHairStyle();
if (accessories != null){
accessories.traceAccessories();
};
}
public function get accessories():Accessories{
return (_accessories);
}
public function updateHeadMovieClipColor(_arg1:CustomEvents):void{
trace("event UPDATE_COLOR captured in updateHeadMovieClipColor() in CompleteHairStyle class");
dispatchEvent(_arg1);
}
public function resetHairStyle():void{
CompleteHairStyle.currentTool = null;
hairRegion1.resetRegion();
hairRegion2.resetRegion();
hairRegion3.resetRegion();
hairRegion4.resetRegion();
hairRegion5.resetRegion();
hairRegion6.resetRegion();
showHideBackHair();
if (accessories != null){
accessories.resetAccessories();
};
}
public function set backHairLeftColor(_arg1:String):void{
_backHairLeftColor = _arg1;
}
public function showHideBackHair():void{
hairRegion5.traceHairStyle();
hairRegion6.traceHairStyle();
if (((!((backHairLeft == null))) && (!((backHairRight == null))))){
if ((((((((((hairRegion5.hairLength == Constants.LONG_HAIR)) || ((hairRegion5.hairLength == Constants.MEDIUM_HAIR)))) || ((((hairRegion5.hairLength == Constants.SHORT_HAIR)) && ((hairRegion5.hairStyle == Constants.ORIGINAL_HAIR)))))) || ((((hairRegion3.hairLength == Constants.LONG_HAIR)) && ((hairRegion3.hairStyle == Constants.LITTLE_CURLY_HAIR)))))) || ((((hairRegion3.hairLength == Constants.LONG_HAIR)) && ((hairRegion3.hairStyle == Constants.FLATTERED_HAIR)))))){
backHairLeft.gotoAndStop(Constants.LONG_HAIR);
backHairLeftLength = Constants.LONG_HAIR;
} else {
if ((((((hairRegion5.hairLength == Constants.SHORT_HAIR)) && ((hairRegion5.hairStyle == Constants.CRIMPED_HAIR)))) || ((((hairRegion3.hairLength == Constants.LONG_HAIR)) && ((hairRegion3.hairStyle == Constants.CRIMPED_HAIR)))))){
backHairLeft.gotoAndStop(Constants.MEDIUM_HAIR);
backHairLeftLength = Constants.MEDIUM_HAIR;
} else {
if (hairRegion5.hairStyle != Constants.ORIGINAL_HAIR){
backHairLeft.gotoAndStop(Constants.SHORT_HAIR);
backHairLeftLength = Constants.SHORT_HAIR;
};
};
};
if ((((((((((hairRegion6.hairLength == Constants.LONG_HAIR)) || ((hairRegion6.hairLength == Constants.MEDIUM_HAIR)))) || ((((hairRegion6.hairLength == Constants.SHORT_HAIR)) && ((hairRegion6.hairStyle == Constants.ORIGINAL_HAIR)))))) || ((((hairRegion4.hairLength == Constants.LONG_HAIR)) && ((hairRegion4.hairStyle == Constants.LITTLE_CURLY_HAIR)))))) || ((((hairRegion4.hairLength == Constants.LONG_HAIR)) && ((hairRegion4.hairStyle == Constants.FLATTERED_HAIR)))))){
backHairRight.gotoAndStop(Constants.LONG_HAIR);
backHairRightLength = Constants.LONG_HAIR;
} else {
if ((((((hairRegion6.hairLength == Constants.SHORT_HAIR)) && ((hairRegion6.hairStyle == Constants.CRIMPED_HAIR)))) || ((((hairRegion4.hairLength == Constants.LONG_HAIR)) && ((hairRegion4.hairStyle == Constants.CRIMPED_HAIR)))))){
backHairRight.gotoAndStop(Constants.MEDIUM_HAIR);
backHairRightLength = Constants.MEDIUM_HAIR;
} else {
if (hairRegion6.hairStyle != Constants.ORIGINAL_HAIR){
backHairRight.gotoAndStop(Constants.SHORT_HAIR);
backHairRightLength = Constants.SHORT_HAIR;
};
};
};
if ((((((hairRegion2.hairStyle == Constants.BRAID_HAIR)) && ((hairRegion3.hairStyle == Constants.BRAID_HAIR)))) && ((hairRegion5.hairStyle == Constants.BRAID_HAIR)))){
backHairLeft.visible = false;
} else {
backHairLeft.visible = true;
};
if ((((((hairRegion1.hairStyle == Constants.BRAID_HAIR)) && ((hairRegion4.hairStyle == Constants.BRAID_HAIR)))) && ((hairRegion6.hairStyle == Constants.BRAID_HAIR)))){
backHairRight.visible = false;
} else {
backHairRight.visible = true;
};
trace(((("updating back hair length, backHairRight.currentFrame=" + backHairRight.currentFrame) + " backHairLeft.currentFrame=") + backHairLeft.currentFrame));
updateBackHairMovieClipColor(null);
} else {
trace(((("backHairLeft = " + backHairLeft) + " backHairRight = ") + backHairRight));
};
}
public function get hairRegion1():HairRegion{
return (_hairRegion1);
}
public function get hairRegion2():HairRegion{
return (_hairRegion2);
}
public function get hairRegion3():HairRegion{
return (_hairRegion3);
}
public function updateBackHairMovieClipColor(_arg1:CustomEvents):void{
if (backHairRightColor != hairRegion6.hairColor){
backHairRight.filters = [];
backHairRightColor = hairRegion6.hairColor;
backHairRight.filters = [Utile.getColorFilter(hairRegion6.hairColor)];
trace(("updated back Hair Right color, hairRegion6.hairColor=" + hairRegion6.hairColor));
};
if (backHairLeftColor != hairRegion5.hairColor){
backHairLeft.filters = [];
backHairLeftColor = hairRegion5.hairColor;
backHairLeft.filters = [Utile.getColorFilter(hairRegion5.hairColor)];
trace(("updated back Hair Left color, hairRegion5.hairColor=" + hairRegion5.hairColor));
};
}
public function get hairRegion5():HairRegion{
return (_hairRegion5);
}
public function get hairRegion6():HairRegion{
return (_hairRegion6);
}
public function set accessories(_arg1:Accessories):void{
_accessories = _arg1;
}
public function get hairRegion4():HairRegion{
return (_hairRegion4);
}
public function get backHairLeftColor():String{
return (_backHairLeftColor);
}
public function equals(_arg1:CompleteHairStyle):Boolean{
if (((((((((((((!(hairRegion1.equals(_arg1.hairRegion1))) || (!(hairRegion2.equals(_arg1.hairRegion2))))) || (!(hairRegion3.equals(_arg1.hairRegion3))))) || (!(hairRegion4.equals(_arg1.hairRegion4))))) || (!(hairRegion5.equals(_arg1.hairRegion5))))) || (!(hairRegion6.equals(_arg1.hairRegion6))))) || (!(accessories.equals(_arg1.accessories))))){
return (false);
};
return (true);
}
public function animationComplete(_arg1:CustomEvents):void{
trace("event ANIMATION_COMPLETED captured in animationComplete() in CompleteHairStyle class");
showHideBackHair();
dispatchEvent(_arg1);
}
public function set backHairRightColor(_arg1:String):void{
_backHairRightColor = _arg1;
}
public function copyFrom(_arg1:CompleteHairStyle):void{
hairRegion1.copyFrom(_arg1.hairRegion1);
hairRegion2.copyFrom(_arg1.hairRegion2);
hairRegion3.copyFrom(_arg1.hairRegion3);
hairRegion4.copyFrom(_arg1.hairRegion4);
hairRegion5.copyFrom(_arg1.hairRegion5);
hairRegion6.copyFrom(_arg1.hairRegion6);
accessories.copyFrom(_arg1.accessories);
}
public function get backHairRightColor():String{
return (_backHairRightColor);
}
public function set backHairRightLength(_arg1:String):void{
_backHairRightLength = _arg1;
}
public function updateHairColor():void{
hairRegion1.updateHairColor();
hairRegion2.updateHairColor();
hairRegion3.updateHairColor();
hairRegion4.updateHairColor();
hairRegion5.updateHairColor();
hairRegion6.updateHairColor();
}
public function set hairRegion1(_arg1:HairRegion):void{
_hairRegion1 = _arg1;
}
public function set hairRegion2(_arg1:HairRegion):void{
_hairRegion2 = _arg1;
}
}
}//package gameClasses
Section 6
//Constants (gameClasses.Constants)
package gameClasses {
public class Constants {
public static const RED_YELLOW:String = "-15,-50,-50";
public static const CRIMPED_HAIR:String = "crimpedHair";
public static const WHITE:String = "20,30,60";
public static const WHITE_BLUE_MATRIX:Array = [0, 0, 0, 0, 172, 0, 0, 0, 0, 211, 0, 0, 0, 0, 0xFF, 0, 0, 0, 1, 0];
public static const BLACK_RED:String = "-30,-80,-50";
public static const BROWN:String = "-40,-50,-40";
public static const SCISSORS:String = "scissors";
public static const BROWN_MATRIX:Array = [0, 0, 0, 0, 173, 0, 0, 0, 0, 113, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0];
public static const LITTLE_CURLY_HAIR:String = "littleCurlyHair";
public static const COLOR_BRUSH:String = "colorBrush";
public static const BROWN_RED_MATRIX:Array = [0, 0, 0, 0, 214, 0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
public static const BLACK_MATRIX:Array = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
public static const REGION_HAIRCUT_TIME:Number = 6;
public static const FREE_PLAY:String = "freePlay";
public static const CUT_SCREEN:String = "cutScreen";
public static const BLACK_WHITE_MATRIX:Array = [0, 0, 0, 0, 127, 0, 0, 0, 0, 127, 0, 0, 0, 0, 127, 0, 0, 0, 1, 0];
public static const WHITE_YELLOW_MATRIX:Array = [0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 237, 0, 0, 0, 0, 159, 0, 0, 0, 1, 0];
public static const HAIR_STYLE_TIME:Number = 40;
public static const BIG_CURLERS:String = "bigCurlers";
public static const WASH_DRY_SCREEN:String = "washBlowDryHair";
public static const WHITE_RED_MATRIX:Array = [0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 127, 0, 0, 0, 0, 127, 0, 0, 0, 1, 0];
public static const MATCH_SCREEN:String = "MatchScreen";
public static const CRIMPER:String = "crimper";
public static const BLUE_MATRIX:Array = [0, 0, 0, 0, 90, 0, 0, 0, 0, 167, 0, 0, 0, 0, 0xFF, 0, 0, 0, 1, 0];
public static const RED_MATRIX:Array = [0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
public static const LITTLE_CURLERS:String = "littleCurlers";
public static const WHITE_RED:String = "5,-50,20";
public static const ORIGINAL_COLOR:String = "0,0,0";
public static const COMPLEX_COLOR_TIME:Number = 40;
public static const BLUE:String = "-90,-30,60";
public static const PRINT_SCREEN:String = "print";
public static const WHITE_BROWN:String = "-20,-40,-20";
public static const GAME_PLAY:String = "gamePlay";
public static const WHITE_YELLOW:String = "0,5,0";
public static const BUFFER_TIME:Number = 50;
public static const RED_BLUE:String = "-30,-40,40";
public static const RED:String = "-10,-80,-50";
public static const BRAID_HAIR:String = "braidHair";
public static const RED_BLUE_MATRIX:Array = [0, 0, 0, 0, 172, 0, 0, 0, 0, 83, 0, 0, 0, 0, 127, 0, 0, 0, 1, 0];
public static const BLACK_BROWN_MATRIX:Array = [0, 0, 0, 0, 86, 0, 0, 0, 0, 56, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0];
public static const MEDIUM_HAIR:String = "medium";
public static const YELLOW:String = "20,30,-5";
public static const FREE_PLAY_SCREEN:String = "FreePlayInst";
public static const WHITE_BROWN_MATRIX:Array = [0, 0, 0, 0, 214, 0, 0, 0, 0, 184, 0, 0, 0, 0, 128, 0, 0, 0, 1, 0];
public static const ORIGINAL_HAIR:String = "originalHair";
public static const BROWN_YELLOW_MATRIX:Array = [0, 0, 0, 0, 214, 0, 0, 0, 0, 166, 0, 0, 0, 0, 32, 0, 0, 0, 1, 0];
public static const ACCESSORIES_SCREEN:String = "accessories";
public static const FLATTERED_HAIR:String = "flatteredHair";
public static const BROWN_BLUE_MATRIX:Array = [0, 0, 0, 0, 131, 0, 0, 0, 0, 140, 0, 0, 0, 0, 128, 0, 0, 0, 1, 0];
public static const WASH_DRY_TIME:Number = 30;
public static const BLACK_YELLOW_MATRIX:Array = [0, 0, 0, 0, 127, 0, 0, 0, 0, 110, 0, 0, 0, 0, 32, 0, 0, 0, 1, 0];
public static const RED_YELLOW_MATRIX:Array = [0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 110, 0, 0, 0, 0, 32, 0, 0, 0, 1, 0];
public static const BLACK_WHITE:String = "-20,10,60";
public static const BLACK_RED_MATRIX:Array = [0, 0, 0, 0, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
public static const LANDING_SCREEN:String = "landing";
public static const BLACK_BROWN:String = "-90,-90,-90";
public static const WHITE_MATRIX:Array = [0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 0xFF, 0, 0, 0, 1, 0];
public static const GAME_INST_SCREEN:String = "GameInstructions";
public static const BLACK_BLUE:String = "-100,-80,-20";
public static const BROWN_YELLOW:String = "-40,-50,-100";
public static const INTRO_SCREEN:String = "intro";
public static const FLATIRON:String = "flatiron";
public static const LONG_HAIR:String = "long";
public static const BLUE_YELLOW_MATRIX:Array = [0, 0, 0, 0, 172, 0, 0, 0, 0, 193, 0, 0, 0, 0, 159, 0, 0, 0, 1, 0];
public static const BRAID:String = "braid";
public static const BROWN_RED:String = "-40,-80,-40";
public static const BLACK_YELLOW:String = "-20,-25,-30";
public static const WHITE_BLUE:String = "-60,-10,50";
public static const STYLE_SCREEN:String = "styleScreen";
public static const BLACK:String = "-120,-99,-75";
public static const BROWN_BLUE:String = "-100,-60,-10";
public static const PAYOFF_SCREEN:String = "payoff";
public static const SHORT_HAIR:String = "short";
public static const BLACK_BLUE_MATRIX:Array = [0, 0, 0, 0, 45, 0, 0, 0, 0, 83, 0, 0, 0, 0, 127, 0, 0, 0, 1, 0];
public static const ACCESSORIE_ADD_TIME:Number = 10;
public static const LOADING_SCREEN:String = "loading";
public static const BIG_CURLY_HAIR:String = "bigCurlyHair";
public static const SIMPLE_COLOR_TIME:Number = 20;
public static const COLOR_SCREEN:String = "colorScreen";
public static const BLUE_YELLOW:String = "-80,-20,-10";
public static const YELLOW_MATRIX:Array = [0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 220, 0, 0, 0, 0, 64, 0, 0, 0, 1, 0];
}
}//package gameClasses
Section 7
//CustomEvents (gameClasses.CustomEvents)
package gameClasses {
import flash.events.*;
public class CustomEvents extends Event {
private var bubblesCE:Boolean;
private var typeCE:String;
private var cancelableCE:Boolean;
public var object:Object;
public static const SOURCE_CLICKED = "sourceClicked";
public static const HELP_OPENED = "helpOpened";
public static const SOURCE_HITS_TARGET = "sourceHitsTarget";
public static const UPDATE_COLOR = "updateColor";
public static const ANIMATION_COMPLETED = "animationCompleted";
public static const SKIP_INTRO_ANIMATION = "skipIntroAnimation";
public static const TEMP = "temp";
public static const REGION_LAST_FRAME_LOADED = "regionLastFrameLoaded";
public static const SOURCE_SNAPED_BACK = "sourceSnapedBack";
public static const COLOR_UPDATED = "colorUpdated";
public function CustomEvents(_arg1:String, _arg2:Object=null, _arg3:Boolean=true, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.object = _arg2;
this.typeCE = _arg1;
this.bubblesCE = _arg3;
this.cancelableCE = _arg4;
}
override public function clone():Event{
return (new CustomEvents(typeCE, object, bubblesCE, cancelableCE));
}
}
}//package gameClasses
Section 8
//HairRegion (gameClasses.HairRegion)
package gameClasses {
import flash.display.*;
public class HairRegion extends Sprite {
private var _hairLength:String;
private var _hairColor:String;
private var _hairStyle:String;
private var _mcHairRegion:MovieClip;
public function HairRegion(_arg1:MovieClip, _arg2:String="long", _arg3:String=null, _arg4:String="originalHair"){
hairColor = _arg3;
hairLength = _arg2;
hairStyle = _arg4;
mcHairRegion = _arg1;
}
public function resetRegion():void{
hairColor = Constants.ORIGINAL_COLOR;
hairLength = Constants.LONG_HAIR;
hairStyle = Constants.ORIGINAL_HAIR;
mcHairRegion.filters = new Array();
}
public function updateHairStyle():void{
if (mcHairRegion != null){
mcHairRegion.gotoAndStop(((hairLength + "_") + hairStyle));
};
}
public function traceHairStyle():void{
if (mcHairRegion != null){
trace((("----------------- " + mcHairRegion.name) + " -------------------"));
trace(("hairColor = " + hairColor));
trace(("hairLength = " + hairLength));
trace(("hairStyle = " + hairStyle));
trace("");
};
}
public function set hairColor(_arg1:String):void{
_hairColor = _arg1;
}
public function set mcHairRegion(_arg1:MovieClip):void{
_mcHairRegion = _arg1;
}
public function get hairLength():String{
return (_hairLength);
}
public function get hairColor():String{
return (_hairColor);
}
public function get mcHairRegion():MovieClip{
return (_mcHairRegion);
}
public function cloneRegion():HairRegion{
return (new HairRegion(mcHairRegion, hairLength, hairColor, hairStyle));
}
public function equals(_arg1:HairRegion):Boolean{
if (((((!((hairColor == _arg1.hairColor))) || (!((hairLength == _arg1.hairLength))))) || (!((hairStyle == _arg1.hairStyle))))){
return (false);
};
return (true);
}
public function set hairLength(_arg1:String):void{
_hairLength = _arg1;
}
public function copyFrom(_arg1:HairRegion):void{
if (_arg1 != null){
hairLength = _arg1.hairLength;
hairColor = _arg1.hairColor;
hairStyle = _arg1.hairStyle;
};
}
public function set hairStyle(_arg1:String):void{
_hairStyle = _arg1;
}
public function get hairStyle():String{
return (_hairStyle);
}
public function updateHairColor():void{
if (mcHairRegion != null){
if (mcHairRegion.mc_ToColorR != null){
if (mcHairRegion.filters.length != 0){
mcHairRegion.filters = new Array();
};
mcHairRegion.mc_ToColorR.filters = [Utile.getColorFilter(hairColor)];
dispatchEvent(new CustomEvents(CustomEvents.COLOR_UPDATED));
} else {
mcHairRegion.filters = [Utile.getColorFilter(hairColor)];
dispatchEvent(new CustomEvents(CustomEvents.COLOR_UPDATED));
};
};
}
}
}//package gameClasses
Section 9
//HairStyleStack (gameClasses.HairStyleStack)
package gameClasses {
import flash.events.*;
public class HairStyleStack extends EventDispatcher {
private var stack:Array;
public static const STACK_NOT_EMPTY:String = "stackNotEmpty";
public static const STACK_EMPTY:String = "stackEmpty";
public function HairStyleStack(){
stack = new Array();
}
public function popStyle():CompleteHairStyle{
if (stack.length == 1){
dispatchEvent(new Event(HairStyleStack.STACK_EMPTY));
};
return (stack.pop());
}
public function getCopy():Array{
return (stack.slice());
}
public function get stackLength():Number{
return (stack.length);
}
public function pushStyle(_arg1:CompleteHairStyle):void{
var _local2:CompleteHairStyle;
_local2 = _arg1.cloneHairStyle();
stack.push(_local2);
dispatchEvent(new Event(HairStyleStack.STACK_NOT_EMPTY));
}
}
}//package gameClasses
Section 10
//PicknDrag (gameClasses.PicknDrag)
package gameClasses {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
public class PicknDrag extends Sprite {
private var actionTargets:Array;
private var _rightHoldLabel:String;
private var applyGlow;
public var scissorsGlowTargets:Array;
private var mcSourceX:Number;
private var mcRotation:Number;
private var _leftHoldLabel:String;
private var mcSourceY:Number;
private var _isDragging:Boolean;
private var _useMCHitPoint:Boolean;
private var soundChnel:SoundChannel;
private var _originalSourceLabel:String;
private var mcSourceParent:DisplayObjectContainer;
private var targetGlobalPoint:Point;
private var putbackTargets:Array;
private var _mcSource:MovieClip;
private var mcPointTarget:MovieClip;
public static var isAnyToolActive:Boolean;
public function PicknDrag(_arg1:MovieClip, _arg2:DisplayObjectContainer, _arg3:MovieClip, _arg4:Array=null, _arg5:Array=null){
applyGlow = new GlowFilter(0xFF0000, 0.7, 6, 6, 2, 1);
super();
this.mcSourceParent = _arg2;
this.mcPointTarget = _arg3;
this._mcSource = _arg1;
this.actionTargets = _arg4;
this.putbackTargets = _arg5;
_isDragging = false;
leftHoldLabel = "";
rightHoldLabel = "";
useMCHitPoint = false;
targetGlobalPoint = new Point(0, 0);
targetGlobalPoint = _arg3.localToGlobal(targetGlobalPoint);
mcSourceX = _arg1.x;
mcSourceY = _arg1.y;
mcRotation = _arg1.rotation;
this.mcSource.addEventListener(MouseEvent.CLICK, sourceClicked);
this.mcSource.addEventListener(MouseEvent.MOUSE_MOVE, updateSourceDirection);
this.mcSource.addEventListener(MouseEvent.MOUSE_MOVE, glowTargetOnMouseOver);
this.mcSource.addEventListener(MouseEvent.ROLL_OVER, sourceRolledOver);
this.mcSource.addEventListener(MouseEvent.ROLL_OUT, sourceRolledOut);
if (_arg1.parent == null){
_arg2.addChild(_arg1);
} else {
_arg1.parent.removeChild(_arg1);
_arg2.addChild(_arg1);
};
}
public function get originalSourceLabel():String{
return (_originalSourceLabel);
}
public function set originalSourceLabel(_arg1:String):void{
_originalSourceLabel = _arg1;
}
public function checkTargetHit():void{
var _local1:Number;
var _local2:Point;
var _local3:Point;
var _local4:MovieClip;
_local1 = 0;
if (actionTargets != null){
_local1 = 0;
while (_local1 < actionTargets.length) {
actionTargets[_local1].filters = [];
_local1++;
};
if (scissorsGlowTargets != null){
_local1 = 0;
while (_local1 < scissorsGlowTargets.length) {
scissorsGlowTargets[_local1].filters = [];
_local1++;
};
};
_local1 = 0;
while (_local1 < actionTargets.length) {
_local4 = actionTargets[_local1];
if (useMCHitPoint){
if (mcSource.mcHitPoint){
_local2 = new Point(mcSource.mcHitPoint.x, mcSource.mcHitPoint.y);
_local3 = mcSource.localToGlobal(_local2);
} else {
trace(("mcHitPoint is not avaliable. mcSource.mcHitPoint=" + mcSource.mcHitPoint));
};
} else {
_local2 = new Point(_local4.mouseX, _local4.mouseY);
_local3 = _local4.localToGlobal(_local2);
};
if (((_local4.enabled) && (_local4.hitTestPoint(_local3.x, _local3.y, true)))){
dispatchEvent(new CustomEvents(CustomEvents.SOURCE_HITS_TARGET, _local4));
return;
};
_local1++;
};
};
if (putbackTargets != null){
_local1 = 0;
while (_local1 < putbackTargets.length) {
_local4 = putbackTargets[_local1];
_local2 = new Point(_local4.mouseX, _local4.mouseY);
_local3 = _local4.localToGlobal(_local2);
if (_local4.hitTestPoint(_local3.x, _local3.y, true)){
CompleteHairStyle.currentTool = null;
mcSource.stopDrag();
_isDragging = false;
isAnyToolActive = false;
mcSource.rotation = mcRotation;
if (originalSourceLabel){
mcSource.gotoAndStop(originalSourceLabel);
};
mcSource.x = mcSourceX;
mcSource.y = mcSourceY;
dispatchEvent(new CustomEvents(CustomEvents.SOURCE_SNAPED_BACK, _local4));
break;
};
_local1++;
};
};
}
public function get leftHoldLabel():String{
return (_leftHoldLabel);
}
private function sourceRolledOver(_arg1:MouseEvent):void{
var _local2:Sound;
if (!_isDragging){
_local2 = new RollOverSound();
soundChnel = _local2.play();
};
}
public function get mcSource():MovieClip{
return (_mcSource);
}
public function set leftHoldLabel(_arg1:String):void{
_leftHoldLabel = _arg1;
}
public function set useMCHitPoint(_arg1:Boolean):void{
_useMCHitPoint = _arg1;
}
public function set rightHoldLabel(_arg1:String):void{
_rightHoldLabel = _arg1;
}
public function get useMCHitPoint():Boolean{
return (_useMCHitPoint);
}
public function cleanup():void{
this.mcSource.removeEventListener(MouseEvent.CLICK, sourceClicked);
this.mcSource.removeEventListener(MouseEvent.MOUSE_MOVE, updateSourceDirection);
this.mcSource.removeEventListener(MouseEvent.MOUSE_MOVE, glowTargetOnMouseOver);
this.mcSource.removeEventListener(MouseEvent.ROLL_OVER, sourceRolledOver);
this.mcSource.removeEventListener(MouseEvent.ROLL_OUT, sourceRolledOut);
mcPointTarget = null;
_mcSource.parent.removeChild(_mcSource);
actionTargets = null;
putbackTargets = null;
_isDragging = false;
_originalSourceLabel = null;
_leftHoldLabel = null;
_rightHoldLabel = null;
_useMCHitPoint = false;
}
public function get isDragging():Boolean{
return (_isDragging);
}
private function updateSourceDirection(_arg1:MouseEvent):void{
var _local2:Number;
if (_isDragging){
_local2 = ((targetGlobalPoint.y - mouseY) / (targetGlobalPoint.x - mouseX));
if ((targetGlobalPoint.x - mouseX) > 0){
mcSource.gotoAndStop(leftHoldLabel);
mcSource.rotation = (-180 + (((Math.atan(_local2) * 180) * 7) / 22));
} else {
mcSource.gotoAndStop(rightHoldLabel);
mcSource.rotation = (((Math.atan(_local2) * 180) * 7) / 22);
};
};
}
public function sourceClicked(_arg1:MouseEvent):void{
dispatchEvent(new CustomEvents(CustomEvents.SOURCE_CLICKED));
if (_isDragging){
checkTargetHit();
} else {
if (!isAnyToolActive){
mcSourceParent.removeChild(mcSource);
mcSourceParent.addChild(mcSource);
mcSource.startDrag(true);
_isDragging = true;
isAnyToolActive = true;
CompleteHairStyle.currentTool = this;
};
};
}
private function glowTargetOnMouseOver(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Point;
var _local4:Point;
var _local5:MovieClip;
var _local6:Number;
var _local7:Boolean;
var _local8:String;
_local2 = 0;
if (((!((actionTargets == null))) && (!((mcSource == null))))){
_local2 = 0;
while (_local2 < actionTargets.length) {
actionTargets[_local2].filters = [];
_local2++;
};
if (scissorsGlowTargets != null){
_local2 = 0;
while (_local2 < scissorsGlowTargets.length) {
scissorsGlowTargets[_local2].filters = [];
_local2++;
};
};
_local2 = 0;
while (_local2 < actionTargets.length) {
_local5 = actionTargets[_local2];
if (useMCHitPoint){
if (mcSource.mcHitPoint != null){
_local3 = new Point(mcSource.mcHitPoint.x, mcSource.mcHitPoint.y);
_local4 = mcSource.localToGlobal(_local3);
} else {
trace(((("mcHitPoint is not avaliable. mcSource =" + mcSource) + " mcSource.mcHitPoint=") + mcSource.mcHitPoint));
break;
};
} else {
_local3 = new Point(_local5.mouseX, _local5.mouseY);
_local4 = _local5.localToGlobal(_local3);
};
if (((_local5.enabled) && (_local5.hitTestPoint(_local4.x, _local4.y, true)))){
if (mcSource.name == "mc_tools_scissors"){
_local6 = Number(_local5.name.substr(4, 1));
_local6--;
if (scissorsGlowTargets[_local6] != null){
scissorsGlowTargets[_local6].filters = [applyGlow];
};
} else {
if (mcSource.name == "mc_tools_braid"){
_local7 = false;
if ((((((_local5.name == "mc_region_1_container")) || ((_local5.name == "mc_region_4_container")))) || ((_local5.name == "mc_region_6_container")))){
_local7 = true;
};
_local2 = 0;
while (_local2 < actionTargets.length) {
_local8 = actionTargets[_local2].name;
if (((_local7) && ((((((_local8 == "mc_region_1_container")) || ((_local8 == "mc_region_4_container")))) || ((_local8 == "mc_region_6_container")))))){
actionTargets[_local2].filters = [applyGlow];
} else {
if (((!(_local7)) && ((((((_local8 == "mc_region_2_container")) || ((_local8 == "mc_region_3_container")))) || ((_local8 == "mc_region_5_container")))))){
actionTargets[_local2].filters = [applyGlow];
};
};
_local2++;
};
} else {
_local5.filters = [applyGlow];
};
};
break;
};
_local2++;
};
};
}
public function get rightHoldLabel():String{
return (_rightHoldLabel);
}
private function sourceRolledOut(_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
}
}
}//package gameClasses
Section 11
//TargetStyles (gameClasses.TargetStyles)
package gameClasses {
public class TargetStyles {
private static var styles:Array = new Array();
public static var targetStyleCnt:Number = 0;
public static function getPreviousTargetHairStyle():CompleteHairStyle{
targetStyleCnt--;
if (targetStyleCnt == 0){
targetStyleCnt = (styles.length - 1);
};
return (styles[targetStyleCnt]);
}
public static function createTargetHairStyles():void{
var _local1:HairRegion;
var _local2:HairRegion;
var _local3:HairRegion;
var _local4:HairRegion;
var _local5:HairRegion;
var _local6:HairRegion;
var _local7:CompleteHairStyle;
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion2.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion3.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion4.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion5.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion5.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion5.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion6.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion6.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion6.hairStyle = Constants.ORIGINAL_HAIR;
_local7.accessories.scarve = 3;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.WHITE_BROWN;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.WHITE_BROWN;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.WHITE_BROWN;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.WHITE_BROWN;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.WHITE_BROWN;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.WHITE_BROWN;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.accessories.headband = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.RED;
_local7.hairRegion1.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion1.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.RED;
_local7.hairRegion2.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion2.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.RED;
_local7.hairRegion3.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion3.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.RED;
_local7.hairRegion4.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion4.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.RED;
_local7.hairRegion5.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion5.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.RED;
_local7.hairRegion6.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion6.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.accessories.glitter = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK;
_local7.hairRegion1.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion1.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK;
_local7.hairRegion2.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion2.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK;
_local7.hairRegion3.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion3.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion4.hairColor = Constants.BLACK;
_local7.hairRegion4.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion4.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK;
_local7.hairRegion5.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion5.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.CRIMPED_HAIR;
_local7.accessories.ribbon = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.WHITE_RED;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion2.hairColor = Constants.WHITE_RED;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion3.hairColor = Constants.WHITE_RED;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion4.hairColor = Constants.WHITE_RED;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion5.hairColor = Constants.WHITE_RED;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion6.hairColor = Constants.WHITE_RED;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.BRAID_HAIR;
_local7.accessories.barrette = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.RED_YELLOW;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion2.hairColor = Constants.RED_YELLOW;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion3.hairColor = Constants.RED_YELLOW;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion4.hairColor = Constants.RED_YELLOW;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion5.hairColor = Constants.RED_YELLOW;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion6.hairColor = Constants.RED_YELLOW;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.FLATTERED_HAIR;
_local7.accessories.barrette = 3;
_local7.accessories.headband = 2;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.WHITE_BLUE;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.RED_BLUE;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.RED_BLUE;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.WHITE_BLUE;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.WHITE_BLUE;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.RED_BLUE;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.accessories.headband = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.WHITE_BLUE;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion2.hairColor = Constants.WHITE_BLUE;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion3.hairColor = Constants.BLUE;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion4.hairColor = Constants.BLUE;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.BRAID_HAIR;
_local7.accessories.headband = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.WHITE_RED;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion2.hairColor = Constants.WHITE_RED;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK_RED;
_local7.hairRegion3.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion3.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion4.hairColor = Constants.BLACK_RED;
_local7.hairRegion4.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion4.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_RED;
_local7.hairRegion5.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion5.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_RED;
_local7.hairRegion6.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion6.hairStyle = Constants.FLATTERED_HAIR;
_local7.accessories.scarve = 3;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.WHITE_RED;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.WHITE_RED;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.accessories.scarve = 2;
_local7.accessories.sunglasse = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.WHITE;
_local7.hairRegion1.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion1.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion2.hairColor = Constants.WHITE;
_local7.hairRegion2.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion2.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion3.hairColor = Constants.WHITE_BLUE;
_local7.hairRegion3.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion3.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion4.hairColor = Constants.WHITE_BLUE;
_local7.hairRegion4.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion4.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion5.hairColor = Constants.WHITE;
_local7.hairRegion5.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion5.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion6.hairColor = Constants.WHITE;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.BRAID_HAIR;
_local7.accessories.headband = 2;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK_RED;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK_RED;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK_RED;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion4.hairColor = Constants.BLACK_RED;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_RED;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_RED;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.FLATTERED_HAIR;
_local7.accessories.ribbon = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion1.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion1.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion2.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion2.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion2.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion3.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion3.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion3.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion4.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion4.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion4.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion5.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion5.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion5.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion6.hairColor = Constants.BROWN_YELLOW;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.FLATTERED_HAIR;
_local7.accessories.headband = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion3.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion3.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion4.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion4.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion4.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion5.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion5.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion6.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion6.hairStyle = Constants.FLATTERED_HAIR;
_local7.accessories.ribbon = 3;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.RED;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.BLUE;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.BLUE_YELLOW;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.RED_YELLOW;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.YELLOW;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.RED_BLUE;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.accessories.barrette = 2;
_local7.accessories.sunglasse = 2;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.RED;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion2.hairColor = Constants.RED;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion3.hairColor = Constants.WHITE;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion4.hairColor = Constants.WHITE;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.ORIGINAL_HAIR;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK;
_local7.hairRegion1.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion1.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK;
_local7.hairRegion2.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion2.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK;
_local7.hairRegion3.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion3.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion4.hairColor = Constants.BLACK;
_local7.hairRegion4.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion4.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK;
_local7.hairRegion5.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion5.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.accessories.scarve = 2;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion5.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion5.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.accessories.barrette = 2;
_local7.accessories.headband = 3;
_local7.accessories.scarve = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.WHITE_RED;
_local7.hairRegion1.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion1.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion2.hairColor = Constants.RED_BLUE;
_local7.hairRegion2.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion2.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion3.hairColor = Constants.RED_BLUE;
_local7.hairRegion3.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion3.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion4.hairColor = Constants.RED_BLUE;
_local7.hairRegion4.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion4.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion5.hairColor = Constants.RED_BLUE;
_local7.hairRegion5.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion5.hairStyle = Constants.FLATTERED_HAIR;
_local7.hairRegion6.hairColor = Constants.RED_BLUE;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.FLATTERED_HAIR;
_local7.accessories.scarve = 3;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK_BROWN;
_local7.hairRegion1.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion1.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK_BROWN;
_local7.hairRegion2.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion2.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK_BROWN;
_local7.hairRegion3.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion3.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion4.hairColor = Constants.BLACK_BROWN;
_local7.hairRegion4.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion4.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion5.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion5.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion6.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion6.hairStyle = Constants.BRAID_HAIR;
_local7.accessories.headband = 3;
_local7.accessories.sunglasse = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.RED_YELLOW;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion2.hairColor = Constants.RED_YELLOW;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion3.hairColor = Constants.RED_YELLOW;
_local7.hairRegion3.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion3.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion4.hairColor = Constants.RED_YELLOW;
_local7.hairRegion4.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion4.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion5.hairColor = Constants.RED_YELLOW;
_local7.hairRegion5.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion5.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion6.hairColor = Constants.RED_YELLOW;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.CRIMPED_HAIR;
_local7.accessories.barrette = 3;
_local7.accessories.headband = 2;
_local7.accessories.glitter = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK_BROWN;
_local7.hairRegion1.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion1.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK_BROWN;
_local7.hairRegion2.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion2.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK_BROWN;
_local7.hairRegion3.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion3.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.BLACK_BROWN;
_local7.hairRegion4.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion4.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_BROWN;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_BROWN;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.accessories.scarve = 1;
_local7.accessories.sunglasse = 1;
_local7.accessories.glitter = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK_RED;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK_RED;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion3.hairColor = Constants.RED;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion4.hairColor = Constants.RED;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_RED;
_local7.hairRegion5.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion5.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_RED;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.ORIGINAL_HAIR;
_local7.accessories.ribbon = 1;
_local7.accessories.glitter = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.ORIGINAL_COLOR;
_local7.hairRegion1.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion1.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion2.hairColor = Constants.ORIGINAL_COLOR;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.YELLOW;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.YELLOW;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.ORIGINAL_COLOR;
_local7.hairRegion5.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion5.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.ORIGINAL_COLOR;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.accessories.barrette = 3;
_local7.accessories.scarve = 2;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion1.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion1.hairStyle = Constants.ORIGINAL_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion2.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion2.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion3.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion3.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion4.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion4.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion5.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion5.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_YELLOW;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.accessories.ribbon = 3;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.RED_BLUE;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion2.hairColor = Constants.RED_BLUE;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion4.hairColor = Constants.RED_BLUE;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion5.hairColor = Constants.RED_BLUE;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.BRAID_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_BLUE;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.BRAID_HAIR;
_local7.accessories.headband = 1;
_local7.accessories.sunglasse = 3;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.WHITE_RED;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.WHITE_RED;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.WHITE;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.WHITE;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.WHITE_BLUE;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.WHITE_BLUE;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.accessories.barrette = 2;
_local7.accessories.headband = 3;
_local7.accessories.scarve = 3;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLUE_YELLOW;
_local7.hairRegion1.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion1.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.BLUE_YELLOW;
_local7.hairRegion2.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion2.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.BLUE_YELLOW;
_local7.hairRegion3.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion3.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.BLUE_YELLOW;
_local7.hairRegion4.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion4.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK;
_local7.hairRegion5.hairLength = Constants.MEDIUM_HAIR;
_local7.hairRegion5.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.BIG_CURLY_HAIR;
_local7.accessories.barrette = 1;
_local7.accessories.scarve = 2;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK_RED;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion2.hairColor = Constants.RED_BLUE;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK_RED;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion4.hairColor = Constants.RED_BLUE;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion5.hairColor = Constants.RED_BLUE;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_RED;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.LITTLE_CURLY_HAIR;
_local7.accessories.headband = 2;
_local7.accessories.sunglasse = 3;
_local7.accessories.glitter = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.RED_YELLOW;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion2.hairColor = Constants.RED_YELLOW;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion3.hairColor = Constants.RED;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion4.hairColor = Constants.RED;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK_RED;
_local7.hairRegion5.hairLength = Constants.LONG_HAIR;
_local7.hairRegion5.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK_RED;
_local7.hairRegion6.hairLength = Constants.LONG_HAIR;
_local7.hairRegion6.hairStyle = Constants.CRIMPED_HAIR;
_local7.accessories.ribbon = 1;
_local7.accessories.glitter = 1;
styles.push(_local7);
_local1 = new HairRegion(null);
_local2 = new HairRegion(null);
_local3 = new HairRegion(null);
_local4 = new HairRegion(null);
_local5 = new HairRegion(null);
_local6 = new HairRegion(null);
_local7 = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6);
_local7.accessories = new Accessories();
_local7.hairRegion1.hairColor = Constants.BLACK;
_local7.hairRegion1.hairLength = Constants.LONG_HAIR;
_local7.hairRegion1.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion2.hairColor = Constants.BLACK;
_local7.hairRegion2.hairLength = Constants.LONG_HAIR;
_local7.hairRegion2.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion3.hairColor = Constants.BLACK;
_local7.hairRegion3.hairLength = Constants.LONG_HAIR;
_local7.hairRegion3.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion4.hairColor = Constants.BLACK;
_local7.hairRegion4.hairLength = Constants.LONG_HAIR;
_local7.hairRegion4.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion5.hairColor = Constants.BLACK;
_local7.hairRegion5.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion5.hairStyle = Constants.CRIMPED_HAIR;
_local7.hairRegion6.hairColor = Constants.BLACK;
_local7.hairRegion6.hairLength = Constants.SHORT_HAIR;
_local7.hairRegion6.hairStyle = Constants.CRIMPED_HAIR;
_local7.accessories.barrette = 1;
_local7.accessories.sunglasse = 2;
styles.push(_local7);
}
public static function getNextTargetHairStyle():CompleteHairStyle{
targetStyleCnt++;
if (targetStyleCnt == styles.length){
targetStyleCnt = 0;
};
return (styles[targetStyleCnt]);
}
public static function getTargetHairStyle(_arg1:Number):CompleteHairStyle{
var _local2:CompleteHairStyle;
_local2 = styles[Math.round((Math.random() * (styles.length - 1)))];
return (_local2);
}
}
}//package gameClasses
Section 12
//Utile (gameClasses.Utile)
package gameClasses {
import flash.filters.*;
public class Utile {
public static function getRGBValues(_arg1:String):Object{
var _local2:Object;
var _local3:Array;
if (_arg1 != null){
_local2 = new Object();
_local3 = _arg1.split(",");
_local2.red = parseInt(_local3[0], 16);
_local2.green = parseInt(_local3[1], 16);
_local2.blue = parseInt(_local3[2], 16);
return (_local2);
};
return (null);
}
public static function getPureColorFilter(_arg1:String):ColorMatrixFilter{
var _local2:Array;
if (_arg1 == Constants.BLACK){
_local2 = Constants.BLACK_MATRIX;
} else {
if (_arg1 == Constants.WHITE){
_local2 = Constants.WHITE_MATRIX;
} else {
if (_arg1 == Constants.BROWN){
_local2 = Constants.BROWN_MATRIX;
} else {
if (_arg1 == Constants.RED){
_local2 = Constants.RED_MATRIX;
} else {
if (_arg1 == Constants.BLUE){
_local2 = Constants.BLUE_MATRIX;
} else {
if (_arg1 == Constants.YELLOW){
_local2 = Constants.YELLOW_MATRIX;
} else {
if (_arg1 == Constants.BLACK_WHITE){
_local2 = Constants.BLACK_WHITE_MATRIX;
} else {
if (_arg1 == Constants.BLACK_BROWN){
_local2 = Constants.BLACK_BROWN_MATRIX;
} else {
if (_arg1 == Constants.BLACK_RED){
_local2 = Constants.BLACK_RED_MATRIX;
} else {
if (_arg1 == Constants.BLACK_BLUE){
_local2 = Constants.BLACK_BLUE_MATRIX;
} else {
if (_arg1 == Constants.BLACK_YELLOW){
_local2 = Constants.BLACK_YELLOW_MATRIX;
} else {
if (_arg1 == Constants.WHITE_BROWN){
_local2 = Constants.WHITE_BROWN_MATRIX;
} else {
if (_arg1 == Constants.WHITE_RED){
_local2 = Constants.WHITE_RED_MATRIX;
} else {
if (_arg1 == Constants.WHITE_BLUE){
_local2 = Constants.WHITE_BLUE_MATRIX;
} else {
if (_arg1 == Constants.WHITE_YELLOW){
_local2 = Constants.WHITE_YELLOW_MATRIX;
} else {
if (_arg1 == Constants.BROWN_RED){
_local2 = Constants.BROWN_RED_MATRIX;
} else {
if (_arg1 == Constants.BROWN_BLUE){
_local2 = Constants.BROWN_BLUE_MATRIX;
} else {
if (_arg1 == Constants.BROWN_YELLOW){
_local2 = Constants.BROWN_YELLOW_MATRIX;
} else {
if (_arg1 == Constants.RED_BLUE){
_local2 = Constants.RED_BLUE_MATRIX;
} else {
if (_arg1 == Constants.RED_YELLOW){
_local2 = Constants.RED_YELLOW_MATRIX;
} else {
if (_arg1 == Constants.BLUE_YELLOW){
_local2 = Constants.BLUE_YELLOW_MATRIX;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
return (new ColorMatrixFilter(_local2));
}
public static function getColorFilter(_arg1:String):ColorMatrixFilter{
var _local2:Object;
var _local3:Array;
_local2 = Utile.getRGBValues(_arg1);
if (_local2 != null){
_local3 = [1, 0, 0, 0, _local2.red, 0, 1, 0, 0, _local2.green, 0, 0, 1, 0, _local2.blue, 0, 0, 0, 1, 0];
} else {
_local3 = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
};
if (_arg1 == Constants.BLACK){
trace("--------------------------------------------------------------------------------------");
trace(("colorMatrix = " + _local3));
};
return (new ColorMatrixFilter(_local3));
}
public static function enableButton(_arg1:Object):void{
_arg1.mouseEnabled = true;
_arg1.enabled = true;
_arg1.alpha = 1;
}
public static function disableButton(_arg1:Object):void{
_arg1.mouseEnabled = false;
_arg1.enabled = false;
_arg1.alpha = 0.5;
}
}
}//package gameClasses
Section 13
//CounterAttributes (mattel.utils.Counter.CounterAttributes)
package mattel.utils.Counter {
public class CounterAttributes {
public var displaySeconds:Boolean;
public var displayHours:Boolean;
public var displayDays:Boolean;
public var displayMinutes:Boolean;
}
}//package mattel.utils.Counter
Section 14
//CounterConstants (mattel.utils.Counter.CounterConstants)
package mattel.utils.Counter {
public class CounterConstants {
public static const TIMER_UP_UNPAUSED:String = "timerUpUnPaused";
public static const TIMER_UP_PAUSED:String = "timerUpPaused";
public static const TIMER_DOWN_STOPPED:String = "timerDownStopped";
public static const TIMER_DOWN_UNPAUSED:String = "timerDownUnPaused";
public static const TIMER_UP_STOPPED:String = "timerUpStopped";
public static const TIMER_DOWN_FINISHED:String = "timerDownFinished";
public static const TIMER_UP_STARTED:String = "timerUpStarted";
public static const TIMER_DOWN_PAUSED:String = "timerDownPaused";
public static const TIMER_UP_FINISHED:String = "timerUpFinished";
public static const TIMER_DOWN_STARTED:String = "timerDownStarted";
}
}//package mattel.utils.Counter
Section 15
//CounterMain (mattel.utils.Counter.CounterMain)
package mattel.utils.Counter {
import flash.display.*;
import flash.events.*;
import mattel.utils.*;
import flash.utils.*;
public class CounterMain extends MovieClip {
public var pauseTimerTimePassed:Number;// = 0
public var endDate:Date;
public var checkForPauseTimerUp:Timer;
private var _counterAttributes:CounterAttributes;
public var startDate:Date;
public var checkForPauseTimerDown:Timer;
public var countUpTimePassed:Number;
public var countupTimer:Timer;
public var pauseTimerTimeLeft:Number;// = 0
public var countdownTimer:Timer;
public var countUpTimeLeft:Number;
private var _initApp:Function;
public var countDownTimeLeft:Number;
public var pauseTimer:Boolean;// = true
public function CounterMain():void{
pauseTimer = true;
pauseTimerTimeLeft = 0;
pauseTimerTimePassed = 0;
countdownTimer = new Timer(1000);
countupTimer = new Timer(1000);
checkForPauseTimerDown = new Timer(150);
checkForPauseTimerUp = new Timer(150);
super();
trace("init CounterMain");
MovieClip(this).txt_days.visible = false;
MovieClip(this).txt_hours.visible = false;
MovieClip(this).txt_minutes.visible = false;
MovieClip(this).txt_secs.visible = false;
MovieClip(this).txt_days1.visible = false;
MovieClip(this).txt_hours1.visible = false;
MovieClip(this).txt_minutes1.visible = false;
MovieClip(this).txt_secs1.visible = false;
MovieClip(this).txt_colon1.visible = false;
MovieClip(this).txt_colon2.visible = false;
MovieClip(this).txt_colon3.visible = false;
}
public function startTimerUp(_arg1:Date):void{
endDate = _arg1;
startDate = new Date();
this.dispatchEvent(new Event(CounterConstants.TIMER_UP_STARTED));
countupTimer.addEventListener(TimerEvent.TIMER, updateTimeCountUp);
countupTimer.start();
checkForPauseTimerUp.addEventListener(TimerEvent.TIMER, checkForPauseUp);
checkForPauseTimerUp.start();
}
public function checkForPauseDown(_arg1:TimerEvent):void{
if (pauseTimer){
checkForPauseTimerDown.stop();
updateTimeCountDown(_arg1);
};
}
public function getCountDownTimeLeft():Number{
return (countDownTimeLeft);
}
public function pauseCountUp():void{
pauseTimer = true;
pauseTimerTimeLeft = 0;
this.dispatchEvent(new Event(CounterConstants.TIMER_UP_PAUSED));
}
public function setTimerDisplay():void{
if ((((((((_counterAttributes.displayDays == true)) && ((_counterAttributes.displayHours == true)))) && ((_counterAttributes.displayMinutes == true)))) && ((_counterAttributes.displaySeconds == true)))){
MovieClip(this).txt_days.visible = true;
MovieClip(this).txt_hours.visible = true;
MovieClip(this).txt_minutes.visible = true;
MovieClip(this).txt_secs.visible = true;
MovieClip(this).txt_days1.visible = true;
MovieClip(this).txt_hours1.visible = true;
MovieClip(this).txt_minutes1.visible = true;
MovieClip(this).txt_secs1.visible = true;
MovieClip(this).txt_colon1.visible = true;
MovieClip(this).txt_colon2.visible = true;
MovieClip(this).txt_colon3.visible = true;
} else {
if ((((((((_counterAttributes.displayDays == false)) && ((_counterAttributes.displayHours == true)))) && ((_counterAttributes.displayMinutes == true)))) && ((_counterAttributes.displaySeconds == true)))){
MovieClip(this).txt_days.visible = false;
MovieClip(this).txt_hours.visible = true;
MovieClip(this).txt_minutes.visible = true;
MovieClip(this).txt_secs.visible = true;
MovieClip(this).txt_days1.visible = false;
MovieClip(this).txt_hours1.visible = true;
MovieClip(this).txt_minutes1.visible = true;
MovieClip(this).txt_secs1.visible = true;
MovieClip(this).txt_colon1.visible = false;
MovieClip(this).txt_colon2.visible = true;
MovieClip(this).txt_colon3.visible = true;
} else {
if ((((((((_counterAttributes.displayDays == false)) && ((_counterAttributes.displayHours == false)))) && ((_counterAttributes.displayMinutes == true)))) && ((_counterAttributes.displaySeconds == true)))){
MovieClip(this).txt_days.visible = false;
MovieClip(this).txt_hours.visible = false;
MovieClip(this).txt_minutes.visible = true;
MovieClip(this).txt_secs.visible = true;
MovieClip(this).txt_days1.visible = false;
MovieClip(this).txt_hours1.visible = false;
MovieClip(this).txt_minutes1.visible = true;
MovieClip(this).txt_secs1.visible = true;
MovieClip(this).txt_colon1.visible = false;
MovieClip(this).txt_colon2.visible = false;
MovieClip(this).txt_colon3.visible = true;
} else {
if ((((((((_counterAttributes.displayDays == false)) && ((_counterAttributes.displayHours == false)))) && ((_counterAttributes.displayMinutes == false)))) && ((_counterAttributes.displaySeconds == true)))){
MovieClip(this).txt_days.visible = false;
MovieClip(this).txt_hours.visible = false;
MovieClip(this).txt_minutes.visible = false;
MovieClip(this).txt_secs.visible = true;
MovieClip(this).txt_days1.visible = false;
MovieClip(this).txt_hours1.visible = false;
MovieClip(this).txt_minutes1.visible = false;
MovieClip(this).txt_secs1.visible = true;
MovieClip(this).txt_colon1.visible = false;
MovieClip(this).txt_colon2.visible = false;
MovieClip(this).txt_colon3.visible = false;
} else {
if ((((((((_counterAttributes.displayDays == true)) && ((_counterAttributes.displayHours == true)))) && ((_counterAttributes.displayMinutes == true)))) && ((_counterAttributes.displaySeconds == false)))){
MovieClip(this).txt_days.visible = true;
MovieClip(this).txt_hours.visible = true;
MovieClip(this).txt_minutes.visible = true;
MovieClip(this).txt_secs.visible = false;
MovieClip(this).txt_days1.visible = true;
MovieClip(this).txt_hours1.visible = true;
MovieClip(this).txt_minutes1.visible = true;
MovieClip(this).txt_secs1.visible = false;
MovieClip(this).txt_colon1.visible = true;
MovieClip(this).txt_colon2.visible = true;
MovieClip(this).txt_colon3.visible = false;
} else {
if ((((((((_counterAttributes.displayDays == true)) && ((_counterAttributes.displayHours == true)))) && ((_counterAttributes.displayMinutes == false)))) && ((_counterAttributes.displaySeconds == false)))){
MovieClip(this).txt_days.visible = true;
MovieClip(this).txt_hours.visible = true;
MovieClip(this).txt_minutes.visible = false;
MovieClip(this).txt_secs.visible = false;
MovieClip(this).txt_days1.visible = true;
MovieClip(this).txt_hours1.visible = true;
MovieClip(this).txt_minutes1.visible = false;
MovieClip(this).txt_secs1.visible = false;
MovieClip(this).txt_colon1.visible = true;
MovieClip(this).txt_colon2.visible = false;
MovieClip(this).txt_colon3.visible = false;
} else {
if ((((((((_counterAttributes.displayDays == true)) && ((_counterAttributes.displayHours == false)))) && ((_counterAttributes.displayMinutes == false)))) && ((_counterAttributes.displaySeconds == false)))){
MovieClip(this).txt_days.visible = true;
MovieClip(this).txt_hours.visible = false;
MovieClip(this).txt_minutes.visible = false;
MovieClip(this).txt_secs.visible = false;
MovieClip(this).txt_days1.visible = true;
MovieClip(this).txt_hours1.visible = false;
MovieClip(this).txt_minutes1.visible = false;
MovieClip(this).txt_secs1.visible = false;
MovieClip(this).txt_colon1.visible = false;
MovieClip(this).txt_colon2.visible = false;
MovieClip(this).txt_colon3.visible = false;
};
};
};
};
};
};
};
}
public function startTimerDown(_arg1:Date):void{
endDate = _arg1;
countdownTimer.addEventListener(TimerEvent.TIMER, updateTimeCountDown);
countdownTimer.start();
checkForPauseTimerDown.addEventListener(TimerEvent.TIMER, checkForPauseDown);
checkForPauseTimerDown.start();
this.dispatchEvent(new Event(CounterConstants.TIMER_DOWN_STARTED));
}
public function updateTimeCountUp(_arg1:TimerEvent):void{
var _local2:Date;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:String;
var _local12:String;
var _local13:String;
var _local14:String;
if (pauseTimer == true){
pauseTimerTimePassed = countUpTimePassed;
pauseTimerTimeLeft = countUpTimeLeft;
} else {
_local2 = new Date();
countUpTimeLeft = (endDate.getTime() - _local2.getTime());
_local3 = Math.floor((countUpTimeLeft / 1000));
_local4 = Math.floor((_local3 / 60));
_local5 = Math.floor((_local4 / 60));
_local6 = Math.floor((_local5 / 24));
_local3 = (_local3 % 60);
_local4 = (_local4 % 60);
_local5 = (_local5 % 24);
countUpTimePassed = (_local2.getTime() - startDate.getTime());
countUpTimePassed = (pauseTimerTimePassed + countUpTimePassed);
_local7 = Math.floor((countUpTimePassed / 1000));
_local8 = Math.floor((_local7 / 60));
_local9 = Math.floor((_local8 / 60));
_local10 = Math.floor((_local9 / 24));
_local7 = (_local7 % 60);
_local8 = (_local8 % 60);
_local9 = (_local9 % 24);
_local11 = _local7.toString();
_local12 = _local8.toString();
_local13 = _local9.toString();
_local14 = _local10.toString();
if (_local11.length < 2){
_local11 = ("0" + _local11);
};
if (_local12.length < 2){
_local12 = ("0" + _local12);
};
if (_local13.length < 2){
_local13 = ("0" + _local13);
};
MovieClip(this).txt_days.text = _local14;
MovieClip(this).txt_hours.text = _local13;
MovieClip(this).txt_minutes.text = _local12;
MovieClip(this).txt_secs.text = _local11;
setTimerDisplay();
if (countUpTimeLeft <= 1000){
this.dispatchEvent(new Event(CounterConstants.TIMER_UP_FINISHED));
stopTimerUp();
};
};
}
public function checkForPauseUp(_arg1:TimerEvent):void{
if (pauseTimer){
checkForPauseTimerUp.stop();
updateTimeCountUp(_arg1);
};
}
public function stopTimerUp():void{
pauseTimerTimePassed = 0;
pauseTimerTimeLeft = 0;
MovieClip(this).txt_days.text = "00";
MovieClip(this).txt_hours.text = "00";
MovieClip(this).txt_minutes.text = "00";
MovieClip(this).txt_secs.text = "00";
countupTimer.stop();
countupTimer.removeEventListener(TimerEvent.TIMER, updateTimeCountUp);
this.dispatchEvent(new Event(CounterConstants.TIMER_UP_STOPPED));
}
public function pauseCountDown():void{
pauseTimer = true;
pauseTimerTimeLeft = 0;
this.dispatchEvent(new Event(CounterConstants.TIMER_DOWN_PAUSED));
}
public function getCountUpTimePassed():Number{
return (countUpTimePassed);
}
public function addSecondsToCountDown(_arg1:Number):void{
endDate = DateMath.addSeconds(endDate, _arg1);
}
public function unpauseCountUp():void{
var _local1:Date;
var _local2:*;
pauseTimer = false;
this.dispatchEvent(new Event(CounterConstants.TIMER_UP_UNPAUSED));
_local1 = new Date();
_local2 = Math.ceil((pauseTimerTimeLeft / 1000));
_local1 = DateMath.addSeconds(_local1, _local2);
startTimerUp(_local1);
}
public function updateTimeCountDown(_arg1:TimerEvent):void{
var _local2:Date;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:String;
var _local8:String;
var _local9:String;
var _local10:String;
if (pauseTimer == true){
pauseTimerTimeLeft = countDownTimeLeft;
} else {
_local2 = new Date();
countDownTimeLeft = (endDate.getTime() - _local2.getTime());
_local3 = Math.ceil((countDownTimeLeft / 1000));
_local4 = Math.floor((_local3 / 60));
_local5 = Math.floor((_local4 / 60));
_local6 = Math.floor((_local5 / 24));
_local3 = (_local3 % 60);
_local4 = (_local4 % 60);
_local5 = (_local5 % 24);
_local7 = _local3.toString();
_local8 = _local4.toString();
_local9 = _local5.toString();
_local10 = _local6.toString();
if (_local7.length < 2){
_local7 = ("0" + _local7);
};
if (_local8.length < 2){
_local8 = ("0" + _local8);
};
if (_local9.length < 2){
_local9 = ("0" + _local9);
};
MovieClip(this).txt_days.text = _local10;
MovieClip(this).txt_hours.text = _local9;
MovieClip(this).txt_minutes.text = _local8;
MovieClip(this).txt_secs.text = _local7;
setTimerDisplay();
if (countDownTimeLeft <= 500){
this.dispatchEvent(new Event(CounterConstants.TIMER_DOWN_FINISHED));
stopTimerDown();
};
};
}
public function stopTimerDown():void{
pauseTimerTimeLeft = 0;
MovieClip(this).txt_days.text = "00";
MovieClip(this).txt_hours.text = "00";
MovieClip(this).txt_minutes.text = "00";
MovieClip(this).txt_secs.text = "00";
countdownTimer.stop();
countdownTimer.removeEventListener(TimerEvent.TIMER, updateTimeCountDown);
this.dispatchEvent(new Event(CounterConstants.TIMER_DOWN_STOPPED));
}
public function subtractSecondsFromCountDown(_arg1:Number):void{
var _local2:*;
var _local3:*;
_local2 = (_arg1 * 1000);
if (_local2 >= countDownTimeLeft){
_local3 = Math.ceil((countDownTimeLeft / 1000));
_local3--;
endDate = DateMath.subtractSeconds(endDate, _local3);
} else {
endDate = DateMath.subtractSeconds(endDate, _arg1);
};
}
public function initCounter():void{
_initApp();
}
public function unpauseCountDown():void{
var _local1:Date;
var _local2:*;
pauseTimer = false;
this.dispatchEvent(new Event(CounterConstants.TIMER_DOWN_UNPAUSED));
_local1 = new Date();
_local2 = Math.ceil((pauseTimerTimeLeft / 1000));
_local1 = DateMath.addSeconds(_local1, _local2);
startTimerDown(_local1);
}
public function set counterAttributes(_arg1:CounterAttributes):void{
_counterAttributes = _arg1;
}
public function set initApp(_arg1:Function):void{
_initApp = _arg1;
}
}
}//package mattel.utils.Counter
Section 16
//ImageItem (mattel.utils.loading.loadingtypes.ImageItem)
package mattel.utils.loading.loadingtypes {
import flash.display.*;
import flash.events.*;
import mattel.utils.loading.*;
import flash.net.*;
import flash.utils.*;
public class ImageItem extends LoadingItem {
public var loader:Loader;
public function ImageItem(_arg1:URLRequest, _arg2:String, _arg3:String){
specificAvailableProps = [BulkLoader.CONTEXT];
super(_arg1, _arg2, _arg3);
}
override public function stop():void{
try {
if (loader){
loader.close();
};
} catch(e:Error) {
};
super.stop();
}
override public function _parseOptions(_arg1:Object):Array{
context = ((_arg1[BulkLoader.CONTEXT]) || (null));
return (super._parseOptions(_arg1));
}
override public function isImage():Boolean{
return ((type == BulkLoader.TYPE_IMAGE));
}
public function _onHttpStatusHandler(_arg1:HTTPStatusEvent):void{
_httpStatus = _arg1.status;
dispatchEvent(_arg1);
}
override public function onErrorHandler(_arg1:Event):void{
super.onErrorHandler(_arg1);
}
override public function load():void{
super.load();
loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 100, true);
loader.contentLoaderInfo.addEventListener(Event.OPEN, onStartedHandler, false, 0, true);
loader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false, 0, true);
loader.load(url, context);
}
override public function cleanListeners():void{
var _local1:Object;
if (loader){
_local1 = loader.contentLoaderInfo;
_local1.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false);
_local1.removeEventListener(Event.COMPLETE, onCompleteHandler, false);
_local1.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false);
_local1.removeEventListener(BulkLoader.OPEN, onStartedHandler, false);
_local1.removeEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false);
};
}
override public function isSWF():Boolean{
return ((type == BulkLoader.TYPE_MOVIECLIP));
}
override public function onCompleteHandler(_arg1:Event):void{
_content = loader.content;
super.onCompleteHandler(_arg1);
}
override public function destroy():void{
stop();
cleanListeners();
_content = null;
loader = null;
}
}
}//package mattel.utils.loading.loadingtypes
Section 17
//LoadingItem (mattel.utils.loading.loadingtypes.LoadingItem)
package mattel.utils.loading.loadingtypes {
import flash.display.*;
import flash.events.*;
import mattel.utils.loading.*;
import flash.net.*;
import flash.utils.*;
public class LoadingItem extends EventDispatcher {
public var _priority:int;// = 0
public var status:String;
public var _type:String;
public var _isLoaded:Boolean;
public var _isLoading:Boolean;
public var _additionIndex:int;
public var _bytesTotal:int;// = -1
public var _httpStatus:int;// = -1
public var _content;
public var _speed:Number;
public var _weightPercentLoaded:Number;
public var propertyParsingErrors:Array;
public var url:URLRequest;
public var weight:int;// = 1
public var _addedTime:int;
public var preventCache:Boolean;
public var _uid:String;
public var _responseTime:Number;
public var maxTries:int;// = 3
public var _bytesLoaded:int;// = 0
public var _percentLoaded:Number;
public var context;// = null
public var _totalTime:int;
public var numTries:int;// = 0
public var _id:String;
public var _latency:Number;
public var _startTime:int;
public var _bytesRemaining:int;// = 10000000
public var _timeToDownload:int;
public var specificAvailableProps:Array;
public static const STATUS_STOPPED:String = "stopped";
public static const STATUS_STARTED:String = "started";
public static const STATUS_ERROR:String = "error";
public static const STATUS_FINISHED:String = "finished";
public function LoadingItem(_arg1:URLRequest, _arg2:String, _arg3:String){
_priority = 0;
maxTries = 3;
numTries = 0;
weight = 1;
_bytesTotal = -1;
_bytesLoaded = 0;
_bytesRemaining = 10000000;
_httpStatus = -1;
context = null;
super();
this._type = _arg2;
this.url = _arg1;
if (!specificAvailableProps){
specificAvailableProps = [];
};
this._uid = _arg3;
}
public function onCompleteHandler(_arg1:Event):void{
_totalTime = getTimer();
_timeToDownload = ((_totalTime - _responseTime) / 1000);
if (_timeToDownload == 0){
_timeToDownload = 0.2;
};
_speed = BulkLoader.truncateNumber(((bytesTotal / 0x0400) / _timeToDownload));
if (_timeToDownload == 0){
_speed = 3000;
};
status = STATUS_FINISHED;
_isLoaded = true;
dispatchEvent(_arg1);
_arg1.stopPropagation();
}
public function stop():void{
if (_isLoaded){
return;
};
status = STATUS_STOPPED;
_isLoading = false;
}
public function isSound():Boolean{
return (false);
}
public function get weightPercentLoaded():Number{
return (_weightPercentLoaded);
}
public function get id():String{
return (_id);
}
public function onHttpStatusHandler(_arg1:HTTPStatusEvent):void{
_httpStatus = _arg1.status;
dispatchEvent(_arg1);
}
public function get type():String{
return (_type);
}
public function get speed():Number{
return (_speed);
}
public function onStartedHandler(_arg1:Event):void{
_responseTime = getTimer();
_latency = BulkLoader.truncateNumber(((_responseTime - _startTime) / 1000));
status = STATUS_STARTED;
dispatchEvent(_arg1);
}
public function get bytesLoaded():int{
return (_bytesLoaded);
}
public function isImage():Boolean{
return (false);
}
public function _parseOptions(_arg1:Object):Array{
var _local2:Array;
var _local3:String;
preventCache = _arg1[BulkLoader.PREVENT_CACHING];
_id = _arg1[BulkLoader.ID];
_priority = ((int(_arg1[BulkLoader.PRIORITY])) || (0));
maxTries = ((_arg1[BulkLoader.MAX_TRIES]) || (3));
weight = ((int(_arg1[BulkLoader.WEIGHT])) || (1));
_local2 = BulkLoader.GENERAL_AVAILABLE_PROPS.concat(specificAvailableProps);
propertyParsingErrors = [];
for (_local3 in _arg1) {
if (_local2.indexOf(_local3) == -1){
propertyParsingErrors.push(((((this + ": got a wrong property name: ") + _local3) + ", with value:") + _arg1[_local3]));
};
};
return (propertyParsingErrors);
}
public function get startTime():int{
return (_startTime);
}
public function get totalTime():int{
return (_totalTime);
}
override public function toString():String{
return (((((("LoadingItem url: " + url.url) + ", type:") + _type) + ", status: ") + status));
}
public function isVideo():Boolean{
return (false);
}
public function isText():Boolean{
return (false);
}
public function get content(){
return (_content);
}
public function onProgressHandler(_arg1):void{
_bytesLoaded = _arg1.bytesLoaded;
_bytesTotal = _arg1.bytesTotal;
_bytesRemaining = (_bytesTotal - bytesLoaded);
_percentLoaded = (_bytesLoaded / _bytesTotal);
_weightPercentLoaded = (_percentLoaded * weight);
dispatchEvent(_arg1);
}
public function get bytesTotal():int{
return (_bytesTotal);
}
public function get httpStatus():int{
return (_httpStatus);
}
public function isXML():Boolean{
return (false);
}
public function onErrorHandler(_arg1:Event):void{
var _local2:BulkErrorEvent;
numTries++;
status = STATUS_ERROR;
_arg1.stopPropagation();
if (numTries >= maxTries){
_local2 = new BulkErrorEvent(BulkErrorEvent.ERROR);
_local2.errors = [this];
dispatchEvent(_local2);
} else {
status = null;
load();
};
}
public function get priority():int{
return (_priority);
}
public function get percentLoaded():Number{
return (_percentLoaded);
}
public function get responseTime():Number{
return (_responseTime);
}
public function isStreamable():Boolean{
return (false);
}
public function get bytesRemaining():int{
return (_bytesRemaining);
}
public function get isLoaded():Boolean{
return (_isLoaded);
}
public function get timeToDownload():int{
return (_timeToDownload);
}
public function isLoader():Boolean{
return (false);
}
public function load():void{
var _local1:String;
if (preventCache){
_local1 = ((("BulkLoaderNoCache=" + _uid) + "_") + int(((Math.random() * 100) * getTimer())));
if (url.url.indexOf("?") == -1){
url.url = (url.url + ("?" + _local1));
} else {
url.url = (url.url + ("&" + _local1));
};
};
_isLoading = true;
_startTime = getTimer();
}
public function getStats():String{
return ((((((((((("Item url:" + url.url) + ", total time: ") + _timeToDownload) + "(s), latency:") + _latency) + "(s), speed: ") + _speed) + " kb/s, size: ") + BulkLoader.truncateNumber((_bytesTotal / 0x0400))) + " kb"));
}
public function get addedTime():int{
return (_addedTime);
}
public function cleanListeners():void{
}
public function isSWF():Boolean{
return (false);
}
public function destroy():void{
_content = null;
}
public function get latency():Number{
return (_latency);
}
}
}//package mattel.utils.loading.loadingtypes
Section 18
//SoundItem (mattel.utils.loading.loadingtypes.SoundItem)
package mattel.utils.loading.loadingtypes {
import flash.events.*;
import mattel.utils.loading.*;
import flash.media.*;
import flash.net.*;
public class SoundItem extends LoadingItem {
public var loader:Sound;
public function SoundItem(_arg1:URLRequest, _arg2:String, _arg3:String){
specificAvailableProps = [BulkLoader.CONTEXT];
super(_arg1, _arg2, _arg3);
}
override public function stop():void{
try {
if (loader){
loader.close();
};
} catch(e:Error) {
};
super.stop();
}
override public function isSound():Boolean{
return (true);
}
override public function onStartedHandler(_arg1:Event):void{
_content = loader;
super.onStartedHandler(_arg1);
}
override public function _parseOptions(_arg1:Object):Array{
context = ((_arg1[BulkLoader.CONTEXT]) || (null));
return (super._parseOptions(_arg1));
}
override public function onErrorHandler(_arg1:Event):void{
super.onErrorHandler(_arg1);
}
override public function isStreamable():Boolean{
return (true);
}
override public function load():void{
super.load();
loader = new Sound();
loader.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true);
loader.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true);
loader.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true);
loader.addEventListener(Event.OPEN, onStartedHandler, false, 0, true);
loader.load(url, context);
}
override public function cleanListeners():void{
if (loader){
loader.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false);
loader.removeEventListener(Event.COMPLETE, onCompleteHandler, false);
loader.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false);
loader.removeEventListener(BulkLoader.OPEN, onStartedHandler, false);
};
}
override public function onCompleteHandler(_arg1:Event):void{
_content = loader;
super.onCompleteHandler(_arg1);
}
override public function destroy():void{
cleanListeners();
stop();
_content = null;
loader = null;
}
}
}//package mattel.utils.loading.loadingtypes
Section 19
//URLItem (mattel.utils.loading.loadingtypes.URLItem)
package mattel.utils.loading.loadingtypes {
import flash.events.*;
import mattel.utils.loading.*;
import flash.net.*;
public class URLItem extends LoadingItem {
public var loader:URLLoader;
public function URLItem(_arg1:URLRequest, _arg2:String, _arg3:String){
super(_arg1, _arg2, _arg3);
}
override public function stop():void{
try {
if (loader){
loader.close();
};
} catch(e:Error) {
};
super.stop();
}
override public function onStartedHandler(_arg1:Event):void{
super.onStartedHandler(_arg1);
}
override public function _parseOptions(_arg1:Object):Array{
return (super._parseOptions(_arg1));
}
override public function isText():Boolean{
return (true);
}
override public function load():void{
super.load();
loader = new URLLoader();
loader.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true);
loader.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true);
loader.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true);
loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false, 0, true);
loader.addEventListener(Event.OPEN, onStartedHandler, false, 0, true);
loader.load(url);
}
override public function cleanListeners():void{
if (loader){
loader.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false);
loader.removeEventListener(Event.COMPLETE, onCompleteHandler, false);
loader.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false);
loader.removeEventListener(BulkLoader.OPEN, onStartedHandler, false);
loader.removeEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false);
};
}
override public function onCompleteHandler(_arg1:Event):void{
_content = loader.data;
super.onCompleteHandler(_arg1);
}
override public function destroy():void{
stop();
cleanListeners();
_content = null;
loader = null;
}
}
}//package mattel.utils.loading.loadingtypes
Section 20
//VideoItem (mattel.utils.loading.loadingtypes.VideoItem)
package mattel.utils.loading.loadingtypes {
import flash.display.*;
import flash.events.*;
import mattel.utils.loading.*;
import flash.net.*;
import flash.utils.*;
public class VideoItem extends LoadingItem {
private var _canBeginStreaming:Boolean;// = false
var stream:NetStream;
private var dummyEventTrigger:Sprite;
private var nc:NetConnection;
private var _checkPolicyFile:Boolean;
private var _metaData:Object;
var pausedAtStart:Boolean;// = false
public function VideoItem(_arg1:URLRequest, _arg2:String, _arg3:String){
pausedAtStart = false;
_canBeginStreaming = false;
specificAvailableProps = [BulkLoader.CHECK_POLICY_FILE, BulkLoader.PAUSED_AT_START];
super(_arg1, _arg2, _arg3);
}
override public function stop():void{
try {
if (stream){
stream.close();
};
} catch(e:Error) {
};
super.stop();
}
function onVideoMetadata(_arg1):void{
_metaData = _arg1;
}
private function fireCanBeginStreamingEvent():void{
var _local1:Event;
if (_canBeginStreaming){
return;
};
_canBeginStreaming = true;
_local1 = new Event(BulkLoader.CAN_BEGIN_PLAYING);
dispatchEvent(_local1);
}
override public function onStartedHandler(_arg1:Event):void{
_content = stream;
if (((pausedAtStart) && (stream))){
stream.pause();
};
super.onStartedHandler(_arg1);
}
override public function _parseOptions(_arg1:Object):Array{
pausedAtStart = ((_arg1[BulkLoader.PAUSED_AT_START]) || (false));
_checkPolicyFile = ((_arg1[BulkLoader.CHECK_POLICY_FILE]) || (false));
return (super._parseOptions(_arg1));
}
override public function isVideo():Boolean{
return (true);
}
public function get metaData():Object{
return (_metaData);
}
public function createNetStreamEvent(_arg1:Event):void{
var _local2:Event;
var _local3:Event;
var _local4:ProgressEvent;
var _local5:int;
var _local6:Number;
var _local7:Number;
var _local8:Number;
if ((((_bytesTotal == _bytesLoaded)) && ((_bytesTotal > 8)))){
if (dummyEventTrigger){
dummyEventTrigger.removeEventListener(Event.ENTER_FRAME, createNetStreamEvent, false);
};
_local2 = new Event(Event.COMPLETE);
onCompleteHandler(_local2);
} else {
if ((((_bytesTotal == 0)) && ((stream.bytesTotal > 4)))){
_local3 = new Event(Event.OPEN);
onStartedHandler(_local3);
_bytesLoaded = stream.bytesLoaded;
_bytesTotal = stream.bytesTotal;
} else {
if (stream){
_local4 = new ProgressEvent(ProgressEvent.PROGRESS, false, false, stream.bytesLoaded, stream.bytesTotal);
if (((((isVideo()) && (metaData))) && (!(_canBeginStreaming)))){
_local5 = (getTimer() - responseTime);
_local6 = (bytesLoaded / (_local5 / 1000));
_local7 = (_bytesRemaining / (_local6 * 0.8));
_local8 = (metaData.duration - stream.bufferLength);
if (_local8 > _local7){
fireCanBeginStreamingEvent();
};
};
super.onProgressHandler(_local4);
};
};
};
}
override public function isStreamable():Boolean{
return (true);
}
function onNetStatus(_arg1:NetStatusEvent):void{
var _local2:Event;
if (!stream){
return;
};
stream.removeEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false);
if (_arg1.info.code == "NetStream.Play.Start"){
_content = stream;
_local2 = new Event(Event.OPEN);
onStartedHandler(_local2);
} else {
if (_arg1.info.code == "NetStream.Play.StreamNotFound"){
onErrorHandler(_arg1);
};
};
}
override public function load():void{
var customClient:Object;
super.load();
nc = new NetConnection();
nc.connect(null);
stream = new NetStream(nc);
stream.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true);
stream.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false, 0, true);
dummyEventTrigger = new Sprite();
dummyEventTrigger.addEventListener(Event.ENTER_FRAME, createNetStreamEvent, false, 0, true);
customClient = new Object();
customClient.onCuePoint = function (... _args):void{
};
customClient.onMetaData = onVideoMetadata;
customClient.onPlayStatus = function (... _args):void{
};
stream.client = customClient;
stream.play(url.url, _checkPolicyFile);
stream.seek(0);
}
override public function cleanListeners():void{
if (stream){
stream.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false);
stream.removeEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false);
};
if (dummyEventTrigger){
dummyEventTrigger.removeEventListener(Event.ENTER_FRAME, createNetStreamEvent, false);
dummyEventTrigger = null;
};
}
override public function onCompleteHandler(_arg1:Event):void{
_content = stream;
super.onCompleteHandler(_arg1);
}
override public function destroy():void{
if (stream){
};
stop();
cleanListeners();
stream = null;
super.destroy();
}
public function get checkPolicyFile():Object{
return (_checkPolicyFile);
}
}
}//package mattel.utils.loading.loadingtypes
Section 21
//XMLItem (mattel.utils.loading.loadingtypes.XMLItem)
package mattel.utils.loading.loadingtypes {
import flash.events.*;
import mattel.utils.loading.*;
import flash.net.*;
public class XMLItem extends LoadingItem {
public var loader:URLLoader;
public function XMLItem(_arg1:URLRequest, _arg2:String, _arg3:String){
super(_arg1, _arg2, _arg3);
}
override public function stop():void{
try {
if (loader){
loader.close();
};
} catch(e:Error) {
};
super.stop();
}
override public function onStartedHandler(_arg1:Event):void{
super.onStartedHandler(_arg1);
}
override public function _parseOptions(_arg1:Object):Array{
return (super._parseOptions(_arg1));
}
override public function isText():Boolean{
return (true);
}
override public function onErrorHandler(_arg1:Event):void{
super.onErrorHandler(_arg1);
}
override public function load():void{
super.load();
loader = new URLLoader();
loader.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true);
loader.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true);
loader.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true);
loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false, 0, true);
loader.addEventListener(Event.OPEN, onStartedHandler, false, 0, true);
loader.load(url);
}
override public function cleanListeners():void{
if (loader){
loader.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false);
loader.removeEventListener(Event.COMPLETE, onCompleteHandler, false);
loader.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false);
loader.removeEventListener(BulkLoader.OPEN, onStartedHandler, false);
loader.removeEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false);
};
}
override public function onCompleteHandler(_arg1:Event):void{
_content = new XML(loader.data);
super.onCompleteHandler(_arg1);
}
override public function destroy():void{
stop();
cleanListeners();
_content = null;
loader = null;
}
}
}//package mattel.utils.loading.loadingtypes
Section 22
//BulkErrorEvent (mattel.utils.loading.BulkErrorEvent)
package mattel.utils.loading {
import flash.events.*;
public class BulkErrorEvent extends Event {
public var name:String;
public var errors:Array;
public static const ERROR:String = "error";
public function BulkErrorEvent(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
this.name = _arg1;
}
override public function toString():String{
return (super.toString());
}
override public function clone():Event{
var _local1:BulkErrorEvent;
_local1 = new BulkErrorEvent(name, bubbles, cancelable);
_local1.errors = (errors) ? errors.slice() : [];
return (_local1);
}
}
}//package mattel.utils.loading
Section 23
//BulkLoader (mattel.utils.loading.BulkLoader)
package mattel.utils.loading {
import flash.display.*;
import flash.events.*;
import mattel.utils.loading.loadingtypes.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
public class BulkLoader extends EventDispatcher {
public var _itemsTotal:int;// = 0
public var speedAvg:Number;
public var _numConnections:int;// = 7
public var _totalWeight:int;// = 0
public var _bytesTotalCurrent:int;// = 0
public var _itemsLoaded:int;// = 0
public var totalTime:Number;
public var _additionIndex:int;// = 0
public var _bytesTotal:int;// = 0
public var _speed:Number;
public var _loadedRatio:Number;// = 0
public var _isPaused:Boolean;// = true
public var _isFinished:Boolean;
public var _lastSpeedCheck:int;
public var _name:String;
public var _allowsAutoIDFromFileName:Boolean;// = false
public var _contents:Dictionary;
public var _logFunction:Function;
public var _bytesLoaded:int;// = 0
public var _connections:Array;
public var logLevel:int;// = 20
public var _percentLoaded:Number;// = 0
public var _weightPercent:Number;
public var _lastBytesCheck:int;
public var _isRunning:Boolean;
public var _id:int;
public var _items:Array;
public var _stringSubstitutions:Object;
public var avgLatency:Number;
public var _startTime:int;
public var _speedTotal:Number;
public var _endTIme:int;
public static const LOG_INFO:int = 2;
public static const HTTP_STATUS:String = "httpStatus";
public static const CONTEXT:String = "context";
public static const CAN_BEGIN_PLAYING:String = "canBeginPlaying";
public static const TYPE_VIDEO:String = "video";
public static const TYPE_TEXT:String = "text";
public static const TYPE_MOVIECLIP:String = "movieclip";
public static const PREVENT_CACHING:String = "preventCache";
public static const PAUSED_AT_START:String = "pausedAtStart";
public static const TYPE_SOUND:String = "sound";
public static const PROGRESS:String = "progress";
public static const DEFAULT_LOG_LEVEL:int = 20;
public static const ID:String = "id";
public static const CHECK_POLICY_FILE:String = "checkPolicyFile";
public static const COMPLETE:String = "complete";
public static const PRIORITY:String = "priority";
public static const MAX_TRIES:String = "maxTries";
public static const VERSION:String = "rev 196 (0.9.9.4)";
public static const AVAILABLE_TYPES:Array = [TYPE_VIDEO, TYPE_XML, TYPE_TEXT, TYPE_SOUND, TYPE_MOVIECLIP, TYPE_IMAGE];
public static const LOG_VERBOSE:int = 0;
public static const OPEN:String = "open";
public static const LOG_WARNINGS:int = 3;
public static const DEFAULT_NUM_CONNECTIONS:int = 7;
public static const GENERAL_AVAILABLE_PROPS:Array = [WEIGHT, MAX_TRIES, HEADERS, ID, PRIORITY, PREVENT_CACHING, "type"];
public static const LOG_SILENT:int = 10;
public static const ERROR:String = "error";
public static const HEADERS:String = "headers";
public static const LOG_ERRORS:int = 4;
public static const TYPE_IMAGE:String = "image";
public static const TYPE_XML:String = "xml";
public static const WEIGHT:String = "weight";
public static var IMAGE_EXTENSIONS:Array = ["jpg", "jpeg", "gif", "png"];
public static var _customTypesExtensions:Object;
public static var MOVIECLIP_EXTENSIONS:Array = ["swf"];
public static var XML_EXTENSIONS:Array = ["xml"];
public static var _typeClasses:Object = {image:ImageItem, movieclip:ImageItem, xml:XMLItem, video:VideoItem, sound:SoundItem, text:URLItem};
public static var TEXT_EXTENSIONS:Array = ["txt", "js", "php", "asp", "py"];
public static var _instancesCreated:int = 0;
public static var AVAILABLE_EXTENSIONS:Array = ["swf", "jpg", "jpeg", "gif", "png", "flv", "mp3", "xml", "txt", "js"];
public static var SOUND_EXTENSIONS:Array = ["mp3", "f4a", "f4b"];
public static var VIDEO_EXTENSIONS:Array = ["flv", "f4v", "f4p"];
public static var _allLoaders:Object = {};
public function BulkLoader(_arg1:String, _arg2:int=7, _arg3:int=20){
_items = [];
_contents = new Dictionary();
_additionIndex = 0;
_numConnections = DEFAULT_NUM_CONNECTIONS;
_loadedRatio = 0;
_itemsTotal = 0;
_itemsLoaded = 0;
_totalWeight = 0;
_bytesTotal = 0;
_bytesTotalCurrent = 0;
_bytesLoaded = 0;
_percentLoaded = 0;
logLevel = DEFAULT_LOG_LEVEL;
_allowsAutoIDFromFileName = false;
_isPaused = true;
_logFunction = trace;
super();
if (Boolean(_allLoaders[_arg1])){
__debug_print_loaders();
throw (new Error((("BulkLoader with name'" + _arg1) + "' has already been created.")));
};
if (!_arg1){
throw (new Error("Cannot create a BulkLoader instance without a name"));
};
_allLoaders[_arg1] = this;
if (_arg2 > 0){
this._numConnections = _arg2;
};
this.logLevel = _arg3;
_name = _arg1;
_instancesCreated++;
_id = _instancesCreated;
_additionIndex = 0;
}
public function get allowsAutoIDFromFileName():Boolean{
return (_allowsAutoIDFromFileName);
}
public function _onItemComplete(_arg1:Event):void{
var _local2:LoadingItem;
var _local3:Boolean;
var _local4:Boolean;
_local2 = (_arg1.target as LoadingItem);
_removeFromConnections(_local2);
log("Loaded ", _local2, LOG_INFO);
log("Items to load", getNotLoadedItems(), LOG_VERBOSE);
_local2.cleanListeners();
_contents[_local2.url.url] = _local2.content;
_local3 = _loadNext();
_local4 = _isAllDoneP();
_itemsLoaded++;
if (_local4){
_onAllLoaded();
};
}
public function get loadedRatio():Number{
return (_loadedRatio);
}
public function loadNow(_arg1):Boolean{
var _local2:LoadingItem;
var _local3:LoadingItem;
if ((_arg1 is LoadingItem)){
_local2 = _arg1;
} else {
_local2 = get(_arg1);
};
if (!_local2){
return (false);
};
if (!_connections){
_connections = [];
};
if ((((_local2.status == LoadingItem.STATUS_FINISHED)) || ((_local2.status == LoadingItem.STATUS_STARTED)))){
return (true);
};
if (_connections.length >= numConnections){
_local3 = _getLeastUrgentOpenedItem();
_removeFromConnections(_local3);
_local3.status = null;
};
_local2._priority = highestPriority;
_loadNext(_local2);
return (true);
}
public function set allowsAutoIDFromFileName(_arg1:Boolean):void{
_allowsAutoIDFromFileName = _arg1;
}
public function _getContentAsType(_arg1, _arg2:Class, _arg3:Boolean=false){
var item:LoadingItem;
var res:*;
var key = _arg1;
var type = _arg2;
var clearMemory = _arg3;
if (!_name){
throw (new Error("[BulkLoader] Cannot use an instance that has been cleared from memory (.clear())"));
};
item = get(key);
if (!item){
return (null);
};
try {
if (((item._isLoaded) || (((item.isStreamable()) && ((item.status == LoadingItem.STATUS_STARTED)))))){
res = (item.content as type);
if (res == null){
throw (new Error("bad cast"));
};
if (clearMemory){
remove(key);
};
return (res);
};
} catch(e:Error) {
log((("Failed to get content with url: '" + key) + "'as type:"), type, LOG_ERRORS);
};
return (null);
}
public function set stringSubstitutions(_arg1:Object):void{
_stringSubstitutions = _arg1;
}
public function get contents():Object{
return (_contents);
}
public function get id():int{
return (_id);
}
public function getBitmap(_arg1:String, _arg2:Boolean=false):Bitmap{
return (Bitmap(_getContentAsType(_arg1, Bitmap, _arg2)));
}
public function _removeFromConnections(_arg1):Boolean{
var _local2:int;
if (!_connections){
return (false);
};
_local2 = _connections.indexOf(_arg1);
if (_local2 > -1){
_connections.splice(_local2, 1);
return (true);
};
return (false);
}
public function resume(_arg1):Boolean{
var _local2:LoadingItem;
_local2 = ((_arg1 is LoadingItem)) ? _arg1 : get(_arg1);
_isPaused = false;
if (((_local2) && ((_local2.status == LoadingItem.STATUS_STOPPED)))){
_local2.status = null;
_loadNext();
return (true);
};
return (false);
}
public function _onAllLoaded():void{
var _local1:BulkProgressEvent;
var _local2:BulkProgressEvent;
if (_isFinished){
return;
};
_local1 = new BulkProgressEvent(COMPLETE);
_local1.setInfo(bytesLoaded, bytesTotal, bytesTotalCurrent, _itemsLoaded, itemsTotal, weightPercent);
_local2 = new BulkProgressEvent(PROGRESS);
_local2.setInfo(bytesLoaded, bytesTotal, bytesTotalCurrent, _itemsLoaded, itemsTotal, weightPercent);
_isRunning = false;
_endTIme = getTimer();
totalTime = BulkLoader.truncateNumber(((_endTIme - _startTime) / 1000));
_updateStats();
_connections = [];
getStats();
_isFinished = true;
log("Finished all", LOG_INFO);
dispatchEvent(_local2);
dispatchEvent(_local1);
}
public function removePausedItems():Boolean{
var stoppedLoads:Array;
stoppedLoads = _items.filter(function (_arg1:LoadingItem, ... _args):Boolean{
return ((_arg1.status == LoadingItem.STATUS_STOPPED));
});
stoppedLoads.forEach(function (_arg1:LoadingItem, ... _args):void{
remove(_arg1);
});
_loadNext();
return ((stoppedLoads.length > 0));
}
public function resumeAll():Boolean{
var affected:Boolean;
log("Resuming all items", LOG_VERBOSE);
affected = false;
_items.forEach(function (_arg1:LoadingItem, ... _args):void{
if (_arg1.status == LoadingItem.STATUS_STOPPED){
resume(_arg1);
affected = true;
};
});
_loadNext();
return (affected);
}
public function get isRunning():Boolean{
return (_isRunning);
}
public function getNetStreamMetaData(_arg1:String, _arg2:Boolean=false):Object{
var _local3:NetStream;
_local3 = getNetStream(_arg1, _arg2);
return ((Boolean(_local3)) ? (get(_arg1) as Object).metaData : null);
}
public function get logFunction():Function{
return (_logFunction);
}
public function getProgressForItems(_arg1:Array):BulkProgressEvent{
var _local2:Number;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:LoadingItem;
var _local12:Array;
var _local13:*;
var _local14:BulkProgressEvent;
_bytesLoaded = (_bytesTotal = (_bytesTotalCurrent = 0));
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = 0;
_local6 = 0;
_local7 = 0;
_local8 = 0;
_local9 = 0;
_local10 = 0;
_local12 = [];
for each (_local13 in _arg1) {
_local11 = ((_local13 is LoadingItem)) ? _local13 : get(_local13);
if (!_local11){
} else {
_local6++;
_local3 = (_local3 + _local11.weight);
if ((((((_local11.status == LoadingItem.STATUS_STARTED)) || ((_local11.status == LoadingItem.STATUS_FINISHED)))) || ((_local11.status == LoadingItem.STATUS_STOPPED)))){
_local8 = (_local8 + _local11._bytesLoaded);
_local10 = (_local10 + _local11._bytesTotal);
_local5 = (_local5 + ((_local11._bytesLoaded / _local11._bytesTotal) * _local11.weight));
if (_local11.status == LoadingItem.STATUS_FINISHED){
_local7++;
};
_local4++;
};
};
};
if (_local4 != _local6){
_local9 = Number.POSITIVE_INFINITY;
} else {
_local9 = _local10;
};
_local2 = (_local5 / _local3);
if (_local3 == 0){
_local2 = 0;
};
_local14 = new BulkProgressEvent(PROGRESS);
_local14.setInfo(_local8, _local9, _local9, _local7, _local6, _local2);
return (_local14);
}
public function getContent(_arg1:String, _arg2:Boolean=false){
return (_getContentAsType(_arg1, Object, _arg2));
}
public function getSerializedData(_arg1, _arg2:Boolean=false, _arg3:Function=null){
var raw:*;
var parsed:*;
var key = _arg1;
var clearMemory = _arg2;
var encodingFunction = _arg3;
try {
raw = _getContentAsType(key, Object, clearMemory);
parsed = encodingFunction.apply(null, [raw]);
return (parsed);
} catch(e:Error) {
log("Failed to parse key:", key, ("with encodingFunction:" + encodingFunction), LOG_ERRORS);
};
return (null);
}
public function log(... _args):void{
var _local2:int;
_local2 = (isNaN(_args[(_args.length - 1)])) ? 3 : int(_args.pop());
if (_local2 >= logLevel){
_logFunction(("[BulkLoader] " + _args.join(" ")));
};
}
public function get bytesLoaded():int{
return (_bytesLoaded);
}
public function _loadNext(_arg1:LoadingItem=null):Boolean{
var next:Boolean;
var checkItem:LoadingItem;
var toLoad = _arg1;
if (_isFinished){
return (false);
};
if (!_connections){
_connections = [];
};
_connections.forEach(function (_arg1:LoadingItem, ... _args):void{
if ((((_arg1.status == LoadingItem.STATUS_ERROR)) && ((_arg1.numTries < _arg1.maxTries)))){
_removeFromConnections(_arg1);
};
});
next = false;
if (!toLoad){
for each (checkItem in _items) {
if (((!(checkItem._isLoading)) && (!((checkItem.status == LoadingItem.STATUS_STOPPED))))){
toLoad = checkItem;
break;
};
};
};
if (toLoad){
next = true;
_isRunning = true;
if (_connections.length < numConnections){
_connections.push(toLoad);
toLoad.load();
log("Will load item:", toLoad, LOG_INFO);
};
if (_connections.length < numConnections){
_loadNext();
};
};
return (next);
}
public function getSound(_arg1, _arg2:Boolean=false):Sound{
return (Sound(_getContentAsType(_arg1, Sound, _arg2)));
}
public function get speed():Number{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = (getTimer() - _lastSpeedCheck);
_local2 = ((bytesLoaded - _lastBytesCheck) / 0x0400);
_local3 = (_local2 / (_local1 / 1000));
_lastSpeedCheck = _local1;
_lastBytesCheck = bytesLoaded;
return (_local3);
}
public function get(_arg1):LoadingItem{
var _local2:LoadingItem;
if (!_arg1){
return (null);
};
for each (_local2 in _items) {
if ((((((((_local2._id == _arg1)) || ((_local2.url.url == _arg1)))) || ((_local2.url == _arg1)))) || ((((_arg1 is URLRequest)) && ((_local2.url.url == _arg1.url)))))){
return (_local2);
};
};
return (null);
}
public function removeFailedItems():int{
var numCleared:int;
var badItems:Array;
numCleared = 0;
badItems = _items.filter(function (_arg1:LoadingItem, ... _args):Boolean{
return ((_arg1.status == LoadingItem.STATUS_ERROR));
});
numCleared = badItems.length;
badItems.forEach(function (_arg1:LoadingItem, ... _args):void{
remove(_arg1);
});
_loadNext();
return (numCleared);
}
public function get highestPriority():int{
var _local1:int;
var _local2:LoadingItem;
_local1 = int.MIN_VALUE;
for each (_local2 in _items) {
if (_local2.priority > _local1){
_local1 = _local2.priority;
};
};
return (_local1);
}
public function start(_arg1:int=-1):void{
if (_arg1 > 0){
_numConnections = _arg1;
};
if (_connections){
_loadNext();
return;
};
_startTime = getTimer();
_connections = [];
_loadNext();
_isRunning = true;
_lastBytesCheck = 0;
_lastSpeedCheck = getTimer();
_isPaused = false;
}
override public function toString():String{
return (((((("[BulkLoader] name:" + name) + ", itemsTotal: ") + itemsTotal) + ", itemsLoaded: ") + _itemsLoaded));
}
public function _getLeastUrgentOpenedItem():LoadingItem{
var _local1:LoadingItem;
_local1 = LoadingItem(_connections.sortOn(["priority", "bytesRemaining", "_additionIndex"], [Array.NUMERIC, Array.DESCENDING, Array.NUMERIC, Array.NUMERIC])[0]);
return (_local1);
}
public function getBitmapData(_arg1, _arg2:Boolean=false):BitmapData{
var key = _arg1;
var clearMemory = _arg2;
try {
return (getBitmap(key, clearMemory).bitmapData);
} catch(e:Error) {
log("Failed to get bitmapData with url:", key, LOG_ERRORS);
};
return (null);
}
public function set logFunction(_arg1:Function):void{
_logFunction = _arg1;
}
public function clear():void{
removeAll();
delete _allLoaders[name];
_name = null;
}
public function get itemsTotal():int{
return (items.length);
}
public function sortItemsByPriority():void{
_items.sortOn(["priority", "_additionIndex"], [(Array.NUMERIC | Array.DESCENDING), Array.NUMERIC]);
}
public function get stringSubstitutions():Object{
return (_stringSubstitutions);
}
public function get name():String{
return (_name);
}
public function remove(_arg1):Boolean{
var item:LoadingItem;
var allDone:Boolean;
var key = _arg1;
try {
if ((key is LoadingItem)){
item = key;
} else {
item = get(key);
};
if (!item){
return (false);
};
_removeFromItems(item);
_removeFromConnections(item);
item.destroy();
item = null;
_onProgress();
allDone = _isAllDoneP();
if (allDone){
_onAllLoaded();
};
return (true);
} catch(e:Error) {
log(("Error while removing item from key:" + key), e.getStackTrace(), LOG_ERRORS);
};
return (false);
}
public function removeAll():void{
var _local1:LoadingItem;
for each (_local1 in _items.slice()) {
remove(_local1);
};
_items = [];
_connections = [];
_contents = new Dictionary();
}
public function _onItemStarted(_arg1:Event):void{
var _local2:LoadingItem;
_local2 = (_arg1.target as LoadingItem);
log("Started loading", _local2, LOG_INFO);
dispatchEvent(_arg1);
}
public function reload(_arg1):Boolean{
var _local2:LoadingItem;
if ((_arg1 is LoadingItem)){
_local2 = _arg1;
} else {
_local2 = get(_arg1);
};
if (!_local2){
return (false);
};
_removeFromItems(_local2);
_removeFromConnections(_local2);
_local2.stop();
_local2.cleanListeners();
_local2.status = null;
_isFinished = false;
_local2._addedTime = getTimer();
_local2._additionIndex = _additionIndex++;
_local2.addEventListener(Event.COMPLETE, _onItemComplete, false, int.MIN_VALUE, true);
_local2.addEventListener(ERROR, _onItemError, false, 0, true);
_local2.addEventListener(Event.OPEN, _onItemStarted, false, 0, true);
_local2.addEventListener(ProgressEvent.PROGRESS, _onProgress, false, 0, true);
_items.push(_local2);
_itemsTotal = (_itemsTotal + 1);
_totalWeight = (_totalWeight + _local2.weight);
sortItemsByPriority();
_isFinished = false;
loadNow(_local2);
return (true);
}
public function _updateStats():void{
var _local1:Number;
var _local2:int;
var _local3:Number;
var _local4:LoadingItem;
avgLatency = 0;
speedAvg = 0;
_local1 = 0;
_local2 = 0;
_speedTotal = 0;
_local3 = 0;
for each (_local4 in _items) {
if (((_local4._isLoaded) && (!((_local4.status == LoadingItem.STATUS_ERROR))))){
_local1 = (_local1 + _local4.latency);
_local2 = (_local2 + _local4.bytesTotal);
_local3++;
};
};
_speedTotal = ((_local2 / 0x0400) / totalTime);
avgLatency = (_local1 / _local3);
speedAvg = (_speedTotal / _local3);
}
public function getHttpStatus(_arg1):int{
var _local2:LoadingItem;
_local2 = get(_arg1);
if (_local2){
return (_local2.httpStatus);
};
return (-1);
}
public function add(_arg1, _arg2:Object=null):LoadingItem{
var _local3:LoadingItem;
var _local4:String;
var _local5:Array;
var _local6:String;
if (!_name){
throw (new Error("[BulkLoader] Cannot use an instance that has been cleared from memory (.clear())"));
};
if (((!(_arg1)) || (!(String(_arg1))))){
throw (new Error("[BulkLoader] Cannot add an item with a null url"));
};
_arg2 = ((_arg2) || ({}));
if ((_arg1 is String)){
_arg1 = new URLRequest(BulkLoader.substituteURLString(_arg1, _stringSubstitutions));
if (_arg2[HEADERS]){
_arg1.requestHeaders = _arg2[HEADERS];
};
} else {
if ((!(_arg1) is URLRequest)){
throw (new Error(("[BulkLoader] cannot add object with bad type for url:'" + _arg1.url)));
};
};
_local3 = get(_arg2[ID]);
if (_local3){
log((("Add received an already added id: " + _arg2[ID]) + ", not adding a new item"));
return (_local3);
};
if (_arg2["type"]){
_local4 = _arg2["type"].toLowerCase();
if (AVAILABLE_TYPES.indexOf(_local4) == -1){
log("add received an unknown type:", _local4, "and will cast it to text", LOG_WARNINGS);
};
};
if (!_local4){
_local4 = guessType(_arg1.url);
};
_additionIndex++;
_local3 = new _typeClasses[_local4](_arg1, _local4, ((_instancesCreated + "_") + String(_additionIndex)));
if (((!(_arg2["id"])) && (_allowsAutoIDFromFileName))){
_arg2["id"] = getFileName(_arg1.url);
log("Adding automatic id from file name for item:", _local3, (("( id= " + _arg2["id"]) + " )"));
};
_local5 = _local3._parseOptions(_arg2);
for each (_local6 in _local5) {
log(_local6, LOG_WARNINGS);
};
log("Added", _local3, LOG_VERBOSE);
_local3._addedTime = getTimer();
_local3._additionIndex = _additionIndex;
_local3.addEventListener(Event.COMPLETE, _onItemComplete, false, int.MIN_VALUE, true);
_local3.addEventListener(ERROR, _onItemError, false, 0, true);
_local3.addEventListener(Event.OPEN, _onItemStarted, false, 0, true);
_local3.addEventListener(ProgressEvent.PROGRESS, _onProgress, false, 0, true);
_items.push(_local3);
_itemsTotal = (_itemsTotal + 1);
_totalWeight = (_totalWeight + _local3.weight);
sortItemsByPriority();
_isFinished = false;
if (!_isPaused){
_loadNext();
};
return (_local3);
}
public function getText(_arg1, _arg2:Boolean=false):String{
return (String(_getContentAsType(_arg1, String, _arg2)));
}
public function get bytesTotal():int{
return (_bytesTotal);
}
public function get percentLoaded():Number{
return (_percentLoaded);
}
public function get weightPercent():Number{
return (_weightPercent);
}
public function get bytesTotalCurrent():int{
return (_bytesTotalCurrent);
}
public function getAVM1Movie(_arg1:String, _arg2:Boolean=false):AVM1Movie{
return (AVM1Movie(_getContentAsType(_arg1, AVM1Movie, _arg2)));
}
public function get isFinished():Boolean{
return (_isFinished);
}
public function changeItemPriority(_arg1:String, _arg2:int):Boolean{
var _local3:LoadingItem;
_local3 = get(_arg1);
if (!_local3){
return (false);
};
_local3._priority = _arg2;
sortItemsByPriority();
return (true);
}
public function get items():Array{
return (_items.slice());
}
public function getNetStream(_arg1:String, _arg2:Boolean=false):NetStream{
return (NetStream(_getContentAsType(_arg1, NetStream, _arg2)));
}
public function set itemsLoaded(_arg1:int):void{
_itemsLoaded = _arg1;
}
public function _onProgress(_arg1:Event=null):void{
var _local2:BulkProgressEvent;
_local2 = getProgressForItems(_items);
_bytesLoaded = _local2.bytesLoaded;
_bytesTotal = _local2.bytesTotal;
_weightPercent = _local2.weightPercent;
_percentLoaded = _local2.percentLoaded;
_bytesTotalCurrent = _local2.bytesTotalCurrent;
_loadedRatio = _local2.ratioLoaded;
dispatchEvent(_local2);
}
public function hasItem(_arg1, _arg2:Boolean=true):Boolean{
var _local3:*;
var _local4:BulkLoader;
if (_arg2){
_local3 = _allLoaders;
} else {
_local3 = [this];
};
for each (_local4 in _local3) {
if (_hasItemInBulkLoader(_arg1, _local4)){
return (true);
};
};
return (false);
}
public function _removeFromItems(_arg1:LoadingItem):Boolean{
var _local2:int;
_local2 = _items.indexOf(_arg1);
if (_local2 > -1){
_items.splice(_local2, 1);
} else {
return (false);
};
if (_arg1._isLoaded){
_itemsLoaded--;
};
_itemsTotal--;
_totalWeight = (_totalWeight - _arg1.weight);
log(("Removing " + _arg1), LOG_VERBOSE);
return (true);
}
public function _isAllDoneP():Boolean{
return (_items.every(function (_arg1:LoadingItem, ... _args):Boolean{
return (_arg1._isLoaded);
}));
}
public function _onItemError(_arg1:BulkErrorEvent):void{
var item:LoadingItem;
var bulkErrorEvent:BulkErrorEvent;
var evt = _arg1;
item = (evt.target as LoadingItem);
log(((("After " + item.numTries) + " I am giving up on ") + item.url.url), LOG_ERRORS);
log("Error loading", item, LOG_ERRORS);
_removeFromConnections(item);
evt.stopPropagation();
bulkErrorEvent = new BulkErrorEvent(BulkErrorEvent.ERROR);
bulkErrorEvent.errors = _items.filter(function (_arg1:LoadingItem, ... _args):Boolean{
return ((_arg1.status == LoadingItem.STATUS_ERROR));
});
dispatchEvent(bulkErrorEvent);
}
public function pauseAll():void{
var _local1:LoadingItem;
for each (_local1 in _items) {
pause(_local1);
};
_isRunning = false;
_isPaused = true;
log("Stopping all items", LOG_INFO);
}
public function getNotLoadedItems():Array{
return (_items.filter(function (_arg1:LoadingItem, ... _args):Boolean{
return (!((_arg1.status == LoadingItem.STATUS_FINISHED)));
}));
}
public function getXML(_arg1, _arg2:Boolean=false):XML{
return (XML(_getContentAsType(_arg1, XML, _arg2)));
}
public function get totalWeight():int{
return (_totalWeight);
}
public function get itemsLoaded():int{
return (_itemsLoaded);
}
public function getMovieClip(_arg1:String, _arg2:Boolean=false):MovieClip{
return (MovieClip(_getContentAsType(_arg1, MovieClip, _arg2)));
}
public function get numConnections():int{
return (_numConnections);
}
public function getStats():String{
var stats:Array;
var itemsInfo:Array;
var statsString:String;
stats = [];
stats.push("\n************************************");
stats.push((("All items loaded(" + itemsTotal) + ")"));
stats.push(("Total time(s): " + totalTime));
stats.push(("Average latency(s): " + truncateNumber(avgLatency)));
stats.push(("Average speed(kb/s): " + truncateNumber(speedAvg)));
stats.push(("Median speed(kb/s): " + truncateNumber(_speedTotal)));
stats.push(("KiloBytes total: " + truncateNumber((bytesTotal / 0x0400))));
itemsInfo = _items.map(function (_arg1:LoadingItem, ... _args):String{
return (("\t" + _arg1.getStats()));
});
stats.push(itemsInfo.join("\n"));
stats.push("************************************");
statsString = stats.join("\n");
log(statsString, LOG_VERBOSE);
return (statsString);
}
public function pause(_arg1, _arg2:Boolean=false):Boolean{
var _local3:LoadingItem;
var _local4:Boolean;
_local3 = ((_arg1 is LoadingItem)) ? _arg1 : get(_arg1);
if (!_local3){
return (false);
};
_local3.stop();
log("STOPPED ITEM:", _local3, LOG_INFO);
_local4 = _removeFromConnections(_local3);
if (_arg2){
_loadNext();
};
return (_local4);
}
public static function __debug_printStackTrace():void{
try {
throw (new Error("stack trace"));
} catch(e:Error) {
trace(e.getStackTrace());
};
}
public static function pauseAllLoaders():void{
var _local1:BulkLoader;
for each (_local1 in _allLoaders) {
_local1.pauseAll();
};
}
public static function _hasItemInBulkLoader(_arg1, _arg2:BulkLoader):Boolean{
var _local3:LoadingItem;
_local3 = _arg2.get(_arg1);
if (((_local3) && (_local3._isLoaded))){
return (true);
};
return (false);
}
public static function getUniqueName():String{
return (("BulkLoader-" + _instancesCreated));
}
public static function substituteURLString(_arg1:String, _arg2:Object):String{
var _local3:RegExp;
var _local4:Object;
var _local5:String;
var _local6:Array;
var _local7:int;
var _local8:Array;
var _local9:Object;
var _local10:Object;
var _local11:String;
var _local12:String;
if (!_arg2){
return (_arg1);
};
_local3 = /(?P<var_name>\{\s*[^\}]*\})/g;
_local4 = _local3.exec(_arg1);
_local5 = (_local4) ? _local4.var_name : null;
_local6 = [];
_local7 = 0;
while (((Boolean(_local4)) && (Boolean(_local4.var_name)))) {
if (_local4.var_name){
_local5 = _local4.var_name;
_local5 = _local5.replace("{", "");
_local5 = _local5.replace("}", "");
_local5 = _local5.replace(/\s*/g, "");
};
_local6.push({start:_local4.index, end:(_local4.index + _local4.var_name.length), changeTo:_arg2[_local5]});
_local7++;
if (_local7 > 400){
break;
};
_local4 = _local3.exec(_arg1);
_local5 = (_local4) ? _local4.var_name : null;
};
if (_local6.length == 0){
return (_arg1);
};
_local8 = [];
_local11 = _arg1.substr(0, _local6[0].start);
for each (_local10 in _local6) {
if (_local9){
_local11 = _arg1.substring(_local9.end, _local10.start);
};
_local8.push(_local11);
_local8.push(_local10.changeTo);
_local9 = _local10;
};
_local8.push(_arg1.substring(_local10.end));
return (_local8.join(""));
}
public static function createUniqueNamedLoader(_arg1:int=7, _arg2:int=20):BulkLoader{
return (new BulkLoader(BulkLoader.getUniqueName(), _arg1, _arg2));
}
public static function whichLoaderHasItem(_arg1):BulkLoader{
var _local2:BulkLoader;
for each (_local2 in _allLoaders) {
if (BulkLoader._hasItemInBulkLoader(_arg1, _local2)){
return (_local2);
};
};
return (null);
}
public static function removeAllLoaders():void{
var _local1:BulkLoader;
for each (_local1 in _allLoaders) {
_local1.removeAll();
_local1.clear();
_local1 = null;
};
_allLoaders = {};
}
public static function __debug_print_num_loaders():void{
var _local1:int;
var _local2:String;
_local1 = 0;
for each (_local2 in BulkLoader._allLoaders) {
_local1++;
};
trace("BulkLoader has ", _local1, "instances");
}
public static function getFileName(_arg1:String):String{
var _local2:int;
var _local3:String;
var _local4:int;
var _local5:String;
if (_arg1.lastIndexOf("/") == (_arg1.length - 1)){
return (getFileName(_arg1.substring(0, (_arg1.length - 1))));
};
_local2 = (_arg1.lastIndexOf("/") + 1);
_local3 = _arg1.substring(_local2);
_local4 = _local3.indexOf(".");
if (_local4 == -1){
if (_local3.indexOf("?") > -1){
_local4 = _local3.indexOf("?");
} else {
_local4 = _local3.length;
};
};
_local5 = _local3.substring(0, _local4);
return (_local5);
}
public static function guessType(_arg1:String):String{
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:String;
var _local6:String;
_local2 = ((_arg1.indexOf("?") > -1)) ? _arg1.substring(0, _arg1.indexOf("?")) : _arg1;
_local3 = _local2.substring((_local2.lastIndexOf(".") + 1)).toLowerCase();
if (!Boolean(_local3)){
_local3 = BulkLoader.TYPE_TEXT;
};
if ((((_local3 == BulkLoader.TYPE_IMAGE)) || ((BulkLoader.IMAGE_EXTENSIONS.indexOf(_local3) > -1)))){
_local4 = BulkLoader.TYPE_IMAGE;
} else {
if ((((_local3 == BulkLoader.TYPE_SOUND)) || ((BulkLoader.SOUND_EXTENSIONS.indexOf(_local3) > -1)))){
_local4 = BulkLoader.TYPE_SOUND;
} else {
if ((((_local3 == BulkLoader.TYPE_VIDEO)) || ((BulkLoader.VIDEO_EXTENSIONS.indexOf(_local3) > -1)))){
_local4 = BulkLoader.TYPE_VIDEO;
} else {
if ((((_local3 == BulkLoader.TYPE_XML)) || ((BulkLoader.XML_EXTENSIONS.indexOf(_local3) > -1)))){
_local4 = BulkLoader.TYPE_XML;
} else {
if ((((_local3 == BulkLoader.TYPE_MOVIECLIP)) || ((BulkLoader.MOVIECLIP_EXTENSIONS.indexOf(_local3) > -1)))){
_local4 = BulkLoader.TYPE_MOVIECLIP;
} else {
for (_local5 in _customTypesExtensions) {
for each (_local6 in _customTypesExtensions[_local5]) {
if (_local6 == _local3){
_local4 = _local5;
break;
};
if (_local4){
break;
};
};
};
if (!_local4){
_local4 = BulkLoader.TYPE_TEXT;
};
};
};
};
};
};
return (_local4);
}
public static function getLoader(_arg1:String):BulkLoader{
return ((BulkLoader._allLoaders[_arg1] as BulkLoader));
}
public static function registerNewType(_arg1:String, _arg2:String, _arg3:Class):Boolean{
var _local4:Array;
var _local5:Object;
if (_arg1.charAt(0) == "."){
_arg1 = _arg1.substring(1);
};
if (AVAILABLE_TYPES.indexOf(_arg2) == -1){
if (((!(Boolean(_arg3))) || (!((_arg3 is LoadingItem))))){
throw (new Error("[BulkLoader]: When adding a new type and extension, you must determine which class to use"));
};
_typeClasses[_arg2] = _arg3;
if (!_customTypesExtensions[_arg2]){
_customTypesExtensions[_arg2] = [];
AVAILABLE_TYPES.push(_arg2);
};
_customTypesExtensions[_arg2].push(_arg1);
return (true);
};
_local5 = {IMAGE_EXTENSIONS:TYPE_IMAGE, VIDEO_EXTENSIONS:TYPE_VIDEO, SOUND_EXTENSIONS:TYPE_SOUND, TEXT_EXTENSIONS:TYPE_TEXT};
_local4 = _local5[_arg2];
if (((_local4) && ((_local4.indexOf(_arg1) == -1)))){
_local4.push(_arg1);
return (true);
};
return (false);
}
public static function __debug_print_loaders():void{
var theNames:Array;
var instNames:String;
theNames = [];
for each (instNames in BulkLoader._allLoaders) {
theNames.push(instNames);
};
theNames.sort();
trace("All loaders");
theNames.forEach(function (_arg1, ... _args):void{
trace("\t", _arg1);
});
trace("===========");
}
public static function truncateNumber(_arg1:Number, _arg2:int=2):Number{
var _local3:int;
_local3 = Math.pow(10, _arg2);
return ((Math.round((_arg1 * _local3)) / _local3));
}
}
}//package mattel.utils.loading
Section 24
//BulkProgressEvent (mattel.utils.loading.BulkProgressEvent)
package mattel.utils.loading {
import flash.events.*;
public class BulkProgressEvent extends ProgressEvent {
public var name:String;
public var bytesTotalCurrent:int;
public var itemsTotal:int;
public var itemsLoaded:int;
public var _percentLoaded:Number;
public var _weightPercent:Number;
public var _ratioLoaded:Number;
public static const COMPLETE:String = "complete";
public static const PROGRESS:String = "progress";
public function BulkProgressEvent(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
this.name = _arg1;
}
public function get percentLoaded():Number{
return (_percentLoaded);
}
public function set ratioLoaded(_arg1:Number):void{
if (((isNaN(_arg1)) || (!(isFinite(_arg1))))){
_arg1 = 0;
};
_ratioLoaded = _arg1;
}
public function loadingStatus():String{
var _local1:Array;
_local1 = [];
_local1.push(("bytesLoaded: " + bytesLoaded));
_local1.push(("bytesTotal: " + bytesTotal));
_local1.push(("itemsLoaded: " + itemsLoaded));
_local1.push(("itemsTotal: " + itemsTotal));
_local1.push(("bytesTotalCurrent: " + bytesTotalCurrent));
_local1.push(("percentLoaded: " + BulkLoader.truncateNumber(percentLoaded)));
_local1.push(("weightPercent: " + BulkLoader.truncateNumber(weightPercent)));
_local1.push(("ratioLoaded: " + BulkLoader.truncateNumber(ratioLoaded)));
return ((("BulkProgressEvent " + _local1.join(", ")) + ";"));
}
public function set weightPercent(_arg1:Number):void{
if (((isNaN(_arg1)) || (!(isFinite(_arg1))))){
_arg1 = 0;
};
_weightPercent = _arg1;
}
public function set percentLoaded(_arg1:Number):void{
if (((isNaN(_arg1)) || (!(isFinite(_arg1))))){
_arg1 = 0;
};
_percentLoaded = _arg1;
}
override public function clone():Event{
var _local1:BulkProgressEvent;
_local1 = new BulkProgressEvent(name, bubbles, cancelable);
_local1.setInfo(bytesLoaded, bytesTotal, bytesTotalCurrent, itemsLoaded, itemsTotal, weightPercent);
return (_local1);
}
override public function toString():String{
return (super.toString());
}
public function get weightPercent():Number{
return (_weightPercent);
}
public function setInfo(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:Number):void{
this.bytesLoaded = _arg1;
this.bytesTotal = _arg2;
this.bytesTotalCurrent = _arg3;
this.itemsLoaded = _arg4;
this.itemsTotal = _arg5;
this.weightPercent = _arg6;
this.percentLoaded = ((_arg2 > 0)) ? (_arg1 / _arg2) : 0;
ratioLoaded = ((_arg5 == 0)) ? 0 : (_arg4 / _arg5);
}
public function get ratioLoaded():Number{
return (_ratioLoaded);
}
}
}//package mattel.utils.loading
Section 25
//DateMath (mattel.utils.DateMath)
package mattel.utils {
public class DateMath {
public function DateMath():void{
throw (new Error("the DateMath class cannot be instantiated"));
}
public static function addHours(_arg1:Date, _arg2:Number):Date{
return (addMinutes(_arg1, (_arg2 * 60)));
}
public static function addSeconds(_arg1:Date, _arg2:Number):Date{
var _local3:Number;
var _local4:Number;
_local3 = (_arg2 * 1000);
_local4 = (_local3 + _arg1.getTime());
return (new Date(_local4));
}
public static function addDays(_arg1:Date, _arg2:Number):Date{
return (addHours(_arg1, (_arg2 * 24)));
}
public static function subtractSeconds(_arg1:Date, _arg2:Number):Date{
var _local3:Number;
var _local4:Number;
_local3 = (_arg2 * 1000);
_local4 = (_arg1.getTime() - _local3);
return (new Date(_local4));
}
public static function addWeeks(_arg1:Date, _arg2:Number):Date{
return (addDays(_arg1, (_arg2 * 7)));
}
public static function addMinutes(_arg1:Date, _arg2:Number):Date{
return (addSeconds(_arg1, (_arg2 * 60)));
}
}
}//package mattel.utils
Section 26
//Barbie_Front_Payoff_207 (SnipnStyle_fla.Barbie_Front_Payoff_207)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class Barbie_Front_Payoff_207 extends MovieClip {
public var mc_region_3_container:MovieClip;
public var mc_region_2_container:MovieClip;
public var mc_region_6_container:MovieClip;
public var mc_backHairLeft:MovieClip;
public var mc_barrettes:MovieClip;
public var mc_region_1_container:MovieClip;
public var mc_region_5_container:MovieClip;
public var mc_backHairRight:MovieClip;
public var mc_headbands:MovieClip;
public var mc_sunglasses:MovieClip;
public var mc_glitter:MovieClip;
public var mc_region_4_container:MovieClip;
public var mc_ribbons:MovieClip;
public var mc_scarves:MovieClip;
public function Barbie_Front_Payoff_207(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
}
}
}//package SnipnStyle_fla
Section 27
//Big_Curler_35 (SnipnStyle_fla.Big_Curler_35)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class Big_Curler_35 extends MovieClip {
public var inv_btn:SimpleButton;
public function Big_Curler_35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 28
//Crimper_183 (SnipnStyle_fla.Crimper_183)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class Crimper_183 extends MovieClip {
public var inv_btn:SimpleButton;
public function Crimper_183(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 29
//Curler_Graphic_34 (SnipnStyle_fla.Curler_Graphic_34)
package SnipnStyle_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Curler_Graphic_34 extends MovieClip {
public var Big_Curler2:MovieClip;
public var Big_Curler1:MovieClip;
public function Curler_Graphic_34(){
addFrameScript(0, frame1);
}
function frame1(){
Big_Curler1.inv_btn.useHandCursor = false;
Big_Curler2.inv_btn.useHandCursor = false;
}
}
}//package SnipnStyle_fla
Section 30
//Flat_Iron_179 (SnipnStyle_fla.Flat_Iron_179)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class Flat_Iron_179 extends MovieClip {
public function Flat_Iron_179(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 31
//help_mc_58 (SnipnStyle_fla.help_mc_58)
package SnipnStyle_fla {
import flash.display.*;
import gameClasses.*;
public dynamic class help_mc_58 extends MovieClip {
public var close_btn:SimpleButton;
public var mcInvisibleButton:MovieClip;
public function help_mc_58(){
addFrameScript(1, frame2, 7, frame8, 13, frame14);
}
function frame14(){
stop();
dispatchEvent(new CustomEvents(CustomEvents.HELP_OPENED));
trace("CustomEvents.HELP_OPENED event dispatched");
}
function frame8(){
stop();
dispatchEvent(new CustomEvents(CustomEvents.HELP_OPENED));
trace("CustomEvents.HELP_OPENED event dispatched");
}
function frame2(){
stop();
}
}
}//package SnipnStyle_fla
Section 32
//MainTimeline (SnipnStyle_fla.MainTimeline)
package SnipnStyle_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import gameClasses.*;
import mattel.utils.loading.*;
import flash.media.*;
import flash.net.*;
import mattel.utils.Counter.*;
import mattel.utils.*;
import com.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var startUpControl:SoundTransform;
public var toPrint_mc:MovieClip;
public var undoStack:HairStyleStack;
public var mcYellowBottle:MovieClip;
public var loader:BulkLoader;
public var isDigitalCounterStarted:Boolean;
public var matchAnother_btn:SimpleButton;
public var done_btn:SimpleButton;
public var Mix_Bowl:MovieClip;
public var playAgain_btn:SimpleButton;
public var mc_tools_littleCurlers:MovieClip;
public var mc_matchThisLook:MovieClip;
public var mc_counter:ICounterMain;
public var mc_tool_container:MovieClip;
public var help_btn:SimpleButton;
public var mc_stepCounter:MovieClip;
public var print_mc:MovieClip;
public var startUpSoundChnl:SoundChannel;
public var mc_R1_LH_Scissor_HP:MovieClip;
public var blinkMC1:MovieClip;
public var blinkMC2:MovieClip;
public var undo_btn:SimpleButton;
public var prevScreenStyle:CompleteHairStyle;
public var btn_headband1:SimpleButton;
public var btn_headband2:SimpleButton;
public var btn_headband3:SimpleButton;
public var mc_head_WashBlowdry:MovieClip;
public var hairRegionLength_2:String;
public var hairRegionLength_3:String;
public var hairRegionLength_4:String;
public var hairRegionLength_6:String;
public var hairRegionLength_1:String;
public var colorArray:Array;
public var mcRedBottle:MovieClip;
public var scessorSound_mc:MovieClip;
public var isGameModeRunning:Boolean;
public var mcInvisibleButton:MovieClip;
public var hairRegionLength_5:String;
public var countDownTime:Number;
public var mc_washHairAnim:MovieClip;
public var gamePlay_btn:SimpleButton;
public var targetRegion6:HairRegion;
public var targetRegion3:HairRegion;
public var mcBlueBottle:MovieClip;
public var targetRegion5:HairRegion;
public var mc_R3_LH_Scissor_HP:MovieClip;
public var colorGen:ColorGenerator;
public var backgroundSoundChnl:SoundChannel;
public var targetRegion2:HairRegion;
public var payoffHairStyleObj:CompleteHairStyle;
public var inv_btn:SimpleButton;
public var introMC:MovieClip;
public var targetRegion1:HairRegion;
public var nextStyle_btn:SimpleButton;
public var targetRegion4:HairRegion;
public var mc_tools_crimper:MovieClip;
public var mc_R2_MH_Scissor_HP:MovieClip;
public var cutArray:Array;
public var gamePlayCnt:Number;
public var soundVol:Number;
public var mc_showernShampoo:MovieClip;
public var backgroundSnd:backgroundSound;
public var freePlay_btn:SimpleButton;
public var scissorsObj:PicknDrag;
public var flatironObj:PicknDrag;
public var mc_R5_LH_Scissor_HP:MovieClip;
public var hairRegion3:HairRegion;
public var hairRegion4:HairRegion;
public var hairRegion5:HairRegion;
public var tryAgain_btn:SimpleButton;
public var hairRegion2:HairRegion;
public var hairRegion6:HairRegion;
public var startUpSnd:StartUpSound;
public var backgroundSoundControl:SoundTransform;
public var hairRegion1:HairRegion;
public var messageFeedbackLabel:String;
public var back_btn1:SimpleButton;
public var back_btn2:SimpleButton;
public var back_btn3:SimpleButton;
public var back_btn4:SimpleButton;
public var back_btn5:SimpleButton;
public var hairStyleObjDump:CompleteHairStyle;
public var mc_R4_MH_Scissor_HP:MovieClip;
public var mc_messages:MovieClip;
public var prevStyle_btn:SimpleButton;
public var temp_mc:MovieClip;
public var undoScreenStack:HairStyleStack;
public var next_button:SimpleButton;
public var crimperObj:PicknDrag;
public var targetStyleObj:CompleteHairStyle;
public var mc_R6_MH_Scissor_HP:MovieClip;
public var mc_tools_braid:MovieClip;
public var btn_scarve3:SimpleButton;
public var btn_scarve1:SimpleButton;
public var btn_scarve2:SimpleButton;
public var braidObj:PicknDrag;
public var btn_glitter:SimpleButton;
public var littleCurlersObj:PicknDrag;
public var more_btn:SimpleButton;
public var mc_payoff:MovieClip;
public var mc_tools_brush:MovieClip;
public var mc_R2_LH_Scissor_HP:MovieClip;
public var mainSound:Sound;
public var btn_sunglasse1:SimpleButton;
public var btn_sunglasse2:SimpleButton;
public var btn_sunglasse3:SimpleButton;
public var undoStackBackup:Array;
public var mc_head:MovieClip;
public var washTool_btn:SimpleButton;
public var playMode:String;
public var mc_R1_MH_Scissor_HP:MovieClip;
public var mc_tools_bigCurlers:MovieClip;
public var next_btn:SimpleButton;
public var undoColors_btn:SimpleButton;
public var isTargetStyleGenerated:Boolean;
public var next_btn1:SimpleButton;
public var next_btn2:SimpleButton;
public var next_btn3:SimpleButton;
public var next_btn4:SimpleButton;
public var mcBrownBottle:MovieClip;
public var SnSLogo_btn:SimpleButton;
public var mcBlackBottle:MovieClip;
public var styleArray:Array;
public var btn_ribbon2:SimpleButton;
public var mc_R4_LH_Scissor_HP:MovieClip;
public var btn_ribbon1:SimpleButton;
public var print_fp_btn:SimpleButton;
public var currentScreen:String;
public var soundChnel:SoundChannel;
public var btn_ribbon3:SimpleButton;
public var timer:Timer;
public var btn_barrette1:SimpleButton;
public var btn_barrette2:SimpleButton;
public var help_mc:MovieClip;
public var btn_barrette3:SimpleButton;
public var brushObj:PicknDrag;
public var mc_tools_drayer:MovieClip;
public var mc_tools_flatiron:MovieClip;
public var mc_R3_MH_Scissor_HP:MovieClip;
public var mcBlinkTimer:Timer;
public var ptnHairStyleObj:CompleteHairStyle;
public var hairStyleObj:CompleteHairStyle;
public var skip_btn:SimpleButton;
public var mc_R6_LH_Scissor_HP:MovieClip;
public var mc_tools_scissors:MovieClip;
public var undo_btn3:SimpleButton;
public var undo_btn4:SimpleButton;
public var undo_btn5:SimpleButton;
public var mcWhiteBottle:MovieClip;
public var print_gp_btn:SimpleButton;
public var mc_R5_MH_Scissor_HP:MovieClip;
public var bigCurlersObj:PicknDrag;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 5, frame6, 10, frame11, 15, frame16, 20, frame21, 25, frame26, 30, frame31, 35, frame36, 40, frame41, 45, frame46, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 56, frame57);
}
public function increaseVolume(_arg1:Event):void{
startUpControl.volume = (startUpControl.volume + 0.5);
startUpSoundChnl.soundTransform = startUpControl;
trace(("startUpSoundChnl.soundTransform.volume = " + startUpSoundChnl.soundTransform.volume));
}
public function disableCompleteScreen():void{
trace("Complete screen is disabled");
mcInvisibleButton.visible = true;
}
public function gamePlayTimeup(_arg1:Event):void{
var e = _arg1;
if (playMode == Constants.GAME_PLAY){
clearLastScreen();
enableCompleteScreen();
if (((((!((hairStyleObj == null))) && (!((targetStyleObj == null))))) && (hairStyleObj.equals(targetStyleObj)))){
messageFeedbackLabel = "GamePlayTimeUpFeedback";
try {
ExternalInterface.call("trackAction", {name:"Snip n Style game play - timeup", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Completed"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
trace("Snip n Style game play - timeup");
} else {
messageFeedbackLabel = "GamePlayTimeUpFeedback";
try {
ExternalInterface.call("trackAction", {name:"Snip n Style game play - timeup", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Completed"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
trace("Snip n Style game play - timeup - Lost");
};
mc_counter.visible = false;
};
gotoAndStop("payoff");
}
public function hideCurrentTool():void{
if (CompleteHairStyle.currentTool != null){
CompleteHairStyle.currentTool.mcSource.visible = false;
};
}
public function changeHairRegionStyle(_arg1:HairRegion, _arg2:String):void{
var _local3:String;
if (_arg1.hairStyle == Constants.BRAID_HAIR){
hideCurrentTool();
disableCompleteScreen();
undoStack.pushStyle(hairStyleObj);
_local3 = _arg1.mcHairRegion.name;
if ((((((_local3 == "mc_region_1_container")) || ((_local3 == "mc_region_4_container")))) || ((_local3 == "mc_region_6_container")))){
hairStyleObj.hairRegion1.hairStyle = Constants.ORIGINAL_HAIR;
hairStyleObj.hairRegion4.hairStyle = Constants.ORIGINAL_HAIR;
hairStyleObj.hairRegion6.hairStyle = Constants.ORIGINAL_HAIR;
hairStyleObj.hairRegion1.hairLength = hairRegionLength_1;
hairStyleObj.hairRegion4.hairLength = hairRegionLength_4;
hairStyleObj.hairRegion6.hairLength = hairRegionLength_6;
hairStyleObj.hairRegion1.mcHairRegion.gotoAndStop(((hairStyleObj.hairRegion1.hairLength + "_") + Constants.ORIGINAL_HAIR));
hairStyleObj.hairRegion4.mcHairRegion.gotoAndStop(((hairStyleObj.hairRegion4.hairLength + "_") + Constants.ORIGINAL_HAIR));
hairStyleObj.hairRegion6.mcHairRegion.gotoAndStop(((hairStyleObj.hairRegion6.hairLength + "_") + Constants.ORIGINAL_HAIR));
} else {
hairStyleObj.hairRegion2.hairStyle = Constants.ORIGINAL_HAIR;
hairStyleObj.hairRegion3.hairStyle = Constants.ORIGINAL_HAIR;
hairStyleObj.hairRegion5.hairStyle = Constants.ORIGINAL_HAIR;
hairStyleObj.hairRegion2.hairLength = hairRegionLength_2;
hairStyleObj.hairRegion3.hairLength = hairRegionLength_3;
hairStyleObj.hairRegion5.hairLength = hairRegionLength_5;
hairStyleObj.hairRegion2.mcHairRegion.gotoAndStop(((hairStyleObj.hairRegion2.hairLength + "_") + Constants.ORIGINAL_HAIR));
hairStyleObj.hairRegion3.mcHairRegion.gotoAndStop(((hairStyleObj.hairRegion3.hairLength + "_") + Constants.ORIGINAL_HAIR));
hairStyleObj.hairRegion5.mcHairRegion.gotoAndStop(((hairStyleObj.hairRegion5.hairLength + "_") + Constants.ORIGINAL_HAIR));
};
_arg1.hairStyle = _arg2;
trace(((((("goto and Play ==> " + _arg1.hairLength) + "_") + _arg1.hairStyle) + "_") + "Start"));
_arg1.mcHairRegion.gotoAndPlay(((((_arg1.hairLength + "_") + _arg1.hairStyle) + "_") + "Start"));
} else {
hideCurrentTool();
disableCompleteScreen();
undoStack.pushStyle(hairStyleObj);
_arg1.hairStyle = _arg2;
trace(((((("goto and Play ==> " + _arg1.hairLength) + "_") + _arg1.hairStyle) + "_") + "Start"));
_arg1.mcHairRegion.gotoAndPlay(((((_arg1.hairLength + "_") + _arg1.hairStyle) + "_") + "Start"));
};
Utile.enableButton(next_btn4);
}
public function clearLandingScreen():void{
gamePlay_btn.removeEventListener(MouseEvent.CLICK, startGamePlay);
freePlay_btn.removeEventListener(MouseEvent.CLICK, startFreePlay);
}
public function removeAllUndoStackElements():void{
while (undoStack.stackLength > 0) {
undoStack.popStyle();
};
Utile.disableButton(undo_btn);
}
public function resetCompleteHairStyle():void{
hairStyleObj.resetHairStyle();
updateCompleteHeadMovieClip();
updateAccessorieMovieClips();
prevScreenStyle = null;
}
public function stopBackgroundSound():void{
backgroundSoundControl.volume = 0;
backgroundSoundChnl.stop();
}
public function dryAnimationCompleted(_arg1:Event):void{
trace("inside dryAnimationCompleted function");
Utile.enableButton(next_btn1);
enableCompleteScreen(_arg1);
}
public function washAnimationCompleted(_arg1:Event):void{
var e = _arg1;
if (!mc_tools_drayer.hasEventListener(MouseEvent.CLICK)){
mc_tools_drayer.addEventListener(MouseEvent.CLICK, playHairDryAnimation);
};
mc_tools_drayer.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
mc_tools_drayer.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
blinkMovieClip(6, mc_tools_drayer);
enableCompleteScreen(e);
}
public function nextFromColorScreen(_arg1:MouseEvent):void{
undoScreenStack.pushStyle(hairStyleObj);
clearColorScreen();
gotoAndStop("styleHair");
}
public function initializeControlsWashBlowDryScreen():void{
currentScreen = Constants.WASH_DRY_SCREEN;
if (startUpSoundChnl != null){
fadeOutSound();
};
if (backgroundSnd != null){
backgroundSoundChnl.stop();
backgroundSnd = null;
backgroundSoundChnl = null;
};
playBackgroundSound();
mc_stepCounter.gotoAndStop("one");
enableCompleteScreen();
Utile.disableButton(next_btn1);
if ((((playMode == Constants.GAME_PLAY)) && (!(isDigitalCounterStarted)))){
mc_counter.stopTimerDown();
startCounter();
isDigitalCounterStarted = true;
mc_counter.addEventListener(CounterConstants.TIMER_DOWN_FINISHED, gamePlayTimeup);
};
if (playMode == Constants.GAME_PLAY){
if (!isGameModeRunning){
mc_counter.visible = true;
isGameModeRunning = true;
mc_counter.stopTimerDown();
mc_counter.startTimerDown(DateMath.addSeconds(new Date(), countDownTime));
};
mc_matchThisLook.visible = true;
} else {
mc_counter.visible = false;
mc_counter.stopTimerDown();
mc_matchThisLook.visible = false;
};
back_btn1.addEventListener(MouseEvent.CLICK, backFromWashBlowDryScreen);
next_btn1.addEventListener(MouseEvent.CLICK, nextFromWashBlowDryScreen);
mc_tools_drayer.gotoAndStop("washBlowDry");
washTool_btn.addEventListener(MouseEvent.CLICK, playHairWashAnimation);
washTool_btn.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
washTool_btn.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
mc_washHairAnim.addEventListener(CustomEvents.ANIMATION_COMPLETED, washAnimationCompleted);
mc_head_WashBlowdry.addEventListener(CustomEvents.ANIMATION_COMPLETED, dryAnimationCompleted);
if (!help_btn.hasEventListener(MouseEvent.CLICK)){
help_btn.addEventListener(MouseEvent.CLICK, displayHelp);
};
}
public function initializeControlsStyleHairScreen():void{
var _local1:Array;
var _local2:Array;
currentScreen = Constants.STYLE_SCREEN;
mc_stepCounter.gotoAndStop("four");
next_btn4.addEventListener(MouseEvent.CLICK, nextFromStyleHairScreen);
back_btn4.addEventListener(MouseEvent.CLICK, backFromStyleHairScreen);
mc_tools_flatiron.gotoAndStop("flatiron");
mc_tools_crimper.gotoAndStop("crimper");
mc_tools_braid.gotoAndStop("braid");
mc_tools_littleCurlers.gotoAndStop("littleCurlers");
mc_tools_bigCurlers.gotoAndStop("bigCurlers");
_local1 = new Array();
_local1.push(mc_head.mc_region_1_container);
_local1.push(mc_head.mc_region_2_container);
_local1.push(mc_head.mc_region_3_container);
_local1.push(mc_head.mc_region_4_container);
_local1.push(mc_head.mc_region_5_container);
_local1.push(mc_head.mc_region_6_container);
_local2 = new Array();
_local2.push(mc_tool_container);
flatironObj = new PicknDrag(mc_tools_flatiron, stage, mc_head.mc_FaceCenter, _local1, _local2);
flatironObj.originalSourceLabel = "flatiron";
flatironObj.leftHoldLabel = "flatironLeftHold";
flatironObj.rightHoldLabel = "flatironRightHold";
flatironObj.useMCHitPoint = true;
flatironObj.addEventListener(CustomEvents.SOURCE_HITS_TARGET, flatironTouchedHair);
crimperObj = new PicknDrag(mc_tools_crimper, stage, mc_head.mc_FaceCenter, _local1, _local2);
crimperObj.originalSourceLabel = "crimper";
crimperObj.leftHoldLabel = "crimperLeftHold";
crimperObj.rightHoldLabel = "crimperRightHold";
crimperObj.useMCHitPoint = true;
crimperObj.addEventListener(CustomEvents.SOURCE_HITS_TARGET, crimperTouchedHair);
braidObj = new PicknDrag(mc_tools_braid, stage, mc_head.mc_FaceCenter, _local1, _local2);
braidObj.originalSourceLabel = "braid";
braidObj.leftHoldLabel = "braid";
braidObj.rightHoldLabel = "braid";
braidObj.useMCHitPoint = false;
braidObj.addEventListener(CustomEvents.SOURCE_HITS_TARGET, braidTouchedHair);
littleCurlersObj = new PicknDrag(mc_tools_littleCurlers, stage, mc_head.mc_FaceCenter, _local1, _local2);
littleCurlersObj.originalSourceLabel = "littleCurlers";
littleCurlersObj.leftHoldLabel = "littleCurlers";
littleCurlersObj.rightHoldLabel = "littleCurlers";
littleCurlersObj.useMCHitPoint = false;
littleCurlersObj.addEventListener(CustomEvents.SOURCE_HITS_TARGET, littleCurlersTouchedHair);
bigCurlersObj = new PicknDrag(mc_tools_bigCurlers, stage, mc_head.mc_FaceCenter, _local1, _local2);
bigCurlersObj.originalSourceLabel = "bigCurlers";
bigCurlersObj.leftHoldLabel = "bigCurlers";
bigCurlersObj.rightHoldLabel = "bigCurlers";
bigCurlersObj.useMCHitPoint = false;
bigCurlersObj.addEventListener(CustomEvents.SOURCE_HITS_TARGET, bigCurlersTouchedHair);
removeAllUndoStackElements();
hairRegionLength_1 = hairStyleObj.hairRegion1.hairLength;
hairRegionLength_2 = hairStyleObj.hairRegion2.hairLength;
hairRegionLength_3 = hairStyleObj.hairRegion3.hairLength;
hairRegionLength_4 = hairStyleObj.hairRegion4.hairLength;
hairRegionLength_5 = hairStyleObj.hairRegion5.hairLength;
hairRegionLength_6 = hairStyleObj.hairRegion6.hairLength;
}
function frame11(){
stop();
initializeControlsLandingScreen();
}
public function crimperTouchedHair(_arg1:CustomEvents):void{
var _local2:String;
trace(((("Crimper Touched Hair -->" + _arg1.object.name) + " finalColor=") + colorGen.finalColor));
_local2 = _arg1.object.name.substr(3, 8);
switch (_local2){
case "region_1":
changeHairRegionStyle(hairStyleObj.hairRegion1, Constants.CRIMPED_HAIR);
break;
case "region_2":
changeHairRegionStyle(hairStyleObj.hairRegion2, Constants.CRIMPED_HAIR);
break;
case "region_3":
changeHairRegionStyle(hairStyleObj.hairRegion3, Constants.CRIMPED_HAIR);
break;
case "region_4":
changeHairRegionStyle(hairStyleObj.hairRegion4, Constants.CRIMPED_HAIR);
break;
case "region_5":
changeHairRegionStyle(hairStyleObj.hairRegion5, Constants.CRIMPED_HAIR);
break;
case "region_6":
changeHairRegionStyle(hairStyleObj.hairRegion6, Constants.CRIMPED_HAIR);
break;
default:
trace(("Something is wrong in finding the Crimper hit region, str=" + _local2));
break;
};
}
function frame1(){
countDownTime = 180;
gamePlayCnt = 0;
isDigitalCounterStarted = false;
undoStack = new HairStyleStack();
undoStack.addEventListener(HairStyleStack.STACK_NOT_EMPTY, enableUndoButton);
undoStack.addEventListener(HairStyleStack.STACK_EMPTY, disableUndoButton);
undoStackBackup = new Array();
undoScreenStack = new HairStyleStack();
soundVol = 0;
startUpControl = new SoundTransform();
backgroundSoundControl = new SoundTransform();
messageFeedbackLabel = "";
styleArray = [Constants.FLATTERED_HAIR, Constants.CRIMPED_HAIR, Constants.BIG_CURLY_HAIR, Constants.LITTLE_CURLY_HAIR];
colorArray = [Constants.BLACK, Constants.WHITE, Constants.BROWN, Constants.RED, Constants.BLUE, Constants.YELLOW, Constants.BLACK_WHITE, Constants.BLACK_BROWN, Constants.BLACK_RED, Constants.BLACK_BLUE, Constants.BLACK_YELLOW, Constants.WHITE_BROWN, Constants.WHITE_RED, Constants.WHITE_BLUE, Constants.WHITE_YELLOW, Constants.BROWN_RED, Constants.BROWN_BLUE, Constants.BROWN_YELLOW, Constants.RED_BLUE, Constants.RED_YELLOW, Constants.BLUE_YELLOW];
cutArray = [Constants.SHORT_HAIR, Constants.MEDIUM_HAIR];
}
function frame6(){
stop();
initializeControlsIntro();
}
function frame16(){
stop();
initializeControlsGameOrFreeInst();
}
function frame2(){
stop();
StartLoading();
}
public function initializeControlsMatchScreen():void{
currentScreen = Constants.MATCH_SCREEN;
mc_stepCounter.gotoAndStop("off");
isDigitalCounterStarted = false;
playMode = Constants.GAME_PLAY;
help_mc.gotoAndStop("closeHelp");
if (startUpSoundChnl != null){
fadeOutSound();
};
if (backgroundSnd != null){
backgroundSoundChnl.stop();
backgroundSnd = null;
backgroundSoundChnl = null;
};
playBackgroundSound();
if (playMode == Constants.GAME_PLAY){
mc_matchThisLook.visible = true;
if (!isTargetStyleGenerated){
setTargetHairStyle(TargetStyles.getTargetHairStyle(gamePlayCnt));
gamePlayCnt++;
isTargetStyleGenerated = true;
};
} else {
mc_matchThisLook.visible = false;
nextStyle_btn.visible = false;
prevStyle_btn.visible = false;
};
nextStyle_btn.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
setTargetHairStyle(TargetStyles.getNextTargetHairStyle());
});
prevStyle_btn.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
setTargetHairStyle(TargetStyles.getPreviousTargetHairStyle());
});
if (((!((mc_counter == null))) && (!(isGameModeRunning)))){
mc_counter.visible = false;
if (!mc_counter.pauseTimer){
mc_counter.stopTimerDown();
};
};
next_button.addEventListener(MouseEvent.CLICK, nextFromMatchScreen);
if (!help_btn.hasEventListener(MouseEvent.CLICK)){
help_btn.addEventListener(MouseEvent.CLICK, displayHelp);
};
}
function frame26(){
stop();
initializeControlsMatchScreen();
}
function frame21(){
stop();
initializeControlsGameOrFreeInst();
}
public function nextFromStyleHairScreen(_arg1:MouseEvent):void{
undoScreenStack.pushStyle(hairStyleObj);
clearStyleHairScreen();
gotoAndStop("accessories");
}
function frame31(){
stop();
initializeControlsWashBlowDryScreen();
}
public function scissorsTouchedHair(_arg1:CustomEvents):void{
var _local2:String;
_local2 = _arg1.object.name.substr(3, 5);
trace(((("scissors Touched Hair -->" + _arg1.object.name) + " enabled=") + _arg1.object.enabled));
switch (_local2){
case "R1_LH":
mc_R1_LH_Scissor_HP.enabled = false;
mc_R1_MH_Scissor_HP.enabled = true;
if (hairStyleObj.hairRegion1.hairLength == Constants.LONG_HAIR){
changeHairLength(hairStyleObj.hairRegion1, "CutStart_LongToMed", Constants.MEDIUM_HAIR);
};
break;
case "R1_MH":
mc_R1_MH_Scissor_HP.enabled = false;
if ((((mc_R1_LH_Scissor_HP.enabled == false)) && ((hairStyleObj.hairRegion1.hairLength == Constants.MEDIUM_HAIR)))){
changeHairLength(hairStyleObj.hairRegion1, "CutStart_MedToShort", Constants.SHORT_HAIR);
};
break;
case "R2_LH":
mc_R2_LH_Scissor_HP.enabled = false;
mc_R2_MH_Scissor_HP.enabled = true;
if (hairStyleObj.hairRegion2.hairLength == Constants.LONG_HAIR){
changeHairLength(hairStyleObj.hairRegion2, "CutStart_LongToMed", Constants.MEDIUM_HAIR);
};
break;
case "R2_MH":
mc_R2_MH_Scissor_HP.enabled = false;
if ((((mc_R2_LH_Scissor_HP.enabled == false)) && ((hairStyleObj.hairRegion2.hairLength == Constants.MEDIUM_HAIR)))){
changeHairLength(hairStyleObj.hairRegion2, "CutStart_MedToShort", Constants.SHORT_HAIR);
};
break;
case "R3_LH":
mc_R3_LH_Scissor_HP.enabled = false;
mc_R3_MH_Scissor_HP.enabled = true;
if (hairStyleObj.hairRegion3.hairLength == Constants.LONG_HAIR){
changeHairLength(hairStyleObj.hairRegion3, "CutStart_LongToMed", Constants.MEDIUM_HAIR);
};
break;
case "R3_MH":
mc_R3_MH_Scissor_HP.enabled = false;
if ((((mc_R3_LH_Scissor_HP.enabled == false)) && ((hairStyleObj.hairRegion3.hairLength == Constants.MEDIUM_HAIR)))){
changeHairLength(hairStyleObj.hairRegion3, "CutStart_MedToShort", Constants.SHORT_HAIR);
};
break;
case "R4_LH":
mc_R4_LH_Scissor_HP.enabled = false;
mc_R4_MH_Scissor_HP.enabled = true;
if (hairStyleObj.hairRegion4.hairLength == Constants.LONG_HAIR){
changeHairLength(hairStyleObj.hairRegion4, "CutStart_LongToMed", Constants.MEDIUM_HAIR);
};
break;
case "R4_MH":
mc_R4_MH_Scissor_HP.enabled = false;
if ((((mc_R4_LH_Scissor_HP.enabled == false)) && ((hairStyleObj.hairRegion4.hairLength == Constants.MEDIUM_HAIR)))){
changeHairLength(hairStyleObj.hairRegion4, "CutStart_MedToShort", Constants.SHORT_HAIR);
};
break;
case "R5_LH":
mc_R5_LH_Scissor_HP.enabled = false;
mc_R5_MH_Scissor_HP.enabled = true;
if (hairStyleObj.hairRegion5.hairLength == Constants.LONG_HAIR){
changeHairLength(hairStyleObj.hairRegion5, "CutStart_LongToMed", Constants.MEDIUM_HAIR);
};
break;
case "R5_MH":
mc_R5_MH_Scissor_HP.enabled = false;
if ((((mc_R5_LH_Scissor_HP.enabled == false)) && ((hairStyleObj.hairRegion5.hairLength == Constants.MEDIUM_HAIR)))){
changeHairLength(hairStyleObj.hairRegion5, "CutStart_MedToShort", Constants.SHORT_HAIR);
};
break;
case "R6_LH":
mc_R6_LH_Scissor_HP.enabled = false;
mc_R6_MH_Scissor_HP.enabled = true;
if (hairStyleObj.hairRegion6.hairLength == Constants.LONG_HAIR){
changeHairLength(hairStyleObj.hairRegion6, "CutStart_LongToMed", Constants.MEDIUM_HAIR);
};
break;
case "R6_MH":
mc_R6_MH_Scissor_HP.enabled = false;
if ((((mc_R6_LH_Scissor_HP.enabled == false)) && ((hairStyleObj.hairRegion6.hairLength == Constants.MEDIUM_HAIR)))){
changeHairLength(hairStyleObj.hairRegion6, "CutStart_MedToShort", Constants.SHORT_HAIR);
};
break;
default:
trace(("Something is wrong in finding the Scissor hit region, str=" + _local2));
break;
};
}
public function nextFromCutHairScreen(_arg1:MouseEvent):void{
undoScreenStack.pushStyle(hairStyleObj);
clearCutHairScreen();
gotoAndStop("colorHair");
}
function frame36(){
stop();
if (hairStyleObj == null){
createHairRegionAndStyleObjects();
};
if (scissorsObj == null){
initializeControlsCutHairScreen();
};
}
public function initializeControlsLandingScreen():void{
currentScreen = Constants.LANDING_SCREEN;
fadeInSound();
gamePlay_btn.addEventListener(MouseEvent.CLICK, startGamePlay);
freePlay_btn.addEventListener(MouseEvent.CLICK, startFreePlay);
}
public function initializeControlsPayoffScreen():void{
currentScreen = Constants.PAYOFF_SCREEN;
mc_stepCounter.gotoAndStop("end");
isDigitalCounterStarted = false;
mc_messages.gotoAndStop(messageFeedbackLabel);
setPayOffScreenMovieStyle();
setPrintMovieStyle();
if (isGameModeRunning){
tryAgain_btn.visible = true;
matchAnother_btn.visible = true;
print_gp_btn.visible = true;
playAgain_btn.visible = false;
print_fp_btn.visible = false;
tryAgain_btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
var e = _arg1;
isGameModeRunning = false;
if (startUpSoundChnl != null){
startUpSoundChnl.stop();
};
gotoAndStop("washBlowDryHair");
try {
ExternalInterface.call("trackAction", {name:"Snip n Style - Try again - Game Play", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Play"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
});
matchAnother_btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
var e = _arg1;
isGameModeRunning = false;
isTargetStyleGenerated = false;
if (startUpSoundChnl != null){
startUpSoundChnl.stop();
};
gotoAndStop("Match This Screen");
try {
ExternalInterface.call("trackAction", {name:"Snip n Style - Match another look - Game Play", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Play"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
});
print_gp_btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
var bmd:BitmapData;
var b:Bitmap;
var rect:Rectangle;
var myClip:Bitmap;
var myPrintJob:PrintJob;
var result:Boolean;
var myOption:PrintJobOptions;
var e = _arg1;
bmd = new BitmapData(615, 790, true);
b = new Bitmap(bmd);
rect = new Rectangle(0, 0, 615, 790);
bmd.draw(print_mc, null, print_mc.colorTransform, null, null, true);
toPrint_mc.visible = false;
myClip = toPrint_mc.subPrint_mc.addChild(DisplayObject(b));
myPrintJob = new PrintJob();
result = myPrintJob.start();
if (result){
myOption = new PrintJobOptions();
myOption.printAsBitmap = true;
myPrintJob.addPage(toPrint_mc, null, myOption);
myPrintJob.send();
MovieClip(toPrint_mc.subPrint_mc).removeChild(myClip);
try {
ExternalInterface.call("trackAction", {name:"Snip n Style - Game play - Hairstyle printed", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Print"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
trace("Snip n Style - Hairstyle printed");
} else {
trace("Print cancled");
};
});
} else {
tryAgain_btn.visible = false;
matchAnother_btn.visible = false;
playAgain_btn.visible = true;
print_gp_btn.visible = false;
print_fp_btn.visible = true;
playAgain_btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
var e = _arg1;
isGameModeRunning = false;
gotoAndStop("washBlowDryHair");
try {
ExternalInterface.call("trackAction", {name:"Snip n Style - Play again - Free Play", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Play"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
});
print_fp_btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
var bmd:BitmapData;
var b:Bitmap;
var rect:Rectangle;
var myClip:Bitmap;
var myPrintJob:PrintJob;
var result:Boolean;
var myOption:PrintJobOptions;
var e = _arg1;
bmd = new BitmapData(615, 790, true);
b = new Bitmap(bmd);
rect = new Rectangle(0, 0, 615, 790);
bmd.draw(print_mc, null, print_mc.colorTransform, null, null, true);
toPrint_mc.visible = false;
myClip = toPrint_mc.subPrint_mc.addChild(DisplayObject(b));
myPrintJob = new PrintJob();
result = myPrintJob.start();
if (result){
myOption = new PrintJobOptions();
myOption.printAsBitmap = true;
myPrintJob.addPage(toPrint_mc, null, myOption);
myPrintJob.send();
MovieClip(toPrint_mc.subPrint_mc).removeChild(myClip);
try {
ExternalInterface.call("trackAction", {name:"Snip n Style - Free play - Hairstyle printed", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Print"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
} else {
trace("Print cancled");
};
});
};
}
function frame41(){
stop();
if (brushObj == null){
initializeControlsColorScreen();
};
}
public function startGamePlay(_arg1:MouseEvent):void{
var e = _arg1;
try {
ExternalInterface.call("trackAction", {name:"Snip n Style - Game Play", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Play"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
trace("Snip n Style - Game Play");
TargetStyles.createTargetHairStyles();
clearLandingScreen();
playMode = Constants.GAME_PLAY;
gotoAndStop("Game Instructions");
}
function frame53(){
stop();
initializeAccessoriesScreen2();
}
function frame54(){
stop();
initializeAccessoriesScreen3();
}
public function clearLastScreen():void{
switch (currentScreen){
case Constants.LANDING_SCREEN:
clearLandingScreen();
break;
case Constants.GAME_INST_SCREEN:
clearFromInstructionScreen();
break;
case Constants.MATCH_SCREEN:
clearFromMatchScreen();
break;
case Constants.WASH_DRY_SCREEN:
clearWashBlowDryScreen();
break;
case Constants.CUT_SCREEN:
clearCutHairScreen();
clearHairRegionAndStyleObjects();
break;
case Constants.COLOR_SCREEN:
clearColorScreen();
clearHairRegionAndStyleObjects();
break;
case Constants.STYLE_SCREEN:
clearStyleHairScreen();
clearHairRegionAndStyleObjects();
break;
case Constants.ACCESSORIES_SCREEN:
clearAccessoriesScreen();
clearHairRegionAndStyleObjects();
break;
};
}
function frame46(){
stop();
if (flatironObj == null){
initializeControlsStyleHairScreen();
};
}
public function resumeGameTimer():void{
if (((!((mc_counter == null))) && (isGameModeRunning))){
if (mc_counter.pauseTimer){
mc_counter.unpauseCountDown();
};
};
}
function frame51(){
stop();
initializeControlsAccessoriesScreen();
}
public function setUndoStackElements():void{
var _local1:int;
_local1 = 0;
while (_local1 < undoStackBackup.length) {
undoStack.pushStyle(undoStackBackup[_local1]);
_local1++;
};
undoStackBackup = new Array();
trace("=================================================");
trace(((("setting undoStack with values in undoStackBackup. undoStackBackup.length=" + undoStackBackup.length) + " undoStack.stackLength=") + undoStack.stackLength));
}
public function fadeInSound():void{
trace("in fadeInSound()");
timer = new Timer(100, 2);
timer.addEventListener(TimerEvent.TIMER, increaseVolume);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, clearTimer);
timer.start();
if (startUpSnd != null){
startUpSoundChnl.stop();
startUpSnd = null;
startUpSoundChnl = null;
};
startUpSnd = new StartUpSound();
startUpSoundChnl = startUpSnd.play(0, 5);
startUpControl.volume = 0;
startUpSoundChnl.soundTransform = startUpControl;
}
function frame57(){
stop();
initializeControlsPayoffScreen();
}
public function animationComplete(_arg1:CustomEvents):void{
showCurrentTool();
enableCompleteScreen();
}
public function backFromWashBlowDryScreen(_arg1:MouseEvent):void{
clearWashBlowDryScreen();
if (playMode == Constants.GAME_PLAY){
gotoAndStop("Match This Screen");
} else {
gotoAndStop("Free Play Inst");
};
}
public function clearAccessoriesScreen():void{
done_btn.removeEventListener(MouseEvent.CLICK, nextFromAccessoriesScreen);
back_btn5.removeEventListener(MouseEvent.CLICK, backFromAccessoriesScreen);
}
public function clearTimer(_arg1:Event):void{
var e = _arg1;
trace("in fucntion clearTimer()");
try {
timer.removeEventListener(TimerEvent.TIMER, increaseVolume);
} catch(e:Error) {
trace("no handler for increaseVolume");
};
try {
timer.removeEventListener(TimerEvent.TIMER, decreaseVolume);
} catch(e:Error) {
trace("no handler for increaseVolume");
};
timer.removeEventListener(TimerEvent.TIMER_COMPLETE, clearTimer);
timer.reset();
}
public function fadeOutSound():void{
trace("in fadeOutSound()");
timer = new Timer(300, 5);
timer.addEventListener(TimerEvent.TIMER, decreaseVolume);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, clearTimer);
timer.start();
}
public function StartLoadingExternalFiles():void{
loader = new BulkLoader("main-site");
loader.logLevel = BulkLoader.LOG_INFO;
loader.add("Intro.swf");
loader.addEventListener(BulkLoader.COMPLETE, onAllItemsLoaded);
loader.addEventListener(BulkLoader.PROGRESS, onAllItemsProgress);
loader.start();
}
function frame52(){
stop();
initializeAccessoriesScreen1();
}
public function nextFromMatchScreen(_arg1:MouseEvent):void{
clearFromMatchScreen();
gotoAndStop("washBlowDryHair");
}
public function backFromCutHairScreen(_arg1:MouseEvent):void{
var _local2:CompleteHairStyle;
_local2 = undoScreenStack.popStyle();
if (_local2 != null){
hairStyleObj = _local2;
updateCompleteHeadMovieClip();
resetSessorHotspots(_local2);
};
clearCutHairScreen();
clearHairRegionAndStyleObjects();
gotoAndStop("washBlowDryHair");
}
public function clearColorScreen():void{
next_btn3.removeEventListener(MouseEvent.CLICK, nextFromColorScreen);
back_btn3.removeEventListener(MouseEvent.CLICK, backFromColorScreen);
brushObj.cleanup();
brushObj = null;
CompleteHairStyle.currentTool = null;
}
public function pauseGameTimer():void{
if (((!((mc_counter == null))) && (isGameModeRunning))){
if (!mc_counter.pauseTimer){
mc_counter.pauseCountDown();
};
};
}
public function changeHairLength(_arg1:HairRegion, _arg2:String, _arg3:String):void{
hideCurrentTool();
disableCompleteScreen();
_arg1.mcHairRegion.gotoAndPlay(_arg2);
undoStack.pushStyle(hairStyleObj);
_arg1.hairLength = _arg3;
trace(((("changing " + _arg1.mcHairRegion.name) + " from ") + _arg2));
if (scessorSound_mc != null){
scessorSound_mc.gotoAndPlay(1);
};
}
public function blinkMovie(_arg1:Event):void{
if (blinkMC1 != null){
blinkMC1.visible = !(blinkMC1.visible);
};
if (blinkMC2 != null){
blinkMC2.visible = blinkMC1.visible;
};
}
public function calculateTargetStyleTime(_arg1:CompleteHairStyle):Number{
var _local2:Number;
_local2 = 0;
_local2 = (Constants.BUFFER_TIME + Constants.WASH_DRY_TIME);
if (_arg1.hairRegion1.hairLength == Constants.MEDIUM_HAIR){
_local2 = (_local2 + (6 * Constants.REGION_HAIRCUT_TIME));
} else {
if (_arg1.hairRegion1.hairLength == Constants.SHORT_HAIR){
_local2 = (_local2 + (12 * Constants.REGION_HAIRCUT_TIME));
};
};
if ((((((((((((_arg1.hairRegion1.hairColor == Constants.BLACK)) || ((_arg1.hairRegion1.hairColor == Constants.WHITE)))) || ((_arg1.hairRegion1.hairColor == Constants.BROWN)))) || ((_arg1.hairRegion1.hairColor == Constants.RED)))) || ((_arg1.hairRegion1.hairColor == Constants.BLUE)))) || ((_arg1.hairRegion1.hairColor == Constants.YELLOW)))){
_local2 = (_local2 + Constants.SIMPLE_COLOR_TIME);
} else {
_local2 = (_local2 + Constants.COMPLEX_COLOR_TIME);
};
_local2 = (_local2 + Constants.HAIR_STYLE_TIME);
_local2 = (_local2 + Constants.ACCESSORIE_ADD_TIME);
return (_local2);
}
public function decreaseVolume(_arg1:Event):void{
if (startUpControl.volume >= 0.2){
startUpControl.volume = (startUpControl.volume - 0.2);
} else {
startUpControl.volume = 0;
};
startUpSoundChnl.soundTransform = startUpControl;
}
public function updatePrintStyleMovieHairColor(_arg1:CustomEvents):void{
ptnHairStyleObj.updateHairColor();
trace("in updatePrintStyleMovieHairColor();");
}
public function clearStyleHairScreen():void{
next_btn4.removeEventListener(MouseEvent.CLICK, nextFromStyleHairScreen);
back_btn4.removeEventListener(MouseEvent.CLICK, backFromStyleHairScreen);
flatironObj.cleanup();
crimperObj.cleanup();
if (braidObj != null){
braidObj.cleanup();
};
littleCurlersObj.cleanup();
bigCurlersObj.cleanup();
flatironObj = null;
crimperObj = null;
braidObj = null;
littleCurlersObj = null;
bigCurlersObj = null;
CompleteHairStyle.currentTool = null;
}
public function undoChangesOnScreen(_arg1:MouseEvent):void{
var _local2:CompleteHairStyle;
_local2 = undoStack.popStyle();
if (_local2 != null){
if (currentScreen == Constants.STYLE_SCREEN){
if (_local2.hairRegion1.hairStyle != Constants.BRAID_HAIR){
_local2.hairRegion1.hairLength = hairRegionLength_1;
_local2.hairRegion4.hairLength = hairRegionLength_4;
_local2.hairRegion6.hairLength = hairRegionLength_6;
};
if (_local2.hairRegion2.hairStyle != Constants.BRAID_HAIR){
_local2.hairRegion2.hairLength = hairRegionLength_2;
_local2.hairRegion3.hairLength = hairRegionLength_3;
_local2.hairRegion5.hairLength = hairRegionLength_5;
};
};
hairStyleObj.traceHairStyle();
hairStyleObj.copyFrom(_local2);
hairStyleObj.traceHairStyle();
if (currentScreen == Constants.ACCESSORIES_SCREEN){
updateAccessorieMovieClips();
} else {
updateCompleteHeadMovieClip();
};
};
resetSessorHotspots(_local2);
}
public function brushTouchedHair(_arg1:CustomEvents):void{
var _local2:String;
_local2 = _arg1.object.name.substr(3, 8);
trace(("in brushTouchedHair() and Region=" + _local2));
if (colorGen.finalColor != null){
switch (_local2){
case "region_1":
changeHairRegionColor(hairStyleObj.hairRegion1, colorGen.finalColor);
break;
case "region_2":
changeHairRegionColor(hairStyleObj.hairRegion2, colorGen.finalColor);
break;
case "region_3":
changeHairRegionColor(hairStyleObj.hairRegion3, colorGen.finalColor);
break;
case "region_4":
changeHairRegionColor(hairStyleObj.hairRegion4, colorGen.finalColor);
break;
case "region_5":
changeHairRegionColor(hairStyleObj.hairRegion5, colorGen.finalColor);
break;
case "region_6":
changeHairRegionColor(hairStyleObj.hairRegion6, colorGen.finalColor);
break;
default:
trace(("Something is wrong in finding the Brush hit region, str=" + _local2));
break;
};
};
}
public function clearCutHairScreen():void{
next_btn2.removeEventListener(MouseEvent.CLICK, nextFromCutHairScreen);
back_btn2.removeEventListener(MouseEvent.CLICK, backFromCutHairScreen);
scissorsObj.removeEventListener(CustomEvents.SOURCE_HITS_TARGET, scissorsTouchedHair);
scissorsObj.cleanup();
scissorsObj = null;
backupUndoStackElements();
CompleteHairStyle.currentTool = null;
}
public function changeHairRegionColor(_arg1:HairRegion, _arg2:String):void{
if (_arg1.hairColor != _arg2){
undoStack.pushStyle(hairStyleObj);
_arg1.hairColor = _arg2;
_arg1.updateHairColor();
Utile.enableButton(next_btn3);
};
}
public function skipIntroAnimation(_arg1:Event):void{
if (introMC != null){
introMC.stop();
};
gotoAndStop("landing");
}
public function onAllItemsProgress(_arg1:BulkProgressEvent):void{
}
public function initializeControlsAccessoriesScreen():void{
currentScreen = Constants.ACCESSORIES_SCREEN;
mc_stepCounter.gotoAndStop("five");
back_btn5.addEventListener(MouseEvent.CLICK, backFromAccessoriesScreen);
done_btn.addEventListener(MouseEvent.CLICK, nextFromAccessoriesScreen);
removeAllUndoStackElements();
play();
}
public function initializeControlsCutHairScreen():void{
var _local1:Array;
var _local2:Array;
var _local3:Array;
currentScreen = Constants.CUT_SCREEN;
mc_stepCounter.gotoAndStop("two");
next_btn2.addEventListener(MouseEvent.CLICK, nextFromCutHairScreen);
back_btn2.addEventListener(MouseEvent.CLICK, backFromCutHairScreen);
undo_btn.addEventListener(MouseEvent.CLICK, undoChangesOnScreen);
mc_tools_scissors.gotoAndStop("scissors");
_local1 = new Array();
_local1.push(mc_R1_MH_Scissor_HP);
_local1.push(mc_R1_LH_Scissor_HP);
_local1.push(mc_R4_MH_Scissor_HP);
_local1.push(mc_R4_LH_Scissor_HP);
_local1.push(mc_R6_MH_Scissor_HP);
_local1.push(mc_R6_LH_Scissor_HP);
_local1.push(mc_R2_MH_Scissor_HP);
_local1.push(mc_R2_LH_Scissor_HP);
_local1.push(mc_R3_MH_Scissor_HP);
_local1.push(mc_R3_LH_Scissor_HP);
_local1.push(mc_R5_MH_Scissor_HP);
_local1.push(mc_R5_LH_Scissor_HP);
_local2 = new Array();
_local2.push(mc_tool_container);
if (scissorsObj != null){
scissorsObj.cleanup();
};
trace(("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ scissorsObj=" + scissorsObj));
scissorsObj = new PicknDrag(mc_tools_scissors, stage, mc_head.mc_FaceCenter, _local1, _local2);
scissorsObj.originalSourceLabel = "scissors";
scissorsObj.leftHoldLabel = "scissorsLeftHold";
scissorsObj.rightHoldLabel = "scissorsLeftHold";
scissorsObj.useMCHitPoint = true;
scissorsObj.addEventListener(CustomEvents.SOURCE_HITS_TARGET, scissorsTouchedHair);
_local3 = new Array();
_local3.push(mc_head.mc_region_1_container);
_local3.push(mc_head.mc_region_2_container);
_local3.push(mc_head.mc_region_3_container);
_local3.push(mc_head.mc_region_4_container);
_local3.push(mc_head.mc_region_5_container);
_local3.push(mc_head.mc_region_6_container);
scissorsObj.scissorsGlowTargets = _local3;
resetSessorHotspots(hairStyleObj);
removeAllUndoStackElements();
setUndoStackElements();
}
public function playHairWashAnimation(_arg1:MouseEvent):void{
disableCompleteScreen();
Utile.disableButton(next_btn1);
mc_washHairAnim.visible = true;
mc_head_WashBlowdry.visible = false;
mc_tools_drayer.visible = true;
mc_showernShampoo.visible = false;
mc_washHairAnim.gotoAndPlay("washHairAnim");
}
public function backFromStyleHairScreen(_arg1:MouseEvent):void{
var _local2:CompleteHairStyle;
_local2 = undoScreenStack.popStyle();
if (_local2 != null){
hairStyleObj.copyFrom(_local2);
updateCompleteHeadMovieClip();
};
clearStyleHairScreen();
gotoAndStop("colorHair");
}
public function bigCurlersTouchedHair(_arg1:CustomEvents):void{
var _local2:String;
trace(((("Big Curlers Touched Hair -->" + _arg1.object.name) + " finalColor=") + colorGen.finalColor));
_local2 = _arg1.object.name.substr(3, 8);
switch (_local2){
case "region_1":
changeHairRegionStyle(hairStyleObj.hairRegion1, Constants.BIG_CURLY_HAIR);
break;
case "region_2":
changeHairRegionStyle(hairStyleObj.hairRegion2, Constants.BIG_CURLY_HAIR);
break;
case "region_3":
changeHairRegionStyle(hairStyleObj.hairRegion3, Constants.BIG_CURLY_HAIR);
break;
case "region_4":
changeHairRegionStyle(hairStyleObj.hairRegion4, Constants.BIG_CURLY_HAIR);
break;
case "region_5":
changeHairRegionStyle(hairStyleObj.hairRegion5, Constants.BIG_CURLY_HAIR);
break;
case "region_6":
changeHairRegionStyle(hairStyleObj.hairRegion6, Constants.BIG_CURLY_HAIR);
break;
default:
trace(("Something is wrong in finding the Big Curlers hit region, str=" + _local2));
break;
};
}
public function setPrintMovieStyle():void{
var _local1:HairRegion;
var _local2:HairRegion;
var _local3:HairRegion;
var _local4:HairRegion;
var _local5:HairRegion;
var _local6:HairRegion;
_local1 = new HairRegion(print_mc.mc_head.mc_region_1_container);
_local2 = new HairRegion(print_mc.mc_head.mc_region_2_container);
_local3 = new HairRegion(print_mc.mc_head.mc_region_3_container);
_local4 = new HairRegion(print_mc.mc_head.mc_region_4_container);
_local5 = new HairRegion(print_mc.mc_head.mc_region_5_container);
_local6 = new HairRegion(print_mc.mc_head.mc_region_6_container);
ptnHairStyleObj = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6, null, print_mc.mc_head.mc_backHairLeft, print_mc.mc_head.mc_backHairRight);
ptnHairStyleObj.accessories = new Accessories(print_mc.mc_head.mc_glitter, print_mc.mc_head.mc_barrettes, print_mc.mc_head.mc_headbands, print_mc.mc_head.mc_scarves, print_mc.mc_head.mc_ribbons, print_mc.mc_head.mc_sunglasses);
if (hairStyleObjDump != null){
ptnHairStyleObj.copyFrom(hairStyleObjDump);
ptnHairStyleObj.showHideBackHair();
ptnHairStyleObj.updateHairStyle();
ptnHairStyleObj.updateHairColor();
ptnHairStyleObj.updateBackHairMovieClipColor(null);
ptnHairStyleObj.removeEventListener(CustomEvents.ANIMATION_COMPLETED, updatePrintStyleMovieHairColor);
ptnHairStyleObj.addEventListener(CustomEvents.ANIMATION_COMPLETED, updatePrintStyleMovieHairColor);
};
}
public function disableUndoButton(_arg1:Event):void{
Utile.disableButton(undo_btn);
}
public function updateAccessorieMovieClips():void{
hairStyleObj.accessories.updateAccessories();
}
public function nextFromWashBlowDryScreen(_arg1:MouseEvent):void{
clearWashBlowDryScreen();
gotoAndStop("cutHair");
}
public function clearMCBlinkTimer(_arg1:Event):void{
mcBlinkTimer.reset();
mcBlinkTimer.removeEventListener(TimerEvent.TIMER, blinkMovie);
mcBlinkTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, clearMCBlinkTimer);
if (blinkMC1 != null){
blinkMC1.visible = true;
blinkMC1.mouseEnabled = true;
};
if (blinkMC2 != null){
blinkMC2.visible = true;
blinkMC2.mouseEnabled = true;
};
enableCompleteScreen(_arg1);
}
public function startFreePlay(_arg1:MouseEvent):void{
var e = _arg1;
try {
ExternalInterface.call("trackAction", {name:"Snip n Style - Free Play", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Play"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
trace("Snip n Style - free Play");
clearLandingScreen();
playMode = Constants.FREE_PLAY;
gotoAndStop("Free Play Inst");
}
public function playHairDryAnimation(_arg1:MouseEvent):void{
clearMCBlinkTimer(null);
disableCompleteScreen();
mc_head_WashBlowdry.visible = true;
mc_washHairAnim.visible = false;
mc_tools_drayer.visible = false;
mc_showernShampoo.visible = true;
mc_head_WashBlowdry.gotoAndPlay("dryHairAnim");
}
public function clearFromMatchScreen():void{
next_button.removeEventListener(MouseEvent.CLICK, nextFromMatchScreen);
}
public function StartLoading():void{
var _local1:Number;
var _local2:Number;
_local1 = stage.loaderInfo.bytesLoaded;
_local2 = stage.loaderInfo.bytesTotal;
currentScreen = Constants.LOADING_SCREEN;
if (_local1 >= _local2){
gotoAndStop("landing");
} else {
gotoAndPlay((currentFrame - 1));
};
}
public function braidTouchedHair(_arg1:CustomEvents):void{
var _local2:String;
trace(((("Braid Touched Hair -->" + _arg1.object.name) + " finalColor=") + colorGen.finalColor));
_local2 = _arg1.object.name.substr(3, 8);
switch (_local2){
case "region_1":
case "region_4":
case "region_6":
changeHairRegionStyleToBraid(hairStyleObj.hairRegion1, hairStyleObj.hairRegion4, hairStyleObj.hairRegion6);
break;
case "region_2":
case "region_3":
case "region_5":
changeHairRegionStyleToBraid(hairStyleObj.hairRegion2, hairStyleObj.hairRegion3, hairStyleObj.hairRegion5);
break;
default:
trace(("Something is wrong in finding the Braid hit region, str=" + _local2));
break;
};
}
public function littleCurlersTouchedHair(_arg1:CustomEvents):void{
var _local2:String;
trace(((("Little Curler Touched Hair -->" + _arg1.object.name) + " finalColor=") + colorGen.finalColor));
_local2 = _arg1.object.name.substr(3, 8);
switch (_local2){
case "region_1":
changeHairRegionStyle(hairStyleObj.hairRegion1, Constants.LITTLE_CURLY_HAIR);
break;
case "region_2":
changeHairRegionStyle(hairStyleObj.hairRegion2, Constants.LITTLE_CURLY_HAIR);
break;
case "region_3":
changeHairRegionStyle(hairStyleObj.hairRegion3, Constants.LITTLE_CURLY_HAIR);
break;
case "region_4":
changeHairRegionStyle(hairStyleObj.hairRegion4, Constants.LITTLE_CURLY_HAIR);
break;
case "region_5":
changeHairRegionStyle(hairStyleObj.hairRegion5, Constants.LITTLE_CURLY_HAIR);
break;
case "region_6":
changeHairRegionStyle(hairStyleObj.hairRegion6, Constants.LITTLE_CURLY_HAIR);
break;
default:
trace(("Something is wrong in finding the Little Curler hit region, str=" + _local2));
break;
};
}
public function flatironTouchedHair(_arg1:CustomEvents):void{
var _local2:String;
trace(((("Flatiron Touched Hair -->" + _arg1.object.name) + " finalColor=") + colorGen.finalColor));
_local2 = _arg1.object.name.substr(3, 8);
switch (_local2){
case "region_1":
changeHairRegionStyle(hairStyleObj.hairRegion1, Constants.FLATTERED_HAIR);
break;
case "region_2":
changeHairRegionStyle(hairStyleObj.hairRegion2, Constants.FLATTERED_HAIR);
break;
case "region_3":
changeHairRegionStyle(hairStyleObj.hairRegion3, Constants.FLATTERED_HAIR);
break;
case "region_4":
changeHairRegionStyle(hairStyleObj.hairRegion4, Constants.FLATTERED_HAIR);
break;
case "region_5":
changeHairRegionStyle(hairStyleObj.hairRegion5, Constants.FLATTERED_HAIR);
break;
case "region_6":
changeHairRegionStyle(hairStyleObj.hairRegion6, Constants.FLATTERED_HAIR);
break;
default:
trace(("Something is wrong in finding the Flatiron hit region, str=" + _local2));
break;
};
}
public function backFromAccessoriesScreen(_arg1:MouseEvent):void{
var _local2:CompleteHairStyle;
_local2 = undoScreenStack.popStyle();
if (_local2 != null){
hairStyleObj.copyFrom(_local2);
hairStyleObj.accessories.updateAccessories();
};
clearAccessoriesScreen();
gotoAndStop("styleHair");
}
public function updateCompleteHeadMovieClip():void{
hairStyleObj.updateHairStyle();
hairStyleObj.updateHairColor();
hairStyleObj.updateBackHairMovieClipColor(null);
}
public function changeHairRegionStyleToBraid(_arg1:HairRegion, _arg2:HairRegion, _arg3:HairRegion):void{
var _local4:String;
if ((((((_arg1.hairLength == Constants.LONG_HAIR)) || ((_arg2.hairLength == Constants.LONG_HAIR)))) || ((_arg3.hairLength == Constants.LONG_HAIR)))){
_local4 = Constants.LONG_HAIR;
} else {
if ((((((_arg1.hairLength == Constants.MEDIUM_HAIR)) || ((_arg2.hairLength == Constants.MEDIUM_HAIR)))) || ((_arg3.hairLength == Constants.MEDIUM_HAIR)))){
_local4 = Constants.MEDIUM_HAIR;
} else {
_local4 = Constants.SHORT_HAIR;
};
};
_arg1.hairLength = _local4;
_arg2.hairLength = _local4;
_arg3.hairLength = _local4;
disableCompleteScreen();
undoStack.pushStyle(hairStyleObj);
_arg1.hairStyle = Constants.BRAID_HAIR;
_arg2.hairStyle = Constants.BRAID_HAIR;
_arg3.hairStyle = Constants.BRAID_HAIR;
_arg1.mcHairRegion.gotoAndPlay(((((_arg1.hairLength + "_") + _arg1.hairStyle) + "_") + "Start"));
_arg2.mcHairRegion.gotoAndPlay(((((_arg2.hairLength + "_") + _arg2.hairStyle) + "_") + "Start"));
_arg3.mcHairRegion.gotoAndPlay(((((_arg3.hairLength + "_") + _arg3.hairStyle) + "_") + "Start"));
Utile.enableButton(next_btn4);
}
public function blinkMovieClip(_arg1:Number=5, _arg2:MovieClip=null, _arg3:MovieClip=null):void{
blinkMC1 = _arg2;
blinkMC2 = _arg3;
if (blinkMC1 != null){
blinkMC1.mouseEnabled = false;
};
if (blinkMC2 != null){
blinkMC2.mouseEnabled = false;
};
mcBlinkTimer = new Timer(400, _arg1);
mcBlinkTimer.addEventListener(TimerEvent.TIMER, blinkMovie);
mcBlinkTimer.addEventListener(TimerEvent.TIMER_COMPLETE, clearMCBlinkTimer);
mcBlinkTimer.start();
}
public function playBackgroundSound():void{
if (backgroundSnd != null){
backgroundSoundChnl.stop();
backgroundSnd = null;
backgroundSoundChnl = null;
};
backgroundSnd = new backgroundSound();
backgroundSoundChnl = backgroundSnd.play(0, 500);
backgroundSoundControl.volume = 0.3;
backgroundSoundChnl.soundTransform = backgroundSoundControl;
}
public function setPayOffScreenMovieStyle():void{
var _local1:HairRegion;
var _local2:HairRegion;
var _local3:HairRegion;
var _local4:HairRegion;
var _local5:HairRegion;
var _local6:HairRegion;
_local1 = new HairRegion(mc_payoff.mc_region_1_container);
_local2 = new HairRegion(mc_payoff.mc_region_2_container);
_local3 = new HairRegion(mc_payoff.mc_region_3_container);
_local4 = new HairRegion(mc_payoff.mc_region_4_container);
_local5 = new HairRegion(mc_payoff.mc_region_5_container);
_local6 = new HairRegion(mc_payoff.mc_region_6_container);
payoffHairStyleObj = new CompleteHairStyle(_local1, _local2, _local3, _local4, _local5, _local6, null, mc_payoff.mc_backHairLeft, mc_payoff.mc_backHairRight);
payoffHairStyleObj.accessories = new Accessories(mc_payoff.mc_glitter, mc_payoff.mc_barrettes, mc_payoff.mc_headbands, mc_payoff.mc_scarves, mc_payoff.mc_ribbons, mc_payoff.mc_sunglasses);
if (hairStyleObjDump != null){
payoffHairStyleObj.copyFrom(hairStyleObjDump);
payoffHairStyleObj.updateHairStyle();
payoffHairStyleObj.updateHairColor();
};
}
public function backToLandingScreen(_arg1:MouseEvent):void{
clearLastScreen();
if (startUpSoundChnl != null){
fadeOutSound();
};
if (backgroundSnd != null){
backgroundSoundChnl.stop();
backgroundSnd = null;
backgroundSoundChnl = null;
};
fadeInSound();
gotoAndStop("landing");
}
public function nextFromInstructionScreen(_arg1:MouseEvent):void{
clearFromInstructionScreen();
if (playMode == Constants.GAME_PLAY){
gotoAndStop("Match This Screen");
} else {
gotoAndStop("washBlowDryHair");
};
}
public function enableUndoButton(_arg1:Event):void{
Utile.enableButton(undo_btn);
}
public function displayHelp(_arg1:MouseEvent):void{
help_mc.parent.removeChild(help_mc);
stage.addChild(help_mc);
help_mc.addEventListener(CustomEvents.HELP_OPENED, helpOpened);
PicknDrag.isAnyToolActive = true;
if ((((playMode == Constants.GAME_PLAY)) || (isGameModeRunning))){
help_mc.gotoAndPlay("gamePlayHelp");
} else {
help_mc.gotoAndPlay("freePlayHelp");
};
}
public function helpOpened(_arg1:CustomEvents):void{
var e = _arg1;
pauseGameTimer();
help_mc.close_btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
help_mc.gotoAndStop("closeHelp");
PicknDrag.isAnyToolActive = false;
resumeGameTimer();
});
}
public function onAllItemsLoaded(_arg1:Event):void{
trace("every thing is loaded!");
introMC = loader.getMovieClip("Intro.swf");
addChild(introMC);
introMC.gotoAndPlay(2);
gotoAndStop("intro");
}
public function startCounter():void{
mc_counter.initCounterApp();
mc_counter.pauseTimer = false;
mc_counter.startTimerDown(DateMath.addSeconds(new Date(), countDownTime));
mc_counter.visible = true;
}
public function updateHeadMovieClipColor(_arg1:CustomEvents):void{
hairStyleObj.updateHairColor();
}
public function clearWashBlowDryScreen():void{
next_btn1.removeEventListener(MouseEvent.CLICK, nextFromWashBlowDryScreen);
back_btn1.removeEventListener(MouseEvent.CLICK, backFromWashBlowDryScreen);
washTool_btn.removeEventListener(MouseEvent.CLICK, playHairWashAnimation);
mc_washHairAnim.removeEventListener(CustomEvents.ANIMATION_COMPLETED, washAnimationCompleted);
mc_tools_drayer.removeEventListener(MouseEvent.CLICK, playHairDryAnimation);
mc_head_WashBlowdry.removeEventListener(CustomEvents.ANIMATION_COMPLETED, dryAnimationCompleted);
}
public function enableCompleteScreen(_arg1:Event=null):void{
trace("Complete screen is enabled");
mcInvisibleButton.visible = false;
}
public function initializeControlsColorScreen():void{
var _local1:Array;
var _local2:Array;
currentScreen = Constants.COLOR_SCREEN;
mc_stepCounter.gotoAndStop("three");
next_btn3.addEventListener(MouseEvent.CLICK, nextFromColorScreen);
back_btn3.addEventListener(MouseEvent.CLICK, backFromColorScreen);
mcBlackBottle.gotoAndStop("black");
mcWhiteBottle.gotoAndStop("white");
mcBrownBottle.gotoAndStop("brown");
mcRedBottle.gotoAndStop("red");
mcBlueBottle.gotoAndStop("blue");
mcYellowBottle.gotoAndStop("yellow");
colorGen = new ColorGenerator(mcBlackBottle, mcWhiteBottle, mcBrownBottle, mcRedBottle, mcBlueBottle, mcYellowBottle, Mix_Bowl.mcFirstColor, Mix_Bowl.mcSecondColor, undoColors_btn);
_local1 = new Array();
_local1.push(mc_head.mc_region_1_container);
_local1.push(mc_head.mc_region_2_container);
_local1.push(mc_head.mc_region_3_container);
_local1.push(mc_head.mc_region_4_container);
_local1.push(mc_head.mc_region_5_container);
_local1.push(mc_head.mc_region_6_container);
_local2 = new Array();
_local2.push(mc_tool_container);
brushObj = new PicknDrag(mc_tools_brush, stage, mc_head.mc_FaceCenter, _local1, _local2);
brushObj.originalSourceLabel = "color";
brushObj.leftHoldLabel = "brushLeftHold";
brushObj.rightHoldLabel = "brushLeftHold";
brushObj.useMCHitPoint = true;
brushObj.addEventListener(CustomEvents.SOURCE_HITS_TARGET, brushTouchedHair);
brushObj.mcSource.gotoAndStop("color");
removeAllUndoStackElements();
}
public function initializeControlsGameOrFreeInst():void{
currentScreen = Constants.GAME_INST_SCREEN;
next_btn.addEventListener(MouseEvent.CLICK, nextFromInstructionScreen);
SnSLogo_btn.addEventListener(MouseEvent.CLICK, backToLandingScreen);
}
public function resetSessorHotspots(_arg1:CompleteHairStyle):void{
if (_arg1.hairRegion1.hairLength == Constants.LONG_HAIR){
mc_R1_LH_Scissor_HP.enabled = true;
mc_R1_MH_Scissor_HP.enabled = false;
} else {
if (_arg1.hairRegion1.hairLength == Constants.MEDIUM_HAIR){
mc_R1_LH_Scissor_HP.enabled = false;
mc_R1_MH_Scissor_HP.enabled = true;
};
};
if (_arg1.hairRegion2.hairLength == Constants.LONG_HAIR){
mc_R2_LH_Scissor_HP.enabled = true;
mc_R2_MH_Scissor_HP.enabled = false;
} else {
if (_arg1.hairRegion2.hairLength == Constants.MEDIUM_HAIR){
mc_R2_LH_Scissor_HP.enabled = false;
mc_R2_MH_Scissor_HP.enabled = true;
};
};
if (_arg1.hairRegion3.hairLength == Constants.LONG_HAIR){
mc_R3_LH_Scissor_HP.enabled = true;
mc_R3_MH_Scissor_HP.enabled = false;
} else {
if (_arg1.hairRegion3.hairLength == Constants.MEDIUM_HAIR){
mc_R3_LH_Scissor_HP.enabled = false;
mc_R3_MH_Scissor_HP.enabled = true;
};
};
if (_arg1.hairRegion4.hairLength == Constants.LONG_HAIR){
mc_R4_LH_Scissor_HP.enabled = true;
mc_R4_MH_Scissor_HP.enabled = false;
} else {
if (_arg1.hairRegion4.hairLength == Constants.MEDIUM_HAIR){
mc_R4_LH_Scissor_HP.enabled = false;
mc_R4_MH_Scissor_HP.enabled = true;
};
};
if (_arg1.hairRegion5.hairLength == Constants.LONG_HAIR){
mc_R5_LH_Scissor_HP.enabled = true;
mc_R5_MH_Scissor_HP.enabled = false;
} else {
if (_arg1.hairRegion5.hairLength == Constants.MEDIUM_HAIR){
mc_R5_LH_Scissor_HP.enabled = false;
mc_R5_MH_Scissor_HP.enabled = true;
};
};
if (_arg1.hairRegion6.hairLength == Constants.LONG_HAIR){
mc_R6_LH_Scissor_HP.enabled = true;
mc_R6_MH_Scissor_HP.enabled = false;
} else {
if (_arg1.hairRegion6.hairLength == Constants.MEDIUM_HAIR){
mc_R6_LH_Scissor_HP.enabled = false;
mc_R6_MH_Scissor_HP.enabled = true;
};
};
}
public function clearHairRegionAndStyleObjects():void{
hairStyleObj.removeEventListener(CustomEvents.ANIMATION_COMPLETED, animationComplete);
hairStyleObj.removeEventListener(CustomEvents.UPDATE_COLOR, updateHeadMovieClipColor);
hairStyleObjDump = hairStyleObj.cloneHairStyle();
hairRegion1 = null;
hairRegion2 = null;
hairRegion3 = null;
hairRegion4 = null;
hairRegion5 = null;
hairRegion6 = null;
hairStyleObj = null;
removeAllUndoStackElements();
}
public function backupUndoStackElements():void{
undoStackBackup = undoStack.getCopy();
trace(((("Copy of undoStack created in undoStackBackup. undoStackBackup.length=" + undoStackBackup.length) + " undoStack.stackLength=") + undoStack.stackLength));
}
public function showCurrentTool():void{
if (CompleteHairStyle.currentTool != null){
CompleteHairStyle.currentTool.mcSource.visible = true;
trace(("Showing CompleteHairStyle.currentTool = " + CompleteHairStyle.currentTool));
};
}
public function setTargetHairStyle(_arg1:CompleteHairStyle):void{
if (targetStyleObj != null){
targetStyleObj.resetHairStyle();
targetRegion1 = (targetRegion2 = (targetRegion3 = (targetRegion4 = (targetRegion5 = (targetRegion6 = null)))));
targetStyleObj.accessories = null;
targetStyleObj = null;
};
targetRegion1 = new HairRegion(mc_matchThisLook.mc_target.mc_region_1_container);
targetRegion2 = new HairRegion(mc_matchThisLook.mc_target.mc_region_2_container);
targetRegion3 = new HairRegion(mc_matchThisLook.mc_target.mc_region_3_container);
targetRegion4 = new HairRegion(mc_matchThisLook.mc_target.mc_region_4_container);
targetRegion5 = new HairRegion(mc_matchThisLook.mc_target.mc_region_5_container);
targetRegion6 = new HairRegion(mc_matchThisLook.mc_target.mc_region_6_container);
targetStyleObj = new CompleteHairStyle(targetRegion1, targetRegion2, targetRegion3, targetRegion4, targetRegion5, targetRegion6, null, mc_matchThisLook.mc_target.mc_backHairLeft, mc_matchThisLook.mc_target.mc_backHairRight);
targetStyleObj.accessories = new Accessories(mc_matchThisLook.mc_target.mc_glitter, mc_matchThisLook.mc_target.mc_barrettes, mc_matchThisLook.mc_target.mc_headbands, mc_matchThisLook.mc_target.mc_scarves, mc_matchThisLook.mc_target.mc_ribbons, mc_matchThisLook.mc_target.mc_sunglasses);
trace(("TargetStyles.targetStyleCnt = " + TargetStyles.targetStyleCnt));
targetStyleObj.copyFrom(_arg1);
targetStyleObj.traceHairStyle();
targetStyleObj.updateHairStyle();
targetStyleObj.showHideBackHair();
targetStyleObj.updateBackHairMovieClipColor(null);
targetStyleObj.updateHairColor();
countDownTime = calculateTargetStyleTime(targetStyleObj);
}
public function initializeAccessoriesScreen3():void{
more_btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
gotoAndStop("accessories_1");
});
btn_ribbon3.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.ribbon = 3;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_ribbon3.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_ribbon3.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_sunglasse1.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.sunglasse = 1;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_sunglasse1.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_sunglasse1.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_sunglasse2.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.sunglasse = 2;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_sunglasse2.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_sunglasse2.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_sunglasse3.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.sunglasse = 3;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_sunglasse3.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_sunglasse3.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
}
public function initializeAccessoriesScreen1():void{
more_btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
gotoAndStop("accessories_2");
});
btn_glitter.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.glitter = 1;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_glitter.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_glitter.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_barrette1.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.barrette = 1;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_barrette1.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_barrette1.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_barrette2.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.barrette = 2;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_barrette2.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_barrette2.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_barrette3.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.barrette = 3;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_barrette3.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_barrette3.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_headband1.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.headband = 1;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_headband1.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_headband1.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
}
public function initializeControlsIntro():void{
currentScreen = Constants.INTRO_SCREEN;
skip_btn.addEventListener(MouseEvent.CLICK, skipIntroAnimation);
addEventListener(CustomEvents.SKIP_INTRO_ANIMATION, skipIntroAnimation);
}
public function createHairRegionAndStyleObjects():void{
hairRegion1 = new HairRegion(mc_head.mc_region_1_container);
hairRegion2 = new HairRegion(mc_head.mc_region_2_container);
hairRegion3 = new HairRegion(mc_head.mc_region_3_container);
hairRegion4 = new HairRegion(mc_head.mc_region_4_container);
hairRegion5 = new HairRegion(mc_head.mc_region_5_container);
hairRegion6 = new HairRegion(mc_head.mc_region_6_container);
hairStyleObj = new CompleteHairStyle(hairRegion1, hairRegion2, hairRegion3, hairRegion4, hairRegion5, hairRegion6, null, mc_head.mc_backHairLeft, mc_head.mc_backHairRight);
hairStyleObj.addEventListener(CustomEvents.ANIMATION_COMPLETED, animationComplete);
hairStyleObj.addEventListener(CustomEvents.UPDATE_COLOR, updateHeadMovieClipColor);
this.addChild(hairStyleObj);
undoStackBackup = new Array();
hairStyleObj.accessories = new Accessories(mc_head.mc_glitter, mc_head.mc_barrettes, mc_head.mc_headbands, mc_head.mc_scarves, mc_head.mc_ribbons, mc_head.mc_sunglasses);
}
public function initializeAccessoriesScreen2():void{
more_btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
gotoAndStop("accessories_3");
});
btn_headband2.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.headband = 2;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_headband2.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_headband2.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_headband3.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.headband = 3;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_headband3.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_headband3.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_scarve1.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.scarve = 1;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_scarve1.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_scarve1.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_scarve2.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.scarve = 2;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_scarve2.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_scarve2.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_scarve3.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.scarve = 3;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_scarve3.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_scarve3.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_ribbon1.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.ribbon = 1;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_ribbon1.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_ribbon1.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
btn_ribbon2.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{
undoStack.pushStyle(hairStyleObj);
hairStyleObj.accessories.ribbon = 2;
hairStyleObj.accessories.updateAccessories();
Utile.enableButton(done_btn);
});
btn_ribbon2.addEventListener(MouseEvent.ROLL_OVER, function (_arg1:MouseEvent):void{
var _local2:Sound;
_local2 = new RollOverSound();
soundChnel = _local2.play();
});
btn_ribbon2.addEventListener(MouseEvent.ROLL_OUT, function (_arg1:MouseEvent):void{
if (soundChnel != null){
soundChnel.stop();
};
});
}
public function backFromColorScreen(_arg1:MouseEvent):void{
var _local2:CompleteHairStyle;
_local2 = undoScreenStack.popStyle();
if (_local2 != null){
hairStyleObj.copyFrom(_local2);
updateCompleteHeadMovieClip();
};
clearColorScreen();
gotoAndStop("cutHair");
}
public function clearFromInstructionScreen():void{
next_btn.removeEventListener(MouseEvent.CLICK, nextFromInstructionScreen);
}
public function nextFromAccessoriesScreen(_arg1:MouseEvent):void{
var e = _arg1;
undoScreenStack.pushStyle(hairStyleObj);
clearAccessoriesScreen();
if (playMode == Constants.GAME_PLAY){
if (hairStyleObj.equals(targetStyleObj)){
messageFeedbackLabel = "GamePlayGoodFeedback";
stopBackgroundSound();
fadeInSound();
try {
ExternalInterface.call("trackAction", {name:"Snip n Style game play - Won", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Completed"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
trace("Snip n Style game play - Won");
} else {
messageFeedbackLabel = "GamePlayBadFeedback";
try {
ExternalInterface.call("trackAction", {name:"Snip n Style game play - Lost", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Completed"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
trace("Snip n Style game play - Lost");
};
if (mc_counter != null){
mc_counter.stopTimerDown();
mc_counter.visible = false;
};
} else {
messageFeedbackLabel = "FreePlayFeedback";
try {
ExternalInterface.call("trackAction", {name:"Snip n Style free play - completed", campaign:"SnipNStyle", channel:"Fashion", contenttype:"Game", action:"Completed"});
} catch(e:Error) {
trace("No ExternalInterface support");
};
trace("Snip n Style free play - completed");
};
clearHairRegionAndStyleObjects();
gotoAndStop("payoff");
}
}
}//package SnipnStyle_fla
Section 33
//mc_backHairLeft_41 (SnipnStyle_fla.mc_backHairLeft_41)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_backHairLeft_41 extends MovieClip {
public function mc_backHairLeft_41(){
addFrameScript(0, frame1, 5, frame6, 10, frame11);
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package SnipnStyle_fla
Section 34
//mc_backHairRight_43 (SnipnStyle_fla.mc_backHairRight_43)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_backHairRight_43 extends MovieClip {
public function mc_backHairRight_43(){
addFrameScript(0, frame1, 5, frame6, 10, frame11);
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package SnipnStyle_fla
Section 35
//mc_barrettes_head_55 (SnipnStyle_fla.mc_barrettes_head_55)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_barrettes_head_55 extends MovieClip {
public function mc_barrettes_head_55(){
addFrameScript(0, frame1, 5, frame6, 10, frame11, 15, frame16, 20, frame21);
}
function frame6(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame21(){
stop();
}
function frame11(){
stop();
}
}
}//package SnipnStyle_fla
Section 36
//mc_FaceCenter_174 (SnipnStyle_fla.mc_FaceCenter_174)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_FaceCenter_174 extends MovieClip {
public function mc_FaceCenter_174(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 37
//mc_glitter_head_52 (SnipnStyle_fla.mc_glitter_head_52)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_glitter_head_52 extends MovieClip {
public function mc_glitter_head_52(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
stop();
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 38
//mc_head_87 (SnipnStyle_fla.mc_head_87)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_head_87 extends MovieClip {
public var mc_region_3_container:MovieClip;
public var mc_region_2_container:MovieClip;
public var mc_region_6_container:MovieClip;
public var mc_backHairLeft:MovieClip;
public var mc_barrettes:MovieClip;
public var mc_region_1_container:MovieClip;
public var mc_region_5_container:MovieClip;
public var mc_backHairRight:MovieClip;
public var mc_headbands:MovieClip;
public var mc_sunglasses:MovieClip;
public var mc_glitter:MovieClip;
public var mc_FaceCenter:MovieClip;
public var mc_region_4_container:MovieClip;
public var mc_ribbons:MovieClip;
public var mc_scarves:MovieClip;
public function mc_head_87(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 39
//mc_head_WashBlowdry_62 (SnipnStyle_fla.mc_head_WashBlowdry_62)
package SnipnStyle_fla {
import flash.display.*;
import gameClasses.*;
public dynamic class mc_head_WashBlowdry_62 extends MovieClip {
public function mc_head_WashBlowdry_62(){
addFrameScript(0, frame1, 74, frame75);
}
function frame75(){
stop();
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 40
//mc_headbands_head_54 (SnipnStyle_fla.mc_headbands_head_54)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_headbands_head_54 extends MovieClip {
public function mc_headbands_head_54(){
addFrameScript(0, frame1, 5, frame6, 10, frame11, 15, frame16, 20, frame21);
}
function frame6(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame21(){
stop();
}
function frame11(){
stop();
}
}
}//package SnipnStyle_fla
Section 41
//mc_headbands_stage_3_201 (SnipnStyle_fla.mc_headbands_stage_3_201)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_headbands_stage_3_201 extends MovieClip {
public function mc_headbands_stage_3_201(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 42
//mc_headbands_stage1_193 (SnipnStyle_fla.mc_headbands_stage1_193)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_headbands_stage1_193 extends MovieClip {
public function mc_headbands_stage1_193(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 43
//mc_matchThisLook_39 (SnipnStyle_fla.mc_matchThisLook_39)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_matchThisLook_39 extends MovieClip {
public var mc_target:MovieClip;
}
}//package SnipnStyle_fla
Section 44
//mc_messages_212 (SnipnStyle_fla.mc_messages_212)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_messages_212 extends MovieClip {
public function mc_messages_212(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 45
//mc_payoffRegion_1_49 (SnipnStyle_fla.mc_payoffRegion_1_49)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_payoffRegion_1_49 extends MovieClip {
public function mc_payoffRegion_1_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 46
//mc_payoffRegion_2_48 (SnipnStyle_fla.mc_payoffRegion_2_48)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_payoffRegion_2_48 extends MovieClip {
public function mc_payoffRegion_2_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 47
//mc_payoffRegion_3_47 (SnipnStyle_fla.mc_payoffRegion_3_47)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_payoffRegion_3_47 extends MovieClip {
public function mc_payoffRegion_3_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 48
//mc_payoffRegion_4_46 (SnipnStyle_fla.mc_payoffRegion_4_46)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_payoffRegion_4_46 extends MovieClip {
public function mc_payoffRegion_4_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 49
//mc_payoffRegion_5_45 (SnipnStyle_fla.mc_payoffRegion_5_45)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_payoffRegion_5_45 extends MovieClip {
public function mc_payoffRegion_5_45(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 50
//mc_payoffRegion_6_44 (SnipnStyle_fla.mc_payoffRegion_6_44)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_payoffRegion_6_44 extends MovieClip {
public function mc_payoffRegion_6_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 51
//mc_region_1_148 (SnipnStyle_fla.mc_region_1_148)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_region_1_148 extends MovieClip {
public function mc_region_1_148(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 52
//mc_region_1_container_154 (SnipnStyle_fla.mc_region_1_container_154)
package SnipnStyle_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import gameClasses.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mc_region_1_container_154 extends MovieClip {
public var inv_btn:SimpleButton;
public var mc_ToColorR:MovieClip;
public function mc_region_1_container_154(){
addFrameScript(0, frame1, 4, frame5, 54, frame55, 55, frame56, 105, frame106, 106, frame107, 156, frame157, 157, frame158, 222, frame223, 228, frame229, 293, frame294, 299, frame300, 363, frame364, 370, frame371, 432, frame433, 438, frame439, 500, frame501, 506, frame507, 568, frame569, 575, frame576, 580, frame581, 583, frame584, 588, frame589, 591, frame592, 596, frame597, 599, frame600, 653, frame654, 659, frame660, 713, frame714, 719, frame720, 773, frame774, 780, frame781, 833, frame834, 839, frame840, 892, frame893, 898, frame899, 951, frame952);
}
function frame660(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame157(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame952(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame439(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame781(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame834(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame714(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame158(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame569(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame840(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame600(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame433(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame576(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame223(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame501(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame106(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame294(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame581(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame507(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame5(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame229(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame1(){
stop();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame107(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame592(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame584(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame597(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame720(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame589(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame364(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame893(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame55(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame56(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame371(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame899(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame774(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame654(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame300(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
}
}//package SnipnStyle_fla
Section 53
//mc_region_2_container_133 (SnipnStyle_fla.mc_region_2_container_133)
package SnipnStyle_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import gameClasses.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mc_region_2_container_133 extends MovieClip {
public var inv_btn:SimpleButton;
public var mc_region_1:MovieClip;
public var mc_ToColorR:MovieClip;
public function mc_region_2_container_133(){
addFrameScript(0, frame1, 4, frame5, 54, frame55, 55, frame56, 105, frame106, 106, frame107, 156, frame157, 157, frame158, 222, frame223, 228, frame229, 293, frame294, 299, frame300, 364, frame365, 371, frame372, 433, frame434, 439, frame440, 501, frame502, 507, frame508, 569, frame570, 576, frame577, 581, frame582, 584, frame585, 589, frame590, 592, frame593, 597, frame598, 600, frame601, 655, frame656, 661, frame662, 716, frame717, 722, frame723, 777, frame778, 784, frame785, 837, frame838, 843, frame844, 896, frame897, 902, frame903, 955, frame956);
}
function frame157(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame434(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame956(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame717(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame838(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame440(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame158(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame723(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame601(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame844(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame570(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame577(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame223(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame582(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame106(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame508(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame502(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame903(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame5(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame229(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame1(){
stop();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame590(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame107(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame585(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame593(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame598(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame365(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame294(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame372(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame897(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame656(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame55(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame56(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame778(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame662(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame300(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame785(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
}
}//package SnipnStyle_fla
Section 54
//mc_region_3_container_131 (SnipnStyle_fla.mc_region_3_container_131)
package SnipnStyle_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import gameClasses.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mc_region_3_container_131 extends MovieClip {
public var inv_btn:SimpleButton;
public var mc_ToColorR:MovieClip;
public function mc_region_3_container_131(){
addFrameScript(0, frame1, 4, frame5, 54, frame55, 55, frame56, 105, frame106, 106, frame107, 156, frame157, 157, frame158, 222, frame223, 228, frame229, 293, frame294, 299, frame300, 367, frame368, 374, frame375, 436, frame437, 442, frame443, 504, frame505, 510, frame511, 571, frame572, 578, frame579, 583, frame584, 586, frame587, 591, frame592, 594, frame595, 599, frame600, 602, frame603, 657, frame658, 663, frame664, 718, frame719, 724, frame725, 779, frame780, 786, frame787, 837, frame838, 843, frame844, 894, frame895, 900, frame901, 951, frame952);
}
function frame787(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame157(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame952(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame437(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame838(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame719(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame158(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame844(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame603(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame443(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame600(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame725(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame572(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame223(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame106(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame294(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame587(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame5(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame229(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame1(){
stop();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame107(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame595(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame579(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame584(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame511(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame592(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame505(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame368(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame901(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame658(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame55(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame56(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame375(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame895(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame300(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame780(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame664(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
}
}//package SnipnStyle_fla
Section 55
//mc_region_4_container_113 (SnipnStyle_fla.mc_region_4_container_113)
package SnipnStyle_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import gameClasses.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mc_region_4_container_113 extends MovieClip {
public var inv_btn:SimpleButton;
public var mc_ToColorR:MovieClip;
public function mc_region_4_container_113(){
addFrameScript(0, frame1, 4, frame5, 54, frame55, 55, frame56, 105, frame106, 106, frame107, 156, frame157, 157, frame158, 222, frame223, 228, frame229, 293, frame294, 299, frame300, 366, frame367, 373, frame374, 435, frame436, 441, frame442, 503, frame504, 509, frame510, 570, frame571, 577, frame578, 582, frame583, 585, frame586, 590, frame591, 593, frame594, 598, frame599, 601, frame602, 656, frame657, 662, frame663, 717, frame718, 723, frame724, 778, frame779, 785, frame786, 836, frame837, 842, frame843, 893, frame894, 899, frame900, 950, frame951);
}
function frame157(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame951(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame837(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame436(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame442(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame158(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame602(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame724(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame843(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame718(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame578(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame583(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame223(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame106(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame294(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame586(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame5(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame229(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame1(){
stop();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame107(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame504(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame510(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame594(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame599(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame591(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame900(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame367(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame571(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame374(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame779(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame55(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame56(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame657(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame894(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame300(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame786(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame663(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
}
}//package SnipnStyle_fla
Section 56
//mc_region_5_container_109 (SnipnStyle_fla.mc_region_5_container_109)
package SnipnStyle_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import gameClasses.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mc_region_5_container_109 extends MovieClip {
public var inv_btn:SimpleButton;
public var mc_ToColorR:MovieClip;
public function mc_region_5_container_109(){
addFrameScript(0, frame1, 4, frame5, 55, frame56, 56, frame57, 106, frame107, 107, frame108, 157, frame158, 158, frame159, 223, frame224, 229, frame230, 294, frame295, 300, frame301, 365, frame366, 372, frame373, 434, frame435, 440, frame441, 502, frame503, 508, frame509, 570, frame571, 577, frame578, 582, frame583, 585, frame586, 590, frame591, 593, frame594, 598, frame599, 601, frame602, 657, frame658, 663, frame664, 719, frame720, 725, frame726, 781, frame782, 788, frame789, 841, frame842, 847, frame848, 900, frame901, 906, frame907, 957, frame958);
}
function frame782(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame159(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame435(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame789(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame958(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame158(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame441(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame726(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame842(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame602(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame848(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame295(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame578(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame583(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame586(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame901(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame509(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame224(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame5(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame108(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame1(){
stop();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame107(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame591(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame594(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame230(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame907(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame599(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame503(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame720(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame366(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame571(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame373(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame658(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame56(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame57(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame301(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame664(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
}
}//package SnipnStyle_fla
Section 57
//mc_region_6_container_88 (SnipnStyle_fla.mc_region_6_container_88)
package SnipnStyle_fla {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import gameClasses.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mc_region_6_container_88 extends MovieClip {
public var inv_btn:SimpleButton;
public var mc_ToColorR:MovieClip;
public function mc_region_6_container_88(){
addFrameScript(0, frame1, 4, frame5, 54, frame55, 55, frame56, 105, frame106, 106, frame107, 155, frame156, 156, frame157, 221, frame222, 227, frame228, 292, frame293, 298, frame299, 363, frame364, 370, frame371, 432, frame433, 438, frame439, 500, frame501, 506, frame507, 568, frame569, 575, frame576, 580, frame581, 583, frame584, 588, frame589, 591, frame592, 596, frame597, 599, frame600, 655, frame656, 661, frame662, 717, frame718, 723, frame724, 779, frame780, 786, frame787, 839, frame840, 845, frame846, 898, frame899, 904, frame905, 957, frame958);
}
function frame787(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame156(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame157(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame439(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame958(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame433(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame569(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame724(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame846(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame840(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame600(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame718(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame293(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame299(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame576(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame501(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).crimperObj)) && (!((MovieClip(this.parent.parent).crimperObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame106(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame581(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame905(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame507(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame5(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame1(){
stop();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame107(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame222(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame592(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame584(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame597(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame228(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame589(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).braidObj)) && (!((MovieClip(this.parent.parent).braidObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame364(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).flatironObj)) && (!((MovieClip(this.parent.parent).flatironObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame656(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame55(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).scissorsObj)) && (!((MovieClip(this.parent.parent).scissorsObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame56(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame371(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame899(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).littleCurlersObj)) && (!((MovieClip(this.parent.parent).littleCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame662(){
mc_ToColorR.play();
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
function frame780(){
stop();
if ((((CompleteHairStyle.currentTool == MovieClip(this.parent.parent).bigCurlersObj)) && (!((MovieClip(this.parent.parent).bigCurlersObj == null))))){
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
};
mc_ToColorR.gotoAndStop("lastFrame");
dispatchEvent(new CustomEvents(CustomEvents.UPDATE_COLOR, null, true));
}
}
}//package SnipnStyle_fla
Section 58
//mc_ribbons_head_51 (SnipnStyle_fla.mc_ribbons_head_51)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ribbons_head_51 extends MovieClip {
public function mc_ribbons_head_51(){
addFrameScript(0, frame1, 5, frame6, 10, frame11, 15, frame16, 20, frame21);
}
function frame6(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame21(){
stop();
}
function frame11(){
stop();
}
}
}//package SnipnStyle_fla
Section 59
//mc_ribbons_stage1_196 (SnipnStyle_fla.mc_ribbons_stage1_196)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ribbons_stage1_196 extends MovieClip {
public function mc_ribbons_stage1_196(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 60
//mc_ribbons_stage2_197 (SnipnStyle_fla.mc_ribbons_stage2_197)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ribbons_stage2_197 extends MovieClip {
public function mc_ribbons_stage2_197(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 61
//mc_ribbons_stage3_202 (SnipnStyle_fla.mc_ribbons_stage3_202)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ribbons_stage3_202 extends MovieClip {
public function mc_ribbons_stage3_202(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 62
//mc_scarves_head_53 (SnipnStyle_fla.mc_scarves_head_53)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_scarves_head_53 extends MovieClip {
public function mc_scarves_head_53(){
addFrameScript(0, frame1, 5, frame6, 10, frame11, 15, frame16, 20, frame21);
}
function frame6(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame21(){
stop();
}
function frame11(){
stop();
}
}
}//package SnipnStyle_fla
Section 63
//mc_scarves_stage1_198 (SnipnStyle_fla.mc_scarves_stage1_198)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_scarves_stage1_198 extends MovieClip {
public function mc_scarves_stage1_198(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 64
//mc_scarves_stage2_199 (SnipnStyle_fla.mc_scarves_stage2_199)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_scarves_stage2_199 extends MovieClip {
public function mc_scarves_stage2_199(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 65
//mc_scarves_stage3_200 (SnipnStyle_fla.mc_scarves_stage3_200)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_scarves_stage3_200 extends MovieClip {
public function mc_scarves_stage3_200(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 66
//mc_sunglasses_head_50 (SnipnStyle_fla.mc_sunglasses_head_50)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_sunglasses_head_50 extends MovieClip {
public function mc_sunglasses_head_50(){
addFrameScript(0, frame1, 5, frame6, 10, frame11, 15, frame16, 20, frame21);
}
function frame6(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame21(){
stop();
}
function frame11(){
stop();
}
}
}//package SnipnStyle_fla
Section 67
//mc_Target_Print_40 (SnipnStyle_fla.mc_Target_Print_40)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_Target_Print_40 extends MovieClip {
public var mc_region_3_container:MovieClip;
public var mc_region_2_container:MovieClip;
public var mc_region_6_container:MovieClip;
public var mc_backHairLeft:MovieClip;
public var mc_barrettes:MovieClip;
public var mc_region_1_container:MovieClip;
public var mc_region_5_container:MovieClip;
public var mc_backHairRight:MovieClip;
public var mc_headbands:MovieClip;
public var mc_sunglasses:MovieClip;
public var mc_glitter:MovieClip;
public var mc_region_4_container:MovieClip;
public var mc_ribbons:MovieClip;
public var mc_scarves:MovieClip;
}
}//package SnipnStyle_fla
Section 68
//mc_ToColorR1_1_156 (SnipnStyle_fla.mc_ToColorR1_1_156)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_1_156 extends MovieClip {
public function mc_ToColorR1_1_156(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 69
//mc_ToColorR1_10_168 (SnipnStyle_fla.mc_ToColorR1_10_168)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_10_168 extends MovieClip {
public function mc_ToColorR1_10_168(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package SnipnStyle_fla
Section 70
//mc_ToColorR1_11_169 (SnipnStyle_fla.mc_ToColorR1_11_169)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_11_169 extends MovieClip {
public function mc_ToColorR1_11_169(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package SnipnStyle_fla
Section 71
//mc_ToColorR1_12_170 (SnipnStyle_fla.mc_ToColorR1_12_170)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_12_170 extends MovieClip {
public function mc_ToColorR1_12_170(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package SnipnStyle_fla
Section 72
//mc_ToColorR1_13_171 (SnipnStyle_fla.mc_ToColorR1_13_171)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_13_171 extends MovieClip {
public function mc_ToColorR1_13_171(){
addFrameScript(73, frame74);
}
function frame74(){
stop();
}
}
}//package SnipnStyle_fla
Section 73
//mc_ToColorR1_14_172 (SnipnStyle_fla.mc_ToColorR1_14_172)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_14_172 extends MovieClip {
public function mc_ToColorR1_14_172(){
addFrameScript(71, frame72);
}
function frame72(){
stop();
}
}
}//package SnipnStyle_fla
Section 74
//mc_ToColorR1_15_173 (SnipnStyle_fla.mc_ToColorR1_15_173)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_15_173 extends MovieClip {
public function mc_ToColorR1_15_173(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package SnipnStyle_fla
Section 75
//mc_ToColorR1_16_165 (SnipnStyle_fla.mc_ToColorR1_16_165)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_16_165 extends MovieClip {
public function mc_ToColorR1_16_165(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 76
//mc_ToColorR1_17_166 (SnipnStyle_fla.mc_ToColorR1_17_166)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_17_166 extends MovieClip {
public function mc_ToColorR1_17_166(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 77
//mc_ToColorR1_18_167 (SnipnStyle_fla.mc_ToColorR1_18_167)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_18_167 extends MovieClip {
public function mc_ToColorR1_18_167(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package SnipnStyle_fla
Section 78
//mc_ToColorR1_2_157 (SnipnStyle_fla.mc_ToColorR1_2_157)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_2_157 extends MovieClip {
public function mc_ToColorR1_2_157(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 79
//mc_ToColorR1_3_158 (SnipnStyle_fla.mc_ToColorR1_3_158)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_3_158 extends MovieClip {
public function mc_ToColorR1_3_158(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 80
//mc_ToColorR1_4_159 (SnipnStyle_fla.mc_ToColorR1_4_159)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_4_159 extends MovieClip {
public function mc_ToColorR1_4_159(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 81
//mc_ToColorR1_5_160 (SnipnStyle_fla.mc_ToColorR1_5_160)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_5_160 extends MovieClip {
public function mc_ToColorR1_5_160(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 82
//mc_ToColorR1_6_161 (SnipnStyle_fla.mc_ToColorR1_6_161)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_6_161 extends MovieClip {
public function mc_ToColorR1_6_161(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 83
//mc_ToColorR1_7_162 (SnipnStyle_fla.mc_ToColorR1_7_162)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_7_162 extends MovieClip {
public function mc_ToColorR1_7_162(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package SnipnStyle_fla
Section 84
//mc_ToColorR1_8_163 (SnipnStyle_fla.mc_ToColorR1_8_163)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_8_163 extends MovieClip {
public function mc_ToColorR1_8_163(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package SnipnStyle_fla
Section 85
//mc_ToColorR1_9_164 (SnipnStyle_fla.mc_ToColorR1_9_164)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR1_9_164 extends MovieClip {
public function mc_ToColorR1_9_164(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package SnipnStyle_fla
Section 86
//mc_ToColorR2_1_135 (SnipnStyle_fla.mc_ToColorR2_1_135)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_1_135 extends MovieClip {
public function mc_ToColorR2_1_135(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 87
//mc_ToColorR2_10_147 (SnipnStyle_fla.mc_ToColorR2_10_147)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_10_147 extends MovieClip {
public function mc_ToColorR2_10_147(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package SnipnStyle_fla
Section 88
//mc_ToColorR2_11_149 (SnipnStyle_fla.mc_ToColorR2_11_149)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_11_149 extends MovieClip {
public function mc_ToColorR2_11_149(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package SnipnStyle_fla
Section 89
//mc_ToColorR2_12_150 (SnipnStyle_fla.mc_ToColorR2_12_150)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_12_150 extends MovieClip {
public function mc_ToColorR2_12_150(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package SnipnStyle_fla
Section 90
//mc_ToColorR2_13_151 (SnipnStyle_fla.mc_ToColorR2_13_151)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_13_151 extends MovieClip {
public function mc_ToColorR2_13_151(){
addFrameScript(68, frame69);
}
function frame69(){
stop();
}
}
}//package SnipnStyle_fla
Section 91
//mc_ToColorR2_14_152 (SnipnStyle_fla.mc_ToColorR2_14_152)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_14_152 extends MovieClip {
public function mc_ToColorR2_14_152(){
addFrameScript(66, frame67);
}
function frame67(){
stop();
}
}
}//package SnipnStyle_fla
Section 92
//mc_ToColorR2_15_153 (SnipnStyle_fla.mc_ToColorR2_15_153)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_15_153 extends MovieClip {
public function mc_ToColorR2_15_153(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package SnipnStyle_fla
Section 93
//mc_ToColorR2_16_144 (SnipnStyle_fla.mc_ToColorR2_16_144)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_16_144 extends MovieClip {
public function mc_ToColorR2_16_144(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 94
//mc_ToColorR2_17_145 (SnipnStyle_fla.mc_ToColorR2_17_145)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_17_145 extends MovieClip {
public function mc_ToColorR2_17_145(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 95
//mc_ToColorR2_18_146 (SnipnStyle_fla.mc_ToColorR2_18_146)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_18_146 extends MovieClip {
public function mc_ToColorR2_18_146(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 96
//mc_ToColorR2_2_136 (SnipnStyle_fla.mc_ToColorR2_2_136)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_2_136 extends MovieClip {
public function mc_ToColorR2_2_136(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 97
//mc_ToColorR2_3_137 (SnipnStyle_fla.mc_ToColorR2_3_137)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_3_137 extends MovieClip {
public function mc_ToColorR2_3_137(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 98
//mc_ToColorR2_4_138 (SnipnStyle_fla.mc_ToColorR2_4_138)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_4_138 extends MovieClip {
public function mc_ToColorR2_4_138(){
addFrameScript(72, frame73);
}
function frame73(){
stop();
}
}
}//package SnipnStyle_fla
Section 99
//mc_ToColorR2_5_139 (SnipnStyle_fla.mc_ToColorR2_5_139)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_5_139 extends MovieClip {
public function mc_ToColorR2_5_139(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package SnipnStyle_fla
Section 100
//mc_ToColorR2_6_140 (SnipnStyle_fla.mc_ToColorR2_6_140)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_6_140 extends MovieClip {
public function mc_ToColorR2_6_140(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package SnipnStyle_fla
Section 101
//mc_ToColorR2_7_141 (SnipnStyle_fla.mc_ToColorR2_7_141)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_7_141 extends MovieClip {
public function mc_ToColorR2_7_141(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package SnipnStyle_fla
Section 102
//mc_ToColorR2_8_142 (SnipnStyle_fla.mc_ToColorR2_8_142)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_8_142 extends MovieClip {
public function mc_ToColorR2_8_142(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package SnipnStyle_fla
Section 103
//mc_ToColorR2_9_143 (SnipnStyle_fla.mc_ToColorR2_9_143)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR2_9_143 extends MovieClip {
public function mc_ToColorR2_9_143(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package SnipnStyle_fla
Section 104
//mc_ToColorR4_1_115 (SnipnStyle_fla.mc_ToColorR4_1_115)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_1_115 extends MovieClip {
public function mc_ToColorR4_1_115(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 105
//mc_ToColorR4_10_127 (SnipnStyle_fla.mc_ToColorR4_10_127)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_10_127 extends MovieClip {
public function mc_ToColorR4_10_127(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 106
//mc_ToColorR4_12_128 (SnipnStyle_fla.mc_ToColorR4_12_128)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_12_128 extends MovieClip {
public function mc_ToColorR4_12_128(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 107
//mc_ToColorR4_13_129 (SnipnStyle_fla.mc_ToColorR4_13_129)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_13_129 extends MovieClip {
public function mc_ToColorR4_13_129(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 108
//mc_ToColorR4_14_130 (SnipnStyle_fla.mc_ToColorR4_14_130)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_14_130 extends MovieClip {
public function mc_ToColorR4_14_130(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 109
//mc_ToColorR4_15_111 (SnipnStyle_fla.mc_ToColorR4_15_111)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_15_111 extends MovieClip {
public function mc_ToColorR4_15_111(){
addFrameScript(68, frame69);
}
function frame69(){
stop();
}
}
}//package SnipnStyle_fla
Section 110
//mc_ToColorR4_16_112 (SnipnStyle_fla.mc_ToColorR4_16_112)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_16_112 extends MovieClip {
public function mc_ToColorR4_16_112(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package SnipnStyle_fla
Section 111
//mc_ToColorR4_17_124 (SnipnStyle_fla.mc_ToColorR4_17_124)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_17_124 extends MovieClip {
public function mc_ToColorR4_17_124(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 112
//mc_ToColorR4_18_125 (SnipnStyle_fla.mc_ToColorR4_18_125)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_18_125 extends MovieClip {
public function mc_ToColorR4_18_125(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 113
//mc_ToColorR4_19_126 (SnipnStyle_fla.mc_ToColorR4_19_126)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_19_126 extends MovieClip {
public function mc_ToColorR4_19_126(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 114
//mc_ToColorR4_2_116 (SnipnStyle_fla.mc_ToColorR4_2_116)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_2_116 extends MovieClip {
public function mc_ToColorR4_2_116(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 115
//mc_ToColorR4_3_117 (SnipnStyle_fla.mc_ToColorR4_3_117)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_3_117 extends MovieClip {
public function mc_ToColorR4_3_117(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 116
//mc_ToColorR4_4_118 (SnipnStyle_fla.mc_ToColorR4_4_118)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_4_118 extends MovieClip {
public function mc_ToColorR4_4_118(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 117
//mc_ToColorR4_5_119 (SnipnStyle_fla.mc_ToColorR4_5_119)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_5_119 extends MovieClip {
public function mc_ToColorR4_5_119(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 118
//mc_ToColorR4_6_120 (SnipnStyle_fla.mc_ToColorR4_6_120)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_6_120 extends MovieClip {
public function mc_ToColorR4_6_120(){
addFrameScript(68, frame69);
}
function frame69(){
stop();
}
}
}//package SnipnStyle_fla
Section 119
//mc_ToColorR4_7_121 (SnipnStyle_fla.mc_ToColorR4_7_121)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_7_121 extends MovieClip {
public function mc_ToColorR4_7_121(){
addFrameScript(65, frame66);
}
function frame66(){
stop();
}
}
}//package SnipnStyle_fla
Section 120
//mc_ToColorR4_8_122 (SnipnStyle_fla.mc_ToColorR4_8_122)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_8_122 extends MovieClip {
public function mc_ToColorR4_8_122(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package SnipnStyle_fla
Section 121
//mc_ToColorR4_9_123 (SnipnStyle_fla.mc_ToColorR4_9_123)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR4_9_123 extends MovieClip {
public function mc_ToColorR4_9_123(){
addFrameScript(63, frame64);
}
function frame64(){
stop();
}
}
}//package SnipnStyle_fla
Section 122
//mc_ToColorR6_1_90 (SnipnStyle_fla.mc_ToColorR6_1_90)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_1_90 extends MovieClip {
public function mc_ToColorR6_1_90(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 123
//mc_ToColorR6_10_102 (SnipnStyle_fla.mc_ToColorR6_10_102)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_10_102 extends MovieClip {
public function mc_ToColorR6_10_102(){
addFrameScript(76, frame77);
}
function frame77(){
stop();
}
}
}//package SnipnStyle_fla
Section 124
//mc_ToColorR6_11_103 (SnipnStyle_fla.mc_ToColorR6_11_103)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_11_103 extends MovieClip {
public function mc_ToColorR6_11_103(){
addFrameScript(76, frame77);
}
function frame77(){
stop();
}
}
}//package SnipnStyle_fla
Section 125
//mc_ToColorR6_12_104 (SnipnStyle_fla.mc_ToColorR6_12_104)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_12_104 extends MovieClip {
public function mc_ToColorR6_12_104(){
addFrameScript(76, frame77);
}
function frame77(){
stop();
}
}
}//package SnipnStyle_fla
Section 126
//mc_ToColorR6_13_105 (SnipnStyle_fla.mc_ToColorR6_13_105)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_13_105 extends MovieClip {
public function mc_ToColorR6_13_105(){
addFrameScript(76, frame77);
}
function frame77(){
stop();
}
}
}//package SnipnStyle_fla
Section 127
//mc_ToColorR6_14_107 (SnipnStyle_fla.mc_ToColorR6_14_107)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_14_107 extends MovieClip {
public function mc_ToColorR6_14_107(){
addFrameScript(76, frame77);
}
function frame77(){
stop();
}
}
}//package SnipnStyle_fla
Section 128
//mc_ToColorR6_15_108 (SnipnStyle_fla.mc_ToColorR6_15_108)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_15_108 extends MovieClip {
public function mc_ToColorR6_15_108(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package SnipnStyle_fla
Section 129
//mc_ToColorR6_16_99 (SnipnStyle_fla.mc_ToColorR6_16_99)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_16_99 extends MovieClip {
public function mc_ToColorR6_16_99(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 130
//mc_ToColorR6_17_100 (SnipnStyle_fla.mc_ToColorR6_17_100)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_17_100 extends MovieClip {
public function mc_ToColorR6_17_100(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 131
//mc_ToColorR6_18_101 (SnipnStyle_fla.mc_ToColorR6_18_101)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_18_101 extends MovieClip {
public function mc_ToColorR6_18_101(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package SnipnStyle_fla
Section 132
//mc_ToColorR6_2_91 (SnipnStyle_fla.mc_ToColorR6_2_91)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_2_91 extends MovieClip {
public function mc_ToColorR6_2_91(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 133
//mc_ToColorR6_3_92 (SnipnStyle_fla.mc_ToColorR6_3_92)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_3_92 extends MovieClip {
public function mc_ToColorR6_3_92(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package SnipnStyle_fla
Section 134
//mc_ToColorR6_4_93 (SnipnStyle_fla.mc_ToColorR6_4_93)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_4_93 extends MovieClip {
public function mc_ToColorR6_4_93(){
addFrameScript(71, frame72);
}
function frame72(){
stop();
}
}
}//package SnipnStyle_fla
Section 135
//mc_ToColorR6_5_94 (SnipnStyle_fla.mc_ToColorR6_5_94)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_5_94 extends MovieClip {
public function mc_ToColorR6_5_94(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 136
//mc_ToColorR6_6_95 (SnipnStyle_fla.mc_ToColorR6_6_95)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_6_95 extends MovieClip {
public function mc_ToColorR6_6_95(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package SnipnStyle_fla
Section 137
//mc_ToColorR6_7_96 (SnipnStyle_fla.mc_ToColorR6_7_96)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_7_96 extends MovieClip {
public function mc_ToColorR6_7_96(){
addFrameScript(76, frame77);
}
function frame77(){
stop();
}
}
}//package SnipnStyle_fla
Section 138
//mc_ToColorR6_8_97 (SnipnStyle_fla.mc_ToColorR6_8_97)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_8_97 extends MovieClip {
public function mc_ToColorR6_8_97(){
addFrameScript(76, frame77);
}
function frame77(){
stop();
}
}
}//package SnipnStyle_fla
Section 139
//mc_ToColorR6_9_98 (SnipnStyle_fla.mc_ToColorR6_9_98)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_ToColorR6_9_98 extends MovieClip {
public function mc_ToColorR6_9_98(){
addFrameScript(76, frame77);
}
function frame77(){
stop();
}
}
}//package SnipnStyle_fla
Section 140
//mc_tools_anim_175 (SnipnStyle_fla.mc_tools_anim_175)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mc_tools_anim_175 extends MovieClip {
public var mcHitPoint:MovieClip;
}
}//package SnipnStyle_fla
Section 141
//mc_washHairAnim_65 (SnipnStyle_fla.mc_washHairAnim_65)
package SnipnStyle_fla {
import flash.display.*;
import gameClasses.*;
public dynamic class mc_washHairAnim_65 extends MovieClip {
public function mc_washHairAnim_65(){
addFrameScript(0, frame1, 270, frame271);
}
function frame1(){
stop();
}
function frame271(){
stop();
dispatchEvent(new CustomEvents(CustomEvents.ANIMATION_COMPLETED, null, true));
}
}
}//package SnipnStyle_fla
Section 142
//mcInvisibleButton_59 (SnipnStyle_fla.mcInvisibleButton_59)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class mcInvisibleButton_59 extends MovieClip {
public var inv_btn:SimpleButton;
public function mcInvisibleButton_59(){
addFrameScript(0, frame1);
}
function frame1(){
inv_btn.useHandCursor = false;
}
}
}//package SnipnStyle_fla
Section 143
//Mix_Bowl_188 (SnipnStyle_fla.Mix_Bowl_188)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class Mix_Bowl_188 extends MovieClip {
public var mcFirstColor:MovieClip;
public var mcSecondColor:MovieClip;
}
}//package SnipnStyle_fla
Section 144
//print_mc_205 (SnipnStyle_fla.print_mc_205)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class print_mc_205 extends MovieClip {
public var mc_head:MovieClip;
public function print_mc_205(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 145
//scessorSound_mc_187 (SnipnStyle_fla.scessorSound_mc_187)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class scessorSound_mc_187 extends MovieClip {
public function scessorSound_mc_187(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 146
//Scisors_178 (SnipnStyle_fla.Scisors_178)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class Scisors_178 extends MovieClip {
public function Scisors_178(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 147
//Small_Curler_185 (SnipnStyle_fla.Small_Curler_185)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class Small_Curler_185 extends MovieClip {
public function Small_Curler_185(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 148
//Step_Meeter_Main_37 (SnipnStyle_fla.Step_Meeter_Main_37)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class Step_Meeter_Main_37 extends MovieClip {
public function Step_Meeter_Main_37(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SnipnStyle_fla
Section 149
//toPrint_mc_203 (SnipnStyle_fla.toPrint_mc_203)
package SnipnStyle_fla {
import flash.display.*;
public dynamic class toPrint_mc_203 extends MovieClip {
public var subPrint_mc:MovieClip;
}
}//package SnipnStyle_fla
Section 150
//backgroundSound (backgroundSound)
package {
import flash.media.*;
public dynamic class backgroundSound extends Sound {
}
}//package
Section 151
//RollOverSound (RollOverSound)
package {
import flash.media.*;
public dynamic class RollOverSound extends Sound {
}
}//package
Section 152
//ScissorSound (ScissorSound)
package {
import flash.media.*;
public dynamic class ScissorSound extends Sound {
}
}//package
Section 153
//StartUpSound (StartUpSound)
package {
import flash.media.*;
public dynamic class StartUpSound extends Sound {
}
}//package