Section 1
//_NFF_crap_10 (LG_hauteBodered_fla._NFF_crap_10)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class _NFF_crap_10 extends MovieClip {
public function _NFF_crap_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LG_hauteBodered_fla
Section 2
//dressing_dressup_portraits_229 (LG_hauteBodered_fla.dressing_dressup_portraits_229)
package LG_hauteBodered_fla {
import flash.display.*;
import flash.text.*;
public dynamic class dressing_dressup_portraits_229 extends MovieClip {
public var name_1$:dressup_modelPortrait;
public var name_2$:dressup_modelPortrait;
public var name_0$:dressup_modelPortrait;
public var yourStyle_:TextField;
}
}//package LG_hauteBodered_fla
Section 3
//dressing_dressup_window_accessories_238 (LG_hauteBodered_fla.dressing_dressup_window_accessories_238)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class dressing_dressup_window_accessories_238 extends MovieClip {
public var id_0$_1:dressup_panel;
}
}//package LG_hauteBodered_fla
Section 4
//dressing_dressup_window_shoes_232 (LG_hauteBodered_fla.dressing_dressup_window_shoes_232)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class dressing_dressup_window_shoes_232 extends MovieClip {
public var id_3$_4:dressup_panel;
}
}//package LG_hauteBodered_fla
Section 5
//dressing_dressup_window_tops_239 (LG_hauteBodered_fla.dressing_dressup_window_tops_239)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class dressing_dressup_window_tops_239 extends MovieClip {
public var id_1$_2:dressup_panel;
}
}//package LG_hauteBodered_fla
Section 6
//dressing_dressup_windows_bottoms_237 (LG_hauteBodered_fla.dressing_dressup_windows_bottoms_237)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class dressing_dressup_windows_bottoms_237 extends MovieClip {
public var id_2$_3:dressup_panel;
}
}//package LG_hauteBodered_fla
Section 7
//interface_banner_4 (LG_hauteBodered_fla.interface_banner_4)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class interface_banner_4 extends MovieClip {
public var teen:interface_banner_link;
}
}//package LG_hauteBodered_fla
Section 8
//interface_judgePhoto_149 (LG_hauteBodered_fla.interface_judgePhoto_149)
package LG_hauteBodered_fla {
import flash.display.*;
import pl.fabrykagier.framework.main.*;
public dynamic class interface_judgePhoto_149 extends MovieClip {
public function interface_judgePhoto_149(){
addFrameScript(0, frame1);
}
function frame1(){
if (DocumentClass.getInstance.currentChapter >= 2){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
}
}
}//package LG_hauteBodered_fla
Section 9
//interface_popup_feedback_254 (LG_hauteBodered_fla.interface_popup_feedback_254)
package LG_hauteBodered_fla {
import flash.display.*;
import flash.text.*;
public dynamic class interface_popup_feedback_254 extends MovieClip {
public var goto_DressUpLoop$_2:interface_button_panel_backToDresses;
public var feedback_:TextField;
public function interface_popup_feedback_254(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LG_hauteBodered_fla
Section 10
//interface_popup_info_afterPreshow_panel_12 (LG_hauteBodered_fla.interface_popup_info_afterPreshow_panel_12)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class interface_popup_info_afterPreshow_panel_12 extends MovieClip {
public var playGrandparent_true$_p1:interface_button_ok;
}
}//package LG_hauteBodered_fla
Section 11
//interface_popup_info_dressUp_panel_145 (LG_hauteBodered_fla.interface_popup_info_dressUp_panel_145)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class interface_popup_info_dressUp_panel_145 extends MovieClip {
public var playGrandparent_true$:interface_button_ok;
}
}//package LG_hauteBodered_fla
Section 12
//interface_popup_info_nodress_panel_158 (LG_hauteBodered_fla.interface_popup_info_nodress_panel_158)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class interface_popup_info_nodress_panel_158 extends MovieClip {
public var playGrandparent_true$_p4:interface_button_ok;
}
}//package LG_hauteBodered_fla
Section 13
//interface_popup_info_preShow_panel_155 (LG_hauteBodered_fla.interface_popup_info_preShow_panel_155)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class interface_popup_info_preShow_panel_155 extends MovieClip {
public var playGrandparent_true$_p3:interface_button_NotYet;
public var goto_PreShow$:interface_button_ImReady;
}
}//package LG_hauteBodered_fla
Section 14
//interface_popup_info_show_panel_147 (LG_hauteBodered_fla.interface_popup_info_show_panel_147)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class interface_popup_info_show_panel_147 extends MovieClip {
public var playGrandparent_true$_p4:interface_button_NotYet;
public var goto_Show$:interface_button_ImReady;
}
}//package LG_hauteBodered_fla
Section 15
//interface_popup_info_welcome_panel_185 (LG_hauteBodered_fla.interface_popup_info_welcome_panel_185)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class interface_popup_info_welcome_panel_185 extends MovieClip {
public var playGrandparent_true$:interface_button_ok;
}
}//package LG_hauteBodered_fla
Section 16
//interface_popups_styleSwitchPanel_196 (LG_hauteBodered_fla.interface_popups_styleSwitchPanel_196)
package LG_hauteBodered_fla {
import flash.display.*;
import pl.fabrykagier.framework.main.*;
public dynamic class interface_popups_styleSwitchPanel_196 extends MovieClip {
public var playStage_true$parameter_style_casual$:interface_button_casual;
public var playStage_true$parameter_style_party$:interface_button_party;
public var playStage_true$parameter_style_elegant$:interface_button_elegant;
public function interface_popups_styleSwitchPanel_196(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(DocumentClass.getInstance.parameters["style"]);
}
}
}//package LG_hauteBodered_fla
Section 17
//preloader_progress_8 (LG_hauteBodered_fla.preloader_progress_8)
package LG_hauteBodered_fla {
import flash.display.*;
import flash.text.*;
public dynamic class preloader_progress_8 extends MovieClip {
public var progress_txt:TextField;
}
}//package LG_hauteBodered_fla
Section 18
//show_star_265 (LG_hauteBodered_fla.show_star_265)
package LG_hauteBodered_fla {
import flash.display.*;
public dynamic class show_star_265 extends MovieClip {
public function show_star_265(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndPlay(Math.floor((Math.random() * this.totalFrames)));
}
}
}//package LG_hauteBodered_fla
Section 19
//DressUpManager (pl.fabrykagier.engines.dressUp.DressUpManager)
package pl.fabrykagier.engines.dressUp {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
import pl.fabrykagier.framework.utils.hitTest.*;
public class DressUpManager extends MovieClip {
protected var draggingItem:MovieClip;
protected var model:Model;
protected var mouseDrag:Boolean;
protected var wardrobe:Wardrobe;
public function DressUpManager(){
setIt();
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
private function destroy(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
wardrobe.stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownDrag);
this.stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragging);
this.stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMove);
}
protected function wardrobeToModel(_arg1:String):void{
var _local2:Array;
var _local3:String;
_local2 = model.setItem(_arg1);
wardrobe.lockItem(_arg1);
for each (_local3 in _local2) {
wardrobe.unLockItem(_local3);
model.removeItem(_local3);
};
model.update();
}
public function get _wardrobe():Wardrobe{
return (wardrobe);
}
private function dragMove(_arg1:MouseEvent):void{
var _local2:Rectangle;
_local2 = draggingItem.getBounds(draggingItem);
draggingItem.x = ((this.mouseX - (_local2.width / 2)) - _local2.x);
draggingItem.y = ((this.mouseY - (_local2.height / 2)) - _local2.y);
if ((((((((this.mouseX < 0)) || ((this.mouseX > stage.stageWidth)))) || ((this.mouseY < 0)))) || ((this.mouseY > stage.stageHeight)))){
stopDragging(null);
};
_arg1.updateAfterEvent();
}
public function mousePressModel(_arg1:String):void{
model.removeItem(_arg1);
startDragging(_arg1);
}
protected function setIt():void{
}
public function get _model():Model{
return (model);
}
public function makeUnDraggable():void{
wardrobe.stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownDrag);
}
public function makeDraggable():void{
wardrobe.stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownDrag);
}
public function mouseRelase():void{
}
public function stopDragging(_arg1:MouseEvent):void{
this.stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragging);
this.stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMove);
draggingItem.visible = false;
wardrobe.clearHighlight(draggingItem.currentLabel);
if (toModel()){
wardrobeToModel(draggingItem.currentLabel);
} else {
modelToWardrobe(draggingItem.currentLabel);
};
}
protected function toModel():Boolean{
if (HitTest.complexHitTestObject(draggingItem, model)){
return (true);
};
return (false);
}
public function makeUnClickable():void{
wardrobe.stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownClick);
}
protected function modelToWardrobe(_arg1:String):void{
model.removeItem(_arg1);
wardrobe.unLockItem(_arg1);
}
public function mousePressWardrobe(_arg1:String):void{
startDragging(_arg1);
}
public function makeClickable():void{
wardrobe.stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownClick);
}
protected function mouseDownDrag(_arg1:MouseEvent):void{
if ((_arg1.target is WardrobeItem)){
if (WardrobeItem(_arg1.target).isAviable()){
mousePressWardrobe(WardrobeItem(_arg1.target).currentLabel);
};
};
if ((_arg1.target is ModelItem)){
if (ModelItem(_arg1.target).isAviable()){
mousePressModel(ModelItem(_arg1.target).currentLabel);
};
};
}
public function startDragging(_arg1:String):void{
var _local2:Rectangle;
wardrobe.highlightItem(_arg1);
draggingItem.visible = true;
draggingItem.gotoAndStop(_arg1);
this.stage.addEventListener(MouseEvent.MOUSE_MOVE, dragMove);
_local2 = draggingItem.getBounds(draggingItem);
draggingItem.x = ((this.mouseX - (_local2.width / 2)) - _local2.x);
draggingItem.y = ((this.mouseY - (_local2.height / 2)) - _local2.y);
this.stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
}
protected function mouseDownClick(_arg1:MouseEvent):void{
if ((_arg1.target is WardrobeItem)){
if (WardrobeItem(_arg1.target).isAviable()){
wardrobeToModel(WardrobeItem(_arg1.target).currentLabel);
};
};
}
public function InitTest(_arg1:Event):void{
var _local2:Boolean;
var _local3:WardrobeItem;
var _local4:FrameLabel;
for each (_local3 in wardrobe._itemsList) {
_local2 = false;
for each (_local4 in draggingItem.currentLabels) {
if (_local4.name == _local3.currentLabel){
_local2 = true;
break;
};
};
if (!_local2){
trace("NO dragging item object for: ", _local3.currentLabel);
};
if (model._aviableItems.indexOf(_local3.currentLabel) < 0){
trace("NO model item object for: ", _local3.currentLabel);
};
};
}
}
}//package pl.fabrykagier.engines.dressUp
Section 20
//Wardrobe (pl.fabrykagier.engines.dressUp.Wardrobe)
package pl.fabrykagier.engines.dressUp {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Wardrobe extends MovieClip {
protected var startItem:Object;
protected var itemsList:Array;
public function Wardrobe(){
itemsList = [];
super();
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
private function destroy(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
itemsList = null;
}
public function get _itemsList():Array{
return (itemsList);
}
public function clearArray():void{
itemsList = [];
}
private function fillSingleItem(_arg1:WardrobeItem):void{
var _local2:Class;
var _local3:WardrobeItem;
var _local4:FrameLabel;
for each (_local4 in _arg1.currentLabels) {
_local2 = (getDefinitionByName(getQualifiedClassName(_arg1)) as Class);
_local3 = WardrobeItem(new (_local2));
_local3.gotoAndStop(_local4.name);
itemsList.push(_local3);
setPosition(_local3);
};
}
public function getItemObject(_arg1:String):WardrobeItem{
var _local2:WardrobeItem;
for each (_local2 in itemsList) {
if (_local2.currentLabel == _arg1){
return (_local2);
};
};
return (null);
}
public function fill(_arg1:Object):void{
var _local2:WardrobeItem;
var _local3:Class;
var _local4:String;
var _local5:WardrobeItem;
if (!itemsList.length){
startItem = _arg1;
if ((_arg1 is Array)){
if ((_arg1[0] is String)){
for each (_local4 in _arg1) {
_local3 = (getDefinitionByName(_local4) as Class);
_local2 = WardrobeItem(new (_local3));
fillSingleItem(_local2);
};
} else {
for each (_local5 in _arg1) {
fillSingleItem(_local5);
};
};
} else {
if ((_arg1 is String)){
_local3 = (getDefinitionByName(String(_arg1)) as Class);
_local2 = WardrobeItem(new (_local3));
} else {
_local2 = WardrobeItem(_arg1);
};
fillSingleItem(_local2);
};
};
}
public function removeAll():void{
while (itemsList.length > 0) {
this.removeChild(itemsList.shift());
};
}
public function unLockItem(_arg1:String):void{
if (getItemObject(_arg1)){
getItemObject(_arg1).unlcok();
};
}
protected function setPosition(_arg1:WardrobeItem):void{
}
public function removeItem(_arg1:String):void{
this.removeChild(getItemObject(_arg1));
this.itemsList.splice(this.itemsList.indexOf(getItemObject(_arg1)), 1);
}
public function getItemObjectClassName(_arg1:String):String{
var _local2:WardrobeItem;
for each (_local2 in itemsList) {
if (_local2.currentLabel == _arg1){
return (getQualifiedClassName(_local2));
};
};
return (null);
}
public function lockItem(_arg1:String):void{
if (getItemObject(_arg1)){
getItemObject(_arg1).lock();
};
}
public function highlightItem(_arg1:String):void{
}
public function clearHighlight(_arg1:String):void{
}
}
}//package pl.fabrykagier.engines.dressUp
Section 21
//WardrobeItem (pl.fabrykagier.engines.dressUp.WardrobeItem)
package pl.fabrykagier.engines.dressUp {
import flash.display.*;
public class WardrobeItem extends MovieClip {
private var aviable:Boolean;// = true
public function WardrobeItem(){
aviable = true;
super();
this.mouseChildren = false;
}
public function lock():void{
this.aviable = false;
}
public function unlcok():void{
this.aviable = true;
}
public function isAviable():Boolean{
return (aviable);
}
}
}//package pl.fabrykagier.engines.dressUp
Section 22
//FrameworkLoader (pl.fabrykagier.framework.elements.loader.FrameworkLoader)
package pl.fabrykagier.framework.elements.loader {
import flash.display.*;
import flash.events.*;
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.framework.events.*;
import flash.net.*;
public class FrameworkLoader extends GameObject {
private var swfLoader:Loader;
private var selfReference:DisplayObject;
private var selfLoad:Boolean;
public static var FRAMEWORK_COMPLETE_EVENT:String = "loadIsComplete";
public static var FRAMEWORK_PROGRESS_EVENT:String = "loaderIsLoading";
public static var LOADER_PARAMETER_PERCENTS_ROUNDED:String = "percentsRounded";
public function FrameworkLoader(_arg1:Boolean=false, _arg2:String="", _arg3:DisplayObject=null):void{
var _local4:URLRequest;
super();
selfLoad = _arg1;
if (_arg1){
selfReference = _arg3;
selfReference.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, IOHandler);
} else {
swfLoader = new Loader();
_local4 = new URLRequest(_arg2);
swfLoader.load(_local4);
};
addEventListener(Event.ENTER_FRAME, onLoaderProgress);
}
public function getLoader():LoaderInfo{
if (!selfLoad){
return (swfLoader.contentLoaderInfo);
};
return (selfReference.loaderInfo);
}
private function onLoaderProgress(_arg1:Event):void{
var _local2:FrameworkEvent;
var _local3:Number;
var _local4:Number;
_local2 = new FrameworkEvent(FRAMEWORK_PROGRESS_EVENT);
if (selfLoad){
_local3 = selfReference.loaderInfo.bytesTotal;
_local4 = selfReference.loaderInfo.bytesLoaded;
} else {
_local3 = swfLoader.contentLoaderInfo.bytesTotal;
_local4 = swfLoader.contentLoaderInfo.bytesLoaded;
};
if (_local3 == 0){
return;
};
_local2.addParameter("selfLoad", selfLoad);
_local2.addParameter("bytesTotal", _local3);
_local2.addParameter("bytesLoaded", _local4);
_local2.addParameter("percents", ((_local4 / _local3) * 100));
_local2.addParameter("percentsRounded", Math.floor(((_local4 / _local3) * 100)));
if (selfLoad){
_local2.addParameter("framesLoaded", MovieClip(selfReference).framesLoaded);
};
dispatchEvent(_local2);
if (_local4 == _local3){
onComplete();
};
}
private function onComplete():void{
dispatchEvent(new FrameworkEvent(FRAMEWORK_COMPLETE_EVENT));
removeEventListener(Event.ENTER_FRAME, onLoaderProgress);
}
public function getContent():DisplayObject{
if (!selfLoad){
return (swfLoader.contentLoaderInfo.content);
};
return (selfReference.loaderInfo.content);
}
private function IOHandler(_arg1:IOErrorEvent):void{
trace("IO ERROR");
}
}
}//package pl.fabrykagier.framework.elements.loader
Section 23
//FrameworkError (pl.fabrykagier.framework.error.FrameworkError)
package pl.fabrykagier.framework.error {
public class FrameworkError extends Error {
public static var LIST_NOOBJECT:String = "Can't find object with specific parameters";
public static var SM_NOOBJECT:String = "Object with this name dosen't exist.";
public static var SO_NAME:String = "FlashCookies Error: First you have to call static method 'init' and set object name.";
public static var LANGUAGE_TEXTFIELD_ERROR:String = "When you use LanguageObject you must have text field named 'languageField' in root directory of linkaged object";
public static var LANGUAGE_INSTANCENAME_ERROR:String = "When you use LanguageObject you must type instance name of linkaged object";
public static var SM_NONAME:String = "Can't find 'name' variable in parameteres object.";
public static var CANT_FIND_STAGE:String = "Can't find stage object.";
public static var CANT_FIND_PARENT:String = "Can't find object parent.";
public static var XML_IO_ERROR:String = "XML IO Error. Probably xml file doesn't exist.";
public static var LANGUAGE_EMPTY_POLL:String = "Elements doesn't exist in xml language file.";
public static var COUNTER:String = "You can't use two kind of counter in one time.";
public static var SO_ID:String = "ID already set to ";
public static var EXTERNAL_NOT_AVAILABLE:String = "External Interface is not available!";
public static var LOADER_NULL:String = "Reference to loaded DisplayObject is null.";
public static var LIST_WRONGTYPE:String = "Wrong type of object. You can use this method only when object type is ";
public static var XML_HAS_NO_CHILDREN:String = "XML node hasn't got any children.";
public static var XML_SECURITY_ERROR:String = "XML Security Error. Probably xml is on other server, try use crossdomain file.";
public static var DESTRUCTOR_ERROR:String = "You must implements destructor method!";
public static var SO_NAME_EMPTY:String = "FlashCookies Error: Object name must have at least one letter.";
public function FrameworkError(_arg1:String){
super(_arg1);
}
}
}//package pl.fabrykagier.framework.error
Section 24
//FrameworkEvent (pl.fabrykagier.framework.events.FrameworkEvent)
package pl.fabrykagier.framework.events {
import flash.events.*;
public class FrameworkEvent extends Event {
private var parametersArray:Array;
public function FrameworkEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Array=null){
parametersArray = new Array();
if (_arg4){
parametersArray = _arg4;
};
super(_arg1, _arg2, _arg3);
}
public function getParameter(_arg1:String){
return (parametersArray[_arg1]);
}
public function addParameter(_arg1:String, _arg2):void{
parametersArray[_arg1] = _arg2;
}
}
}//package pl.fabrykagier.framework.events
Section 25
//Model (pl.fabrykagier.framework.gameCharacters.model.Model)
package pl.fabrykagier.framework.gameCharacters.model {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Model extends MovieClip {
protected var styleSplitPosition:int;// = 0
protected var styleExeptions:Array;
private var aviableItems:Array;
private var itemsList:Array;
public static var RENDER:String = "render";
public function Model(){
itemsList = [];
styleExeptions = [];
styleSplitPosition = 0;
aviableItems = [];
super();
}
public function itemOnList(_arg1:String):Boolean{
if (itemsList.indexOf(_arg1) > -1){
return (true);
};
return (false);
}
public function get _aviableItems():Array{
return (aviableItems);
}
public function saveItems():Array{
var _local1:Array;
var _local2:String;
_local1 = [];
for each (_local2 in itemsList) {
_local1.push(_local2);
};
return (_local1);
}
public function removeAll():void{
itemsList = [];
update();
}
public function setItem(_arg1:String):Array{
var _local2:Array;
var _local3:Array;
var _local4:Array;
var _local5:String;
var _local6:String;
if (itemsList.indexOf(_arg1) == -1){
itemsList.push(_arg1);
};
update();
_local3 = _arg1.split("_");
_local4 = [];
for each (_local5 in itemsList) {
if (_local5 == _arg1){
} else {
_local2 = _local5.split("_");
if (_local3[this.styleSplitPosition] == _local2[this.styleSplitPosition]){
_local4.push(_local5);
};
for each (_local6 in styleExeptions[_local3[this.styleSplitPosition]]) {
if (_local6 == _local2[this.styleSplitPosition]){
_local4.push(_local5);
};
};
};
};
return (_local4);
}
public function getItemObject(_arg1:String):ModelItem{
var _local2:int;
_local2 = 0;
while (_local2 < this.numChildren) {
if ((_local2 is ModelItem)){
if (ModelItem(_local2).name == _arg1){
return (ModelItem(_local2));
};
};
_local2++;
};
return (null);
}
public function get _itemList():Array{
return (itemsList);
}
public function loadItems(_arg1:Array):void{
removeAll();
setItems(_arg1);
}
public function removeItem(_arg1:String):void{
if (itemsList.indexOf(_arg1) > -1){
itemsList.splice(itemsList.indexOf(_arg1), 1);
update();
};
}
public function update():void{
this.dispatchEvent(new Event(RENDER));
}
public function setItems(_arg1:Array):void{
var _local2:String;
for each (_local2 in _arg1) {
if (itemsList.indexOf(_local2) == -1){
itemsList.push(_local2);
};
};
update();
}
public function getItemObjectClassName(_arg1:String):String{
var _local2:ModelItem;
_local2 = getItemObject(_arg1);
if (!_local2){
return (null);
};
return (getQualifiedClassName(_local2));
}
}
}//package pl.fabrykagier.framework.gameCharacters.model
Section 26
//ModelItem (pl.fabrykagier.framework.gameCharacters.model.ModelItem)
package pl.fabrykagier.framework.gameCharacters.model {
import flash.display.*;
import flash.events.*;
public class ModelItem extends MovieClip {
private var model:Model;
protected var aviable:Boolean;
public var head_04_elegant:MovieClip;
private var alreadySet:Boolean;// = false
public function ModelItem(){
alreadySet = false;
super();
this.mouseChildren = false;
this.visible = false;
this.addEventListener(Event.ADDED_TO_STAGE, setIt);
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
aviable = true;
}
private function destroy(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
if (model){
model.removeEventListener(Model.RENDER, render);
};
model = null;
}
private function setIt(_arg1:Event):void{
var _local2:FrameLabel;
this.addEventListener(Event.ADDED_TO_STAGE, setIt);
findModel();
buttonMode = aviable;
if (model){
model.addEventListener(Model.RENDER, render);
if (!this.alreadySet){
this.alreadySet = true;
for each (_local2 in this.currentLabels) {
model._aviableItems.push(_local2.name);
};
};
};
render(null);
}
public function render(_arg1:Event):void{
var _local2:FrameLabel;
if (!model){
return;
};
for each (_local2 in this.currentLabels) {
if (model.itemOnList(_local2.name)){
this.gotoAndStop(_local2.name);
show();
return;
};
};
hide();
}
public function isAviable():Boolean{
return (aviable);
}
protected function hide():void{
this.visible = false;
}
protected function show():void{
this.visible = true;
}
private function findModel():void{
var _local1:DisplayObject;
_local1 = this.parent;
while (_local1 != this.stage) {
if ((_local1 is Model)){
model = Model(_local1);
break;
};
_local1 = _local1.parent;
};
}
}
}//package pl.fabrykagier.framework.gameCharacters.model
Section 27
//ModelItemFirstFrame (pl.fabrykagier.framework.gameCharacters.model.ModelItemFirstFrame)
package pl.fabrykagier.framework.gameCharacters.model {
public class ModelItemFirstFrame extends ModelItem {
public function ModelItemFirstFrame(){
this.visible = true;
}
override protected function hide():void{
this.gotoAndStop(1);
this.mouseChildren = false;
this.mouseEnabled = false;
}
override protected function show():void{
this.mouseChildren = true;
this.mouseEnabled = true;
}
}
}//package pl.fabrykagier.framework.gameCharacters.model
Section 28
//ModelItemLocked (pl.fabrykagier.framework.gameCharacters.model.ModelItemLocked)
package pl.fabrykagier.framework.gameCharacters.model {
public class ModelItemLocked extends ModelItemFirstFrame {
public function ModelItemLocked(){
this.aviable = false;
}
}
}//package pl.fabrykagier.framework.gameCharacters.model
Section 29
//DocumentClass (pl.fabrykagier.framework.main.DocumentClass)
package pl.fabrykagier.framework.main {
import pl.fabrykagier.framework.media.*;
import flash.display.*;
import flash.events.*;
import pl.fabrykagier.framework.events.*;
import pl.fabrykagier.hauteBothered.*;
import flash.text.*;
import pl.fabrykagier.framework.elements.loader.*;
import pl.fabrykagier.hauteBothered.ui.*;
import flash.ui.*;
public class DocumentClass extends MovieClip {
private var _delayedGoto:String;// = ""
public var name_1$_1:interface_button_pickModelModel;
public var name_1$_2:interface_button_pickModelName;
private var functionReference:Array;
public var _choosenModelsItems:Array;
public var parameter_character_4$parameter_style_elegant$:MovieClip;
public var parameter_character_2$parameter_style_party$:MovieClip;
public var candy:title_candyLogo;
public var _choosenModels:Array;
public var name_2$_1:interface_button_pickModelModel;
public var name_2$_2:interface_button_pickModelName;
private var _usedStyles:Array;
private var _currentChapter:int;
public var gameOverPopup_:interface_popup_gameOver;
public var feedbackPanel_:MovieClip;
public var parameter_character_1$parameter_style_casual$:MovieClip;
public var progress_mc:MovieClip;
public var name_3$_1:interface_button_pickModelModel;
public var name_3$_2:interface_button_pickModelName;
private var lockedButtons:Boolean;
private var _currentModel:int;
private var _isAfterPreShow:Boolean;
public var name_4$_1:interface_button_pickModelModel;
public var name_4$_2:interface_button_pickModelName;
private var _api:HBCandystandApiBridge;
public var parameter_character_3$parameter_style_party$:MovieClip;
public var at3_show$goto_finalResult$atChapter3_show$:interface_button_show_finalScore;
public var feedbackPanel:interface_popups_show_panel;
public var parameter_character_5$parameter_style_elegant$:MovieClip;
public var _parameters:Array;
public var at3_hide$goto_Show$:interface_button_panel_nextModel;
private var _chapterPoints:Array;
public var name_5$_1:interface_button_pickModelModel;
public var name_5$_2:interface_button_pickModelName;
public var parameter_character_0$parameter_style_casual$:MovieClip;
public var at3_show$goto_chapterJump$atChapter3_hide$:interface_button_nextChapter;
public var name_0$_1:interface_button_pickModelModel;
public var name_0$_2:interface_button_pickModelName;
private var floader:FrameworkLoader;
public static const MODELS_NAMES:Array = ["Christine", "Melanie", "Heather", "Jennifer", "Susan", "Ashley"];
private static var instance_:DocumentClass;
public function DocumentClass(){
_delayedGoto = "";
_parameters = [];
_choosenModels = [];
_choosenModelsItems = [null, null, null];
_chapterPoints = [0, 0, 0];
_usedStyles = [];
functionReference = [];
addFrameScript(62, frame63, 72, frame73, 85, frame86, 113, frame114, 156, frame157, 169, frame170, 186, frame187, 192, frame193, 215, frame216, 244, frame245, 253, frame254, 282, frame283, 301, frame302, 306, frame307, 326, frame327, 363, frame364, 369, frame370, 419, frame420, 432, frame433, 450, frame451, 455, frame456, 471, frame472, 481, frame482, 532, frame533, 546, frame547, 565, frame566, 595, frame596, 600, frame601, 626, frame627, 662, frame663, 672, frame673, 686, frame687, 692, frame693, 707, frame708, 733, frame734, 742, frame743, 755, frame756, 760, frame761, 766, frame767);
_api = new HBCandystandApiBridge(this, "LGHB8iujH8", "1.0.0", false);
instance_ = this;
super();
this.tabEnabled = false;
this.tabChildren = false;
this.contextMenu = new ContextMenu();
this.contextMenu.hideBuiltInItems();
}
function frame708(){
afterShow();
}
protected function delayedGoTo():void{
if (_delayedGoto != ""){
this.gotoAndPlay(_delayedGoto);
};
delayedGoto = "";
}
function frame157(){
stop();
unlockButtons();
resetGame();
}
public function set isAfterPreShow(_arg1:Boolean):void{
_isAfterPreShow = _arg1;
}
function frame283(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame601(){
SoundManager.playSound({name:"photo", loops:1, duplicate:true});
}
private function onComplete(_arg1:Event):void{
gotoAndPlay("preloaderOut");
}
function frame170(){
SoundManager.playSound({name:"whoosh", loops:1, duplicate:true});
}
function frame734(){
delayedGoTo();
}
protected function afterDressing():void{
_isAfterPreShow = true;
_currentModel = 0;
}
public function set currentModel(_arg1:int):void{
_currentModel = _arg1;
}
function frame187(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame743(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame627(){
SoundManager.playSound({name:"photo", loops:1, duplicate:true});
}
function frame193(){
SoundManager.playSound({name:"whoosh", loops:1, duplicate:true});
}
public function get choosenModels():Array{
return (_choosenModels);
}
public function get currentChapter():int{
return (_currentChapter);
}
function frame756(){
stop();
unlockButtons();
}
function frame767(){
gotoAndPlay("titleIn");
}
protected function afterPreShow():void{
_currentModel++;
}
function frame533(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame761(){
SoundManager.playSound({name:"whoosh", loops:1, duplicate:true});
}
function frame420(){
gotoAndPlay("DressUpLoop");
}
function frame663(){
SoundManager.playSound({name:"stars", loops:1});
}
function frame63(){
startPreloading();
}
function frame547(){
stop();
unlockButtons();
afterPreShow();
}
function frame307(){
SoundManager.playSound({name:"whoosh", loops:1, duplicate:true});
}
function frame302(){
stop();
unlockButtons();
}
protected function afterShow():void{
if (_currentModel == 2){
if (_chapterPoints[_currentChapter] > 800){
_currentChapter++;
} else {
_chapterPoints[_currentChapter] = 0;
_usedStyles.shift();
};
_choosenModelsItems[0] = ChooseModelButtonModel.MODELS_MAKEUP[_choosenModels[0]];
_choosenModelsItems[1] = ChooseModelButtonModel.MODELS_MAKEUP[_choosenModels[1]];
_choosenModelsItems[2] = ChooseModelButtonModel.MODELS_MAKEUP[_choosenModels[2]];
this.stop();
_isAfterPreShow = false;
} else {
MovieClip(this.getChildByName("gameOverPopup_")).stop();
};
_currentModel++;
}
public function get usedStyles():Array{
return (_usedStyles);
}
public function set choosenModels(_arg1:Array):void{
_choosenModels = _arg1;
}
public function get isAfterPreShow():Boolean{
return (_isAfterPreShow);
}
function frame73(){
SoundManager.playSound({name:"music", loops:999999});
}
function frame673(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame433(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame86(){
SoundManager.playSound({name:"whoosh", loops:1});
}
private function onProgress(_arg1:FrameworkEvent):void{
TextField(MovieClip(this.getChildByName("progress_mc")).getChildByName("progress_txt")).text = (("loading game..." + _arg1.getParameter(FrameworkLoader.LOADER_PARAMETER_PERCENTS_ROUNDED)) + "%");
}
public function set currentChapter(_arg1:int):void{
_currentChapter = _arg1;
}
function frame327(){
SoundManager.playSound({name:"stars", loops:1});
}
protected function startPreloading():void{
this.stop();
floader = new FrameworkLoader(true, "", this);
floader.addEventListener(FrameworkLoader.FRAMEWORK_PROGRESS_EVENT, onProgress);
floader.addEventListener(FrameworkLoader.FRAMEWORK_COMPLETE_EVENT, onComplete);
}
public function get currentModel():int{
return (_currentModel);
}
function frame451(){
stop();
unlockButtons();
}
function frame456(){
SoundManager.playSound({name:"whoosh", loops:1, duplicate:true});
}
function frame693(){
SoundManager.playSound({name:"whoosh", loops:1, duplicate:true});
}
function frame566(){
delayedGoTo();
}
function frame216(){
stop();
}
private function onError(_arg1:IOErrorEvent):void{
}
function frame687(){
stop();
unlockButtons();
}
public function callRegisteredFunction(_arg1:String):void{
if (functionReference[_arg1]){
functionReference[_arg1].apply(null, functionReference[(_arg1 + "_params")]);
};
}
function frame472(){
stop();
}
public function get chapterPoints():Array{
return (_chapterPoints);
}
public function registerFunction(_arg1:Function, _arg2:String, _arg3:Array=null):void{
functionReference[_arg2] = _arg1;
functionReference[(_arg2 + "_params")] = _arg3;
}
public function unlockButtons():void{
lockedButtons = false;
}
function frame114(){
SoundManager.playSound({name:"whoosh", loops:1});
}
public function set choosenModelsItems(_arg1:Array):void{
_choosenModelsItems = _arg1;
}
function frame482(){
afterDressing();
delayedGoTo();
}
public function addParameterToFunction(_arg1:String, _arg2):void{
functionReference[(_arg1 + "_params")] = [_arg2];
}
function frame364(){
stop();
unlockButtons();
}
function frame245(){
SoundManager.playSound({name:"whoosh", loops:1, duplicate:true});
}
function frame596(){
SoundManager.playSound({name:"photo", loops:1, duplicate:true});
}
private function onErrorSecurity(_arg1:SecurityErrorEvent):void{
}
public function set delayedGoto(_arg1:String):void{
_delayedGoto = _arg1;
}
public function get choosenModelsItems():Array{
return (_choosenModelsItems);
}
function frame254(){
SoundManager.playSound({name:"whoosh", loops:1, duplicate:true});
}
public function lockButtons():void{
lockedButtons = true;
}
function frame370(){
SoundManager.playSound({name:"stars", loops:1});
}
protected function resetGame():void{
_currentModel = 0;
_currentChapter = 0;
_choosenModelsItems = [];
_choosenModels = [];
_chapterPoints = [0, 0, 0];
_usedStyles = [];
}
public function get parameters():Array{
return (_parameters);
}
public function get areButtonsLocked():Boolean{
return (lockedButtons);
}
public static function get getInstance():DocumentClass{
return (instance_);
}
}
}//package pl.fabrykagier.framework.main
Section 30
//GameObject (pl.fabrykagier.framework.main.GameObject)
package pl.fabrykagier.framework.main {
import flash.display.*;
import flash.events.*;
public class GameObject extends MovieClip {
private var listenerArray:Array;
private var automaticRemoveListeners:Boolean;// = true
private var _state:String;
private var arrayIndex:Array;
public static var STATE_STOP:String = "stop";
public static var STATE_PLAY:String = "play";
public static var STATE_PAUSE:String = "pause";
public function GameObject():void{
automaticRemoveListeners = true;
_state = STATE_STOP;
listenerArray = new Array();
arrayIndex = new Array();
super();
initObject();
}
override public function stop():void{
_state = STATE_STOP;
super.stop();
}
private function callDestructor(_arg1:Event):void{
onRemoved();
super.removeEventListener(Event.REMOVED_FROM_STAGE, callDestructor);
if (automaticRemoveListeners){
removeListeners();
};
}
public function removeListeners():void{
var _local1:Array;
for each (_local1 in listenerArray) {
removeEventListener(_local1[0], _local1[1], _local1[2]);
};
listenerArray = new Array();
arrayIndex = new Array();
}
public function set automaticRemove(_arg1:Boolean):void{
if (((!(automaticRemoveListeners)) && (_arg1))){
addEventListener(Event.REMOVED_FROM_STAGE, callDestructor);
};
if (((automaticRemoveListeners) && (!(_arg1)))){
removeEventListener(Event.REMOVED_FROM_STAGE, callDestructor);
};
automaticRemoveListeners = _arg1;
}
public function resume():void{
if (_state == STATE_PAUSE){
_state = STATE_PLAY;
super.play();
};
}
override public function play():void{
_state = STATE_PLAY;
super.play();
}
override public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
super.removeEventListener(_arg1, _arg2, _arg3);
listenerArray.splice(arrayIndex[_arg1], 1);
}
override public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (!hasEventListener(_arg1)){
arrayIndex[_arg1] = (listenerArray.push(new Array(_arg1, _arg2, _arg3, _arg4, _arg5)) - 1);
super.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
};
}
public function initObject():void{
super.addEventListener(Event.REMOVED_FROM_STAGE, callDestructor);
}
public function get listenersNumber():int{
return (listenerArray.length);
}
protected function onRemoved():void{
}
public function get state():String{
return (_state);
}
override public function gotoAndStop(_arg1:Object, _arg2:String=null):void{
_state = STATE_PLAY;
super.gotoAndStop(_arg1, _arg2);
}
public function traceListeners():void{
var _local1:Array;
trace("=== FGF LISTENERS BEGIN ===");
for each (_local1 in listenerArray) {
trace("Listener type: ", _local1[0], " | Function: ", _local1[1]);
};
trace("=== FGF LISTENERS END ===");
}
public function get automaticRemove():Boolean{
return (automaticRemoveListeners);
}
public function get grandparent():DisplayObject{
return (parent.parent);
}
override public function gotoAndPlay(_arg1:Object, _arg2:String=null):void{
_state = STATE_PLAY;
super.gotoAndPlay(_arg1, _arg2);
}
public function pause():void{
_state = STATE_PAUSE;
super.stop();
}
}
}//package pl.fabrykagier.framework.main
Section 31
//SoundManager (pl.fabrykagier.framework.media.SoundManager)
package pl.fabrykagier.framework.media {
import flash.media.*;
import pl.fabrykagier.framework.error.*;
import flash.utils.*;
import flash.net.*;
public class SoundManager {
public static var soundsObjects:Array = new Array();
private static var staticMuteArray:Array = new Array();
private static var muteMode:Boolean;
private static var nextIndex:int = 0;
public static function get muteArray():Array{
return (staticMuteArray);
}
public static function stopAllSounds():void{
var _local1:int;
_local1 = 0;
while (_local1 < soundsObjects.length) {
SoundObject(soundsObjects[_local1]).setVolume(0);
_local1++;
};
}
public static function stopGroup(_arg1:Object):void{
var _local2:SoundObject;
for each (_local2 in soundsObjects) {
if (_local2.group == _arg1["group"]){
_local2.setVolume(0);
};
};
}
private static function checkSound(_arg1:String):Boolean{
var _local2:String;
for (_local2 in soundsObjects) {
if (SoundObject(soundsObjects[_local2]).soundName == _arg1){
return (true);
};
};
return (false);
}
public static function initMute():void{
var _local1:SharedObject;
var _local2:String;
_local1 = SharedObject.getLocal("muteArray");
for (_local2 in _local1.data) {
staticMuteArray[_local2] = _local1.data[_local2];
};
}
public static function playSound(_arg1:Object):SoundObject{
var _local2:SoundObject;
if (!_arg1["name"]){
return (null);
};
if (!_arg1["startTime"]){
_arg1["startTime"] = 0;
};
if (!_arg1["loops"]){
_arg1["loops"] = 0;
};
if (!_arg1["transform"]){
_arg1["transform"] = null;
};
if (!_arg1["group"]){
_arg1["group"] = "default";
};
if (muteArray[_arg1["group"]]){
_arg1["transform"] = new SoundTransform(0);
};
if (_arg1["duplicate"] !== true){
if (checkSound(_arg1["name"])){
_local2 = getSoundByName(_arg1["name"]);
if (_local2.state != SoundObject.STATE_PLAY){
_local2.play(_arg1["startTime"], _arg1["loops"], _arg1["transform"]);
};
} else {
_local2 = addSound(_arg1);
if (_local2 == null){
return (null);
};
if (_local2.state != SoundObject.STATE_PLAY){
_local2.play(_arg1["startTime"], _arg1["loops"], _arg1["transform"]);
};
};
} else {
_local2 = addSound(_arg1);
if (_local2 == null){
return (null);
};
_local2.play(_arg1["startTime"], _arg1["loops"], _arg1["transform"]);
};
if (_arg1["pause"] === true){
_local2.pause = true;
} else {
_local2.pause = false;
};
return (_local2);
}
private static function getSoundByID(_arg1:int):SoundObject{
var _local2:String;
for (_local2 in soundsObjects) {
if (SoundObject(soundsObjects[_local2]).id == _arg1){
return (SoundObject(soundsObjects[_local2]));
};
};
return (null);
}
public static function playPausedSound():void{
var _local1:int;
_local1 = 0;
while (_local1 < soundsObjects.length) {
SoundObject(soundsObjects[_local1]).setVolume(1);
_local1++;
};
}
public static function addSound(_arg1:Object):SoundObject{
var SoundClass:Class;
var obj:SoundObject;
var parameters = _arg1;
if (!parameters["name"]){
throw (new FrameworkError(FrameworkError.SM_NONAME));
};
try {
SoundClass = (getDefinitionByName(parameters["name"]) as Class);
} catch(e:Error) {
trace("SoundManager.addSound(parameters)");
trace("***** ERROR ********");
trace("\n\n\n\n\n");
trace(((FrameworkError.SM_NOOBJECT + " Sound name: ") + parameters["name"]));
trace("\n\n\n\n\n");
trace("********************");
return (null);
};
obj = new (SoundClass);
if (((!((obj.bytesLoaded == obj.bytesTotal))) || ((obj.bytesTotal == 0)))){
trace("\n\n\n");
trace("***** ERROR ********");
trace("\n\n\n");
trace("SoundManager.addSound(parameters)");
trace((("Sound name: " + parameters["name"]) + " is NOT LOADED yet!"));
trace("\n\n\n");
trace("********************");
return (null);
};
obj.id = nextIndex;
obj.soundName = parameters["name"];
obj.group = parameters["group"];
soundsObjects.push(obj);
nextIndex++;
if (parameters["pause"] === true){
obj.pause = true;
} else {
obj.pause = false;
};
return (obj);
}
public static function refresh():void{
var _local1:int;
var _local2:int;
trace("REFRESH ARRAY ");
_local1 = 0;
while (_local1 < soundsObjects.length) {
_local2 = 0;
while (_local2 < soundsObjects.length) {
if (_local1 == _local2){
} else {
if (((SoundObject(soundsObjects[_local1])) && ((SoundObject(soundsObjects[_local1]).soundName == SoundObject(soundsObjects[_local2]).soundName)))){
trace("REMOVE!");
soundsObjects.splice(_local2, 1);
};
};
_local2++;
};
_local1++;
};
}
public static function stopSound(_arg1:Object):void{
var _local2:SoundObject;
if (_arg1["name"]){
_local2 = getSoundByName(_arg1["name"]);
};
if (_arg1["id"]){
_local2 = getSoundByID(_arg1["id"]);
};
if (_local2){
_local2.stop();
};
}
public static function muteOff(_arg1:Object):void{
var _local2:SharedObject;
if (!_arg1["group"]){
_arg1["group"] = "default";
};
_local2 = SharedObject.getLocal("muteArray");
_local2.data[_arg1["group"]] = false;
staticMuteArray[_arg1["group"]] = false;
_local2.flush(10);
playPausedGroup(_arg1);
muteMode = false;
}
public static function muteOn(_arg1:Object):void{
var _local2:SharedObject;
trace("mutte on!");
if (!_arg1["group"]){
_arg1["group"] = "default";
};
_local2 = SharedObject.getLocal("muteArray");
_local2.data[_arg1["group"]] = true;
staticMuteArray[_arg1["group"]] = true;
_local2.flush(10);
stopGroup(_arg1);
muteMode = true;
}
public static function get mute():Boolean{
return (muteMode);
}
public static function getSoundByName(_arg1:String):SoundObject{
var _local2:String;
for (_local2 in soundsObjects) {
if (SoundObject(soundsObjects[_local2]).soundName == _arg1){
return (SoundObject(soundsObjects[_local2]));
};
};
return (null);
}
public static function playPausedGroup(_arg1:Object):void{
var _local2:SoundObject;
for each (_local2 in soundsObjects) {
if (_local2.group == _arg1["group"]){
_local2.setVolume(1);
};
};
}
}
}//package pl.fabrykagier.framework.media
Section 32
//SoundObject (pl.fabrykagier.framework.media.SoundObject)
package pl.fabrykagier.framework.media {
import flash.events.*;
import flash.media.*;
import pl.fabrykagier.framework.events.*;
import pl.fabrykagier.framework.error.*;
public class SoundObject extends Sound {
private var locked:Boolean;
private var name:String;
private var sndTransform:SoundTransform;
private var id_:int;// = -1
private var myChannel:SoundChannel;
private var loops:int;
private var pauseMode:Boolean;
private var pauseTime:int;
private var toAddListener:Boolean;
private var state_:String;
public var group:String;
public static var STATE_PAUSE:String = "state_is_pause";
public static var STATE_END:String = "sound_is_end";
public static var PARAMETER_SOUND_NAME:String = "sound_complete";
public static var STATE_STOP:String = "sound_is_stop";
public static var SOUND_COMPLETE:String = "sound_complete";
public static var STATE_PLAY:String = "sound_is_play";
public function SoundObject(){
id_ = -1;
super();
state_ = STATE_STOP;
}
public function stop():void{
state_ = STATE_STOP;
if (pauseMode){
pauseSound();
};
if (myChannel){
myChannel.stop();
};
}
public function get state():String{
return (state_);
}
public function get id():int{
return (id_);
}
public function setVolume(_arg1:Number):void{
if (myChannel){
myChannel.soundTransform = new SoundTransform(_arg1);
};
}
public function get lock():Boolean{
return (locked);
}
public function resume():void{
if (pauseMode){
trace("RESUME!");
state_ = STATE_PLAY;
play(pauseTime, loops, sndTransform);
};
}
override public function play(_arg1:Number=0, _arg2:int=0, _arg3:SoundTransform=null):SoundChannel{
state_ = STATE_PLAY;
this.loops = _arg2;
this.sndTransform = _arg3;
myChannel = super.play(_arg1, _arg2, _arg3);
if (myChannel){
myChannel.addEventListener(Event.SOUND_COMPLETE, onComplete);
};
return (myChannel);
}
public function set id(_arg1:int):void{
if (id_ == -1){
id_ = _arg1;
} else {
throw (new FrameworkError(FrameworkError.SO_ID));
};
}
private function onComplete(_arg1:Event):void{
var _local2:FrameworkEvent;
dispatchEvent(new FrameworkEvent("SOUND_COMPLETE"));
_local2 = new FrameworkEvent(SOUND_COMPLETE);
_local2.addParameter(PARAMETER_SOUND_NAME, this.name);
dispatchEvent(_local2);
state_ = STATE_STOP;
}
private function pauseSound():void{
state_ = STATE_PAUSE;
pauseTime = myChannel.position;
}
public function get soundName():String{
return (name);
}
public function set lock(_arg1:Boolean):void{
locked = _arg1;
}
public function set pause(_arg1:Boolean):void{
pauseMode = _arg1;
}
public function addListener(_arg1:Function, _arg2:Boolean=false, _arg3:int=0, _arg4:Boolean=false):void{
}
public function get pause():Boolean{
return (pauseMode);
}
public function set soundName(_arg1:String):void{
name = _arg1;
}
}
}//package pl.fabrykagier.framework.media
Section 33
//DelayedGotoButton (pl.fabrykagier.framework.ui.graphical.buttons.DelayedGotoButton)
package pl.fabrykagier.framework.ui.graphical.buttons {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.framework.utils.*;
import pl.fabrykagier.framework.error.*;
public class DelayedGotoButton extends GotoButton {
override protected function onClick(_arg1:MouseEvent):void{
var _local2:ParametersObject;
var _local3:Array;
var _local4:Array;
var _local5:String;
if (DocumentClass.getInstance.areButtonsLocked){
return;
};
SoundManager.playSound({name:"clickSound", loops:1});
_local2 = new ParametersObject(this.name);
if (_local2.getValue("goto") != null){
if (DocumentClass.getInstance != null){
DocumentClass.getInstance.delayedGoto = _local2.getValue("goto");
} else {
new FrameworkError(FrameworkError.CANT_FIND_STAGE);
};
};
if (_local2.getValue("call") != null){
if (_local2.getValue("callParameter") != null){
DocumentClass.getInstance.addParameterToFunction(_local2.getValue("call"), _local2.getValue("callParameter"));
};
DocumentClass.getInstance.callRegisteredFunction(_local2.getValue("call"));
};
if (_local2.getValue("lockEnabled") != "false"){
DocumentClass.getInstance.lockButtons();
};
DocumentClass.getInstance.play();
if (_local2.getValue("parameter") != null){
_local3 = this.name.split("$");
for each (_local5 in _local3) {
_local4 = _local5.split("_");
if (_local4[0] == "parameter"){
if (_local4.length > 2){
DocumentClass.getInstance.parameters[_local4[1]] = _local4[2];
} else {
new FrameworkError(("Can't find parameter for button: " + this.name));
};
};
};
};
}
}
}//package pl.fabrykagier.framework.ui.graphical.buttons
Section 34
//GotoButton (pl.fabrykagier.framework.ui.graphical.buttons.GotoButton)
package pl.fabrykagier.framework.ui.graphical.buttons {
import pl.fabrykagier.framework.media.*;
import flash.display.*;
import flash.events.*;
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.framework.utils.*;
import pl.fabrykagier.framework.error.*;
import pl.fabrykagier.framework.ui.graphical.*;
public class GotoButton extends InterfaceButton {
public function GotoButton(){
buttonMode = true;
}
override protected function onClick(_arg1:MouseEvent):void{
var _local2:ParametersObject;
var _local3:Array;
var _local4:Array;
var _local5:String;
if (DocumentClass.getInstance.areButtonsLocked){
return;
};
SoundManager.playSound({name:"clickSound", loops:1});
_local2 = new ParametersObject(this.name);
if (_local2.getValue("playStage") != null){
if (DocumentClass.getInstance != null){
DocumentClass.getInstance.play();
} else {
new FrameworkError(FrameworkError.CANT_FIND_STAGE);
};
};
if (_local2.getValue("playParent") != null){
if (parent != null){
MovieClip(parent).play();
} else {
new FrameworkError(FrameworkError.CANT_FIND_PARENT);
};
};
if (_local2.getValue("playGrandparent") != null){
if (((!((parent == null))) && (!((parent.parent == null))))){
MovieClip(parent.parent).play();
} else {
new FrameworkError(FrameworkError.CANT_FIND_PARENT);
};
};
if (_local2.getValue("gotoAndStopStage") != null){
if (DocumentClass.getInstance != null){
DocumentClass.getInstance.gotoAndStop(_local2.getValue("gotoAndStopStage"));
} else {
new FrameworkError(FrameworkError.CANT_FIND_STAGE);
};
} else {
if (_local2.getValue("gotoAndPlayStage") != null){
if (DocumentClass.getInstance != null){
DocumentClass.getInstance.gotoAndPlay(_local2.getValue("gotoAndPlayStage"));
} else {
new FrameworkError(FrameworkError.CANT_FIND_STAGE);
};
} else {
if (_local2.getValue("gotoAndStopParent") != null){
if (parent != null){
MovieClip(parent).gotoAndStop(_local2.getValue("gotoAndStopParent"));
} else {
new FrameworkError(FrameworkError.CANT_FIND_PARENT);
};
} else {
if (_local2.getValue("gotoAndPlayParent") != null){
if (parent != null){
MovieClip(parent).gotoAndPlay(_local2.getValue("gotoAndPlayParent"));
} else {
new FrameworkError(FrameworkError.CANT_FIND_PARENT);
};
};
};
};
};
if (_local2.getValue("call") != null){
if (_local2.getValue("callParameter") != null){
DocumentClass.getInstance.addParameterToFunction(_local2.getValue("call"), _local2.getValue("callParameter"));
};
DocumentClass.getInstance.callRegisteredFunction(_local2.getValue("call"));
};
if (_local2.getValue("lockEnabled") != "false"){
DocumentClass.getInstance.lockButtons();
};
if (_local2.getValue("parameter") != null){
_local3 = this.name.split("$");
for each (_local5 in _local3) {
_local4 = _local5.split("_");
if (_local4[0] == "parameter"){
if (_local4.length > 2){
DocumentClass.getInstance.parameters[_local4[1]] = _local4[2];
} else {
new FrameworkError(("Can't find parameter for button: " + this.name));
};
};
};
};
}
}
}//package pl.fabrykagier.framework.ui.graphical.buttons
Section 35
//MutteButton (pl.fabrykagier.framework.ui.graphical.buttons.MutteButton)
package pl.fabrykagier.framework.ui.graphical.buttons {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import pl.fabrykagier.framework.ui.graphical.*;
public class MutteButton extends InterfaceButton {
public function MutteButton(){
buttonMode = true;
changeLabels();
gotoAndStop(mouseOutLabel);
}
protected function changeLabels():void{
if (SoundManager.mute){
mouseDownLabel = "click_on";
mouseOverLabel = "on_on";
mouseOutLabel = "off_on";
} else {
mouseDownLabel = "click_off";
mouseOverLabel = "on_off";
mouseOutLabel = "off_off";
};
}
override protected function onClick(_arg1:MouseEvent):void{
if (SoundManager.mute){
SoundManager.muteOff({group:"default"});
} else {
SoundManager.muteOn({group:"default"});
};
changeLabels();
gotoAndStop(mouseOverLabel);
}
}
}//package pl.fabrykagier.framework.ui.graphical.buttons
Section 36
//GotoURL (pl.fabrykagier.framework.ui.graphical.GotoURL)
package pl.fabrykagier.framework.ui.graphical {
import flash.events.*;
import flash.net.*;
public class GotoURL extends InterfaceButton {
private var linkArray:Array;
public function GotoURL(){
linkArray = [];
super();
buttonMode = true;
linkArray["candy"] = "http://www.candystand.com/";
linkArray["teen"] = "http://ad.doubleclick.net/clk;223767169;35711708;o";
}
override protected function onClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(linkArray[this.name.split("_")[0]]));
}
}
}//package pl.fabrykagier.framework.ui.graphical
Section 37
//InterfaceButton (pl.fabrykagier.framework.ui.graphical.InterfaceButton)
package pl.fabrykagier.framework.ui.graphical {
import pl.fabrykagier.framework.media.*;
import flash.display.*;
import flash.events.*;
import pl.fabrykagier.framework.main.*;
public class InterfaceButton extends MovieClip {
protected var mouseOutLabel:String;// = "off"
protected var mouseOverLabel:String;// = "on"
protected var mouseOn:Boolean;
protected var mouseDownLabel:String;// = "click"
public function InterfaceButton(){
mouseDownLabel = "click";
mouseOverLabel = "on";
mouseOutLabel = "off";
super();
useHandCursor = true;
addEventListener(MouseEvent.CLICK, onClick);
mouseChildren = false;
addEventListener(MouseEvent.MOUSE_DOWN, onButtonDown);
addEventListener(MouseEvent.MOUSE_UP, onButtonUp);
addEventListener(MouseEvent.MOUSE_OVER, onButtonOver);
addEventListener(MouseEvent.MOUSE_OUT, onButtonOut);
buttonMode = true;
this.focusRect = false;
}
protected function onButtonUp(_arg1:MouseEvent):void{
gotoAndStop(mouseOverLabel);
}
protected function onButtonDown(_arg1:MouseEvent):void{
gotoAndStop(mouseDownLabel);
}
protected function onButtonOut(_arg1:MouseEvent):void{
mouseOn = false;
if (DocumentClass.getInstance.areButtonsLocked){
return;
};
gotoAndStop(mouseOutLabel);
}
protected function onButtonOver(_arg1:MouseEvent):void{
mouseOn = true;
if (DocumentClass.getInstance.areButtonsLocked){
return;
};
SoundManager.playSound({name:"rollOverSound", loops:1, duplicate:true});
gotoAndPlay(mouseOverLabel);
}
protected function onClick(_arg1:MouseEvent):void{
if (DocumentClass.getInstance.areButtonsLocked){
return;
};
SoundManager.playSound({name:"clickSound", loops:1});
}
}
}//package pl.fabrykagier.framework.ui.graphical
Section 38
//CandystandApiBridge (pl.fabrykagier.framework.utils.candystand.CandystandApiBridge)
package pl.fabrykagier.framework.utils.candystand {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class CandystandApiBridge {
private var gameKey:String;
protected var bestScore:int;
private var gameVersion:String;
private var documentClass:MovieClip;
private var initUGC:Boolean;
private var csLoader:Loader;
private var _candystand:Object;
private static var _instance:CandystandApiBridge;
public function CandystandApiBridge(_arg1:MovieClip, _arg2:String, _arg3:String, _arg4:Boolean=false):void{
var _local5:String;
super();
this.documentClass = _arg1;
this.gameKey = _arg2;
this.gameVersion = _arg3;
this.initUGC = _arg4;
_instance = this;
_arg1.stop();
Security.allowDomain("www.candystand.com");
Security.allowDomain("local.candystand.com");
_local5 = ((LoaderInfo(_arg1.root.loaderInfo).parameters.apiurl) || ("/api/flash/cs_api_3.1.swf"));
trace("Candystand API_URL: ", _local5);
csLoader = new Loader();
csLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCandystandAPILoadComplete);
csLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onCandystandAPILoadError);
csLoader.load(new URLRequest(_local5));
_arg1.addChild(csLoader);
}
protected function onStingerComplete(_arg1):void{
trace("CANDYSTAND Stinger completed playback");
documentClass.play();
}
protected function onCandystandAPILoadComplete(_arg1:Event):void{
trace("CANDYSTAND API has load successfully! ");
_candystand = _arg1.target.content;
candystand.debug = false;
candystand.init(gameKey, gameVersion);
candystand.loadStinger();
candystand.stinger.addEventListener("STINGER_COMPLETE", this.onStingerComplete);
if (initUGC){
candystand.ugcontent.addEventListener("SAVE_COMPLETE", this.onContentSaved);
candystand.ugcontent.addEventListener("EDIT_COMPLETE", this.onContentEdited);
candystand.ugcontent.addEventListener("LOAD_COMPLETE", this.onContentLoaded);
candystand.ugcontent.addEventListener("LOAD_BINARY_COMPLETE", this.onBinaryContentLoaded);
candystand.ugcontent.addEventListener("RATE_COMPLETE", this.onContentRated);
candystand.ugcontent.addEventListener("BROWSE_COMPLETE", this.onBrowseLoaded);
candystand.ugcontent.addEventListener("URL_UPDATE", this.loadContentFromURL);
candystand.ugcontent.addEventListener("ERROR", this.onError);
};
}
protected function onContentRated(_arg1):void{
trace("*************************************");
trace("");
trace("RATE RESULT SUCCESS");
}
public function get candystand():Object{
return (_candystand);
}
protected function onContentSaved(_arg1):void{
trace("*************************************");
trace("");
trace("SAVE RESULT:");
trace(("KEY: " + candystand.ugcontent.key));
}
public function quitSubmit():void{
trace("CandystandApiBridge.quitSubmit()");
if (_candystand != null){
_candystand.game.score = bestScore;
_candystand.game.submitScore();
};
}
protected function onError(_arg1):void{
trace(_arg1.message);
}
protected function onContentEdited(_arg1):void{
trace("*************************************");
trace("");
trace("EDIT RESULT:");
trace(("KEY: " + candystand.ugcontent.key));
}
protected function onBrowseLoaded(_arg1):void{
var _local2:int;
trace("*************************************");
trace("");
trace("BROWSE RESULT:");
trace(("GAME ID: " + candystand.ugcontent.browseResults.gameid));
trace(("NUM PAGE: " + candystand.ugcontent.browseResults.num_page));
trace(("RESULTS FOR THIS PAGE: " + candystand.ugcontent.browseResults.items.length));
trace(("TOTAL RESULTS: " + candystand.ugcontent.browseResults.total_results));
trace(("LEVEL: " + candystand.ugcontent.browseResults.level));
trace("");
trace("ITEMS:");
_local2 = 0;
while (_local2 < candystand.ugcontent.browseResults.items.length) {
trace(((((((((((((("ITEM " + _local2) + "\tKEY=") + candystand.ugcontent.browseResults.items[_local2].ugckey) + "\t\tNAME=") + candystand.ugcontent.browseResults.items[_local2].name) + "\t\t\tRATING=") + candystand.ugcontent.browseResults.items[_local2].rating) + "\tLEVEL=") + candystand.ugcontent.browseResults.items[_local2].level) + "\tSCORE=") + candystand.ugcontent.browseResults.items[_local2].score) + "\t\tDATE_CREATED=") + candystand.ugcontent.browseResults.items[_local2].date_created));
_local2++;
};
trace("");
}
protected function loadContentFromURL(_arg1):void{
trace((("URL contains a UGC Key! The key is: " + _arg1.key) + ". LOADING UGCONTENT..."));
candystand.ugcontent.loadData(_arg1.key);
}
protected function onCandystandAPILoadError(_arg1:Event):void{
trace(("ERROR LOADING CANDYSTAND API: " + _arg1));
documentClass.play();
}
protected function onBinaryContentLoaded(_arg1):void{
var _local2:ByteArray;
_local2 = candystand.ugcontent.bindata;
_local2.uncompress();
_local2.position = 0;
trace("*************************************");
trace("");
trace("LOAD BIN RESULT:");
trace(("KEY: " + candystand.ugcontent.key));
trace(("DATA LENGTH: " + _local2.length));
trace(("DATA TOSTRING: " + _local2));
trace(("DATA: " + _local2.readUTFBytes(_local2.length)));
_local2.position = 0;
}
protected function onContentLoaded(_arg1):void{
trace("*************************************");
trace("");
trace("LOAD RESULT:");
trace(("KEY: " + candystand.ugcontent.key));
trace(("DATA: " + candystand.ugcontent.data));
trace(("LEVEL NAME: " + candystand.ugcontent.name));
trace(("LEVEL: " + candystand.ugcontent.level));
trace(("SCORE: " + candystand.ugcontent.score));
trace(("RATING: " + candystand.ugcontent.rating));
trace(("DATE CREATED: " + candystand.ugcontent.datecreated));
}
public static function get instance():CandystandApiBridge{
return (_instance);
}
}
}//package pl.fabrykagier.framework.utils.candystand
Section 39
//CandystandQuitSubmitButton (pl.fabrykagier.framework.utils.candystand.CandystandQuitSubmitButton)
package pl.fabrykagier.framework.utils.candystand {
import flash.events.*;
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public class CandystandQuitSubmitButton extends DelayedGotoButton {
override protected function onClick(_arg1:MouseEvent):void{
if (DocumentClass.getInstance.areButtonsLocked){
return;
};
CandystandApiBridge.instance.quitSubmit();
super.onClick(_arg1);
}
}
}//package pl.fabrykagier.framework.utils.candystand
Section 40
//HitTest (pl.fabrykagier.framework.utils.hitTest.HitTest)
package pl.fabrykagier.framework.utils.hitTest {
import flash.display.*;
import flash.geom.*;
public class HitTest {
protected static function getDrawMatrix(_arg1:DisplayObject, _arg2:Rectangle, _arg3:Number):Matrix{
var _local4:Point;
var _local5:Matrix;
var _local6:Matrix;
_local6 = _arg1.root.transform.concatenatedMatrix;
_local4 = _arg1.localToGlobal(new Point());
_local5 = _arg1.transform.concatenatedMatrix;
_local5.tx = (_local4.x - _arg2.x);
_local5.ty = (_local4.y - _arg2.y);
_local5.a = (_local5.a / _local6.a);
_local5.d = (_local5.d / _local6.d);
if (_arg3 != 1){
_local5.scale(_arg3, _arg3);
};
return (_local5);
}
public static function complexHitTestObject(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Boolean{
return (!((complexIntersectionRectangle(_arg1, _arg2, _arg3).width == 0)));
}
public static function complexIntersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Rectangle{
var _local4:Rectangle;
var _local5:BitmapData;
var _local6:Rectangle;
if (_arg3 <= 0){
throw (new Error("ArgumentError: Error #5001: Invalid value for accurracy", 5001));
};
if (!_arg1.hitTestObject(_arg2)){
return (new Rectangle());
};
_local4 = intersectionRectangle(_arg1, _arg2);
if (((((_local4.width * _arg3) < 1)) || (((_local4.height * _arg3) < 1)))){
return (new Rectangle());
};
_local5 = new BitmapData((_local4.width * _arg3), (_local4.height * _arg3), false, 0);
_local5.draw(_arg1, HitTest.getDrawMatrix(_arg1, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, 0xFF));
_local5.draw(_arg2, HitTest.getDrawMatrix(_arg2, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0xFF), BlendMode.DIFFERENCE);
_local6 = _local5.getColorBoundsRect(4294967295, 4278255615);
_local5.dispose();
if (_arg3 != 1){
_local6.x = (_local6.x / _arg3);
_local6.y = (_local6.y / _arg3);
_local6.width = (_local6.width / _arg3);
_local6.height = (_local6.height / _arg3);
};
_local6.x = (_local6.x + _local4.x);
_local6.y = (_local6.y + _local4.y);
return (_local6);
}
public static function intersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject):Rectangle{
var _local3:Rectangle;
var _local4:Rectangle;
var _local5:Rectangle;
if (((((!(_arg1.root)) || (!(_arg2.root)))) || (!(_arg1.hitTestObject(_arg2))))){
return (new Rectangle());
};
_local3 = _arg1.getBounds(_arg1.root);
_local4 = _arg2.getBounds(_arg2.root);
_local5 = new Rectangle();
_local5.x = Math.max(_local3.x, _local4.x);
_local5.y = Math.max(_local3.y, _local4.y);
_local5.width = Math.min(((_local3.x + _local3.width) - _local5.x), ((_local4.x + _local4.width) - _local5.x));
_local5.height = Math.min(((_local3.y + _local3.height) - _local5.y), ((_local4.y + _local4.height) - _local5.y));
return (_local5);
}
}
}//package pl.fabrykagier.framework.utils.hitTest
Section 41
//ParametersObject (pl.fabrykagier.framework.utils.ParametersObject)
package pl.fabrykagier.framework.utils {
public class ParametersObject {
private var handledObject:Object;
private var handledString:String;
public function ParametersObject(_arg1:String){
handledObject = new Object();
super();
handledString = _arg1;
if (_arg1.indexOf("$") != -1){
unserialize();
};
}
public function serialize():String{
return (handledString);
}
public function getValue(_arg1:String){
if (handledObject){
return (handledObject[_arg1]);
};
return (null);
}
private function unserialize():void{
var _local1:Array;
var _local2:String;
var _local3:Array;
_local1 = handledString.split("$");
for each (_local2 in _local1) {
if (_local2.indexOf("_")){
_local3 = _local2.split("_");
handledObject[_local3[0]] = _local2.substring((String(_local3[0]).length + 1));
};
};
}
}
}//package pl.fabrykagier.framework.utils
Section 42
//Feedback (pl.fabrykagier.hauteBothered.dressUp.Feedback)
package pl.fabrykagier.hauteBothered.dressUp {
public class Feedback {
public static const SHOES:Array = ["shoes"];
private static const MAKEUP:Array = ["shadow", "lip"];
private static const TBS:Array = TOP.concat(BOTTOM).concat(SHOES);
public static const BOTTOM:Array = ["skirt", "dress"];
private static const ACESSORY:Array = ["head", "neck", "hand"];
public static const TOP:Array = ["blouse", "dress"];
public static function generateJudgeing(_arg1:Array, _arg2:String):String{
var _local3:int;
_local3 = generateScore(_arg1, _arg2);
if (_local3 == 150){
return ("We're sorry, but this outfit would never work in today's fashion world. Maybe you could have another look at this model and try again?");
};
if (_local3 < 300){
return ("Hmm. We're concerned that the outfit you have chosen doesn't match your style. As a designer, you have to be careful which garments and accessories you choose for which models. Keep at it and we're sure you will improve.");
};
if (_local3 < 450){
return ("We can see the look you were trying for here, but it doesn't quite work. As designers ourselves, we can tell that some elements don't match the rest of the outfit. The good news is that, with a few tweaks, this model could look amazing.");
};
return ((("This is absolutely fabulous! You captured the essence of the " + _arg2) + " style but still managed to create a fresh look. Very impressive. "));
}
private static function outfit2and1wrong(_arg1:OutfitItem, _arg2:OutfitItem, _arg3:OutfitItem):String{
return ((((((((((("I think the " + _arg1.itemType) + " and ") + _arg2.itemType) + " are a little too ") + _arg2.itemStyle) + " and ") + _arg3.itemType) + " is a little too ") + _arg3.itemStyle) + ". You might want to make one or more changes. You're the designer, though, so you get the final decision."));
}
private static function outfit1good(_arg1:OutfitItem):String{
return ((("I love this model's " + _arg1.itemType) + "! Her style is perfect."));
}
private static function outfit2good(_arg1:OutfitItem, _arg2:OutfitItem):String{
return ((((("I love this model's " + _arg1.itemType) + " and ") + _arg2.itemType) + "! Her style is perfect."));
}
private static function outfit3good(_arg1:OutfitItem, _arg2:OutfitItem, _arg3:OutfitItem):String{
return ((((((("I love this model's " + _arg1.itemType) + ", ") + _arg2.itemType) + " and ") + _arg3.itemType) + "! Her style is perfect."));
}
private static function makeUpFeedback(_arg1:Array, _arg2:String):String{
var _local3:String;
var _local4:MakeupItem;
var _local5:MakeupItem;
var _local6:int;
var _local7:int;
var _local8:String;
var _local9:OutfitItem;
for each (_local8 in _arg1) {
_local3 = slice(_local8, 0);
if (MAKEUP.indexOf(_local3) != -1){
if (_local3 == "shadow"){
_local4 = new MakeupItem(_local8);
};
if (_local3 == "lip"){
_local5 = new MakeupItem(_local8);
};
} else {
if (TOP.indexOf(_local3) != -1){
_local9 = new OutfitItem(_local8);
_local6 = _local9.itemBrightness;
};
};
};
if (!lipsToShades(_local5, _local4)){
return (makeUpAllWrong());
};
_local7 = _local5.itemBrightness;
if ((((_local7 == 3)) || ((_local7 == _local6)))){
return (makeUpAllOK());
};
if (_local7 == 2){
return (makeUpToDark());
};
if (_local7 == 1){
return (makeUpToLight());
};
return (makeUpAllWrong());
}
public static function geterateFeedback(_arg1:Array, _arg2:String):String{
return (((((topBottomShoesFeedback(_arg1, _arg2) + "\n") + accessoryFeedback(_arg1, _arg2)) + "\n") + makeUpFeedback(_arg1, _arg2)));
}
private static function makeUpAllWrong():String{
return ("Try to focus more on this model's makeup. Remember, you need to stand out if you want to make it into the Manhattan Fashion Institute. ");
}
private static function slice(_arg1:String, _arg2:int):String{
var _local3:Array;
_local3 = _arg1.split("_");
if (_local3.length >= _arg2){
return (_local3[_arg2]);
};
return ("");
}
private static function phoneGood():String{
if (Math.random() < 0.5){
return ("I see you’ve selected an LG phone – nice touch. It’s the perfect accessory.");
};
return ("I really like the way you accessorized with the LG phone. You’re on the right track.");
}
private static function makeUpAllOK():String{
return ("This model’s makeup looks just right.");
}
private static function topBottomShoesFeedback(_arg1:Array, _arg2:String):String{
var _local3:Array;
var _local4:Array;
var _local5:OutfitItem;
var _local6:String;
var _local7:String;
_local3 = [];
_local4 = [];
_local6 = "";
for each (_local7 in _arg1) {
_local5 = new OutfitItem(_local7);
if (TBS.indexOf(_local5.itemType) == -1){
} else {
if (_local5.itemStyle == _arg2){
_local3.push(_local5);
} else {
_local4.push(_local5);
};
};
};
switch (_local4.length){
case 3:
if ((((OutfitItem(_local4[0]).itemStyle == OutfitItem(_local4[1]).itemStyle)) && ((OutfitItem(_local4[1]).itemStyle == OutfitItem(_local4[2]).itemStyle)))){
_local6 = _local6.concat(outfit3wrong(OutfitItem(_local4[0]), OutfitItem(_local4[1]), OutfitItem(_local4[2])));
} else {
if (OutfitItem(_local4[0]).itemStyle == OutfitItem(_local4[1]).itemStyle){
_local6 = _local6.concat(outfit2and1wrong(OutfitItem(_local4[0]), OutfitItem(_local4[1]), OutfitItem(_local4[2])));
} else {
if (OutfitItem(_local4[0]).itemStyle == OutfitItem(_local4[2]).itemStyle){
_local6 = _local6.concat(outfit2and1wrong(OutfitItem(_local4[0]), OutfitItem(_local4[2]), OutfitItem(_local4[1])));
} else {
_local6 = _local6.concat(outfit2and1wrong(OutfitItem(_local4[2]), OutfitItem(_local4[1]), OutfitItem(_local4[0])));
};
};
};
break;
case 2:
if (_local3.length == 1){
_local6 = _local6.concat(outfit1good(OutfitItem(_local3[0])));
};
if (OutfitItem(_local4[0]).itemStyle == OutfitItem(_local4[1]).itemStyle){
_local6 = _local6.concat(outfit2wrong(OutfitItem(_local4[0]), OutfitItem(_local4[1])));
} else {
_local6 = _local6.concat(outfit1and1wrong(OutfitItem(_local4[0]), OutfitItem(_local4[1])));
};
break;
case 1:
if (_local3.length == 2){
_local6 = _local6.concat(outfit2good(OutfitItem(_local3[0]), OutfitItem(_local3[1])));
} else {
_local6 = _local6.concat(outfit1good(OutfitItem(_local3[0])));
};
_local6 = _local6.concat(outfit1wrong(OutfitItem(_local4[0])));
break;
case 0:
if (_local3.length == 3){
_local6 = _local6.concat(outfit3good(OutfitItem(_local3[0]), OutfitItem(_local3[1]), OutfitItem(_local3[2])));
} else {
_local6 = _local6.concat(outfit2good(OutfitItem(_local3[0]), OutfitItem(_local3[1])));
};
break;
};
_local6 = _local6.replace(/shoes is/g, "shoes are");
_local6 = _local6.replace(/Shoes is/g, "Shoes are");
return (_local6);
}
private static function outfit3wrong(_arg1:OutfitItem, _arg2:OutfitItem, _arg3:OutfitItem):String{
return ((((((((("I think the " + _arg1.itemType) + ", ") + _arg2.itemType) + " and ") + _arg3.itemType) + " are a little too ") + _arg3.itemStyle) + ". You might want to make one or more changes. You're the designer, though, so you get the final decision."));
}
private static function outfit1wrong(_arg1:OutfitItem):String{
return ((((("I think the " + _arg1.itemType) + " is a little too ") + _arg1.itemStyle) + ". Maybe you should try a different item."));
}
private static function makeUpToDark():String{
return ("That makeup looks so dark with this outfit. Do you want to try some lighter shades?");
}
public static function generateScore(_arg1:Array, _arg2:String):int{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:String;
var _local9:String;
var _local10:MakeupItem;
var _local11:MakeupItem;
var _local12:int;
var _local13:int;
var _local14:String;
_local3 = 100;
_local4 = 100;
_local5 = 50;
_local7 = 150;
for each (_local14 in _arg1) {
_local8 = slice(_local14, 0);
if (MAKEUP.indexOf(_local8) != -1){
if (_local8 == "shadow"){
_local10 = new MakeupItem(_local14);
};
if (_local8 == "lip"){
_local11 = new MakeupItem(_local14);
};
} else {
if (((!((ACESSORY.indexOf(_local8) == -1))) || (!((TBS.indexOf(_local8) == -1))))){
_local9 = slice(_local14, 2);
};
if ((((_local9 == _arg2)) || ((_local9 == "LG")))){
_local6++;
};
};
if (TOP.indexOf(_local8) != -1){
if (slice(_local14, 3) != ""){
_local12 = int(slice(_local14, 3));
};
};
};
if (lipsToShades(_local11, _local10)){
_local7 = (_local7 + _local3);
};
_local13 = _local11.itemBrightness;
if ((((_local13 == 3)) || ((_local13 == _local12)))){
_local7 = (_local7 + _local4);
};
_local7 = (_local7 + (_local5 * _local6));
return (_local7);
}
private static function lipsToShades(_arg1:MakeupItem, _arg2:MakeupItem):Boolean{
var _local3:Array;
_local3 = [[1, 3, 4, 6, 7, 8, 9, 11, 12], [1, 3, 5, 6, 11], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], [1, 3, 4, 6, 7, 10, 12], [1, 2, 3, 4, 6, 7, 8, 9, 10, 12], [1, 2, 3, 5, 6, 7, 8, 9, 11, 12], [1, 3, 6, 11], [1, 3, 6, 11], [1, 3, 5, 6, 11], [1, 3, 6, 7, 12], [1, 2, 3, 4, 6, 7, 12], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]];
if ((_local3[(_arg1.itemID - 1)] as Array).indexOf(_arg2.itemID) == -1){
return (false);
};
return (true);
}
private static function outfit1and1wrong(_arg1:OutfitItem, _arg2:OutfitItem):String{
return ((((((((("I think the " + _arg1.itemType) + " is a little too ") + _arg1.itemStyle) + " and ") + _arg2.itemType) + " is a little too ") + _arg2.itemStyle) + ". You might want to make one or more changes. You're the designer, though, so you get the final decision."));
}
private static function phoneWrong():String{
if (Math.random() < 0.5){
return ("Looks like you forgot the most important accessory - an LG phone. It’s every fashionista’s must have.");
};
return ("You’re missing one major accessory - an LG phone. Every girl needs one.");
}
private static function accessoryGood(_arg1:Array, _arg2:String):String{
var _local3:Boolean;
var _local4:Boolean;
var _local5:String;
var _local6:OutfitItem;
if (_arg1.length == 0){
return ("");
};
_local3 = false;
_local4 = false;
_local5 = "I like the way the ";
_local6 = OutfitItem(_arg1.pop());
_local5 = _local5.concat(_local6.itemType);
if (_arg1.length == 2){
_local6 = OutfitItem(_arg1.pop());
_local5 = _local5.concat((", " + _local6.itemType));
};
if (_arg1.length == 1){
_local6 = OutfitItem(_arg1.pop());
_local5 = _local5.concat((" and " + _local6.itemType));
};
return (_local5.concat(" accessories look with the clothes you've chosen. I can tell you're very talented."));
}
private static function accessoryNone():String{
return ("She might benefit from an accessory, don't you think?");
}
private static function makeUpToLight():String{
return ("That makeup looks too light for this outfit. How would the model look with some darker shades?");
}
private static function accessoryFeedback(_arg1:Array, _arg2:String):String{
var _local3:Array;
var _local4:Array;
var _local5:OutfitItem;
var _local6:Boolean;
var _local7:String;
var _local8:String;
_local3 = [];
_local4 = [];
for each (_local7 in _arg1) {
_local5 = new OutfitItem(_local7);
if (ACESSORY.indexOf(_local5.itemType) == -1){
} else {
if (_local5.itemStyle == "LG"){
_local6 = true;
};
if ((((_local5.itemStyle == _arg2)) || ((_local5.itemStyle == "LG")))){
_local3.push(_local5);
} else {
_local4.push(_local5);
};
};
};
_local8 = "";
if (_local6){
_local8 = phoneGood();
} else {
_local8 = phoneWrong();
};
if ((((_local3.length == 0)) && ((_local4.length == 0)))){
return (((accessoryNone() + " ") + _local8));
};
return (((((accessoryGood(_local3, _arg2) + " ") + accessoryWrong(_local4, _arg2)) + " ") + _local8));
}
private static function accessoryWrong(_arg1:Array, _arg2:String):String{
var _local3:Boolean;
var _local4:String;
var _local5:OutfitItem;
if (_arg1.length == 0){
return ("");
};
_local3 = false;
_local4 = "Your ";
_local5 = OutfitItem(_arg1.pop());
_local4 = _local4.concat(_local5.itemType);
if (_arg1.length == 2){
_local5 = OutfitItem(_arg1.pop());
_local4 = _local4.concat((", " + _local5.itemType));
};
if (_arg1.length == 1){
_local5 = OutfitItem(_arg1.pop());
_local4 = _local4.concat((" and " + _local5.itemType));
};
return ((((_local4 + " accessories don't quite match the outfit. Maybe you should try to find something that looks a little more ") + _arg2) + "."));
}
private static function outfit2wrong(_arg1:OutfitItem, _arg2:OutfitItem):String{
return ((((((("I think the " + _arg1.itemType) + " and ") + _arg2.itemType) + " are a little too ") + _arg2.itemStyle) + ". You might want to make one or more changes. You're the designer, though, so you get the final decision."));
}
}
}//package pl.fabrykagier.hauteBothered.dressUp
class OutfitItem {
private var _itemBrightness:int;
private var _itemType:String;
private var _itemID:int;
private var _itemStyle:String;
private function OutfitItem(_arg1:String){
_itemType = slice(_arg1, 0);
_itemID = int(slice(_arg1, 1));
_itemStyle = slice(_arg1, 2);
if (slice(_arg1, 3) != ""){
_itemBrightness = int(slice(_arg1, 3));
} else {
_itemBrightness = 3;
};
}
public function get itemBrightness():int{
return (_itemBrightness);
}
public function get itemStyle():String{
return (_itemStyle);
}
public function get itemID():int{
return (_itemID);
}
private function slice(_arg1:String, _arg2:int):String{
var _local3:Array;
_local3 = _arg1.split("_");
if (_local3.length >= _arg2){
return (_local3[_arg2]);
};
return ("");
}
public function get itemType():String{
return (_itemType);
}
}
class MakeupItem {
private var _itemBrightness:int;
private var _itemType:String;
private var _itemID:int;
private function MakeupItem(_arg1:String){
_itemType = slice(_arg1, 0);
_itemID = int(slice(_arg1, 1));
if (slice(_arg1, 2) != ""){
_itemBrightness = int(slice(_arg1, 2));
} else {
_itemBrightness = 3;
};
}
public function get itemBrightness():int{
return (_itemBrightness);
}
public function get itemType():String{
return (_itemType);
}
public function get itemID():int{
return (_itemID);
}
private function slice(_arg1:String, _arg2:int):String{
var _local3:Array;
_local3 = _arg1.split("_");
if (_local3.length >= _arg2){
return (_local3[_arg2]);
};
return ("");
}
}
Section 43
//HBDressUpManager (pl.fabrykagier.hauteBothered.dressUp.HBDressUpManager)
package pl.fabrykagier.hauteBothered.dressUp {
import pl.fabrykagier.framework.media.*;
import flash.display.*;
import flash.events.*;
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.engines.dressUp.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
import pl.fabrykagier.framework.ui.graphical.*;
import flash.utils.*;
public class HBDressUpManager extends DressUpManager {
public var mirror_mc:makeUp_panel;
public var exam_:interface_button_panel_exam;
public var playParent_true$_2:interface_button_panel_dresses;
public var model_:HBModel;
public var playParent_true$_1:interface_button_panel_makeUp;
private var _currentModelID:int;// = 0
private var _examBTN:InterfaceButton;
private var _afterPreShow:Boolean;
public var id_4$_6:makeUp_panel_hair;
private var _feedbackBTN:InterfaceButton;
public var shoes:MovieClip;
private var _mirrorModel:Model;
public var id_5$_5:makeUp_panel_eyes;
public var accessories:MovieClip;
public var feedback_:interface_button_panel_feedback;
private var _tumbModels:Array;
public var id_6$_7:makeUp_panel_shade;
public var bottoms:MovieClip;
public var tops:MovieClip;
public var id_7$_8:makeUp_panel_lips;
private var _initPopup:Boolean;
public function HBDressUpManager(){
_tumbModels = [];
_currentModelID = 0;
super();
addFrameScript(21, frame22, 43, frame44, 44, frame45, 52, frame53, 62, frame63, 82, frame83, 83, frame84, 88, frame89, 97, frame98);
DocumentClass.getInstance.currentModel = 0;
_afterPreShow = DocumentClass.getInstance.isAfterPreShow;
_feedbackBTN = InterfaceButton(this.getChildByName("feedback_"));
_examBTN = InterfaceButton(this.getChildByName("exam_"));
if (_afterPreShow){
_examBTN.addEventListener(MouseEvent.CLICK, finishDressingHandler);
_feedbackBTN.visible = false;
} else {
_feedbackBTN.addEventListener(MouseEvent.CLICK, finishDressingHandler);
_examBTN.visible = false;
};
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
private function destroy(_arg1:Event):void{
_examBTN.removeEventListener(MouseEvent.CLICK, finishDressingHandler);
_feedbackBTN.removeEventListener(MouseEvent.CLICK, finishDressingHandler);
this.removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
override protected function wardrobeToModel(_arg1:String):void{
var _local2:HBModel;
var _local3:Array;
var _local4:String;
super.wardrobeToModel(_arg1);
for each (_local2 in _tumbModels) {
_local3 = _local2.setItem(_arg1);
for each (_local4 in _local3) {
_local2.removeItem(_local4);
};
_local2.update();
};
}
protected function setMakeUp():void{
this.makeUnDraggable();
this.makeClickable();
}
function frame22(){
SoundManager.playSound({name:"whoosh", loops:1, duplicate:true});
}
protected function setDressUp():void{
var _local1:Class;
var _local2:MovieClip;
if (!_initPopup){
_initPopup = true;
if (_afterPreShow){
_local1 = (getDefinitionByName("info_afterPreshow") as Class);
} else {
_local1 = (getDefinitionByName("info_dressUp") as Class);
};
_local2 = (new (_local1) as MovieClip);
DocumentClass.getInstance.lockButtons();
this.addChild(_local2);
};
this.makeUnClickable();
this.makeDraggable();
}
private function areModelsNaked():Boolean{
var _local1:Boolean;
var _local2:Boolean;
var _local3:Boolean;
var _local4:Array;
var _local5:String;
for each (_local4 in DocumentClass.getInstance._choosenModelsItems) {
_local1 = false;
_local2 = false;
_local3 = false;
for each (_local5 in _local4) {
_local5 = _local5.split("_")[0];
if (Feedback.TOP.indexOf(_local5) != -1){
_local1 = true;
};
if (Feedback.BOTTOM.indexOf(_local5) != -1){
_local2 = true;
};
if (Feedback.SHOES.indexOf(_local5) != -1){
_local3 = true;
};
};
if (((((!(_local1)) || (!(_local2)))) || (!(_local3)))){
return (true);
};
};
return (false);
}
function frame44(){
stop();
DocumentClass.getInstance.unlockButtons();
setDressUp();
}
function frame45(){
lock();
}
function frame53(){
SoundManager.playSound({name:"whoosh", loops:1});
}
override protected function mouseDownClick(_arg1:MouseEvent):void{
super.mouseDownClick(_arg1);
if ((_arg1.target is WardrobeItem)){
SoundManager.playSound({name:"clickSound", loops:1});
};
}
function frame63(){
SoundManager.playSound({name:"whoosh", loops:1});
}
override protected function setIt():void{
var _local1:int;
var _local2:String;
var _local3:Object;
var _local4:String;
this.model = Model(this.getChildByName("model_"));
this.model.gotoAndStop((DocumentClass.getInstance.choosenModels[0] + 1));
this.model.setItems(DocumentClass.getInstance._choosenModelsItems[0]);
wardrobe = new HBWardrobe();
this.addChild(wardrobe);
wardrobe.fill("wardrobeItemsSet");
_local1 = 0;
while (_local1 < 3) {
for each (_local4 in DocumentClass.getInstance._choosenModelsItems[_local1]) {
wardrobe.lockItem(_local4);
};
_local1++;
};
HBWardrobe(wardrobe).unlockMakeup();
for each (_local2 in DocumentClass.getInstance._choosenModelsItems[0]) {
wardrobe.lockItem(_local2);
};
_local3 = (getDefinitionByName("draggingItemsSet") as Class);
draggingItem = MovieClip(new (_local3));
draggingItem.visible = false;
draggingItem.mouseChildren = false;
draggingItem.mouseEnabled = false;
draggingItem.stop();
this.addChild(draggingItem);
}
function frame89(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame83(){
stop();
DocumentClass.getInstance.unlockButtons();
setMakeUp();
}
protected function lock():void{
this.makeUnClickable();
this.makeUnDraggable();
}
function frame84(){
lock();
}
function frame98(){
gotoAndPlay("dressUpLoop");
}
public function removeMirror():void{
_tumbModels.splice(_tumbModels.indexOf(_mirrorModel));
_mirrorModel = null;
}
override protected function modelToWardrobe(_arg1:String):void{
var _local2:HBModel;
super.modelToWardrobe(_arg1);
for each (_local2 in _tumbModels) {
_local2.removeItem(_arg1);
_local2.update();
};
}
override public function stopDragging(_arg1:MouseEvent):void{
super.stopDragging(_arg1);
SoundManager.playSound({name:"clothes", loops:1});
}
private function finishDressingHandler(_arg1:MouseEvent):void{
var _local2:Class;
var _local3:MovieClip;
if (DocumentClass.getInstance.areButtonsLocked){
return;
};
DocumentClass.getInstance._choosenModelsItems[_currentModelID] = model.saveItems();
if (areModelsNaked()){
_local2 = (getDefinitionByName("info_naked") as Class);
} else {
if (_afterPreShow){
_local2 = (getDefinitionByName("info_show") as Class);
} else {
_local2 = (getDefinitionByName("info_preShow") as Class);
};
};
_local3 = (new (_local2) as MovieClip);
DocumentClass.getInstance.lockButtons();
this.addChild(_local3);
}
public function addMirror(_arg1:Model):void{
_tumbModels.push(_arg1);
_mirrorModel = _arg1;
_mirrorModel.setItems(model.saveItems());
_mirrorModel.gotoAndStop(model.currentFrame);
}
public function get tumbModels():Array{
return (_tumbModels);
}
public function setModel(_arg1:int, _arg2:Model):void{
var _local3:String;
DocumentClass.getInstance._choosenModelsItems[_currentModelID] = model.saveItems();
_currentModelID = _arg1;
model.gotoAndStop((DocumentClass.getInstance.choosenModels[_arg1] + 1));
model.removeAll();
model.setItems(DocumentClass.getInstance.choosenModelsItems[_arg1]);
HBWardrobe(wardrobe).unlockMakeup();
for each (_local3 in DocumentClass.getInstance._choosenModelsItems[_arg1]) {
wardrobe.lockItem(_local3);
};
if (_mirrorModel != null){
_mirrorModel.gotoAndStop((DocumentClass.getInstance.choosenModels[_arg1] + 1));
_mirrorModel.removeAll();
_mirrorModel.setItems(DocumentClass.getInstance.choosenModelsItems[_arg1]);
WardrobePanel(this.getChildByName("id_4$_6")).reSetIt();
};
if (_mirrorModel){
_tumbModels = [_arg2, _mirrorModel];
} else {
_tumbModels = [_arg2];
};
}
}
}//package pl.fabrykagier.hauteBothered.dressUp
Section 44
//HBModel (pl.fabrykagier.hauteBothered.dressUp.HBModel)
package pl.fabrykagier.hauteBothered.dressUp {
import pl.fabrykagier.framework.gameCharacters.model.*;
public class HBModel extends Model {
public function HBModel(){
this.styleExeptions["dress"] = ["skirt", "blouse"];
this.styleExeptions["skirt"] = ["dress"];
this.styleExeptions["blouse"] = ["dress"];
this.gotoAndStop(1);
}
}
}//package pl.fabrykagier.hauteBothered.dressUp
Section 45
//HBWardrobe (pl.fabrykagier.hauteBothered.dressUp.HBWardrobe)
package pl.fabrykagier.hauteBothered.dressUp {
import pl.fabrykagier.engines.dressUp.*;
import flash.filters.*;
public class HBWardrobe extends Wardrobe {
private var glow:GlowFilter;
private static const UNLOCKABLE:Array = ["hair", "eye", "shadow", "lip"];
public function HBWardrobe(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Boolean;
var _local7:Boolean;
var _local8:Number;
super();
_local1 = 15915957;
_local2 = 1;
_local3 = 2;
_local4 = 2;
_local5 = 10;
_local6 = false;
_local7 = false;
_local8 = BitmapFilterQuality.HIGH;
glow = new GlowFilter(_local1, _local2, _local3, _local4, _local5, _local8, _local6, _local7);
}
override public function clearHighlight(_arg1:String):void{
if (!getItemObject(_arg1)){
return;
};
super.clearHighlight(_arg1);
getItemObject(_arg1).filters = [];
getItemObject(_arg1).alpha = 1;
}
private function isMakeUp(_arg1:String):Boolean{
var _local2:String;
for each (_local2 in UNLOCKABLE) {
if (_arg1.indexOf(_local2) != -1){
return (true);
};
};
return (false);
}
public function unlockMakeup():void{
var _local1:HBWardrobeItem;
var _local2:String;
for each (_local1 in itemsList) {
for each (_local2 in UNLOCKABLE) {
if (_local1.currentLabel.indexOf(_local2) != -1){
this.unLockItem(_local1.currentLabel);
};
};
};
}
override public function unLockItem(_arg1:String):void{
if (!getItemObject(_arg1)){
return;
};
super.unLockItem(_arg1);
getItemObject(_arg1).filters = [];
getItemObject(_arg1).alpha = 1;
}
override public function lockItem(_arg1:String):void{
var _local2:Array;
if (!getItemObject(_arg1)){
return;
};
super.lockItem(_arg1);
if (isMakeUp(_arg1)){
_local2 = new Array();
_local2.push(glow);
getItemObject(_arg1).filters = _local2;
} else {
getItemObject(_arg1).alpha = 0.3;
};
}
override public function highlightItem(_arg1:String):void{
var _local2:Array;
if (!getItemObject(_arg1)){
return;
};
super.highlightItem(_arg1);
if (isMakeUp(_arg1)){
_local2 = new Array();
_local2.push(glow);
getItemObject(_arg1).filters = _local2;
} else {
getItemObject(_arg1).alpha = 0.3;
};
}
}
}//package pl.fabrykagier.hauteBothered.dressUp
Section 46
//HBWardrobeItem (pl.fabrykagier.hauteBothered.dressUp.HBWardrobeItem)
package pl.fabrykagier.hauteBothered.dressUp {
import flash.display.*;
import pl.fabrykagier.engines.dressUp.*;
public class HBWardrobeItem extends WardrobeItem {
public var head_04_elegant:MovieClip;
public function HBWardrobeItem(){
this.buttonMode = true;
}
override public function lock():void{
super.lock();
this.buttonMode = false;
}
override public function unlcok():void{
this.buttonMode = true;
super.unlcok();
}
}
}//package pl.fabrykagier.hauteBothered.dressUp
Section 47
//Mirror (pl.fabrykagier.hauteBothered.dressUp.Mirror)
package pl.fabrykagier.hauteBothered.dressUp {
import flash.display.*;
import flash.events.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
public class Mirror extends MovieClip {
public var model_:HBModel;
public function Mirror(){
this.addEventListener(Event.ADDED_TO_STAGE, addHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
private function destroy(_arg1:Event):void{
HBDressUpManager(this.parent).removeMirror();
this.removeEventListener(Event.ADDED_TO_STAGE, addHandler);
this.removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
private function addHandler(_arg1:Event):void{
HBDressUpManager(this.parent).addMirror((this.getChildByName("model_") as Model));
}
}
}//package pl.fabrykagier.hauteBothered.dressUp
Section 48
//Portrait (pl.fabrykagier.hauteBothered.dressUp.Portrait)
package pl.fabrykagier.hauteBothered.dressUp {
import flash.display.*;
import flash.events.*;
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.framework.utils.*;
import flash.text.*;
public class Portrait extends MovieClip {
private var _model:HBModel;
public var nameField:TextField;
public var model_:HBModel;
protected var _ID:int;
public function Portrait(){
var _local1:ParametersObject;
super();
this.gotoAndStop(1);
this.mouseChildren = false;
this.buttonMode = true;
this.addEventListener(Event.ADDED_TO_STAGE, addHandler);
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
_model = HBModel(this.getChildByName("model_"));
_local1 = new ParametersObject(this.name);
_ID = int(_local1.getValue("name"));
if (_ID == 0){
addHighLight();
};
_model.setItems(DocumentClass.getInstance._choosenModelsItems[_ID]);
_model.gotoAndStop((DocumentClass.getInstance._choosenModels[_ID] + 1));
TextField(this.getChildByName("nameField")).text = String(DocumentClass.MODELS_NAMES[DocumentClass.getInstance.choosenModels[this._ID]]).toUpperCase();
TextField(this.parent.getChildByName("yourStyle_")).text = ("Your Style is: " + String(DocumentClass.getInstance.parameters["style"]).toUpperCase());
this.addEventListener(MouseEvent.CLICK, setModelHandler);
}
private function destroy(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
this.removeEventListener(MouseEvent.CLICK, setModelHandler);
this.removeEventListener(Event.ADDED_TO_STAGE, addHandler);
}
private function addHighLight():void{
this.gotoAndStop(2);
}
private function setModelHandler(_arg1:MouseEvent):void{
var _local2:int;
var _local3:DisplayObject;
HBDressUpManager(this.parent.parent).setModel(_ID, _model);
_local2 = 0;
while (_local2 < this.parent.numChildren) {
_local3 = this.parent.getChildAt(_local2);
if ((_local3 is Portrait)){
Portrait(_local3).removeHighLight();
};
_local2++;
};
this.addHighLight();
}
private function addHandler(_arg1:Event):void{
if (this._ID == 0){
HBDressUpManager(this.parent.parent).tumbModels.push(_model);
};
}
public function removeHighLight():void{
this.gotoAndStop(1);
}
}
}//package pl.fabrykagier.hauteBothered.dressUp
Section 49
//WardrobePanel (pl.fabrykagier.hauteBothered.dressUp.WardrobePanel)
package pl.fabrykagier.hauteBothered.dressUp {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import pl.fabrykagier.engines.dressUp.*;
import pl.fabrykagier.framework.utils.*;
public class WardrobePanel extends MovieClip {
public var container_:MovieClip;
protected var _container:MovieClip;
public var container_1:MovieClip;
public var container_3:MovieClip;
public var _right:MovieClip;
protected var _maxWidth:Number;// = 150
private var _leftLock:Boolean;// = false
private var _rollingDirection:int;
private var _category:Array;
protected var _maxHight:Number;// = 50
private var _zero:Number;
private var _rightButton:MovieClip;
private var _subCategoryIDs:Array;
private var _ID:int;
protected var _margin:Number;// = 5
private var _leftButton:MovieClip;
private var _rollingSpeed:Number;// = 1
public var _left:MovieClip;
private var _rightLock:Boolean;// = false
public var container_4:MovieClip;
private static const CATEGORIES:Array = [["neck", "hand", "head"], ["dress", "blouse"], ["skirt"], ["shoes"], ["hair"], ["eye"], ["shadow"], ["lip"]];
public function WardrobePanel(){
var _local1:DisplayObject;
var _local2:int;
var _local3:ParametersObject;
_margin = 5;
_maxHight = 50;
_maxWidth = 150;
_leftLock = false;
_rightLock = false;
_rollingSpeed = 1;
_subCategoryIDs = [4];
super();
_local2 = 0;
while (_local2 < this.numChildren) {
_local1 = this.getChildAt(_local2);
if (_local1.name.indexOf("container_") > -1){
_container = MovieClip(_local1);
break;
};
_local2++;
};
_zero = _container.x;
this._maxHight = _container.height;
this._maxWidth = _container.width;
_local3 = new ParametersObject(this.name);
_ID = int(_local3.getValue("id"));
setCategory();
this.addEventListener(Event.ADDED_TO_STAGE, setIt);
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
private function mouseOverHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.currentTarget);
if ((((_local2 == _leftButton)) && (!(_leftLock)))){
_local2.gotoAndStop(2);
};
if ((((_local2 == _rightButton)) && (!(_rightLock)))){
_local2.gotoAndStop(2);
};
}
private function destroy(_arg1:Event):void{
this.removeEventListener(Event.ADDED_TO_STAGE, setIt);
this.removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
this.removeEventListener(Event.ENTER_FRAME, rollHandler);
if (_leftButton != null){
_leftButton.removeEventListener(MouseEvent.MOUSE_DOWN, startRollingHandler);
_leftButton.removeEventListener(MouseEvent.MOUSE_UP, stopRollingHandler);
_leftButton.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
_leftButton.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
_rightButton.removeEventListener(MouseEvent.MOUSE_DOWN, startRollingHandler);
_rightButton.removeEventListener(MouseEvent.MOUSE_UP, stopRollingHandler);
_rightButton.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
_rightButton.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
};
}
private function rollHandler(_arg1:Event):void{
_container.x = (_container.x + (_rollingDirection * _rollingSpeed));
_rollingSpeed = (_rollingSpeed * 1.1);
if (_rollingDirection == 1){
if (_container.x > _zero){
_leftLock = true;
_leftButton.gotoAndStop(1);
_container.x = _zero;
this.removeEventListener(Event.ENTER_FRAME, rollHandler);
};
} else {
if (((-(_zero) + _container.x) + _container.width) < _maxWidth){
_rightLock = true;
_rightButton.gotoAndStop(1);
_container.x = ((_maxWidth - _container.width) + _zero);
this.removeEventListener(Event.ENTER_FRAME, rollHandler);
};
};
_rightButton.visible = !(_rightLock);
_leftButton.visible = !(_leftLock);
}
private function setIt(_arg1:Event):void{
var _local2:Array;
var _local3:Number;
var _local4:int;
var _local5:WardrobeItem;
var _local6:Array;
if ((this.parent.parent is HBDressUpManager)){
_local2 = HBDressUpManager(this.parent.parent)._wardrobe._itemsList;
} else {
_local2 = HBDressUpManager(this.parent)._wardrobe._itemsList;
};
_local3 = 0;
_local4 = 0;
for each (_local5 in _local2) {
_local6 = _local5.currentLabel.split("_");
if (_category.indexOf(_local6[0]) == -1){
} else {
_container.addChild(_local5);
resize(_local5);
var _temp1 = _local4;
_local4 = (_local4 + 1);
_local3 = setPosition(_local5, _local3, _temp1);
};
};
addButtons();
}
private function startRollingHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget == _leftButton){
if (_leftLock){
return;
};
_rightLock = false;
_rollingDirection = 1;
} else {
if (_rightLock){
return;
};
_leftLock = false;
_rollingDirection = -1;
};
_rollingSpeed = 8;
this.addEventListener(Event.ENTER_FRAME, rollHandler);
}
private function setCategory():void{
var _local1:String;
var _local2:Array;
var _local3:String;
var _local4:Array;
var _local5:int;
_category = [];
for each (_local1 in CATEGORIES[_ID]) {
_category.push(_local1);
};
if (_subCategoryIDs.indexOf(_ID) == -1){
return;
};
if ((this.parent.parent is HBDressUpManager)){
_local2 = HBDressUpManager(this.parent.parent)._model.saveItems();
} else {
_local2 = HBDressUpManager(this.parent)._model.saveItems();
};
for each (_local3 in _local2) {
_local4 = _local3.split("_");
_local5 = 0;
while (_local5 < _category.length) {
if (String(_local4[0]).indexOf(_category[_local5]) != -1){
_category[_local5] = _local4[0];
};
_local5++;
};
};
}
private function mouseOutHandler(_arg1:MouseEvent):void{
stopRollingHandler(_arg1);
MovieClip(_arg1.currentTarget).gotoAndStop(1);
}
private function addButtons():void{
if (this.getChildByName("_left") == null){
return;
};
_leftButton = MovieClip(this.getChildByName("_left"));
_rightButton = MovieClip(this.getChildByName("_right"));
_leftButton.gotoAndStop(1);
_rightButton.gotoAndStop(1);
_leftButton.buttonMode = true;
_rightButton.buttonMode = true;
if (_container.width <= _maxWidth){
_rightLock = true;
};
_leftLock = true;
_leftButton.addEventListener(MouseEvent.MOUSE_DOWN, startRollingHandler);
_leftButton.addEventListener(MouseEvent.MOUSE_UP, stopRollingHandler);
_leftButton.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
_leftButton.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
_rightButton.addEventListener(MouseEvent.MOUSE_DOWN, startRollingHandler);
_rightButton.addEventListener(MouseEvent.MOUSE_UP, stopRollingHandler);
_rightButton.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
_rightButton.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
_rightButton.visible = !(_rightLock);
_leftButton.visible = !(_leftLock);
}
protected function resize(_arg1:WardrobeItem):void{
var _local2:Number;
_local2 = (_arg1.width / _arg1.height);
_arg1.height = this._maxHight;
_arg1.width = (_local2 * this._maxHight);
}
protected function setPosition(_arg1:WardrobeItem, _arg2:Number, _arg3:int):Number{
var _local4:Rectangle;
_arg1.y = 0;
_arg1.x = 0;
_local4 = _arg1.getBounds(_container);
_arg1.y = (-(_local4.y) + 2);
_arg1.x = ((_arg2 - _local4.x) + 2);
_local4 = _arg1.getBounds(_container);
_arg2 = ((_local4.x + _local4.width) + _margin);
_local4 = _arg1.getBounds(_arg1);
return (_arg2);
}
public function reSetIt():void{
while (_container.numChildren > 0) {
_container.removeChildAt(0);
};
setCategory();
setIt(null);
}
private function stopRollingHandler(_arg1:MouseEvent):void{
this.removeEventListener(Event.ENTER_FRAME, rollHandler);
}
}
}//package pl.fabrykagier.hauteBothered.dressUp
Section 50
//WordrobePanelVertical (pl.fabrykagier.hauteBothered.dressUp.WordrobePanelVertical)
package pl.fabrykagier.hauteBothered.dressUp {
import flash.display.*;
import flash.geom.*;
import pl.fabrykagier.engines.dressUp.*;
public class WordrobePanelVertical extends WardrobePanel {
public var container_2:MovieClip;
override protected function setPosition(_arg1:WardrobeItem, _arg2:Number, _arg3:int):Number{
var _local4:Rectangle;
_local4 = _arg1.getBounds(_arg1);
if (_arg3 == 3){
_arg2 = 0;
};
_arg1.y = (_arg2 + -(_local4.y));
if (_arg3 >= 3){
_arg1.x = ((this._maxWidth + this._margin) - _local4.x);
} else {
_arg1.x = -(_local4.x);
};
return (((_arg2 + _arg1.height) + _margin));
}
override protected function resize(_arg1:WardrobeItem):void{
var _local2:Number;
_local2 = (_arg1.width / _arg1.height);
_arg1.width = (this._maxWidth - 2);
_arg1.height = ((this._maxWidth - 2) / _local2);
}
}
}//package pl.fabrykagier.hauteBothered.dressUp
Section 51
//Background (pl.fabrykagier.hauteBothered.ui.Background)
package pl.fabrykagier.hauteBothered.ui {
import flash.display.*;
import pl.fabrykagier.framework.main.*;
public class Background extends MovieClip {
public function Background(){
this.gotoAndStop((DocumentClass.getInstance.currentChapter + 1));
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 52
//ChooseModelButtonBase (pl.fabrykagier.hauteBothered.ui.ChooseModelButtonBase)
package pl.fabrykagier.hauteBothered.ui {
import flash.events.*;
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.framework.events.*;
import pl.fabrykagier.framework.utils.*;
import pl.fabrykagier.framework.ui.graphical.*;
import flash.filters.*;
public class ChooseModelButtonBase extends InterfaceButton {
protected var choosen:Boolean;// = false
protected var _ID:int;
protected static var _choosenIDs:Array;
protected static var _choosenNum:int;
protected static var _choosenIDsItems:Array;
protected static var _connector:EventDispatcher;
public function ChooseModelButtonBase(){
var _local1:ParametersObject;
choosen = false;
if (_connector == null){
_connector = new EventDispatcher();
_choosenIDs = [];
_choosenIDsItems = [null, null, null];
};
super();
_local1 = new ParametersObject(this.name);
_ID = int(_local1.getValue("name"));
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
_connector.addEventListener(Event.CHANGE, onChooseChangeHandler);
}
private function destroy(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
protected function addHighLight():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Boolean;
var _local7:Boolean;
var _local8:Number;
var _local9:GlowFilter;
var _local10:Array;
_local1 = 16737945;
_local2 = 1;
_local3 = 15;
_local4 = 15;
_local5 = 100;
_local6 = false;
_local7 = false;
_local8 = BitmapFilterQuality.LOW;
_local9 = new GlowFilter(_local1, _local2, _local3, _local4, _local5, _local8, _local6, _local7);
_local10 = new Array();
_local10.push(_local9);
this.filters = _local10;
}
private function onChooseChangeHandler(_arg1:FrameworkEvent):void{
if (int(_arg1.getParameter("ID")) != this._ID){
return;
};
if (int(_arg1.getParameter("choose")) == true){
addHighLight();
choosen = true;
} else {
removeHighLight();
choosen = false;
};
}
protected function removeHighLight():void{
this.filters = [];
}
override protected function onClick(_arg1:MouseEvent):void{
var _local2:FrameworkEvent;
if (DocumentClass.getInstance.areButtonsLocked){
return;
};
super.onClick(_arg1);
_local2 = new FrameworkEvent(Event.CHANGE);
_local2.addParameter("ID", this._ID);
if (choosen){
_local2.addParameter("choose", false);
if (_choosenIDs.indexOf(this._ID) > -1){
_choosenIDs.splice(_choosenIDs.indexOf(this._ID), 1);
};
} else {
_local2.addParameter("choose", true);
_choosenIDs.push(this._ID);
};
_connector.dispatchEvent(_local2);
if (_choosenIDs.length == 3){
DocumentClass.getInstance.lockButtons();
DocumentClass.getInstance.choosenModels = [int(_choosenIDs[0]), int(_choosenIDs[1]), int(_choosenIDs[2])];
DocumentClass.getInstance.choosenModelsItems = [_choosenIDsItems[0], _choosenIDsItems[1], _choosenIDsItems[2]];
DocumentClass.getInstance.play();
_connector = null;
};
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 53
//ChooseModelButtonModel (pl.fabrykagier.hauteBothered.ui.ChooseModelButtonModel)
package pl.fabrykagier.hauteBothered.ui {
import flash.display.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
import pl.fabrykagier.hauteBothered.dressUp.*;
public class ChooseModelButtonModel extends ChooseModelButtonBase {
private var highlightFilter:Array;
public var model_:HBModel;
public static const MODELS_MAKEUP:Array = [["eye_01", "lip_04_2", "hairBlond_01", "shadow_06"], ["eye_02", "lip_03_2", "hairBlond_02", "shadow_06"], ["eye_03", "lip_04_2", "hairBraun_03", "shadow_06"], ["eye_01", "lip_01_2", "hairRed_04", "shadow_06"], ["eye_02", "lip_03_2", "hairBlack_05", "shadow_06"], ["eye_03", "lip_01_2", "hairBraun_06", "shadow_06"]];
public function ChooseModelButtonModel(){
MovieClip(this.getChildByName("model_")).gotoAndStop((this._ID + 1));
highlightFilter = MovieClip(this.getChildByName("model_")).filters;
MovieClip(this.getChildByName("model_")).filters = [];
Model(this.getChildByName("model_")).setItems(MODELS_MAKEUP[_ID]);
}
override protected function removeHighLight():void{
MovieClip(this.getChildByName("model_")).filters = [];
}
override protected function addHighLight():void{
MovieClip(this.getChildByName("model_")).filters = highlightFilter;
ChooseModelButtonBase._choosenIDsItems[ChooseModelButtonBase._choosenIDs.indexOf(this._ID)] = MODELS_MAKEUP[_ID];
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 54
//ChooseModelButtonName (pl.fabrykagier.hauteBothered.ui.ChooseModelButtonName)
package pl.fabrykagier.hauteBothered.ui {
import pl.fabrykagier.framework.main.*;
import flash.text.*;
public class ChooseModelButtonName extends ChooseModelButtonBase {
public var name_:TextField;
public function ChooseModelButtonName(){
TextField(this.getChildByName("name_")).text = String(DocumentClass.MODELS_NAMES[this._ID]).toUpperCase();
}
override protected function addHighLight():void{
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 55
//FeedbackPopup (pl.fabrykagier.hauteBothered.ui.FeedbackPopup)
package pl.fabrykagier.hauteBothered.ui {
import flash.display.*;
import flash.text.*;
public class FeedbackPopup extends MovieClip {
public var feedback_:TextField;
public function FeedbackPopup(_arg1:Array){
TextField(this.getChildByName("feedback_")).text = _arg1.toString();
this.mouseEnabled = false;
this.mouseChildren = false;
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 56
//PopupAnimation (pl.fabrykagier.hauteBothered.ui.PopupAnimation)
package pl.fabrykagier.hauteBothered.ui {
import flash.display.*;
import flash.events.*;
import pl.fabrykagier.framework.main.*;
public class PopupAnimation extends MovieClip {
public var panel:MovieClip;
public var whole_mc:MovieClip;
public static const ON_REMOVE:String = "on_remove";
public static const ON_PLACE:String = "on_place";
public function PopupAnimation(){
lockButtons();
}
protected function onPlace():void{
stop();
unLockButtons();
dispatchEvent(new Event(ON_PLACE));
}
protected function lockButtons():void{
DocumentClass.getInstance.lockButtons();
}
protected function selfRemove(_arg1:Boolean=true):void{
this.stop();
if (this.parent){
this.parent.removeChild(this);
};
if (_arg1){
unLockButtons();
};
dispatchEvent(new Event(ON_REMOVE));
}
protected static function unLockButtons():void{
DocumentClass.getInstance.unlockButtons();
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 57
//PopupChapterPanel (pl.fabrykagier.hauteBothered.ui.PopupChapterPanel)
package pl.fabrykagier.hauteBothered.ui {
import flash.display.*;
import pl.fabrykagier.framework.main.*;
import flash.text.*;
public class PopupChapterPanel extends MovieClip {
public var playStage_true$:interface_button_okSmall;
public var textField_:TextField;
public var scoreFieldC1_:TextField;
private var _scoreBGC1:MovieClip;
private var _scoreBGC2:MovieClip;
public var scoreFieldC2_:TextField;
public var score2_:MovieClip;
public var score1_:MovieClip;
private var _info:TextField;
private var _scoreFieldC1:TextField;
private var _scoreFieldC2:TextField;
private static const CHARACTER_NAMES:Array = ["CLARE", "JAMIE", "HALEY", "SAMANTHA", "CLAY", "ALEXANDER"];
public function PopupChapterPanel(){
_info = TextField(this.getChildByName("textField_"));
_scoreBGC1 = MovieClip(this.getChildByName("score1_"));
_scoreBGC2 = MovieClip(this.getChildByName("score2_"));
_scoreFieldC1 = TextField(this.getChildByName("scoreFieldC1_"));
_scoreFieldC2 = TextField(this.getChildByName("scoreFieldC2_"));
fill();
}
private function fill():void{
this.gotoAndStop((DocumentClass.getInstance.currentChapter + 1));
switch (this.currentFrame){
case 1:
chapter1();
break;
case 2:
chapter2();
break;
case 3:
chapter3();
break;
};
}
private function chapter1():void{
var _local1:int;
_local1 = int(DocumentClass.getInstance.parameters["character"]);
_info.text = ((((((("Hello " + String(PopupChapterPanel.CHARACTER_NAMES[_local1])) + "! \n") + "So, you want to be a fashion designer? Great! The Manhattan Fashion Institute is a wonderful place to learn all about the industry and meet everyone you'll need to know. But first, you must pass your entrance exam. To succeed, you have to win over the judges by designing a collection. What are you waiting for? Let's begin!") + "\n\n") + "Helpful hint: You have selected a designer whose main focus is ") + String(DocumentClass.getInstance.parameters["style"]).toUpperCase()) + " fashion. In order to score top marks, makes sure your collection fits within this range.");
_scoreBGC1.visible = false;
_scoreFieldC1.visible = false;
_scoreBGC2.visible = false;
_scoreFieldC2.visible = false;
}
private function chapter3():void{
var _local1:String;
DocumentClass.getInstance.usedStyles.push(DocumentClass.getInstance.parameters["style"]);
if (DocumentClass.getInstance.usedStyles.indexOf("casual") == -1){
_local1 = "casual";
};
if (DocumentClass.getInstance.usedStyles.indexOf("party") == -1){
_local1 = "party";
};
if (DocumentClass.getInstance.usedStyles.indexOf("elegant") == -1){
_local1 = "elegant";
};
DocumentClass.getInstance.parameters["style"] = _local1;
_info.text = (((("Great job! \n" + "You passed the final exam and graduated with top marks. We knew you could do it. Now it's time to take on the fashion runways of New York City. For this task, your collection should be in ") + _local1.toUpperCase()) + " style.") + "\n\nGood luck! This is the chance of a lifetime.");
_scoreFieldC1.text = ("SCORE: " + DocumentClass.getInstance.chapterPoints[0]);
_scoreFieldC2.text = ("SCORE: " + DocumentClass.getInstance.chapterPoints[1]);
}
private function chapter2():void{
var _local1:int;
var _local2:String;
DocumentClass.getInstance.usedStyles.push(DocumentClass.getInstance.parameters["style"]);
_local1 = int(DocumentClass.getInstance.parameters["character"]);
if ((_local1 % 2) == 0){
_local2 = String(PopupChapterPanel.CHARACTER_NAMES[(_local1 + 1)]);
} else {
_local2 = String(PopupChapterPanel.CHARACTER_NAMES[(_local1 - 1)]);
};
_info.text = (((("" + "You passed the entrance exam and became a student at the Manhattan Fashion Institute. The two years that you spent there were a great learning experience, and you are now ready to design a new collection for your final exam. This time you’ll be working with another designer. Your partner will be ") + _local2.toUpperCase()) + ".\n\n") + "Please select from the choices below which style you would like to design in this round. Remember that to score top marks, your collection should be a reflection of this style.");
_scoreFieldC1.text = ("SCORE: " + DocumentClass.getInstance.chapterPoints[0]);
_scoreBGC2.visible = false;
_scoreFieldC2.visible = false;
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 58
//PopupFinalResultPanel (pl.fabrykagier.hauteBothered.ui.PopupFinalResultPanel)
package pl.fabrykagier.hauteBothered.ui {
import flash.display.*;
import pl.fabrykagier.framework.main.*;
import flash.text.*;
public class PopupFinalResultPanel extends MovieClip {
public var playStage_true$:interface_button_okSmall;
private var _infoScore:TextField;
public var textField_:TextField;
public var scoreFieldC1_:TextField;
public var scoreFieldC2_:TextField;
public var scoreFieldC3_:TextField;
public var scoreFieldAll_:TextField;
public var face_:MovieClip;
private var _info:TextField;
private var _scoreFieldC1:TextField;
private var _scoreFieldC3:TextField;
private var _scoreFieldC2:TextField;
public function PopupFinalResultPanel(){
var _local1:int;
super();
_info = TextField(this.getChildByName("textField_"));
_infoScore = TextField(this.getChildByName("scoreFieldAll_"));
_scoreFieldC1 = TextField(this.getChildByName("scoreFieldC1_"));
_scoreFieldC2 = TextField(this.getChildByName("scoreFieldC2_"));
_scoreFieldC3 = TextField(this.getChildByName("scoreFieldC3_"));
_scoreFieldC1.text = ("SCORE: " + DocumentClass.getInstance.chapterPoints[0]);
_scoreFieldC2.text = ("SCORE: " + DocumentClass.getInstance.chapterPoints[1]);
_scoreFieldC3.text = ("SCORE: " + DocumentClass.getInstance.chapterPoints[2]);
MovieClip(this.getChildByName("face_")).gotoAndStop((int(DocumentClass.getInstance.parameters["character"]) + 1));
_local1 = int(((DocumentClass.getInstance.chapterPoints[0] + DocumentClass.getInstance.chapterPoints[1]) + DocumentClass.getInstance.chapterPoints[2]));
_infoScore.text = ("FINAL SCORE: " + _local1.toString());
_info.text = ("You have created some fantastic designs and have a long career ahead of you. With your talent, you will go straight to the top in no time. " + "\n\nKeep up the great work. The fashion world already awaits your next collection! ");
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 59
//PopupGameOverPanel (pl.fabrykagier.hauteBothered.ui.PopupGameOverPanel)
package pl.fabrykagier.hauteBothered.ui {
import flash.display.*;
import pl.fabrykagier.framework.main.*;
import flash.text.*;
public class PopupGameOverPanel extends MovieClip {
public var finalScore_txt:TextField;
public var playGrandparent_true$playStage_true$:interface_button_nextChaptera;
public var playGrandparent_true$playStage_true$goto_chapterJump$:interface_button_retry;
public var playGrandparent_true$playStage_true$_0:interface_button_ok;
public function PopupGameOverPanel(){
TextField(this.getChildByName("finalScore_txt")).text = DocumentClass.getInstance.chapterPoints[DocumentClass.getInstance.currentChapter];
if (DocumentClass.getInstance.chapterPoints[DocumentClass.getInstance.currentChapter] > 800){
this.gotoAndStop((DocumentClass.getInstance.currentChapter + 1));
} else {
if ((DocumentClass.getInstance.currentChapter + 1) == 3){
this.gotoAndStop(5);
} else {
this.gotoAndStop(4);
};
};
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 60
//PopupModelSummaryPanel (pl.fabrykagier.hauteBothered.ui.PopupModelSummaryPanel)
package pl.fabrykagier.hauteBothered.ui {
import flash.display.*;
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.hauteBothered.dressUp.*;
import flash.text.*;
public class PopupModelSummaryPanel extends MovieClip {
public var textPoints_txt:TextField;
public var textStyle_txt:TextField;
public var textDetails_txt:TextField;
public function PopupModelSummaryPanel(){
TextField(this.getChildByName("textDetails_txt")).text = Feedback.generateJudgeing(DocumentClass.getInstance._choosenModelsItems[DocumentClass.getInstance.currentModel], DocumentClass.getInstance.parameters["style"]);
TextField(this.getChildByName("textStyle_txt")).text = ("Your style is: " + DocumentClass.getInstance.parameters["style"]);
TextField(this.getChildByName("textPoints_txt")).text = ("Model's score: " + Feedback.generateScore(DocumentClass.getInstance._choosenModelsItems[DocumentClass.getInstance.currentModel], DocumentClass.getInstance.parameters["style"]).toString());
DocumentClass.getInstance.chapterPoints[DocumentClass.getInstance.currentChapter] = (DocumentClass.getInstance.chapterPoints[DocumentClass.getInstance.currentChapter] + Feedback.generateScore(DocumentClass.getInstance._choosenModelsItems[DocumentClass.getInstance.currentModel], DocumentClass.getInstance.parameters["style"]));
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 61
//ShowModelContainer (pl.fabrykagier.hauteBothered.ui.ShowModelContainer)
package pl.fabrykagier.hauteBothered.ui {
import flash.display.*;
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
import pl.fabrykagier.hauteBothered.dressUp.*;
public class ShowModelContainer extends MovieClip {
public var model_:HBModel;
public function ShowModelContainer(){
Model(this.getChildByName("model_")).setItems(DocumentClass.getInstance._choosenModelsItems[DocumentClass.getInstance.currentModel]);
Model(this.getChildByName("model_")).gotoAndStop((DocumentClass.getInstance._choosenModels[DocumentClass.getInstance.currentModel] + 1));
Model(this.getChildByName("model_")).mouseEnabled = false;
Model(this.getChildByName("model_")).mouseChildren = false;
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 62
//ShowModelContainerTripple (pl.fabrykagier.hauteBothered.ui.ShowModelContainerTripple)
package pl.fabrykagier.hauteBothered.ui {
import flash.display.*;
import flash.events.*;
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
import pl.fabrykagier.hauteBothered.dressUp.*;
import flash.text.*;
public class ShowModelContainerTripple extends MovieClip {
private var _feedbacks:Array;
var _models:Array;
public var model_0:HBModel;
public var model_1:HBModel;
public var model_2:HBModel;
public function ShowModelContainerTripple(){
var _local1:int;
_models = [];
_feedbacks = [];
super();
_local1 = 0;
while (_local1 < 3) {
_models.push(getChildAt(_local1));
Model(_models[_local1]).gotoAndStop((DocumentClass.getInstance._choosenModels[_local1] + 1));
Model(_models[_local1]).setItems(DocumentClass.getInstance._choosenModelsItems[_local1]);
Model(_models[_local1]).mouseChildren = false;
Model(_models[_local1]).addEventListener(MouseEvent.MOUSE_OVER, showPopupHandler);
_feedbacks.push(Feedback.geterateFeedback(DocumentClass.getInstance._choosenModelsItems[_local1], DocumentClass.getInstance.parameters["style"]));
_local1++;
};
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
private function destroy(_arg1:Event):void{
var _local2:Model;
for each (_local2 in _models) {
_local2.removeEventListener(MouseEvent.MOUSE_OVER, showPopupHandler);
};
this.removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
private function showPopupHandler(_arg1:MouseEvent):void{
if (DocumentClass.getInstance.areButtonsLocked){
return;
};
MovieClip(DocumentClass.getInstance.getChildByName("feedbackPanel_")).gotoAndStop((_models.indexOf(_arg1.currentTarget) + 2));
TextField(MovieClip(DocumentClass.getInstance.getChildByName("feedbackPanel_")).getChildByName("feedback_")).text = String(_feedbacks[_models.indexOf(_arg1.currentTarget)]);
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 63
//UpTo3ModelsButton (pl.fabrykagier.hauteBothered.ui.UpTo3ModelsButton)
package pl.fabrykagier.hauteBothered.ui {
import pl.fabrykagier.framework.main.*;
import pl.fabrykagier.framework.utils.*;
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public class UpTo3ModelsButton extends DelayedGotoButton {
public function UpTo3ModelsButton(){
var _local1:ParametersObject;
_local1 = new ParametersObject(this.name);
if (_local1.getValue("atChapter3") != undefined){
if (DocumentClass.getInstance.currentChapter == 2){
if (_local1.getValue("atChapter3") == "hide"){
this.visible = false;
};
} else {
if (_local1.getValue("atChapter3") == "show"){
this.visible = false;
};
};
};
if (DocumentClass.getInstance.currentModel == 2){
if (_local1.getValue("at3") == "hide"){
this.visible = false;
};
} else {
if (_local1.getValue("at3") == "show"){
this.visible = false;
};
};
super();
}
}
}//package pl.fabrykagier.hauteBothered.ui
Section 64
//HBCandystandApiBridge (pl.fabrykagier.hauteBothered.HBCandystandApiBridge)
package pl.fabrykagier.hauteBothered {
import flash.display.*;
import pl.fabrykagier.framework.utils.candystand.*;
import pl.fabrykagier.framework.main.*;
public class HBCandystandApiBridge extends CandystandApiBridge {
public function HBCandystandApiBridge(_arg1:MovieClip, _arg2:String, _arg3:String, _arg4:Boolean=false){
super(_arg1, _arg2, _arg3, _arg4);
}
override public function quitSubmit():void{
var _local1:int;
_local1 = ((DocumentClass.getInstance.chapterPoints[0] + DocumentClass.getInstance.chapterPoints[1]) + DocumentClass.getInstance.chapterPoints[2]);
if (bestScore < _local1){
bestScore = _local1;
};
trace("HBCandystandApiBridge.quitSubmit()");
super.quitSubmit();
}
}
}//package pl.fabrykagier.hauteBothered
Section 65
//bg_exam (bg_exam)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class bg_exam extends Background {
}
}//package
Section 66
//bg_school (bg_school)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class bg_school extends Background {
}
}//package
Section 67
//clickSound (clickSound)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class clickSound extends SoundObject {
}
}//package
Section 68
//clothes (clothes)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class clothes extends SoundObject {
}
}//package
Section 69
//clothes_accGlasses_container (clothes_accGlasses_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_accGlasses_container extends ModelItem {
}
}//package
Section 70
//clothes_accHand_container (clothes_accHand_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_accHand_container extends ModelItem {
}
}//package
Section 71
//clothes_accHead_container (clothes_accHead_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_accHead_container extends ModelItem {
}
}//package
Section 72
//clothes_accHead_container2 (clothes_accHead_container2)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_accHead_container2 extends ModelItem {
}
}//package
Section 73
//clothes_accNeck_front_container (clothes_accNeck_front_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_accNeck_front_container extends ModelItem {
}
}//package
Section 74
//clothes_accNeck_rear_container (clothes_accNeck_rear_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_accNeck_rear_container extends ModelItem {
}
}//package
Section 75
//clothes_bottom_front_container (clothes_bottom_front_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_bottom_front_container extends ModelItem {
}
}//package
Section 76
//clothes_bottom_rear_container (clothes_bottom_rear_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_bottom_rear_container extends ModelItem {
}
}//package
Section 77
//clothes_dress_front_container (clothes_dress_front_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_dress_front_container extends ModelItem {
}
}//package
Section 78
//clothes_dress_rear_container (clothes_dress_rear_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_dress_rear_container extends ModelItem {
}
}//package
Section 79
//clothes_shoes_front_container (clothes_shoes_front_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_shoes_front_container extends ModelItem {
}
}//package
Section 80
//clothes_shoes_rear_container (clothes_shoes_rear_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_shoes_rear_container extends ModelItem {
}
}//package
Section 81
//clothes_top_front_container (clothes_top_front_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_top_front_container extends ModelItem {
}
}//package
Section 82
//clothes_top_rear_container (clothes_top_rear_container)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class clothes_top_rear_container extends ModelItem {
}
}//package
Section 83
//draggingItemsSet (draggingItemsSet)
package {
import flash.display.*;
public dynamic class draggingItemsSet extends MovieClip {
public var head_04_elegant:MovieClip;
}
}//package
Section 84
//dressup_modelPortrait (dressup_modelPortrait)
package {
import pl.fabrykagier.hauteBothered.dressUp.*;
public dynamic class dressup_modelPortrait extends Portrait {
}
}//package
Section 85
//dressup_panel (dressup_panel)
package {
import pl.fabrykagier.hauteBothered.dressUp.*;
public dynamic class dressup_panel extends WardrobePanel {
}
}//package
Section 86
//hairs_bottom (hairs_bottom)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class hairs_bottom extends ModelItemLocked {
}
}//package
Section 87
//hairs_top (hairs_top)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class hairs_top extends ModelItemLocked {
}
}//package
Section 88
//info_afterPreshow (info_afterPreshow)
package {
import pl.fabrykagier.framework.media.*;
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class info_afterPreshow extends PopupAnimation {
public function info_afterPreshow(){
addFrameScript(1, frame2, 15, frame16, 27, frame28);
}
function frame16(){
onPlace();
}
function frame2(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame28(){
selfRemove();
}
}
}//package
Section 89
//info_dressUp (info_dressUp)
package {
import pl.fabrykagier.framework.media.*;
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class info_dressUp extends PopupAnimation {
public function info_dressUp(){
addFrameScript(1, frame2, 15, frame16, 27, frame28);
}
function frame16(){
onPlace();
}
function frame2(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame28(){
selfRemove();
}
}
}//package
Section 90
//info_naked (info_naked)
package {
import pl.fabrykagier.framework.media.*;
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class info_naked extends PopupAnimation {
public function info_naked(){
addFrameScript(1, frame2, 15, frame16, 27, frame28);
}
function frame16(){
onPlace();
}
function frame2(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame28(){
selfRemove();
}
}
}//package
Section 91
//info_preShow (info_preShow)
package {
import pl.fabrykagier.framework.media.*;
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class info_preShow extends PopupAnimation {
public function info_preShow(){
addFrameScript(1, frame2, 15, frame16, 27, frame28);
}
function frame16(){
onPlace();
}
function frame2(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame28(){
selfRemove();
}
}
}//package
Section 92
//info_show (info_show)
package {
import pl.fabrykagier.framework.media.*;
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class info_show extends PopupAnimation {
public function info_show(){
addFrameScript(1, frame2, 14, frame15, 27, frame28);
}
function frame15(){
onPlace();
}
function frame2(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame28(){
selfRemove();
}
}
}//package
Section 93
//interface_banner_link (interface_banner_link)
package {
import pl.fabrykagier.framework.ui.graphical.*;
public dynamic class interface_banner_link extends GotoURL {
public function interface_banner_link(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 94
//interface_button_casual (interface_button_casual)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_casual extends GotoButton {
public function interface_button_casual(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 95
//interface_button_clickToContinue (interface_button_clickToContinue)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_clickToContinue extends DelayedGotoButton {
public function interface_button_clickToContinue(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 96
//interface_button_elegant (interface_button_elegant)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_elegant extends GotoButton {
public function interface_button_elegant(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 97
//interface_button_ImReady (interface_button_ImReady)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_ImReady extends DelayedGotoButton {
public function interface_button_ImReady(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 98
//interface_button_nextChapter (interface_button_nextChapter)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_button_nextChapter extends UpTo3ModelsButton {
public function interface_button_nextChapter(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 99
//interface_button_nextChaptera (interface_button_nextChaptera)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_nextChaptera extends GotoButton {
public function interface_button_nextChaptera(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 100
//interface_button_NotYet (interface_button_NotYet)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_NotYet extends GotoButton {
public function interface_button_NotYet(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 101
//interface_button_ok (interface_button_ok)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_ok extends GotoButton {
public function interface_button_ok(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 102
//interface_button_okSmall (interface_button_okSmall)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_okSmall extends GotoButton {
public function interface_button_okSmall(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 103
//interface_button_panel_backToDresses (interface_button_panel_backToDresses)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_panel_backToDresses extends DelayedGotoButton {
public function interface_button_panel_backToDresses(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 104
//interface_button_panel_dresses (interface_button_panel_dresses)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_panel_dresses extends GotoButton {
public function interface_button_panel_dresses(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 105
//interface_button_panel_exam (interface_button_panel_exam)
package {
import pl.fabrykagier.framework.ui.graphical.*;
public dynamic class interface_button_panel_exam extends InterfaceButton {
public function interface_button_panel_exam(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 106
//interface_button_panel_feedback (interface_button_panel_feedback)
package {
import pl.fabrykagier.framework.ui.graphical.*;
public dynamic class interface_button_panel_feedback extends InterfaceButton {
public function interface_button_panel_feedback(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 107
//interface_button_panel_makeUp (interface_button_panel_makeUp)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_panel_makeUp extends GotoButton {
public function interface_button_panel_makeUp(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 108
//interface_button_panel_nextModel (interface_button_panel_nextModel)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_button_panel_nextModel extends UpTo3ModelsButton {
public function interface_button_panel_nextModel(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 109
//interface_button_party (interface_button_party)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_party extends GotoButton {
public function interface_button_party(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 110
//interface_button_pickModelModel (interface_button_pickModelModel)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_button_pickModelModel extends ChooseModelButtonModel {
public function interface_button_pickModelModel(){
addFrameScript(0, frame1, 10, frame11, 11, frame12, 12, frame13);
}
function frame12(){
gotoAndPlay("off");
}
function frame13(){
stop();
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package
Section 111
//interface_button_pickModelName (interface_button_pickModelName)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_button_pickModelName extends ChooseModelButtonName {
public function interface_button_pickModelName(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 112
//interface_button_playAgain (interface_button_playAgain)
package {
import pl.fabrykagier.framework.utils.candystand.*;
public dynamic class interface_button_playAgain extends CandystandQuitSubmitButton {
public function interface_button_playAgain(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 113
//interface_button_retry (interface_button_retry)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_retry extends DelayedGotoButton {
public function interface_button_retry(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 114
//interface_button_show_finalScore (interface_button_show_finalScore)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_button_show_finalScore extends UpTo3ModelsButton {
public function interface_button_show_finalScore(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 115
//interface_button_sound (interface_button_sound)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_button_sound extends MutteButton {
public function interface_button_sound(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 116
//interface_chapter (interface_chapter)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_chapter extends PopupChapterPanel {
public function interface_chapter(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 117
//interface_photo_alexander (interface_photo_alexander)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_photo_alexander extends DelayedGotoButton {
public function interface_photo_alexander(){
addFrameScript(0, frame1, 11, frame12, 12, frame13, 19, frame20);
}
function frame12(){
stop();
}
function frame13(){
gotoAndPlay("off");
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 118
//interface_photo_clay (interface_photo_clay)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_photo_clay extends DelayedGotoButton {
public function interface_photo_clay(){
addFrameScript(0, frame1, 11, frame12, 12, frame13, 19, frame20);
}
function frame12(){
stop();
}
function frame13(){
gotoAndPlay("off");
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 119
//interface_photo_jo (interface_photo_jo)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_photo_jo extends DelayedGotoButton {
public function interface_photo_jo(){
addFrameScript(0, frame1, 11, frame12, 12, frame13, 19, frame20);
}
function frame12(){
stop();
}
function frame13(){
gotoAndPlay("off");
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 120
//interface_photo_mckenzie (interface_photo_mckenzie)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_photo_mckenzie extends DelayedGotoButton {
public function interface_photo_mckenzie(){
addFrameScript(0, frame1, 11, frame12, 12, frame13, 19, frame20);
}
function frame12(){
stop();
}
function frame13(){
gotoAndPlay("off");
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 121
//interface_photo_neil (interface_photo_neil)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_photo_neil extends DelayedGotoButton {
public function interface_photo_neil(){
addFrameScript(0, frame1, 11, frame12, 12, frame13, 19, frame20);
}
function frame12(){
stop();
}
function frame13(){
gotoAndPlay("off");
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 122
//interface_photo_phoebe (interface_photo_phoebe)
package {
import pl.fabrykagier.framework.ui.graphical.buttons.*;
public dynamic class interface_photo_phoebe extends DelayedGotoButton {
public function interface_photo_phoebe(){
addFrameScript(0, frame1, 11, frame12, 12, frame13, 19, frame20);
}
function frame12(){
stop();
}
function frame13(){
gotoAndPlay("off");
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 123
//interface_popup_FinalResult (interface_popup_FinalResult)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_popup_FinalResult extends PopupFinalResultPanel {
public function interface_popup_FinalResult(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 124
//interface_popup_gameOver (interface_popup_gameOver)
package {
import pl.fabrykagier.framework.media.*;
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_popup_gameOver extends PopupAnimation {
public function interface_popup_gameOver(){
addFrameScript(1, frame2, 15, frame16, 26, frame27);
}
function frame16(){
onPlace();
}
function frame2(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame27(){
selfRemove();
}
}
}//package
Section 125
//interface_popup_gameOver_panel (interface_popup_gameOver_panel)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_popup_gameOver_panel extends PopupGameOverPanel {
}
}//package
Section 126
//interface_popup_info_welcome (interface_popup_info_welcome)
package {
import pl.fabrykagier.framework.media.*;
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_popup_info_welcome extends PopupAnimation {
public function interface_popup_info_welcome(){
addFrameScript(1, frame2, 15, frame16, 27, frame28);
}
function frame16(){
onPlace();
}
function frame2(){
SoundManager.playSound({name:"whoosh", loops:1});
}
function frame28(){
selfRemove();
}
}
}//package
Section 127
//interface_popups_show_panel (interface_popups_show_panel)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class interface_popups_show_panel extends PopupModelSummaryPanel {
}
}//package
Section 128
//makeUp_panel (makeUp_panel)
package {
import pl.fabrykagier.hauteBothered.dressUp.*;
public dynamic class makeUp_panel extends Mirror {
}
}//package
Section 129
//makeUp_panel_eyes (makeUp_panel_eyes)
package {
import pl.fabrykagier.hauteBothered.dressUp.*;
public dynamic class makeUp_panel_eyes extends WardrobePanel {
}
}//package
Section 130
//makeUp_panel_hair (makeUp_panel_hair)
package {
import pl.fabrykagier.hauteBothered.dressUp.*;
public dynamic class makeUp_panel_hair extends WordrobePanelVertical {
}
}//package
Section 131
//makeUp_panel_lips (makeUp_panel_lips)
package {
import pl.fabrykagier.hauteBothered.dressUp.*;
public dynamic class makeUp_panel_lips extends WardrobePanel {
}
}//package
Section 132
//makeUp_panel_shade (makeUp_panel_shade)
package {
import pl.fabrykagier.hauteBothered.dressUp.*;
public dynamic class makeUp_panel_shade extends WardrobePanel {
}
}//package
Section 133
//model_eyes (model_eyes)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class model_eyes extends ModelItemLocked {
}
}//package
Section 134
//model_eyeShadow (model_eyeShadow)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class model_eyeShadow extends ModelItemLocked {
}
}//package
Section 135
//model_lips (model_lips)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class model_lips extends ModelItemLocked {
}
}//package
Section 136
//music (music)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class music extends SoundObject {
}
}//package
Section 137
//photo (photo)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class photo extends SoundObject {
}
}//package
Section 138
//rollOverSound (rollOverSound)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class rollOverSound extends SoundObject {
}
}//package
Section 139
//ShowModelContainer (ShowModelContainer)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class ShowModelContainer extends ShowModelContainer {
}
}//package
Section 140
//ShowModelContainerTriple (ShowModelContainerTriple)
package {
import pl.fabrykagier.hauteBothered.ui.*;
public dynamic class ShowModelContainerTriple extends ShowModelContainerTripple {
}
}//package
Section 141
//stars (stars)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class stars extends SoundObject {
}
}//package
Section 142
//title_candyLogo (title_candyLogo)
package {
import pl.fabrykagier.framework.ui.graphical.*;
public dynamic class title_candyLogo extends GotoURL {
public function title_candyLogo(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
gotoAndPlay("off");
}
function frame4(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 143
//wardrobeItemsSet (wardrobeItemsSet)
package {
import pl.fabrykagier.hauteBothered.dressUp.*;
public dynamic class wardrobeItemsSet extends HBWardrobeItem {
}
}//package
Section 144
//whoosh (whoosh)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class whoosh extends SoundObject {
}
}//package