Section 1
//GameEvent (com.ubi.events.GameEvent)
package com.ubi.events {
import flash.events.*;
public class GameEvent extends Event {
public var score:Number;
public static const SUBMIT_SCORE:String = "submitScore";
public static const GET_HIGH_SCORES:String = "getHIgheScores";
public function GameEvent(_arg1:String, _arg2:Number=0){
super(_arg1, bubbles, cancelable);
this.score = _arg2;
}
override public function toString():String{
return (formatToString("GameEvent", "score"));
}
override public function clone():Event{
return (new GameEvent(type, score));
}
}
}//package com.ubi.events
Section 2
//GameBase (com.ubi.game.GameBase)
package com.ubi.game {
import flash.display.*;
import com.ubi.events.*;
public class GameBase extends MovieClip {
public function destroy():void{
}
public function submitScore(_arg1:Number):void{
dispatchEvent(new GameEvent(GameEvent.SUBMIT_SCORE, _arg1));
}
public function getHighScores():void{
dispatchEvent(new GameEvent(GameEvent.GET_HIGH_SCORES));
}
public function onHighScores(_arg1:Array):void{
var _local2:Object;
for each (_local2 in _arg1) {
};
}
public function playAgain():void{
}
}
}//package com.ubi.game
Section 3
//button_level1_brush_130 (PetzFashion_fla.button_level1_brush_130)
package PetzFashion_fla {
import flash.display.*;
public dynamic class button_level1_brush_130 extends MovieClip {
public function button_level1_brush_130(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 4
//button_level1_dry_128 (PetzFashion_fla.button_level1_dry_128)
package PetzFashion_fla {
import flash.display.*;
public dynamic class button_level1_dry_128 extends MovieClip {
public function button_level1_dry_128(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 5
//button_level1_wash_125 (PetzFashion_fla.button_level1_wash_125)
package PetzFashion_fla {
import flash.display.*;
public dynamic class button_level1_wash_125 extends MovieClip {
public function button_level1_wash_125(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 6
//characters_pets_91 (PetzFashion_fla.characters_pets_91)
package PetzFashion_fla {
import flash.display.*;
public dynamic class characters_pets_91 extends MovieClip {
public function characters_pets_91(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 7
//Flash_29 (PetzFashion_fla.Flash_29)
package PetzFashion_fla {
import flash.display.*;
public dynamic class Flash_29 extends MovieClip {
public function Flash_29(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
MovieClip(this.parent).gotoAndPlay(55);
}
}
}//package PetzFashion_fla
Section 8
//interface_effects_stars_262 (PetzFashion_fla.interface_effects_stars_262)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_effects_stars_262 extends MovieClip {
public function interface_effects_stars_262(){
addFrameScript(56, frame57);
}
function frame57(){
stop();
}
}
}//package PetzFashion_fla
Section 9
//interface_hud_120 (PetzFashion_fla.interface_hud_120)
package PetzFashion_fla {
import flash.display.*;
import flash.text.*;
public dynamic class interface_hud_120 extends MovieClip {
public var scoreCounter:TextField;
public var photoCounter:TextField;
public var muteBtn:Button_Hud_Sound_On_Stage;
public var time:TextField;
}
}//package PetzFashion_fla
Section 10
//interface_petPick_112 (PetzFashion_fla.interface_petPick_112)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_petPick_112 extends MovieClip {
public var petName:MovieClip;
public var petNext:button_hud_arrow;
public var petPrev:button_hud_arrow;
}
}//package PetzFashion_fla
Section 11
//interface_petPick_name_114 (PetzFashion_fla.interface_petPick_name_114)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_petPick_name_114 extends MovieClip {
public function interface_petPick_name_114(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 12
//interface_popup_level1_124 (PetzFashion_fla.interface_popup_level1_124)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_popup_level1_124 extends MovieClip {
public var gotoAndPlayGrandparent_washPopupOut$:button_okay_hello;
}
}//package PetzFashion_fla
Section 13
//interface_popup_level1_ending_232 (PetzFashion_fla.interface_popup_level1_ending_232)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_popup_level1_ending_232 extends MovieClip {
public var gotoAndPlayGrandparent_washOut$:button_okay_hello;
}
}//package PetzFashion_fla
Section 14
//interface_popup_level1_summary_133 (PetzFashion_fla.interface_popup_level1_summary_133)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_popup_level1_summary_133 extends MovieClip {
public var gotoAndPlayGrandparent_washSummaryOutGood$:button_okay_hello;
public function interface_popup_level1_summary_133(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 15
//interface_popup_level1_summarybad_132 (PetzFashion_fla.interface_popup_level1_summarybad_132)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_popup_level1_summarybad_132 extends MovieClip {
public var gotoAndPlayGrandparent_washSummaryOutBad$:button_okay_hello;
public function interface_popup_level1_summarybad_132(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 16
//interface_popup_level2_ending_233 (PetzFashion_fla.interface_popup_level2_ending_233)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_popup_level2_ending_233 extends MovieClip {
public var gotoAndPlayGrandparent_dressSummaryOutBad$:button_okay_hello;
public function interface_popup_level2_ending_233(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 17
//interface_popup_level2_endinggood_234 (PetzFashion_fla.interface_popup_level2_endinggood_234)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_popup_level2_endinggood_234 extends MovieClip {
public var gotoAndPlayGrandparent_dressSummaryOutGood$:button_okay_hello;
public function interface_popup_level2_endinggood_234(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 18
//interface_popup_level3_248 (PetzFashion_fla.interface_popup_level3_248)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_popup_level3_248 extends MovieClip {
public var gotoAndPlayGrandparent_reportersPopupOut$:button_okay_hello;
}
}//package PetzFashion_fla
Section 19
//interface_popup_level3_ending_249 (PetzFashion_fla.interface_popup_level3_ending_249)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_popup_level3_ending_249 extends MovieClip {
public var okay:button_okay;
public var gotoAndPlayGrandparent_reportersHidePopup$:button_okay_hello;
public function interface_popup_level3_ending_249(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 20
//interface_popup_score_264 (PetzFashion_fla.interface_popup_score_264)
package PetzFashion_fla {
import flash.display.*;
import flash.text.*;
public dynamic class interface_popup_score_264 extends MovieClip {
public var CongratText:TextField;
public var gotoAndPlayGrandparent_scoreSummaryOut$:button_okay_hello;
}
}//package PetzFashion_fla
Section 21
//interface_score_hands_250 (PetzFashion_fla.interface_score_hands_250)
package PetzFashion_fla {
import flash.display.*;
public dynamic class interface_score_hands_250 extends MovieClip {
public var hand_3:MovieClip;
public var hand_2:MovieClip;
public var hand_4:MovieClip;
public var hand_5:MovieClip;
public function interface_score_hands_250(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 22
//interface_score_hands_board_254 (PetzFashion_fla.interface_score_hands_board_254)
package PetzFashion_fla {
import flash.display.*;
import flash.text.*;
public dynamic class interface_score_hands_board_254 extends MovieClip {
public var Scores:TextField;
}
}//package PetzFashion_fla
Section 23
//interface_score_hands_board2_253 (PetzFashion_fla.interface_score_hands_board2_253)
package PetzFashion_fla {
import flash.display.*;
import flash.text.*;
public dynamic class interface_score_hands_board2_253 extends MovieClip {
public var Scores:TextField;
}
}//package PetzFashion_fla
Section 24
//interface_score_hands_board3_251 (PetzFashion_fla.interface_score_hands_board3_251)
package PetzFashion_fla {
import flash.display.*;
import flash.text.*;
public dynamic class interface_score_hands_board3_251 extends MovieClip {
public var Scores:TextField;
}
}//package PetzFashion_fla
Section 25
//interface_score_hands_board4_252 (PetzFashion_fla.interface_score_hands_board4_252)
package PetzFashion_fla {
import flash.display.*;
import flash.text.*;
public dynamic class interface_score_hands_board4_252 extends MovieClip {
public var Scores:TextField;
}
}//package PetzFashion_fla
Section 26
//Popup_Star_33 (PetzFashion_fla.Popup_Star_33)
package PetzFashion_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Popup_Star_33 extends MovieClip {
public var numbers:TextField;
}
}//package PetzFashion_fla
Section 27
//Popup_Star_Anim_32 (PetzFashion_fla.Popup_Star_Anim_32)
package PetzFashion_fla {
import flash.display.*;
public dynamic class Popup_Star_Anim_32 extends MovieClip {
public var inside:MovieClip;
public function Popup_Star_Anim_32(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
play();
}
}
}//package PetzFashion_fla
Section 28
//preloader_progress_14 (PetzFashion_fla.preloader_progress_14)
package PetzFashion_fla {
import flash.display.*;
import flash.text.*;
public dynamic class preloader_progress_14 extends MovieClip {
public var progress_txt:TextField;
}
}//package PetzFashion_fla
Section 29
//TRASH_15 (PetzFashion_fla.TRASH_15)
package PetzFashion_fla {
import flash.display.*;
public dynamic class TRASH_15 extends MovieClip {
public function TRASH_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PetzFashion_fla
Section 30
//DressUpManager (pl.fabrykagier.engines.dressUp.DressUpManager)
package pl.fabrykagier.engines.dressUp {
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
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, mouseDown);
this.stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragging);
this.stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMove);
}
protected function wardrobeToModel(_arg1:String):void{
var _local2:String;
_local2 = model.setItem(_arg1);
wardrobe.lockItem(_arg1);
if (_local2){
wardrobe.unLockItem(_local2);
model.removeItem(_local2);
};
}
private function dragMove(_arg1:MouseEvent):void{
draggingItem.x = this.mouseX;
draggingItem.y = this.mouseY;
_arg1.updateAfterEvent();
}
public function mousePressModel(_arg1:String):void{
model.removeItem(_arg1);
startDragging(_arg1);
}
protected function setIt():void{
}
public function makeUnDraggable():void{
wardrobe.stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
}
public function makeDraggable():void{
wardrobe.stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
}
public function mouseRelase():void{
}
public function stopDragging(_arg1:MouseEvent):void{
this.stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragging);
this.stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMove);
this.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
draggingItem.visible = false;
wardrobe.clearHighlight(draggingItem.currentLabel);
if (toModel()){
wardrobeToModel(draggingItem.currentLabel);
} else {
modelToWardrobe(draggingItem.currentLabel);
};
}
private function toModel():Boolean{
if (draggingItem.hitTestObject(model)){
return (true);
};
return (false);
}
protected function modelToWardrobe(_arg1:String):void{
model.removeItem(_arg1);
wardrobe.unLockItem(_arg1);
}
public function mousePressWardrobe(_arg1:String):void{
startDragging(_arg1);
}
public function startDragging(_arg1:String):void{
wardrobe.highlightItem(_arg1);
draggingItem.visible = true;
draggingItem.gotoAndStop(_arg1);
this.stage.addEventListener(MouseEvent.MOUSE_MOVE, dragMove);
this.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
draggingItem.x = this.mouseX;
draggingItem.y = this.mouseY;
this.stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
}
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){
};
if (model._aviableItems.indexOf(_local3.currentLabel) < 0){
};
};
}
private function mouseDown(_arg1:MouseEvent):void{
if ((_arg1.target is WardrobeItem)){
if (WardrobeItem(_arg1.target).isAviable()){
mousePressWardrobe(WardrobeItem(_arg1.target).currentLabel);
};
};
if ((_arg1.target is ModelItem)){
mousePressModel(ModelItem(_arg1.target).currentLabel);
};
}
}
}//package pl.fabrykagier.engines.dressUp
Section 31
//Wardrobe (pl.fabrykagier.engines.dressUp.Wardrobe)
package pl.fabrykagier.engines.dressUp {
import flash.events.*;
import flash.display.*;
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);
}
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;
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 (_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{
getItemObject(_arg1).lock();
}
public function highlightItem(_arg1:String):void{
}
public function clearHighlight(_arg1:String):void{
}
}
}//package pl.fabrykagier.engines.dressUp
Section 32
//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{
aviable = false;
}
public function unlcok():void{
this.aviable = true;
}
public function isAviable():Boolean{
return (aviable);
}
}
}//package pl.fabrykagier.engines.dressUp
Section 33
//SwapByMouseMove (pl.fabrykagier.engines.swapByMouseMove.SwapByMouseMove)
package pl.fabrykagier.engines.swapByMouseMove {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class SwapByMouseMove extends Sprite {
private var active:Boolean;
private var pen:DisplayObject;
private var swapMask:Bitmap;
private var moveMask:Bitmap;
private var rec:Rectangle;
private var swapOn:Bitmap;
private var swapOff:MovieClip;
public function SwapByMouseMove(_arg1:MovieClip, _arg2:Bitmap, _arg3:DisplayObject, _arg4:Boolean=true, _arg5:Boolean=false){
var _local6:BitmapData;
super();
rec = _arg1.getBounds(_arg1);
_local6 = new BitmapData(rec.width, rec.height, true, 0);
this.swapMask = new Bitmap(_local6);
this.swapMask.x = rec.topLeft.x;
this.swapMask.y = rec.topLeft.y;
this.moveMask = createSwapIn(_arg1);
this.pen = _arg3;
this.swapOff = _arg1;
this.swapOn = _arg2;
this.swapOn.x = rec.topLeft.x;
this.swapOn.y = rec.topLeft.y;
this.addChild(_arg2);
this.addChild(swapMask);
if (_arg5){
this.addChild(_arg3);
};
this.swapOn.mask = swapMask;
this.swapOn.cacheAsBitmap = true;
this.swapMask.cacheAsBitmap = true;
this.swapMask.visible = false;
this.active = _arg4;
this.addEventListener(Event.ADDED_TO_STAGE, setIt);
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
this.swapOff.addChild(this);
}
private function setIt(_arg1:Event):void{
this.removeEventListener(Event.ADDED_TO_STAGE, setIt);
this.stage.addEventListener(MouseEvent.MOUSE_MOVE, draw);
this.pen.x = this.mouseX;
this.pen.y = this.mouseY;
}
private function draw(_arg1:MouseEvent):void{
var _local2:int;
var _local3:Matrix;
var _local4:Number;
var _local5:Number;
if (active){
_local2 = Math.round(Math.max(Math.abs((pen.x - swapMask.mouseX)), Math.abs((pen.y - swapMask.mouseY))));
_local4 = (-(((pen.x - swapMask.x) - swapMask.mouseX)) / _local2);
_local5 = (-(((pen.y - swapMask.y) - swapMask.mouseY)) / _local2);
_local3 = new Matrix(1, 0, 0, 1, (pen.x - swapMask.x), (pen.y - swapMask.y));
swapMask.bitmapData.draw(pen, _local3, null, null, null, true);
};
pen.x = this.mouseX;
pen.y = this.mouseY;
}
public function showAll():void{
this.swapOn.mask = null;
}
public function enable():void{
var _local1:Matrix;
active = true;
_local1 = new Matrix(1, 0, 0, 1, (pen.x - swapMask.x), (pen.y - swapMask.y));
swapMask.bitmapData.draw(pen, _local1, null, null, null, true);
}
public function getSwapPercentage():int{
var _local1:Number;
var _local2:Number;
var _local3:int;
var _local4:int;
_local1 = 0;
_local2 = 0;
_local3 = 0;
while (_local3 < moveMask.bitmapData.width) {
_local4 = 0;
while (_local4 < moveMask.bitmapData.height) {
if (((!((swapMask.bitmapData.getPixel32(_local3, _local4) == 0))) && (!((moveMask.bitmapData.getPixel32(_local3, _local4) == 0))))){
_local1++;
};
if (moveMask.bitmapData.getPixel32(_local3, _local4) != 0){
_local2++;
};
_local4++;
};
_local3++;
};
return (int(((_local1 * 100) / _local2)));
}
public function disable():void{
active = false;
}
public function destroy(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, destroy);
this.stage.removeEventListener(MouseEvent.MOUSE_MOVE, draw);
this.swapMask.bitmapData.dispose();
this.moveMask.bitmapData.dispose();
if (this.pen.parent){
this.pen.parent.removeChild(this.pen);
};
this.pen = null;
this.swapOff = null;
}
public static function createSwapIn(_arg1:DisplayObject):Bitmap{
var _local2:Rectangle;
var _local3:BitmapData;
var _local4:Matrix;
_local2 = _arg1.getBounds(_arg1);
_local3 = new BitmapData(_local2.width, _local2.height, true, 0);
_local4 = new Matrix(1, 0, 0, 1, -(_local2.topLeft.x), -(_local2.topLeft.y));
_local3.draw(_arg1, _local4, null, null, null, true);
return (new Bitmap(_local3));
}
}
}//package pl.fabrykagier.engines.swapByMouseMove
Section 34
//FrameworkLoader (pl.fabrykagier.framework.elements.loader.FrameworkLoader)
package pl.fabrykagier.framework.elements.loader {
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.framework.events.*;
import pl.fabrykagier.framework.main.*;
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{
}
}
}//package pl.fabrykagier.framework.elements.loader
Section 35
//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 36
//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, _arg2=false, _arg3=false){
parametersArray = new Array();
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 37
//Model (pl.fabrykagier.framework.gameCharacters.model.Model)
package pl.fabrykagier.framework.gameCharacters.model {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Model extends MovieClip {
protected var styleSplitPosition:int;// = 1
private var aviableItems:Array;
private var itemsList:Array;
public static var RENDER:String = "render";
public function Model(){
itemsList = [];
styleSplitPosition = 1;
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):String{
var _local2:Array;
var _local3:Array;
var _local4:String;
if (itemsList.indexOf(_arg1) == -1){
itemsList.push(_arg1);
};
update();
_local3 = _arg1.split("_");
for each (_local4 in itemsList) {
if (_local4 == _arg1){
} else {
_local2 = _local4.split("_");
if (_local3[this.styleSplitPosition] == _local2[this.styleSplitPosition]){
return (_local4);
};
};
};
return (null);
}
public function loadItems(_arg1:Array):void{
removeAll();
setItems(_arg1);
}
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 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 38
//ModelItem (pl.fabrykagier.framework.gameCharacters.model.ModelItem)
package pl.fabrykagier.framework.gameCharacters.model {
import flash.events.*;
import flash.display.*;
public class ModelItem extends MovieClip {
private var model:Model;
public function ModelItem(){
this.mouseChildren = false;
this.visible = false;
this.addEventListener(Event.ADDED_TO_STAGE, setIt);
this.addEventListener(Event.REMOVED_FROM_STAGE, destroy);
}
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();
if (model){
model.addEventListener(Model.RENDER, render);
for each (_local2 in this.currentLabels) {
model._aviableItems.push(_local2.name);
};
};
render(null);
}
protected function hide():void{
this.visible = false;
}
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();
}
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 39
//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 40
//GameObject (pl.fabrykagier.framework.main.GameObject)
package pl.fabrykagier.framework.main {
import flash.events.*;
import flash.display.*;
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(){
}
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;
for each (_local1 in listenerArray) {
};
}
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 41
//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){
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:*;
for (_local2 in soundsObjects) {
if (SoundObject(soundsObjects[_local2]).soundName == _arg1){
return (true);
};
};
return (false);
}
public static function initMute():void{
var _local1:SharedObject;
var _local2:*;
_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.state != SoundObject.STATE_PLAY){
_local2.play(_arg1["startTime"], _arg1["loops"], _arg1["transform"]);
};
};
} else {
_local2 = addSound(_arg1);
_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:*;
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) {
throw (new FrameworkError(((FrameworkError.SM_NOOBJECT + " Sound name: ") + parameters["name"])));
};
obj = new (SoundClass);
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;
_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)))){
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;
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:*;
for (_local2 in soundsObjects) {
if (SoundObject(soundsObjects[_local2]).soundName == _arg1){
return (SoundObject(soundsObjects[_local2]));
};
};
return (null);
}
public static function playPausedGroup(_arg1:Object){
var _local2:SoundObject;
for each (_local2 in soundsObjects) {
if (_local2.group == _arg1["group"]){
_local2.setVolume(1);
};
};
}
}
}//package pl.fabrykagier.framework.media
Section 42
//SoundObject (pl.fabrykagier.framework.media.SoundObject)
package pl.fabrykagier.framework.media {
import flash.events.*;
import flash.media.*;
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_STOP:String = "sound_is_stop";
public static var STATE_PLAY:String = "sound_is_play";
public static var STATE_PAUSE:String = "state_is_pause";
public static var STATE_END:String = "sound_is_end";
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){
if (myChannel){
myChannel.soundTransform = new SoundTransform(_arg1);
};
}
public function get lock():Boolean{
return (locked);
}
public function resume():void{
if (pauseMode){
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){
if (id_ == -1){
id_ = _arg1;
} else {
throw (new FrameworkError(FrameworkError.SO_ID));
};
}
private function onComplete(_arg1:Event):void{
state_ = STATE_END;
}
private function pauseSound():void{
state_ = STATE_PAUSE;
pauseTime = myChannel.position;
}
public function get soundName():String{
return (name);
}
public function set lock(_arg1:Boolean){
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){
name = _arg1;
}
}
}//package pl.fabrykagier.framework.media
Section 43
//GotoButton (pl.fabrykagier.framework.ui.graphical.GotoButton)
package pl.fabrykagier.framework.ui.graphical {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.framework.utils.*;
import pl.fabrykagier.framework.error.*;
public class GotoButton extends InterfaceButton {
public function GotoButton(){
buttonMode = true;
}
override protected function onClick(_arg1:MouseEvent):void{
var _local2:ParametersObject;
SoundManager.playSound({name:"BUTTONCLICK", loops:1});
_local2 = new ParametersObject(this.name);
if (_local2.getValue("gotoAndStopStage") != null){
if (root != null){
MovieClip(root).gotoAndStop(_local2.getValue("gotoAndStopStage"));
} else {
new FrameworkError(FrameworkError.CANT_FIND_STAGE);
};
};
if (_local2.getValue("gotoAndPlayStage") != null){
if (root != null){
MovieClip(root).gotoAndPlay(_local2.getValue("gotoAndPlayStage"));
} else {
new FrameworkError(FrameworkError.CANT_FIND_STAGE);
};
};
if (_local2.getValue("gotoAndStopParent") != null){
if (parent != null){
MovieClip(parent).gotoAndStop(_local2.getValue("gotoAndStopParent"));
} else {
new FrameworkError(FrameworkError.CANT_FIND_PARENT);
};
};
if (_local2.getValue("gotoAndPlayParent") != null){
if (parent != null){
MovieClip(parent).gotoAndPlay(_local2.getValue("gotoAndPlayParent"));
} else {
new FrameworkError(FrameworkError.CANT_FIND_PARENT);
};
};
if (_local2.getValue("gotoAndPlayGrandparent") != null){
if (grandparent != null){
MovieClip(grandparent).gotoAndPlay(_local2.getValue("gotoAndPlayGrandparent"));
} else {
new FrameworkError(FrameworkError.CANT_FIND_PARENT);
};
};
removeEventListener(MouseEvent.CLICK, onClick);
}
}
}//package pl.fabrykagier.framework.ui.graphical
Section 44
//InterfaceButton (pl.fabrykagier.framework.ui.graphical.InterfaceButton)
package pl.fabrykagier.framework.ui.graphical {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import pl.fabrykagier.framework.main.*;
public class InterfaceButton extends GameObject {
protected var mouseOutLabel;// = "off"
protected var mouseOverLabel;// = "on"
protected var mouseOn:Boolean;
protected var mouseDownLabel;// = "click"
public function InterfaceButton(){
mouseDownLabel = "click";
mouseOverLabel = "on";
mouseOutLabel = "off";
super();
buttonMode = true;
addEventListener(MouseEvent.CLICK, onClick);
addEventListener(MouseEvent.MOUSE_DOWN, onButtonDown);
addEventListener(MouseEvent.MOUSE_UP, onButtonUp);
addEventListener(MouseEvent.MOUSE_OVER, onButtonOver);
addEventListener(MouseEvent.MOUSE_OUT, onButtonOut);
}
protected function onButtonUp(_arg1:MouseEvent):void{
gotoAndStop(mouseOverLabel);
}
protected function onButtonDown(_arg1:MouseEvent):void{
gotoAndStop(mouseDownLabel);
}
protected function onButtonOut(_arg1:MouseEvent):void{
mouseOn = false;
gotoAndStop(mouseOutLabel);
}
protected function onButtonOver(_arg1:MouseEvent):void{
SoundManager.playSound({name:"ROLLOVER", loops:1});
mouseOn = true;
gotoAndStop(mouseOverLabel);
}
protected function onClick(_arg1:MouseEvent):void{
SoundManager.playSound({name:"BUTTONCLICK", loops:1});
}
}
}//package pl.fabrykagier.framework.ui.graphical
Section 45
//MutteButton (pl.fabrykagier.framework.ui.graphical.MutteButton)
package pl.fabrykagier.framework.ui.graphical {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
public class MutteButton extends InterfaceButton {
public function MutteButton(){
buttonMode = true;
changeLabels();
gotoAndStop(mouseOutLabel);
}
protected function changeLabels(){
if (SoundManager.mute){
mouseDownLabel = "on_on";
mouseOverLabel = "on_on";
mouseOutLabel = "off_on";
} else {
mouseDownLabel = "off_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
Section 46
//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:*;
var _local2:*;
var _local3:Array;
_local1 = handledString.split("$");
for (_local2 in _local1) {
if (String(_local1[int(_local2)]).indexOf("_") != -1){
_local3 = String(_local1[int(_local2)]).split("_");
handledObject[_local3[0]] = _local3[1];
};
};
}
}
}//package pl.fabrykagier.framework.utils
Section 47
//PetModel (pl.fabrykagier.game.petfashion.character.PetModel)
package pl.fabrykagier.game.petfashion.character {
import pl.fabrykagier.framework.gameCharacters.model.*;
public class PetModel extends Model {
public static var WALK_SCALE_X:Number = 0.5;
public static var WALK_SCALE_Y:Number = 0.5;
public function PetModel(){
this.gotoAndStop(1);
styleSplitPosition = 0;
}
public function moveMe():void{
goToBegin();
this.scaleX = WALK_SCALE_X;
this.scaleY = WALK_SCALE_Y;
this.x = 325;
this.y = 244;
}
public function scaleMe():void{
goToBegin();
this.scaleX = WALK_SCALE_X;
this.scaleY = WALK_SCALE_Y;
this.x = 350;
this.y = 280;
}
public function goToBegin():void{
this.gotoAndStop(1);
}
}
}//package pl.fabrykagier.game.petfashion.character
Section 48
//DressUpMngr (pl.fabrykagier.game.petfashion.dressing.DressUpMngr)
package pl.fabrykagier.game.petfashion.dressing {
import flash.display.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
import pl.fabrykagier.engines.dressUp.*;
import pl.fabrykagier.game.petfashion.*;
import flash.utils.*;
public class DressUpMngr extends DressUpManager {
override protected function setIt():void{
var _local1:Class;
super.setIt();
wardrobe = Wardrobe(PetFashionManager.getInstance().getChildByName("dressing_wardobe"));
model = Model(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0));
_local1 = (getDefinitionByName("wardrobeItemx") as Class);
draggingItem = MovieClip(new (_local1));
draggingItem.visible = false;
draggingItem.mouseChildren = false;
draggingItem.mouseEnabled = false;
draggingItem.stop();
this.addChild(draggingItem);
makeDraggable();
}
}
}//package pl.fabrykagier.game.petfashion.dressing
Section 49
//DressWardobe (pl.fabrykagier.game.petfashion.dressing.DressWardobe)
package pl.fabrykagier.game.petfashion.dressing {
import pl.fabrykagier.engines.dressUp.*;
public class DressWardobe extends Wardrobe {
public var wardobe_08:wardrobeItemx;
public var wardobe_03:wardrobeItemx;
public var wardobe_07:wardrobeItemx;
public var wardobe_15:wardrobeItemx;
public var wardobe_16:wardrobeItemx;
public var wardobe_13:wardrobeItemx;
public var wardobe_10:wardrobeItemx;
public var wardobe_14:wardrobeItemx;
public var wardobe_02:wardrobeItemx;
public var wardobe_11:wardrobeItemx;
public var wardobe_12:wardrobeItemx;
public var wardobe_04:wardrobeItemx;
public var wardobe_06:wardrobeItemx;
public var wardobe_01:wardrobeItemx;
public var wardobe_09:wardrobeItemx;
public var wardobe_05:wardrobeItemx;
public function DressWardobe(){
loadItems();
}
override public function clearHighlight(_arg1:String):void{
super.clearHighlight(_arg1);
getItemObject(_arg1).visible = true;
}
private function loadItems():void{
var _local1:Number;
_local1 = 0;
while (_local1 < this.numChildren) {
itemsList.push(getChildAt(_local1));
_local1++;
};
}
override protected function setPosition(_arg1:WardrobeItem):void{
var _local2:int;
var _local3:int;
var _local4:int;
_local2 = 6;
_local3 = 20;
_local4 = this.itemsList.indexOf(_arg1);
_arg1.x = (_local3 * (_local4 % _local2));
_arg1.y = (_local3 * int((_local4 / _local2)));
this.addChild(_arg1);
}
override public function highlightItem(_arg1:String):void{
super.highlightItem(_arg1);
getItemObject(_arg1).visible = false;
}
}
}//package pl.fabrykagier.game.petfashion.dressing
Section 50
//DressWardobeItem (pl.fabrykagier.game.petfashion.dressing.DressWardobeItem)
package pl.fabrykagier.game.petfashion.dressing {
import pl.fabrykagier.engines.dressUp.*;
public class DressWardobeItem extends WardrobeItem {
public function DressWardobeItem(){
var _local1:Array;
super();
_local1 = this.name.split("_");
if (_local1[0] == "wardobe"){
gotoAndStop(int(_local1[1]));
};
}
override public function lock():void{
super.lock();
this.visible = false;
}
override public function unlcok():void{
super.unlcok();
this.visible = true;
}
}
}//package pl.fabrykagier.game.petfashion.dressing
Section 51
//BuyNowBackTo (pl.fabrykagier.game.petfashion.gameInterface.BuyNowBackTo)
package pl.fabrykagier.game.petfashion.gameInterface {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import pl.fabrykagier.game.petfashion.*;
import pl.fabrykagier.framework.main.*;
import flash.net.*;
public class BuyNowBackTo extends GameObject {
public function BuyNowBackTo(){
addEventListener(MouseEvent.CLICK, goToLink);
addEventListener(MouseEvent.MOUSE_OVER, mouseOver);
addEventListener(MouseEvent.MOUSE_OUT, mouseOut);
this.buttonMode = true;
addEventListener(Event.REMOVED_FROM_STAGE, clean);
if ((((this.name == "backToImagineTown")) && (PetFashionManager.getInstance().inImagine))){
this.visible = false;
} else {
if ((((this.name == "submit")) && (!(PetFashionManager.getInstance().inImagine)))){
this.visible = false;
};
};
}
private function mouseOver(_arg1:MouseEvent):void{
gotoAndStop(2);
SoundManager.playSound({name:"ROLLOVER", loops:1});
}
private function goToLink(_arg1:MouseEvent):void{
var _local2:URLRequest;
SoundManager.playSound({name:"BUTTONCLICK", loops:1});
if (this.name == "buyNow"){
_local2 = new URLRequest("http://petz.com/petzfashionbuynow?utm_source=partnersites&utm_medium=flashgame_buynow&utm_campaign=petzfashion");
navigateToURL(_local2);
} else {
if (this.name == "backToImagineTown"){
_local2 = new URLRequest("http://petz.com/petzfashion?utm_source=partnersites&utm_medium=flashgame&utm_campaign=petzfashion");
navigateToURL(_local2);
} else {
if (this.name == "submit"){
PetFashionManager.getInstance().thisGameSubmitScore();
PetFashionManager.getInstance().gotoAndPlay("advertsOut");
};
};
};
}
private function clean(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, clean);
if (hasEventListener(MouseEvent.CLICK)){
removeEventListener(MouseEvent.CLICK, goToLink);
};
if (hasEventListener(MouseEvent.MOUSE_OVER)){
removeEventListener(MouseEvent.MOUSE_OVER, mouseOver);
};
if (hasEventListener(MouseEvent.MOUSE_OUT)){
removeEventListener(MouseEvent.MOUSE_OVER, mouseOut);
};
}
private function mouseOut(_arg1:MouseEvent):void{
gotoAndStop(1);
}
}
}//package pl.fabrykagier.game.petfashion.gameInterface
Section 52
//ChoosePet (pl.fabrykagier.game.petfashion.gameInterface.ChoosePet)
package pl.fabrykagier.game.petfashion.gameInterface {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.framework.main.*;
public class ChoosePet extends GameObject {
public function ChoosePet(){
addEventListener(MouseEvent.CLICK, swapPet);
addEventListener(MouseEvent.MOUSE_OVER, mouseOver);
addEventListener(MouseEvent.MOUSE_OUT, mouseOut);
this.buttonMode = true;
addEventListener(Event.REMOVED_FROM_STAGE, clean);
}
private function mouseOver(_arg1:MouseEvent):void{
gotoAndStop(2);
SoundManager.playSound({name:"ROLLOVER", loops:1});
}
private function swapRight():void{
var _local1:*;
_local1 = MovieClip(MovieClip(this.parent.parent.getChildByName("swapCharacter")).getChildByName("petChar")).currentFrame;
if (_local1 == 5){
MovieClip(MovieClip(this.parent.parent.getChildByName("swapCharacter")).getChildByName("petChar")).gotoAndStop(2);
MovieClip(this.parent.getChildByName("petName")).gotoAndStop(2);
} else {
MovieClip(MovieClip(this.parent.parent.getChildByName("swapCharacter")).getChildByName("petChar")).gotoAndStop((_local1 + 1));
MovieClip(this.parent.getChildByName("petName")).gotoAndStop((_local1 + 1));
};
}
private function mouseOut(_arg1:MouseEvent):void{
gotoAndStop(1);
}
private function clean(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, clean);
if (hasEventListener(MouseEvent.CLICK)){
removeEventListener(MouseEvent.CLICK, swapPet);
};
if (hasEventListener(MouseEvent.MOUSE_OVER)){
removeEventListener(MouseEvent.MOUSE_OVER, mouseOver);
};
if (hasEventListener(MouseEvent.MOUSE_OUT)){
removeEventListener(MouseEvent.MOUSE_OVER, mouseOut);
};
}
private function swapLeft():void{
var _local1:*;
_local1 = MovieClip(MovieClip(this.parent.parent.getChildByName("swapCharacter")).getChildByName("petChar")).currentFrame;
if (_local1 == 2){
MovieClip(MovieClip(this.parent.parent.getChildByName("swapCharacter")).getChildByName("petChar")).gotoAndStop(5);
MovieClip(this.parent.getChildByName("petName")).gotoAndStop(5);
} else {
MovieClip(MovieClip(this.parent.parent.getChildByName("swapCharacter")).getChildByName("petChar")).gotoAndStop((_local1 - 1));
MovieClip(this.parent.getChildByName("petName")).gotoAndStop((_local1 - 1));
};
}
private function swapPet(_arg1:MouseEvent):void{
if (MovieClip(this.parent.parent).currentFrame == 197){
SoundManager.playSound({name:"BUTTONCLICK", loops:1});
if (this.name == "petPrev"){
swapLeft();
} else {
if (this.name == "petNext"){
swapRight();
};
};
};
}
}
}//package pl.fabrykagier.game.petfashion.gameInterface
Section 53
//ChoosePetPics (pl.fabrykagier.game.petfashion.gameInterface.ChoosePetPics)
package pl.fabrykagier.game.petfashion.gameInterface {
import flash.display.*;
public class ChoosePetPics extends MovieClip {
public var petChar:MovieClip;
public var empty_mc:MovieClip;
public function swapAnimatedPet():void{
MovieClip(this.getChildByName("petChar")).gotoAndStop(2);
}
}
}//package pl.fabrykagier.game.petfashion.gameInterface
Section 54
//ConfirmButton (pl.fabrykagier.game.petfashion.gameInterface.ConfirmButton)
package pl.fabrykagier.game.petfashion.gameInterface {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.game.petfashion.*;
import flash.text.*;
import pl.fabrykagier.framework.ui.graphical.*;
public class ConfirmButton extends InterfaceButton {
public function ConfirmButton(){
this.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
}
private function keyPressed(_arg1:KeyboardEvent):void{
if ((((PetFashionManager.getInstance().currentFrame == 132)) && ((_arg1.keyCode == 13)))){
onClick(null);
};
}
override protected function onClick(_arg1:MouseEvent):void{
SoundManager.playSound({name:"BUTTONCLICK", loops:1});
if (((!((TextField(this.parent.getChildByName("nameField")).text == ""))) && (!((TextField(this.parent.getChildByName("nameField")).text == "Enter your name"))))){
this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
PetFashionManager.playerName = TextField(parent.getChildByName("nameField")).text;
MovieClip(this.parent.parent).gotoAndPlay("playerName_out");
};
}
}
}//package pl.fabrykagier.game.petfashion.gameInterface
Section 55
//ConfirmPetButton (pl.fabrykagier.game.petfashion.gameInterface.ConfirmPetButton)
package pl.fabrykagier.game.petfashion.gameInterface {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.game.petfashion.*;
import pl.fabrykagier.framework.ui.graphical.*;
public class ConfirmPetButton extends InterfaceButton {
override protected function onClick(_arg1:MouseEvent):void{
SoundManager.playSound({name:"BUTTONCLICK", loops:1});
PetFashionManager.PET = (MovieClip(MovieClip(this.parent.getChildByName("swapCharacter")).getChildByName("petChar")).currentFrame - 1);
switch (PetFashionManager.PET){
case 1:
PetFashionManager.PET_TYPE = "cat0";
break;
case 2:
PetFashionManager.PET_TYPE = "dog0";
break;
case 3:
PetFashionManager.PET_TYPE = "cat1";
break;
case 4:
PetFashionManager.PET_TYPE = "dog1";
break;
};
MovieClip(this.parent).gotoAndPlay("pickPetOut");
}
}
}//package pl.fabrykagier.game.petfashion.gameInterface
Section 56
//DoneDressingButton (pl.fabrykagier.game.petfashion.gameInterface.DoneDressingButton)
package pl.fabrykagier.game.petfashion.gameInterface {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
import pl.fabrykagier.game.petfashion.*;
import pl.fabrykagier.framework.ui.graphical.*;
public class DoneDressingButton extends InterfaceButton {
override protected function onClick(_arg1:MouseEvent):void{
SoundManager.playSound({name:"BUTTONCLICK", loops:1});
if ((((MovieClip(this.parent).currentFrame == 424)) || ((MovieClip(this.parent).currentFrame == 466)))){
if (Model(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0))._itemList.length == 4){
PetFashionManager.getInstance().endDressing();
MovieClip(this.parent).gotoAndPlay("dressSummaryInGood");
} else {
MovieClip(this.parent).gotoAndPlay("dressSummaryInBad");
};
};
}
}
}//package pl.fabrykagier.game.petfashion.gameInterface
Section 57
//HudMenuButton (pl.fabrykagier.game.petfashion.gameInterface.HudMenuButton)
package pl.fabrykagier.game.petfashion.gameInterface {
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.game.petfashion.*;
public class HudMenuButton extends MovieClip {
public function HudMenuButton(){
buttonMode = true;
addEventListener(MouseEvent.ROLL_OVER, mouseOver);
addEventListener(MouseEvent.ROLL_OUT, mouseOut);
addEventListener(MouseEvent.CLICK, mouseClick);
addEventListener(Event.REMOVED_FROM_STAGE, removedFromStage);
}
private function mouseClick(_arg1:MouseEvent):void{
PetFashionManager.getInstance().backToMenu();
}
private function removedFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStage);
removeEventListener(MouseEvent.ROLL_OVER, mouseOver);
removeEventListener(MouseEvent.ROLL_OUT, mouseOut);
removeEventListener(MouseEvent.CLICK, mouseClick);
}
private function mouseOver(_arg1:MouseEvent):void{
_arg1.stopImmediatePropagation();
if ((((currentFrame == 1)) || ((currentFrame == 15)))){
gotoAndPlay(2);
} else {
gotoAndPlay(((totalFrames - currentFrame) + 1));
};
}
private function mouseOut(_arg1:MouseEvent):void{
_arg1.stopImmediatePropagation();
gotoAndPlay(((totalFrames - currentFrame) + 1));
}
}
}//package pl.fabrykagier.game.petfashion.gameInterface
Section 58
//PopupHello (pl.fabrykagier.game.petfashion.gameInterface.PopupHello)
package pl.fabrykagier.game.petfashion.gameInterface {
import flash.events.*;
import pl.fabrykagier.game.petfashion.*;
import flash.text.*;
import pl.fabrykagier.framework.main.*;
public class PopupHello extends GameObject {
public var playerName:TextField;
public var gotoAndPlayGrandparent_welcomeOut$:button_okay_hello;
public function PopupHello(){
addEventListener(Event.ADDED_TO_STAGE, onAdded);
}
private function onAdded(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAdded);
TextField(getChildByName("playerName")).text = (("Hello, " + PetFashionManager.playerName) + "!");
}
}
}//package pl.fabrykagier.game.petfashion.gameInterface
Section 59
//PopupWelcome (pl.fabrykagier.game.petfashion.gameInterface.PopupWelcome)
package pl.fabrykagier.game.petfashion.gameInterface {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class PopupWelcome extends MovieClip {
public var okay:button_okay;
public var nameField:TextField;
public function PopupWelcome(){
addEventListener(Event.ADDED_TO_STAGE, onAdded);
addEventListener(Event.REMOVED_FROM_STAGE, clean);
}
private function clicked(_arg1:MouseEvent):void{
TextField(getChildByName("nameField")).removeEventListener(MouseEvent.CLICK, clicked);
TextField(getChildByName("nameField")).text = "";
}
private function clean(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, clean);
TextField(getChildByName("nameField")).removeEventListener(MouseEvent.CLICK, clicked);
TextField(getChildByName("nameField")).removeEventListener(Event.CHANGE, removeWhitespaces);
}
private function onAdded(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAdded);
TextField(getChildByName("nameField")).addEventListener(MouseEvent.CLICK, clicked);
TextField(getChildByName("nameField")).addEventListener(Event.CHANGE, removeWhitespaces);
}
private function removeWhitespaces(_arg1:Event):void{
if (TextField(getChildByName("nameField")).text.indexOf(" ") > -1){
TextField(getChildByName("nameField")).text = TextField(getChildByName("nameField")).text.substring(0, (TextField(getChildByName("nameField")).text.length - 1));
};
}
}
}//package pl.fabrykagier.game.petfashion.gameInterface
Section 60
//Bath (pl.fabrykagier.game.petfashion.levels.Bath)
package pl.fabrykagier.game.petfashion.levels {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import pl.fabrykagier.game.petfashion.*;
public class Bath extends Cleaning {
override protected function setPenGraph():void{
this.graph_pen = new pen_wash_pattern();
PetFashionManager.getInstance().changeCursor(new pen_wash());
}
override protected function disableSwap(_arg1:MouseEvent):void{
super.disableSwap(_arg1);
PetFashionManager.getInstance().changeCursor(new pen_wash());
SoundManager.stopSound({name:"CLEANING_SHOWER", loops:100});
}
override protected function enableSwap(_arg1:MouseEvent):void{
super.enableSwap(_arg1);
PetFashionManager.getInstance().changeCursor(new pen_wash2());
SoundManager.playSound({name:"CLEANING_SHOWER", loops:100});
}
override protected function setPetGraph(_arg1:Number):void{
switch (_arg1){
case 1:
this.graph_onStage = new cat_01_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(1);
this.graph_swapInto = new cat_01_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(2);
break;
case 2:
this.graph_onStage = new dog_01_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(1);
this.graph_swapInto = new dog_01_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(2);
break;
case 3:
this.graph_onStage = new cat_02_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(1);
this.graph_swapInto = new cat_02_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(2);
break;
case 4:
this.graph_onStage = new dog_02_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(1);
this.graph_swapInto = new dog_02_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(2);
break;
};
}
}
}//package pl.fabrykagier.game.petfashion.levels
Section 61
//Brush (pl.fabrykagier.game.petfashion.levels.Brush)
package pl.fabrykagier.game.petfashion.levels {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import pl.fabrykagier.game.petfashion.*;
public class Brush extends Cleaning {
override protected function setPenGraph():void{
this.graph_pen = new pen_comb();
PetFashionManager.getInstance().changeCursor(new pen_comb());
}
override protected function disableSwap(_arg1:MouseEvent):void{
super.disableSwap(_arg1);
SoundManager.stopSound({name:"CLEANING_COMB"});
}
override protected function enableSwap(_arg1:MouseEvent):void{
super.enableSwap(_arg1);
SoundManager.playSound({name:"CLEANING_COMB", loops:int.MAX_VALUE});
}
override protected function setPetGraph(_arg1:Number):void{
switch (_arg1){
case 1:
this.graph_onStage = new cat_01_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(3);
this.graph_swapInto = new cat_01_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(4);
break;
case 2:
this.graph_onStage = new dog_01_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(3);
this.graph_swapInto = new dog_01_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(4);
break;
case 3:
this.graph_onStage = new cat_02_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(3);
this.graph_swapInto = new cat_02_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(4);
break;
case 4:
this.graph_onStage = new dog_02_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(3);
this.graph_swapInto = new dog_02_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(4);
break;
};
}
}
}//package pl.fabrykagier.game.petfashion.levels
Section 62
//Catwalk (pl.fabrykagier.game.petfashion.levels.Catwalk)
package pl.fabrykagier.game.petfashion.levels {
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.game.petfashion.*;
import pl.fabrykagier.game.petfashion.objects.*;
import flash.utils.*;
import pl.fabrykagier.game.petfashion.character.*;
public class Catwalk extends MovieClip {
private var goRight:Boolean;// = false
private var char_speed:Number;// = 2.5
private var goLeft:Boolean;// = false
private var graph_crowd:MovieClip;
private var graph_character:MovieClip;
private var startWalking:Boolean;// = false
private var reporters:Array;
private var graph_bg:MovieClip;
private var reporter:PhotoReporter;
private var isWalking:Boolean;// = false
private var myTimer:Timer;
public function Catwalk(){
char_speed = 2.5;
goLeft = false;
goRight = false;
startWalking = false;
isWalking = false;
reporters = new Array();
super();
setScene();
}
private function setChar():void{
this.graph_character = MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0));
}
private function reporterToClose(_arg1:Number):Boolean{
var _local2:PhotoReporter;
for each (_local2 in this.reporters) {
if ((((_arg1 < (_local2.x + 200))) && ((_arg1 > (_local2.x - 200))))){
return (true);
};
};
return (false);
}
private function goStop():void{
if (isWalking){
MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).gotoAndPlay("stop walk");
isWalking = false;
};
}
private function addReporters():void{
myTimer = new Timer(3000);
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER, countdown);
}
private function countdown(_arg1:TimerEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
_local3 = 0;
_local4 = true;
do {
_local2 = Math.floor(((Math.random() * (620 - 100)) + 100));
_local3++;
} while (!(_local3 > 100));
if (_local4){
_local5 = Math.floor((Math.random() * 2));
if (_local5 == 1){
this.reporters.push(new Reporter1());
} else {
this.reporters.push(new Reporter2());
};
this.reporters[(this.reporters.length - 1)].setArray(this.reporters);
MovieClip(this.reporters[(this.reporters.length - 1)]).x = _local2;
MovieClip(this.reporters[(this.reporters.length - 1)]).y = 560;
addChild(this.reporters[(this.reporters.length - 1)]);
};
}
public function clean():void{
var _local1:PhotoReporter;
myTimer.stop();
myTimer.removeEventListener(TimerEvent.TIMER, countdown);
if (PetFashionManager.getInstance().stage.hasEventListener(KeyboardEvent.KEY_DOWN)){
PetFashionManager.getInstance().stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown);
};
if (PetFashionManager.getInstance().stage.hasEventListener(KeyboardEvent.KEY_UP)){
PetFashionManager.getInstance().stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp);
};
if (PetFashionManager.getInstance().stage.hasEventListener(Event.ENTER_FRAME)){
PetFashionManager.getInstance().stage.removeEventListener(Event.ENTER_FRAME, update);
};
if (MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).hasEventListener("ready")){
MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).removeEventListener("ready", picsTime);
};
if (MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).hasEventListener("complete")){
MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).removeEventListener("complete", stopPose);
};
isWalking = false;
goRight = false;
goLeft = false;
MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).gotoAndStop(1);
for each (_local1 in this.reporters) {
_local1.clean();
};
}
private function keyUp(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 32:
hitTestReporter();
break;
case 37:
goLeft = false;
break;
case 39:
goRight = false;
break;
};
keyState();
}
private function OutOfStage(_arg1:Number):Boolean{
if (((((MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).x + _arg1) < 60)) || (((MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).x + _arg1) > (700 - 60))))){
return (true);
};
return (false);
}
private function setScene():void{
setChar();
PetFashionManager.getInstance().stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
PetFashionManager.getInstance().stage.addEventListener(KeyboardEvent.KEY_UP, keyUp);
PetFashionManager.getInstance().stage.addEventListener(Event.ENTER_FRAME, update);
addReporters();
}
private function keyState():void{
if (goLeft == goRight){
goStop();
} else {
goWalk();
};
}
private function goPose():void{
PetFashionManager.getInstance().stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown);
PetFashionManager.getInstance().stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp);
PetFashionManager.getInstance().stage.removeEventListener(Event.ENTER_FRAME, update);
MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).gotoAndPlay("sit down_stop");
MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).addEventListener("ready", picsTime);
}
private function picsTime(_arg1:Event):void{
MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).removeEventListener("ready", picsTime);
this.reporter.takePics();
MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).addEventListener("complete", stopPose);
}
private function keyDown(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 37:
goLeft = true;
break;
case 39:
goRight = true;
break;
};
keyState();
}
private function stopPose(_arg1:Event):void{
isWalking = false;
goRight = false;
goLeft = false;
PetFashionManager.getInstance().stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
PetFashionManager.getInstance().stage.addEventListener(KeyboardEvent.KEY_UP, keyUp);
PetFashionManager.getInstance().stage.addEventListener(Event.ENTER_FRAME, update);
}
private function update(_arg1:Event):void{
if (goLeft){
move(-1);
};
if (goRight){
move(1);
};
}
private function hitTestReporter(){
var _local1:PhotoReporter;
var _local2:*;
for each (_local1 in this.reporters) {
_local2 = _local1.collision(this.graph_character);
if (_local2){
this.reporter = _local1;
goPose();
};
};
}
private function goWalk():void{
if (!isWalking){
MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).gotoAndPlay(9);
isWalking = true;
};
}
private function move(_arg1:Number):void{
if (!OutOfStage((_arg1 * this.char_speed))){
this.graph_character.x = (this.graph_character.x + (_arg1 * this.char_speed));
this.graph_character.scaleX = (-(_arg1) * PetModel.WALK_SCALE_X);
this.graph_character.scaleY = PetModel.WALK_SCALE_Y;
};
}
}
}//package pl.fabrykagier.game.petfashion.levels
Section 63
//Cleaning (pl.fabrykagier.game.petfashion.levels.Cleaning)
package pl.fabrykagier.game.petfashion.levels {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.game.petfashion.*;
import pl.fabrykagier.engines.swapByMouseMove.*;
import flash.utils.*;
public class Cleaning extends MovieClip {
protected var tmp_lvl_no:Number;
protected var wasEvent:Number;// = 0
protected var graph_swapInto:MovieClip;
protected var graph_onStage:MovieClip;
private var swaper:SwapByMouseMove;
protected var graph_pen:MovieClip;
private var testTimer:Timer;
private var effected:Boolean;
public static var COMPLETE:String = "complete";
public function Cleaning(){
wasEvent = 0;
super();
this.tmp_lvl_no = PetFashionManager.getInstance().lvl_number;
setPetGraph(PetFashionManager.PET);
setPenGraph();
graph_pen.visible = false;
addChild(this.graph_onStage);
testTimer = new Timer(1000);
testTimer.addEventListener(TimerEvent.TIMER, testIfComplit);
swapByMouse();
}
private function mouseClick(_arg1:MouseEvent):void{
_arg1.stopImmediatePropagation();
MovieClip(PetFashionManager.getInstance().getChildByName(("thumb_0" + this.tmp_lvl_no))).removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
clean();
dispatchEvent(new Event(COMPLETE));
}
public function pauseCleaning():void{
SoundManager.stopSound({name:"CLEANING_SHOWER", loops:100});
SoundManager.stopSound({name:"CLEANING_DRYER", loops:100});
SoundManager.stopSound({name:"CLEANING_COMB", loops:100});
if (PetFashionManager.getInstance().stage.hasEventListener(MouseEvent.MOUSE_DOWN)){
PetFashionManager.getInstance().stage.removeEventListener(MouseEvent.MOUSE_DOWN, enableSwap);
};
if (PetFashionManager.getInstance().stage.hasEventListener(MouseEvent.MOUSE_UP)){
PetFashionManager.getInstance().stage.removeEventListener(MouseEvent.MOUSE_UP, disableSwap);
};
if (MovieClip(PetFashionManager.getInstance().getChildByName("thumb_02")).hasEventListener(MouseEvent.MOUSE_DOWN)){
MovieClip(PetFashionManager.getInstance().getChildByName("thumb_02")).removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
this.wasEvent = 2;
} else {
if (MovieClip(PetFashionManager.getInstance().getChildByName("thumb_03")).hasEventListener(MouseEvent.MOUSE_DOWN)){
MovieClip(PetFashionManager.getInstance().getChildByName("thumb_03")).removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
this.wasEvent = 3;
};
};
}
protected function setPenGraph():void{
}
public function clean(){
if (!swaper){
return;
};
if (testTimer.running){
testTimer.stop();
};
testTimer.removeEventListener(TimerEvent.TIMER, testIfComplit);
if (PetFashionManager.getInstance().stage.hasEventListener(MouseEvent.MOUSE_DOWN)){
PetFashionManager.getInstance().stage.removeEventListener(MouseEvent.MOUSE_DOWN, enableSwap);
};
if (PetFashionManager.getInstance().stage.hasEventListener(MouseEvent.MOUSE_UP)){
PetFashionManager.getInstance().stage.removeEventListener(MouseEvent.MOUSE_UP, disableSwap);
};
if (((((PetFashionManager.getInstance().getChildByName("thumb_01")) || (PetFashionManager.getInstance().getChildByName("thumb_02")))) || (PetFashionManager.getInstance().getChildByName("thumb_03")))){
if (MovieClip(PetFashionManager.getInstance().getChildByName("thumb_01")).hasEventListener(MouseEvent.MOUSE_DOWN)){
MovieClip(PetFashionManager.getInstance().getChildByName("thumb_01")).removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
} else {
if (MovieClip(PetFashionManager.getInstance().getChildByName("thumb_02")).hasEventListener(MouseEvent.MOUSE_DOWN)){
MovieClip(PetFashionManager.getInstance().getChildByName("thumb_02")).removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
} else {
if (MovieClip(PetFashionManager.getInstance().getChildByName("thumb_03")).hasEventListener(MouseEvent.MOUSE_DOWN)){
MovieClip(PetFashionManager.getInstance().getChildByName("thumb_03")).removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
};
};
};
};
if (this.graph_onStage.parent){
removeChild(this.graph_onStage);
};
if (swaper){
swaper.disable();
};
swaper = null;
}
private function swapByMouse(){
swaper = new SwapByMouseMove(MovieClip(this.graph_onStage), SwapByMouseMove.createSwapIn(this.graph_swapInto), this.graph_pen, false, true);
PetFashionManager.getInstance().stage.addEventListener(MouseEvent.MOUSE_DOWN, enableSwap);
PetFashionManager.getInstance().stage.addEventListener(MouseEvent.MOUSE_UP, disableSwap);
}
public function resumeCleaning():void{
PetFashionManager.getInstance().stage.addEventListener(MouseEvent.MOUSE_DOWN, enableSwap);
PetFashionManager.getInstance().stage.addEventListener(MouseEvent.MOUSE_UP, disableSwap);
if ((((this.wasEvent == 2)) || ((this.wasEvent == 3)))){
MovieClip(PetFashionManager.getInstance().getChildByName(("thumb_0" + this.wasEvent))).addEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
this.wasEvent = 0;
};
}
protected function disableSwap(_arg1:MouseEvent):void{
_arg1.stopImmediatePropagation();
testTimer.stop();
swaper.disable();
if (swaper.getSwapPercentage() > 80){
this.tmp_lvl_no = PetFashionManager.getInstance().lvl_number;
this.tmp_lvl_no++;
if (!effected){
MovieClip(PetFashionManager.getInstance().getChildByName("swapCharacter")).addChild(new Effect());
effected = true;
};
if (this.tmp_lvl_no < 4){
MovieClip(PetFashionManager.getInstance().getChildByName(("thumb_0" + this.tmp_lvl_no))).gotoAndStop(3);
MovieClip(PetFashionManager.getInstance().getChildByName(("thumb_0" + this.tmp_lvl_no))).addEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
} else {
clean();
dispatchEvent(new Event(COMPLETE));
};
};
}
protected function enableSwap(_arg1:MouseEvent):void{
swaper.enable();
testTimer.start();
}
private function testIfComplit(_arg1:TimerEvent):void{
if (((effected) || ((swaper.getSwapPercentage() < 80)))){
return;
};
MovieClip(PetFashionManager.getInstance().getChildByName("swapCharacter")).addChild(new Effect());
effected = true;
if (this.tmp_lvl_no < 3){
MovieClip(PetFashionManager.getInstance().getChildByName(("thumb_0" + (this.tmp_lvl_no + 1).toString()))).gotoAndStop(3);
MovieClip(PetFashionManager.getInstance().getChildByName(("thumb_0" + (this.tmp_lvl_no + 1).toString()))).addEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
};
}
protected function setPetGraph(_arg1:Number):void{
}
}
}//package pl.fabrykagier.game.petfashion.levels
Section 64
//Dress (pl.fabrykagier.game.petfashion.levels.Dress)
package pl.fabrykagier.game.petfashion.levels {
import flash.display.*;
import pl.fabrykagier.engines.dressUp.*;
import pl.fabrykagier.game.petfashion.dressing.*;
public class Dress extends MovieClip {
private var dressManager:DressUpManager;
public function Dress(){
this.dressManager = new DressUpMngr();
addChild(this.dressManager);
}
public function resumeDress():void{
this.dressManager.makeDraggable();
}
public function clean():void{
if (this.dressManager){
this.dressManager.makeUnDraggable();
if (this.dressManager.parent){
removeChild(this.dressManager);
};
this.dressManager = null;
};
}
public function pauseDress():void{
this.dressManager.makeUnDraggable();
}
}
}//package pl.fabrykagier.game.petfashion.levels
Section 65
//Dry (pl.fabrykagier.game.petfashion.levels.Dry)
package pl.fabrykagier.game.petfashion.levels {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import pl.fabrykagier.game.petfashion.*;
public class Dry extends Cleaning {
override protected function setPenGraph():void{
this.graph_pen = new pen_dry_pattern();
PetFashionManager.getInstance().changeCursor(new pen_dry());
}
override protected function disableSwap(_arg1:MouseEvent):void{
super.disableSwap(_arg1);
PetFashionManager.getInstance().changeCursor(new pen_dry());
SoundManager.stopSound({name:"CLEANING_DRYER", loops:100});
}
override protected function enableSwap(_arg1:MouseEvent):void{
super.enableSwap(_arg1);
PetFashionManager.getInstance().changeCursor(new pen_dry2());
SoundManager.playSound({name:"CLEANING_DRYER", loops:100});
}
override protected function setPetGraph(_arg1:Number):void{
switch (_arg1){
case 1:
this.graph_onStage = new cat_01_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(2);
this.graph_swapInto = new cat_01_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(3);
break;
case 2:
this.graph_onStage = new dog_01_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(2);
this.graph_swapInto = new dog_01_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(3);
break;
case 3:
this.graph_onStage = new cat_02_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(2);
this.graph_swapInto = new cat_02_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(3);
break;
case 4:
this.graph_onStage = new dog_02_static_sideView_forCleaning();
this.graph_onStage.gotoAndStop(2);
this.graph_swapInto = new dog_02_static_sideView_forCleaning();
this.graph_swapInto.gotoAndStop(3);
break;
};
}
}
}//package pl.fabrykagier.game.petfashion.levels
Section 66
//Score (pl.fabrykagier.game.petfashion.levels.Score)
package pl.fabrykagier.game.petfashion.levels {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
import pl.fabrykagier.game.petfashion.*;
import flash.text.*;
import flash.utils.*;
public class Score extends MovieClip {
private var worenClothes:Array;
private var sets:Array;
private var setParts:Number;// = 0
private var summaryScore:Number;// = 0
private var pairs:Number;// = 0
private var iteration:Number;// = 1
private var myTimer:Timer;
public function Score(){
sets = new Array();
setParts = 0;
pairs = 0;
iteration = 1;
summaryScore = 0;
super();
myTimer = new Timer(1000, 1);
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, prepareScore);
SoundManager.playSound({name:"JUDGESSCREEN_APPLAUSE", loops:1});
countSets();
}
private function countSets():void{
var _local1:Array;
var _local2:Array;
var _local3:*;
var _local4:*;
var _local5:*;
this.worenClothes = Model(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0))._itemList;
this.sets["head_hat"] = "1";
this.sets["head_red"] = "2";
this.sets["head_blue"] = "3";
this.sets["head_glass"] = "4";
this.sets["necklace_necklace"] = "1";
this.sets["necklace_pendant"] = "2";
this.sets["necklace_wire"] = "3";
this.sets["necklace_shawl"] = "4";
this.sets["body_pink1"] = "1";
this.sets["body_pink2"] = "2";
this.sets["body_blue"] = "3";
this.sets["body_yellow"] = "4";
this.sets["shoe_pink"] = "1";
this.sets["shoe_white"] = "2";
this.sets["shoe_red"] = "3";
this.sets["shoe_yellow1"] = "4";
_local1 = new Array();
_local1[0] = this.sets[worenClothes[0]];
_local1[1] = this.sets[worenClothes[1]];
_local1[2] = this.sets[worenClothes[2]];
_local1[3] = this.sets[worenClothes[3]];
_local2 = new Array(0, 0, 0, 0);
for each (_local3 in _local1) {
var _local8 = _local2;
var _local9 = (int(_local3) - 1);
var _local10 = (_local8[_local9] + 1);
_local8[_local9] = _local10;
};
_local2.sort();
this.setParts = _local2[3];
_local4 = 0;
while (_local4 < 3) {
_local5 = (_local4 + 1);
while (_local5 < 4) {
if (_local1[_local4] == _local1[_local5]){
this.pairs++;
};
_local5++;
};
_local4++;
};
}
private function countdown(_arg1:TimerEvent):void{
var _local2:Number;
var _local3:*;
this.iteration++;
MovieClip(PetFashionManager.getInstance().getChildByName("scoreHands")).gotoAndStop(this.iteration);
MovieClip(PetFashionManager.getInstance().getChildByName("scoreHands")).getChildByName(("hand_" + this.iteration.toString())).alpha = 100;
_local2 = int(TextField(MovieClip(PetFashionManager.getInstance().getChildByName("menuBar")).getChildByName("scoreCounter")).text);
_local3 = 0;
if (_local2 >= 200){
_local3 = randScore(new Array(9, 10));
} else {
if ((((_local2 >= 175)) && ((_local2 <= 199)))){
_local3 = randScore(new Array(8, 9));
} else {
if ((((_local2 >= 150)) && ((_local2 <= 174)))){
_local3 = randScore(new Array(7, 8, 9));
} else {
if ((((_local2 >= 125)) && ((_local2 <= 149)))){
_local3 = randScore(new Array(6, 7));
} else {
if ((((_local2 >= 100)) && ((_local2 <= 124)))){
_local3 = randScore(new Array(5, 6, 7));
} else {
if ((((_local2 >= 75)) && ((_local2 <= 99)))){
_local3 = randScore(new Array(5, 6));
} else {
if ((((_local2 >= 50)) && ((_local2 <= 74)))){
_local3 = randScore(new Array(3, 4, 5, 6));
} else {
if ((((_local2 >= 25)) && ((_local2 <= 49)))){
_local3 = randScore(new Array(2, 3, 4));
} else {
if ((((_local2 >= 0)) && ((_local2 <= 24)))){
_local3 = randScore(new Array(1, 2));
};
};
};
};
};
};
};
};
};
this.summaryScore = (this.summaryScore + _local3);
TextField(MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("scoreHands")).getChildByName(("hand_" + this.iteration.toString()))).getChildByName("Scores")).text = (_local3.toString() + ".0");
}
public function clean():void{
if (myTimer){
myTimer.start();
if (myTimer.hasEventListener(TimerEvent.TIMER_COMPLETE)){
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, prepareScore);
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, EndCountdown);
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, endScore);
};
if (myTimer.hasEventListener(TimerEvent.TIMER)){
myTimer.removeEventListener(TimerEvent.TIMER, countdown);
};
};
SoundManager.stopSound({name:"JUDGESSCREEN_APPLAUSE", loops:1});
}
private function randScore(_arg1:Array):Number{
var _local2:*;
_local2 = (Math.floor((Math.random() * ((_arg1[(_arg1.length - 1)] - _arg1[0]) + 1))) + _arg1[0]);
return (_local2);
}
private function addScore():void{
var _local1:Number;
_local1 = int(TextField(MovieClip(PetFashionManager.getInstance().getChildByName("menuBar")).getChildByName("scoreCounter")).text);
switch (this.setParts){
case 4:
_local1 = (_local1 + (50 * this.pairs));
break;
case 3:
_local1 = (_local1 + (40 * this.pairs));
break;
case 2:
_local1 = (_local1 + (30 * this.pairs));
break;
case 1:
_local1 = (_local1 + 20);
break;
};
TextField(MovieClip(PetFashionManager.getInstance().getChildByName("menuBar")).getChildByName("scoreCounter")).text = _local1.toString();
}
private function endScore(_arg1:TimerEvent):void{
myTimer.stop();
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, endScore);
PetFashionManager.getInstance().gotoAndPlay("score_summary");
this.summaryScore = (this.summaryScore / 4);
TextField(MovieClip(PetFashionManager.getInstance().getChildByName("FinalScorePopup")).getChildByName("CongratText")).text = (("The judges were satisfied and gave you a note of " + this.summaryScore.toString()) + "!");
}
private function EndCountdown(_arg1:TimerEvent):void{
myTimer.stop();
myTimer.removeEventListener(TimerEvent.TIMER, countdown);
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, EndCountdown);
myTimer = new Timer(1000, 1);
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, endScore);
}
private function prepareScore(_arg1:Event):void{
myTimer.stop();
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, prepareScore);
addScore();
myTimer = new Timer(500, 4);
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER, countdown);
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, EndCountdown);
}
}
}//package pl.fabrykagier.game.petfashion.levels
Section 67
//CleaningPetMoveLeft (pl.fabrykagier.game.petfashion.objects.CleaningPetMoveLeft)
package pl.fabrykagier.game.petfashion.objects {
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.game.petfashion.*;
public class CleaningPetMoveLeft extends MovieClip {
public var cat0:cat_01_static_sideView_forCleaning;
public var cat1:cat_02_static_sideView_forCleaning;
public var dog1:dog_02_static_sideView_forCleaning;
public var dog0:dog_01_static_sideView_forCleaning;
public function CleaningPetMoveLeft(){
addEventListener(Event.ADDED_TO_STAGE, addedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, removedFromStage);
}
private function addedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
gotoAndStop(PetFashionManager.PET);
}
private function removedFromStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStage);
}
}
}//package pl.fabrykagier.game.petfashion.objects
Section 68
//Photo (pl.fabrykagier.game.petfashion.objects.Photo)
package pl.fabrykagier.game.petfashion.objects {
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.game.petfashion.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
public class Photo extends MovieClip {
private var pics:BitmapData;
public var photoContener:MovieClip;
private var myTimer:Timer;
public function Photo(){
pics = new BitmapData(124, 124);
super();
}
public function takePhoto(_arg1:MovieClip, _arg2:Number, _arg3:Number):void{
var _local4:Matrix;
var _local5:Matrix;
var _local6:Bitmap;
var _local7:Number;
var _local8:Number;
_local4 = new Matrix();
_local4.translate(0, 0);
_local4.scale(1, 1);
_local5 = new Matrix();
_local5.translate((-(_arg2) + 60), -230);
_local4.concat(_local5);
this.pics.draw(PetFashionManager.getInstance(), _local4);
_local6 = new Bitmap(this.pics);
MovieClip(this.getChildByName("photoContener")).rotation = 0;
MovieClip(this.getChildByName("photoContener")).addChild(_local6);
if (Math.abs((MovieClip(MovieClip(PetFashionManager.getInstance().getChildByName("dressing_model")).getChildAt(0)).x - _arg2)) < 45){
_local8 = int(TextField(MovieClip(PetFashionManager.getInstance().getChildByName("menuBar")).getChildByName("scoreCounter")).text);
_local8++;
TextField(MovieClip(PetFashionManager.getInstance().getChildByName("menuBar")).getChildByName("scoreCounter")).text = _local8.toString();
};
_local7 = int(TextField(MovieClip(PetFashionManager.getInstance().getChildByName("menuBar")).getChildByName("photoCounter")).text);
_local7++;
TextField(MovieClip(PetFashionManager.getInstance().getChildByName("menuBar")).getChildByName("photoCounter")).text = _local7.toString();
setTimer();
}
private function setTimer(){
myTimer = new Timer(1500, 1);
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, unload);
}
private function unload(_arg1:TimerEvent):void{
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, unload);
this.pics.dispose();
this.parent.removeChild(this);
}
}
}//package pl.fabrykagier.game.petfashion.objects
Section 69
//PhotoReporter (pl.fabrykagier.game.petfashion.objects.PhotoReporter)
package pl.fabrykagier.game.petfashion.objects {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.game.petfashion.*;
import flash.text.*;
import flash.utils.*;
public class PhotoReporter extends MovieClip {
private var ph:Photo;
public var testPoint:MovieClip;
public var star:MovieClip;
public var numbers:TextField;
private var tab:Array;
public var tmp_ramka:MovieClip;
private var myTimer:Timer;
public var flash:MovieClip;
public function PhotoReporter(){
tmp_ramka = new photo_Area();
super();
myTimer = new Timer(1000, 5);
}
public function startTimer(){
if (this.tmp_ramka){
PetFashionManager.getInstance().addChild(this.tmp_ramka);
this.tmp_ramka.x = ((this.x - 60) - 1);
this.tmp_ramka.y = (230 - 1);
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER, countdown);
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, EndCountdown);
};
}
public function setArray(_arg1:Array){
this.tab = _arg1;
}
public function collision(_arg1:MovieClip):Boolean{
if (((this.getChildByName("testPoint").hitTestObject(_arg1)) && (myTimer.running))){
holdTimer();
return (true);
};
return (false);
}
private function countdown(_arg1:Event):void{
numbers.text = ("" + (5 - _arg1.currentTarget.currentCount));
}
public function takePics():void{
ph = new pics_ramka();
this.visible = false;
ph.takePhoto(MovieClip(PetFashionManager.getInstance()), this.x, this.y);
this.visible = true;
this.parent.addChild(ph);
ph.x = 10;
ph.y = 45;
SoundManager.playSound({name:"CATWALK_PHOTO", loops:1});
numbers.text = "";
clean();
MovieClip(this.getChildByName("flash")).gotoAndPlay(2);
}
public function stopTimer(){
myTimer.stop();
clean();
this.parent.removeChild(this);
this.tab.splice(tab.indexOf(this), 1);
tab = null;
}
public function clean(){
myTimer.stop();
myTimer.addEventListener(TimerEvent.TIMER, countdown);
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, EndCountdown);
if (((this.tmp_ramka) && (this.tmp_ramka.parent))){
PetFashionManager.getInstance().removeChild(this.tmp_ramka);
};
this.tmp_ramka = null;
if (this.parent.getChildByName("this")){
this.parent.removeChild(this);
};
}
private function EndCountdown(_arg1:TimerEvent):void{
myTimer.stop();
clean();
this.gotoAndPlay(55);
}
private function holdTimer(){
myTimer.stop();
}
}
}//package pl.fabrykagier.game.petfashion.objects
Section 70
//TweenLeftPetToDress (pl.fabrykagier.game.petfashion.objects.TweenLeftPetToDress)
package pl.fabrykagier.game.petfashion.objects {
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.game.petfashion.*;
public class TweenLeftPetToDress extends MovieClip {
public function TweenLeftPetToDress(){
addEventListener(Event.ADDED_TO_STAGE, addedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, removedFromStage);
}
private function addedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
gotoAndStop(PetFashionManager.PET);
}
private function removedFromStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStage);
}
}
}//package pl.fabrykagier.game.petfashion.objects
Section 71
//PetFashionManager (pl.fabrykagier.game.petfashion.PetFashionManager)
package pl.fabrykagier.game.petfashion {
import pl.fabrykagier.framework.media.*;
import flash.events.*;
import flash.display.*;
import pl.fabrykagier.framework.gameCharacters.model.*;
import pl.fabrykagier.framework.events.*;
import flash.text.*;
import flash.utils.*;
import pl.fabrykagier.game.petfashion.gameInterface.*;
import com.ubi.game.*;
import pl.fabrykagier.game.petfashion.levels.*;
import pl.fabrykagier.framework.elements.loader.*;
import pl.fabrykagier.game.petfashion.character.*;
import flash.ui.*;
public class PetFashionManager extends GameBase {
public var lvl_number:Number;// = 1
public var layer_rest:MovieClip;
private var loader:FrameworkLoader;
public var submit:button_hud_backToTown2;
public var menuBar:MovieClip;
public var dressing_model:_empty_mc_4_dressing;
public var BG:MovieClip;
private var startTicking:Boolean;// = true
public var buyNow:button_hud_buyNow;
public var inImagine:Boolean;
private var lvl_cleaning:Cleaning;
public var scoreHands:MovieClip;
public var gotoAndPlayParent_titleOut$:button_start;
private var tmp_cat:MovieClip;
public var scroll:MovieClip;
public var swapCharacter:interface_level1_stools;
public var washSummaryPopup:MovieClip;
public var progress_mc:MovieClip;
private var lvl_judging:Score;
private var myTimer:Timer;
public var dressing_wardobe:interface_level2_closet;
public var welcomPopup:interface_popup_welcome;
public var thumb_02:MovieClip;
public var thumb_03:MovieClip;
public var thumb_01:MovieClip;
public var gotoAndPlayParent_advertsOut$:button_hud_playNow;
public var FinalScorePopup:MovieClip;
private var minLeft:Number;
private var lvl_catwalk:Catwalk;
private var lvl_dressing:Dress;
public var backToImagineTown:button_hud_backToTown;
public static var POINTS:Number = 0;
public static var mouseFollower:MovieClip = new MovieClip();
public static var playerName:String;
public static var instance:PetFashionManager = null;
public static var PET_TYPE:String;
public static var PET:Number;
public function PetFashionManager(){
lvl_number = 1;
startTicking = true;
super();
addFrameScript(28, frame29, 78, frame79, 116, frame117, 131, frame132, 132, frame133, 143, frame144, 158, frame159, 159, frame160, 166, frame167, 196, frame197, 216, frame217, 230, frame231, 252, frame253, 253, frame254, 263, frame264, 272, frame273, 287, frame288, 295, frame296, 305, frame306, 306, frame307, 321, frame322, 329, frame330, 389, frame390, 404, frame405, 412, frame413, 423, frame424, 431, frame432, 446, frame447, 454, frame455, 465, frame466, 467, frame468, 482, frame483, 490, frame491, 525, frame526, 540, frame541, 555, frame556, 563, frame564, 574, frame575, 585, frame586, 600, frame601, 608, frame609, 642, frame643, 698, frame699, 722, frame723, 737, frame738, 745, frame746, 783, frame784, 798, frame799, 807, frame808, 854, frame855);
if ((((LoaderInfo(this.loaderInfo).parameters.InImagineTown == true)) || ((LoaderInfo(this.loaderInfo).parameters.InImagineTown == "true")))){
inImagine = true;
} else {
inImagine = false;
};
this.tabEnabled = false;
this.tabChildren = false;
instance = this;
loader = new FrameworkLoader(true, "", this);
loader.addEventListener(FrameworkLoader.FRAMEWORK_PROGRESS_EVENT, onProgress);
loader.addEventListener(FrameworkLoader.FRAMEWORK_COMPLETE_EVENT, onComplete);
}
function frame273(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
private function setTimer(_arg1:Number):void{
myTimer = new Timer(10, _arg1);
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER, countdown);
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, EndCountdown);
}
function frame159(){
stop();
}
public function resumeDress():void{
this.lvl_dressing.resumeDress();
}
function frame160(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame167(){
ChoosePetPics(swapCharacter).swapAnimatedPet();
}
function frame723(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame288(){
pauseCleaning();
stop();
}
private function countdown(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:String;
var _local7:String;
_local2 = _arg1.currentTarget.currentCount;
_local3 = Math.floor((_local2 / 100));
_local4 = Math.floor((_local3 / 60));
_local2 = (_local2 % 100);
_local2 = (99 - _local2);
_local3 = (_local3 % 60);
_local3 = (59 - _local3);
_local4 = (_local4 % 60);
_local4 = (this.minLeft - _local4);
_local5 = _local2.toString();
_local6 = _local3.toString();
_local7 = _local4.toString();
if ((((((_local7 == "0")) && ((_local6 == "10")))) && (this.startTicking))){
this.startTicking = false;
SoundManager.playSound({name:"CLOCK", loops:6});
};
if (_local5.length < 2){
_local5 = ("0" + _local5);
};
if (_local6.length < 2){
_local6 = ("0" + _local6);
};
if (_local7.length < 2){
_local7 = ("0" + _local7);
};
menuBar.time.text = ((((_local7 + ":") + _local6) + ":") + _local5);
}
public function addBonusPoint():void{
var _local1:String;
var _local2:Array;
var _local3:Number;
_local1 = TextField(MovieClip(this.getChildByName("menuBar")).getChildByName("time")).text;
_local2 = _local1.split(":");
_local3 = (60 * int(_local2[0]));
_local3 = (_local3 + int(_local2[1]));
TextField(MovieClip(this.getChildByName("menuBar")).getChildByName("scoreCounter")).text = _local3.toString();
if (_local3 > 0){
SoundManager.playSound({name:"CLEANING_FINISH_BONUS", loops:1});
};
}
private function onComplete(_arg1:Event):void{
gotoAndPlay("preloader_out");
SoundManager.playSound({name:"MUSIC_MENU_CLEANING", loops:100});
}
public function resumeCleaning():void{
addEventListener(MouseEvent.MOUSE_MOVE, mouseFollow);
this.lvl_cleaning.resumeCleaning();
Mouse.hide();
addChild(mouseFollower);
}
public function backToMenu():void{
if (this.getChildByName("swapCharacter")){
if (MovieClip(this.getChildByName("swapCharacter")).getChildByName("empty_mc")){
if (this.tmp_cat){
MovieClip(MovieClip(this.getChildByName("swapCharacter")).getChildByName("empty_mc")).removeChild(this.tmp_cat);
};
};
};
this.lvl_number = 1;
this.tmp_cat = null;
playerName = "";
if (myTimer){
if (myTimer.running){
myTimer.stop();
};
if (myTimer.hasEventListener(TimerEvent.TIMER)){
myTimer.removeEventListener(TimerEvent.TIMER, countdown);
};
if (myTimer.hasEventListener(TimerEvent.TIMER_COMPLETE)){
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, EndCountdown);
};
};
SoundManager.stopSound({name:"CLOCK", loops:1});
if (hasEventListener(MouseEvent.MOUSE_MOVE)){
removeEventListener(MouseEvent.MOUSE_MOVE, mouseFollow);
};
if (mouseFollower.parent){
removeChild(mouseFollower);
};
Mouse.show();
if (this.lvl_cleaning){
this.lvl_cleaning.clean();
if (this.lvl_cleaning.hasEventListener(Cleaning.COMPLETE)){
this.lvl_cleaning.removeEventListener(Cleaning.COMPLETE, nextCleanLvl);
};
if (this.lvl_cleaning.parent){
MovieClip(MovieClip(this.getChildByName("swapCharacter")).getChildByName("empty_mc")).removeChild(this.lvl_cleaning);
};
this.lvl_cleaning = null;
};
if (this.lvl_dressing){
this.lvl_dressing.clean();
if (this.lvl_dressing.parent){
removeChild(this.lvl_dressing);
};
this.lvl_dressing = null;
};
if (this.lvl_catwalk){
this.lvl_catwalk.clean();
if (this.lvl_catwalk.parent){
removeChild(this.lvl_catwalk);
};
this.lvl_catwalk = null;
};
SoundManager.stopSound({name:"MUSIC_CATWALK", loops:100});
SoundManager.playSound({name:"MUSIC_MENU_CLEANING", loops:100});
if (this.lvl_judging){
this.lvl_judging.clean();
if (this.lvl_judging.parent){
removeChild(this.lvl_judging);
};
this.lvl_judging = null;
};
this.gotoAndPlay("preloader_out");
}
function frame296(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame609(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame601(){
stop();
}
function frame855(){
backToMenu();
}
private function endMoonWalk():void{
this.lvl_catwalk.clean();
removeChild(this.lvl_catwalk);
this.startTicking = true;
SoundManager.stopSound({name:"CLOCK", loops:1});
}
function frame738(){
stop();
}
public function endDressing():void{
myTimer.stop();
removeChild(this.lvl_dressing);
this.startTicking = true;
SoundManager.stopSound({name:"CLOCK", loops:1});
}
function frame29(){
stop();
}
function frame746(){
SoundManager.playSound({name:"WOOSH", loops:1});
SoundManager.playSound({name:"GAMEFINISH_POSITIVE", loops:1});
}
override public function playAgain():void{
}
private function moonWalk():void{
this.minLeft = 0;
setTimer(((1 * 60) * 100));
this.lvl_catwalk = new Catwalk();
addChild(this.lvl_catwalk);
}
function frame197(){
stop();
}
function frame643(){
PetModel(dressing_model.getChildAt(0)).moveMe();
SoundManager.stopSound({name:"MUSIC_CATWALK", loops:100});
SoundManager.playSound({name:"MUSIC_MENU_CLEANING", loops:100});
}
function frame405(){
stop();
menuBar.time.text = "01:00:00";
}
function frame526(){
PetModel(dressing_model.getChildAt(0)).scaleMe();
dressing_model.x = 0;
dressing_model.y = 0;
SoundManager.stopSound({name:"MUSIC_MENU_CLEANING", loops:100});
SoundManager.playSound({name:"MUSIC_CATWALK", loops:100});
}
private function mouseFollow(_arg1:MouseEvent=null):void{
Mouse.hide();
mouseFollower.x = mouseX;
mouseFollower.y = mouseY;
}
function frame413(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame784(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame307(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame541(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame424(){
stop();
playDressing();
}
function frame432(){
pauseDress();
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame306(){
resumeCleaning();
stop();
}
function frame556(){
stop();
menuBar.time.text = "01:00:00";
}
public function pauseCleaning():void{
Mouse.show();
removeEventListener(MouseEvent.MOUSE_MOVE, mouseFollow);
removeChild(mouseFollower);
this.lvl_cleaning.pauseCleaning();
Mouse.show();
}
public function prepareCleaning():void{
MovieClip(this.getChildByName("swapCharacter")).gotoAndStop(2);
if (PET_TYPE == "cat0"){
this.tmp_cat = new cat_01_static_sideView_forCleaning();
} else {
if (PET_TYPE == "cat1"){
this.tmp_cat = new cat_02_static_sideView_forCleaning();
} else {
if (PET_TYPE == "dog0"){
this.tmp_cat = new dog_01_static_sideView_forCleaning();
} else {
if (PET_TYPE == "dog1"){
this.tmp_cat = new dog_02_static_sideView_forCleaning();
};
};
};
};
MovieClip(MovieClip(this.getChildByName("swapCharacter")).getChildByName("empty_mc")).addChild(this.tmp_cat);
MovieClip(MovieClip(this.getChildByName("swapCharacter")).getChildByName("empty_mc")).width = 218.6;
MovieClip(MovieClip(this.getChildByName("swapCharacter")).getChildByName("empty_mc")).height = 212;
}
function frame799(){
stop();
}
public function changeCursor(_arg1:MovieClip){
removeChild(mouseFollower);
mouseFollower = _arg1;
addChild(mouseFollower);
mouseFollow();
}
function frame447(){
stop();
}
private function onProgress(_arg1:FrameworkEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(getChildByName("progress_mc"));
if (_local2){
TextField(_local2.getChildByName("progress_txt")).text = (("loading game... " + _arg1.getParameter(FrameworkLoader.LOADER_PARAMETER_PERCENTS_ROUNDED)) + "%");
};
}
function frame322(){
stop();
addBonusPoint();
}
function frame79(){
stop();
}
private function nextCleanLvl(_arg1:Event):void{
this.lvl_cleaning.removeEventListener(Cleaning.COMPLETE, nextCleanLvl);
MovieClip(MovieClip(this.getChildByName("swapCharacter")).getChildByName("empty_mc")).removeChild(this.lvl_cleaning);
this.lvl_number++;
if (this.lvl_number < 4){
play_cleaning(this.lvl_number);
} else {
Mouse.show();
removeEventListener(MouseEvent.MOUSE_MOVE, mouseFollow);
removeChild(mouseFollower);
myTimer.stop();
this.startTicking = true;
SoundManager.stopSound({name:"CLOCK", loops:1});
MovieClip(this.getChildByName("swapCharacter")).gotoAndStop(3);
this.gotoAndPlay("washSummaryInGood");
};
}
function frame564(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame330(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame455(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame699(){
stop();
startJudging();
}
function frame575(){
stop();
moonWalk();
}
public function startJudging():void{
this.lvl_judging = new Score();
}
function frame586(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame468(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame217(){
prepareCleaning();
}
function frame466(){
resumeDress();
stop();
}
public function startCleaning():void{
addEventListener(MouseEvent.MOUSE_MOVE, mouseFollow);
addChild(mouseFollower);
Mouse.hide();
play_cleaning(this.lvl_number);
this.minLeft = 2;
setTimer(((3 * 60) * 100));
}
function frame231(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
public function thisGameSubmitScore():void{
submitScore(POINTS);
}
function frame117(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
private function playDressing():void{
this.lvl_dressing = new Dress();
addChild(this.lvl_dressing);
this.minLeft = 0;
setTimer(((1 * 60) * 100));
}
private function play_cleaning(_arg1:Number):void{
switch (_arg1){
case 1:
this.lvl_cleaning = new Bath();
MovieClip(this.getChildByName("thumb_01")).gotoAndStop(2);
break;
case 2:
this.lvl_cleaning = new Dry();
MovieClip(this.getChildByName("thumb_01")).gotoAndStop(1);
MovieClip(this.getChildByName("thumb_02")).gotoAndStop(2);
break;
case 3:
this.lvl_cleaning = new Brush();
MovieClip(this.getChildByName("thumb_02")).gotoAndStop(1);
MovieClip(this.getChildByName("thumb_03")).gotoAndStop(2);
break;
};
MovieClip(MovieClip(this.getChildByName("swapCharacter")).getChildByName("empty_mc")).addChild(this.lvl_cleaning);
addChild(mouseFollower);
this.lvl_cleaning.addEventListener(Cleaning.COMPLETE, nextCleanLvl);
}
function frame483(){
stop();
}
function frame808(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
private function EndCountdown(_arg1:TimerEvent):void{
SoundManager.playSound({name:"OUTOFTIME", loops:1});
myTimer.removeEventListener(TimerEvent.TIMER, countdown);
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, EndCountdown);
myTimer.stop();
menuBar.time.text = "00:00:00";
this.startTicking = true;
SoundManager.stopSound({name:"CLOCK", loops:1});
if (lvl_catwalk){
endMoonWalk();
this.gotoAndPlay("reporters_ending");
} else {
if (lvl_dressing){
if (Model(MovieClip(this.getChildByName("dressing_model")).getChildAt(0))._itemList.length == 4){
endDressing();
this.gotoAndPlay("dressSummaryInGood");
} else {
SoundManager.playSound({name:"FINISH", loops:1});
this.gotoAndPlay("dressSummaryInBad");
};
} else {
if (lvl_cleaning){
SoundManager.playSound({name:"FINISH", loops:1});
this.gotoAndPlay("washSummaryInBad");
};
};
};
}
function frame132(){
stop();
}
function frame491(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame253(){
stop();
}
function frame133(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
public function pauseDress():void{
this.lvl_dressing.pauseDress();
}
function frame264(){
stop();
startCleaning();
}
function frame144(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
function frame254(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
override public function destroy():void{
}
function frame390(){
SoundManager.playSound({name:"WOOSH", loops:1});
}
public static function getInstance():PetFashionManager{
return (instance);
}
}
}//package pl.fabrykagier.game.petfashion
Section 72
//_empty_mc_4_dressing (_empty_mc_4_dressing)
package {
import pl.fabrykagier.game.petfashion.objects.*;
public dynamic class _empty_mc_4_dressing extends TweenLeftPetToDress {
public function _empty_mc_4_dressing(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 73
//button_hud_arrow (button_hud_arrow)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class button_hud_arrow extends ChoosePet {
public function button_hud_arrow(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 74
//button_hud_backToTown (button_hud_backToTown)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class button_hud_backToTown extends BuyNowBackTo {
public function button_hud_backToTown(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 75
//button_hud_backToTown2 (button_hud_backToTown2)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class button_hud_backToTown2 extends BuyNowBackTo {
public function button_hud_backToTown2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 76
//button_hud_buyNow (button_hud_buyNow)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class button_hud_buyNow extends BuyNowBackTo {
public function button_hud_buyNow(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 77
//button_hud_confirm_dressing (button_hud_confirm_dressing)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class button_hud_confirm_dressing extends DoneDressingButton {
public function button_hud_confirm_dressing(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 78
//button_hud_confirm_pet (button_hud_confirm_pet)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class button_hud_confirm_pet extends ConfirmPetButton {
public function button_hud_confirm_pet(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 79
//button_hud_done (button_hud_done)
package {
import pl.fabrykagier.framework.ui.graphical.*;
public dynamic class button_hud_done extends GotoButton {
public function button_hud_done(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 80
//button_hud_playNow (button_hud_playNow)
package {
import pl.fabrykagier.framework.ui.graphical.*;
public dynamic class button_hud_playNow extends GotoButton {
public function button_hud_playNow(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 81
//button_hud_quitGame (button_hud_quitGame)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class button_hud_quitGame extends HudMenuButton {
public function button_hud_quitGame(){
addFrameScript(0, frame1, 7, frame8, 14, frame15);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package
Section 82
//Button_Hud_Sound_On_Stage (Button_Hud_Sound_On_Stage)
package {
import pl.fabrykagier.framework.ui.graphical.*;
public dynamic class Button_Hud_Sound_On_Stage extends MutteButton {
public function Button_Hud_Sound_On_Stage(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
function frame5(){
stop();
}
}
}//package
Section 83
//button_okay (button_okay)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class button_okay extends ConfirmButton {
public function button_okay(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 84
//button_okay_hello (button_okay_hello)
package {
import pl.fabrykagier.framework.ui.graphical.*;
public dynamic class button_okay_hello extends GotoButton {
public function button_okay_hello(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 85
//button_start (button_start)
package {
import pl.fabrykagier.framework.ui.graphical.*;
public dynamic class button_start extends GotoButton {
}
}//package
Section 86
//BUTTONCLICK (BUTTONCLICK)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class BUTTONCLICK extends SoundObject {
}
}//package
Section 87
//cat body_02 (cat body_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class cat body_02 extends ModelItemFirstFrame {
}
}//package
Section 88
//cat leg 01_02 (cat leg 01_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class cat leg 01_02 extends ModelItemFirstFrame {
}
}//package
Section 89
//cat leg 03_02 (cat leg 03_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class cat leg 03_02 extends ModelItemFirstFrame {
}
}//package
Section 90
//cat leg 04_02 (cat leg 04_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class cat leg 04_02 extends ModelItemFirstFrame {
}
}//package
Section 91
//cat leg 06_02 (cat leg 06_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class cat leg 06_02 extends ModelItemFirstFrame {
}
}//package
Section 92
//cat torse_02 (cat torse_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class cat torse_02 extends ModelItemFirstFrame {
}
}//package
Section 93
//cat_01_static_sideView_forCleaning (cat_01_static_sideView_forCleaning)
package {
import flash.display.*;
public dynamic class cat_01_static_sideView_forCleaning extends MovieClip {
public function cat_01_static_sideView_forCleaning(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 94
//cat_02_static_sideView_forCleaning (cat_02_static_sideView_forCleaning)
package {
import flash.display.*;
public dynamic class cat_02_static_sideView_forCleaning extends MovieClip {
public function cat_02_static_sideView_forCleaning(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 95
//cat_02ass (cat_02ass)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class cat_02ass extends ModelItemFirstFrame {
}
}//package
Section 96
//catass (catass)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class catass extends ModelItemFirstFrame {
}
}//package
Section 97
//catbody (catbody)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class catbody extends ModelItemFirstFrame {
}
}//package
Section 98
//catleg01 (catleg01)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class catleg01 extends ModelItemFirstFrame {
}
}//package
Section 99
//catleg03 (catleg03)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class catleg03 extends ModelItemFirstFrame {
}
}//package
Section 100
//catleg04 (catleg04)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class catleg04 extends ModelItemFirstFrame {
}
}//package
Section 101
//catleg06 (catleg06)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class catleg06 extends ModelItemFirstFrame {
}
}//package
Section 102
//catneckle (catneckle)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class catneckle extends ModelItemFirstFrame {
}
}//package
Section 103
//cattailup (cattailup)
package {
import flash.events.*;
import pl.fabrykagier.game.petfashion.character.*;
public dynamic class cattailup extends PetModel {
public var poseNo:Number;
public function cattailup(){
addFrameScript(0, frame1, 68, frame69, 101, frame102, 151, frame152, 389, frame390, 398, frame399, 423, frame424, 493, frame494);
}
function frame152(){
poseNo = Math.floor((Math.random() * 2));
if (poseNo == 1){
gotoAndPlay("posing left");
} else {
gotoAndPlay("posing right");
};
}
function frame399(){
gotoAndPlay("stand up");
}
function frame102(){
stop();
}
function frame1(){
styleSplitPosition = 0;
}
function frame494(){
dispatchEvent(new Event("complete"));
stop();
}
function frame424(){
dispatchEvent(new Event("ready"));
}
function frame390(){
dispatchEvent(new Event("ready"));
}
function frame69(){
gotoAndPlay("cat walk up");
}
}
}//package
Section 104
//cattailup_02 (cattailup_02)
package {
import flash.events.*;
import pl.fabrykagier.game.petfashion.character.*;
public dynamic class cattailup_02 extends PetModel {
public var poseNo:Number;
public function cattailup_02(){
addFrameScript(0, frame1, 68, frame69, 101, frame102, 151, frame152, 389, frame390, 398, frame399, 423, frame424, 493, frame494);
}
function frame152(){
poseNo = Math.floor((Math.random() * 2));
if (poseNo == 1){
gotoAndPlay("posing left");
} else {
gotoAndPlay("posing right");
};
}
function frame399(){
gotoAndPlay("stand up");
}
function frame102(){
stop();
}
function frame1(){
styleSplitPosition = 0;
}
function frame494(){
dispatchEvent(new Event("complete"));
stop();
}
function frame424(){
dispatchEvent(new Event("ready"));
}
function frame390(){
dispatchEvent(new Event("ready"));
}
function frame69(){
gotoAndPlay("cat walk up");
}
}
}//package
Section 105
//cattorse (cattorse)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class cattorse extends ModelItemFirstFrame {
}
}//package
Section 106
//CATWALK_PHOTO (CATWALK_PHOTO)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class CATWALK_PHOTO extends SoundObject {
}
}//package
Section 107
//character_cleaning_pet (character_cleaning_pet)
package {
import pl.fabrykagier.game.petfashion.objects.*;
public dynamic class character_cleaning_pet extends CleaningPetMoveLeft {
public function character_cleaning_pet(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 108
//CLEANING_COMB (CLEANING_COMB)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class CLEANING_COMB extends SoundObject {
}
}//package
Section 109
//CLEANING_DRYER (CLEANING_DRYER)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class CLEANING_DRYER extends SoundObject {
}
}//package
Section 110
//CLEANING_FINISH_BONUS (CLEANING_FINISH_BONUS)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class CLEANING_FINISH_BONUS extends SoundObject {
}
}//package
Section 111
//CLEANING_SHOWER (CLEANING_SHOWER)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class CLEANING_SHOWER extends SoundObject {
}
}//package
Section 112
//CLOCK (CLOCK)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class CLOCK extends SoundObject {
}
}//package
Section 113
//cza1 (cza1)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class cza1 extends ModelItem {
}
}//package
Section 114
//cza2 (cza2)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class cza2 extends ModelItem {
}
}//package
Section 115
//czapa (czapa)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class czapa extends ModelItem {
}
}//package
Section 116
//dach1 (dach1)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dach1 extends ModelItem {
}
}//package
Section 117
//dach2 (dach2)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dach2 extends ModelItem {
}
}//package
Section 118
//daszek (daszek)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class daszek extends ModelItem {
}
}//package
Section 119
//dog ass (dog ass)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog ass extends ModelItemFirstFrame {
}
}//package
Section 120
//dog ass_02 (dog ass_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog ass_02 extends ModelItemFirstFrame {
}
}//package
Section 121
//dog body (dog body)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog body extends ModelItemFirstFrame {
}
}//package
Section 122
//dog body_02 (dog body_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog body_02 extends ModelItemFirstFrame {
}
}//package
Section 123
//dog leg 01 (dog leg 01)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog leg 01 extends ModelItemFirstFrame {
}
}//package
Section 124
//dog leg 01_02 (dog leg 01_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog leg 01_02 extends ModelItemFirstFrame {
}
}//package
Section 125
//dog leg 03 (dog leg 03)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog leg 03 extends ModelItemFirstFrame {
}
}//package
Section 126
//dog leg 03_02 (dog leg 03_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog leg 03_02 extends ModelItemFirstFrame {
}
}//package
Section 127
//dog leg 04 (dog leg 04)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog leg 04 extends ModelItemFirstFrame {
}
}//package
Section 128
//dog leg 04_02 (dog leg 04_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog leg 04_02 extends ModelItemFirstFrame {
}
}//package
Section 129
//dog leg 06 (dog leg 06)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog leg 06 extends ModelItemFirstFrame {
}
}//package
Section 130
//dog leg 06_02 (dog leg 06_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog leg 06_02 extends ModelItemFirstFrame {
}
}//package
Section 131
//dog ozdoba (dog ozdoba)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog ozdoba extends ModelItemFirstFrame {
}
}//package
Section 132
//dog torse (dog torse)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog torse extends ModelItemFirstFrame {
}
}//package
Section 133
//dog torse_02 (dog torse_02)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class dog torse_02 extends ModelItemFirstFrame {
}
}//package
Section 134
//dog_01_static_sideView_forCleaning (dog_01_static_sideView_forCleaning)
package {
import flash.display.*;
public dynamic class dog_01_static_sideView_forCleaning extends MovieClip {
public function dog_01_static_sideView_forCleaning(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 135
//dog_02_static_sideView_forCleaning (dog_02_static_sideView_forCleaning)
package {
import flash.display.*;
public dynamic class dog_02_static_sideView_forCleaning extends MovieClip {
public function dog_02_static_sideView_forCleaning(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 136
//dog_02taildown (dog_02taildown)
package {
import flash.events.*;
import pl.fabrykagier.game.petfashion.character.*;
public dynamic class dog_02taildown extends PetModel {
public var poseNo:Number;
public function dog_02taildown(){
addFrameScript(0, frame1, 68, frame69, 101, frame102, 151, frame152, 389, frame390, 398, frame399, 423, frame424, 493, frame494);
}
function frame152(){
poseNo = Math.floor((Math.random() * 2));
if (poseNo == 1){
gotoAndPlay("posing left");
} else {
gotoAndPlay("posing right");
};
}
function frame399(){
gotoAndPlay("stand up");
}
function frame102(){
stop();
}
function frame1(){
styleSplitPosition = 0;
}
function frame494(){
dispatchEvent(new Event("complete"));
stop();
}
function frame424(){
dispatchEvent(new Event("ready"));
}
function frame390(){
dispatchEvent(new Event("ready"));
}
function frame69(){
gotoAndPlay("cat walk up");
}
}
}//package
Section 137
//dogtailup (dogtailup)
package {
import flash.events.*;
import pl.fabrykagier.game.petfashion.character.*;
public dynamic class dogtailup extends PetModel {
public var poseNo:Number;
public function dogtailup(){
addFrameScript(0, frame1, 68, frame69, 101, frame102, 151, frame152, 389, frame390, 398, frame399, 423, frame424, 493, frame494);
}
function frame152(){
poseNo = Math.floor((Math.random() * 2));
if (poseNo == 1){
gotoAndPlay("posing left");
} else {
gotoAndPlay("posing right");
};
}
function frame399(){
gotoAndPlay("stand up");
}
function frame102(){
stop();
}
function frame1(){
styleSplitPosition = 0;
}
function frame494(){
dispatchEvent(new Event("complete"));
stop();
}
function frame424(){
dispatchEvent(new Event("ready"));
}
function frame390(){
dispatchEvent(new Event("ready"));
}
function frame69(){
gotoAndPlay("cat walk up");
}
}
}//package
Section 138
//Effect (Effect)
package {
import flash.display.*;
public dynamic class Effect extends MovieClip {
public function Effect(){
addFrameScript(79, frame80);
}
function frame80(){
if (this.parent){
this.parent.removeChild(this);
};
stop();
}
}
}//package
Section 139
//FINISH (FINISH)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class FINISH extends SoundObject {
}
}//package
Section 140
//g1 (g1)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class g1 extends ModelItem {
}
}//package
Section 141
//g2 (g2)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class g2 extends ModelItem {
}
}//package
Section 142
//GAMEFINISH_NEGATIVE (GAMEFINISH_NEGATIVE)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class GAMEFINISH_NEGATIVE extends SoundObject {
}
}//package
Section 143
//GAMEFINISH_POSITIVE (GAMEFINISH_POSITIVE)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class GAMEFINISH_POSITIVE extends SoundObject {
}
}//package
Section 144
//glas 2 (glas 2)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class glas 2 extends ModelItem {
}
}//package
Section 145
//interface_level1_stools (interface_level1_stools)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class interface_level1_stools extends ChoosePetPics {
public function interface_level1_stools(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 146
//interface_level2_closet (interface_level2_closet)
package {
import pl.fabrykagier.game.petfashion.dressing.*;
public dynamic class interface_level2_closet extends DressWardobe {
}
}//package
Section 147
//interface_popup_task (interface_popup_task)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class interface_popup_task extends PopupHello {
}
}//package
Section 148
//interface_popup_welcome (interface_popup_welcome)
package {
import pl.fabrykagier.game.petfashion.gameInterface.*;
public dynamic class interface_popup_welcome extends PopupWelcome {
}
}//package
Section 149
//JUDGESSCREEN_APPLAUSE (JUDGESSCREEN_APPLAUSE)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class JUDGESSCREEN_APPLAUSE extends SoundObject {
}
}//package
Section 150
//kap back (kap back)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class kap back extends ModelItem {
}
}//package
Section 151
//kap1 (kap1)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class kap1 extends ModelItem {
}
}//package
Section 152
//kap2 (kap2)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class kap2 extends ModelItem {
}
}//package
Section 153
//kaszkiett (kaszkiett)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class kaszkiett extends ModelItem {
}
}//package
Section 154
//MUSIC_CATWALK (MUSIC_CATWALK)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class MUSIC_CATWALK extends SoundObject {
}
}//package
Section 155
//MUSIC_MENU_CLEANING (MUSIC_MENU_CLEANING)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class MUSIC_MENU_CLEANING extends SoundObject {
}
}//package
Section 156
//ny (ny)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class ny extends ModelItem {
}
}//package
Section 157
//OUTOFTIME (OUTOFTIME)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class OUTOFTIME extends SoundObject {
}
}//package
Section 158
//pen_comb (pen_comb)
package {
import flash.display.*;
public dynamic class pen_comb extends MovieClip {
}
}//package
Section 159
//pen_dry (pen_dry)
package {
import flash.display.*;
public dynamic class pen_dry extends MovieClip {
}
}//package
Section 160
//pen_dry_pattern (pen_dry_pattern)
package {
import flash.display.*;
public dynamic class pen_dry_pattern extends MovieClip {
}
}//package
Section 161
//pen_dry2 (pen_dry2)
package {
import flash.display.*;
public dynamic class pen_dry2 extends MovieClip {
}
}//package
Section 162
//pen_wash (pen_wash)
package {
import flash.display.*;
public dynamic class pen_wash extends MovieClip {
}
}//package
Section 163
//pen_wash_pattern (pen_wash_pattern)
package {
import flash.display.*;
public dynamic class pen_wash_pattern extends MovieClip {
}
}//package
Section 164
//pen_wash2 (pen_wash2)
package {
import flash.display.*;
public dynamic class pen_wash2 extends MovieClip {
}
}//package
Section 165
//PETZ_CAT (PETZ_CAT)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class PETZ_CAT extends SoundObject {
}
}//package
Section 166
//PETZ_DOG_BARK (PETZ_DOG_BARK)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class PETZ_DOG_BARK extends SoundObject {
}
}//package
Section 167
//photo_Area (photo_Area)
package {
import flash.display.*;
public dynamic class photo_Area extends MovieClip {
}
}//package
Section 168
//pics_ramka (pics_ramka)
package {
import pl.fabrykagier.game.petfashion.objects.*;
public dynamic class pics_ramka extends Photo {
}
}//package
Section 169
//Reporter1 (Reporter1)
package {
import pl.fabrykagier.game.petfashion.objects.*;
public dynamic class Reporter1 extends PhotoReporter {
public function Reporter1(){
addFrameScript(0, frame1, 34, frame35, 39, frame40, 72, frame73);
}
function frame73(){
stopTimer();
stop();
}
function frame1(){
}
function frame35(){
startTimer();
stop();
}
function frame40(){
}
}
}//package
Section 170
//Reporter2 (Reporter2)
package {
import pl.fabrykagier.game.petfashion.objects.*;
public dynamic class Reporter2 extends PhotoReporter {
public function Reporter2(){
addFrameScript(0, frame1, 1, frame2, 34, frame35, 39, frame40, 72, frame73);
}
function frame73(){
stopTimer();
stop();
}
function frame1(){
}
function frame2(){
play();
}
function frame35(){
startTimer();
stop();
}
function frame40(){
}
}
}//package
Section 171
//ROLLOVER (ROLLOVER)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class ROLLOVER extends SoundObject {
}
}//package
Section 172
//tasma (tasma)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class tasma extends ModelItem {
}
}//package
Section 173
//ucho1 (ucho1)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class ucho1 extends ModelItemFirstFrame {
}
}//package
Section 174
//ucho1copy (ucho1copy)
package {
import pl.fabrykagier.framework.gameCharacters.model.*;
public dynamic class ucho1copy extends ModelItemFirstFrame {
}
}//package
Section 175
//wardrobeItemx (wardrobeItemx)
package {
import pl.fabrykagier.game.petfashion.dressing.*;
public dynamic class wardrobeItemx extends DressWardobeItem {
}
}//package
Section 176
//WOOSH (WOOSH)
package {
import pl.fabrykagier.framework.media.*;
public dynamic class WOOSH extends SoundObject {
}
}//package