Section 1
//CustomSound (assets.CustomSound)
package assets {
import flash.events.*;
import flash.media.*;
public class CustomSound extends Sound {
protected var soundVolume:SoundTransform;
protected var soundChannel:SoundChannel;
protected var lastPos:int;
protected var loop:Boolean;
protected var soundObj:Sound;
public function CustomSound(){
soundChannel = new SoundChannel();
super();
soundObj = this;
soundVolume = SoundManager.soundVolume;
}
public function playSound(){
if (SoundManager.muteStatus){
soundVolume.volume = 0;
} else {
soundVolume.volume = 1;
};
stopSound();
lastPos = soundChannel.position;
soundChannel = soundObj.play(lastPos, 0, soundVolume);
soundChannel.addEventListener(Event.SOUND_COMPLETE, onCompleteSound);
}
public function set loopStatus(s:Boolean):void{
loop = s;
}
public function stopSound(){
lastPos = soundChannel.position;
soundChannel.stop();
soundChannel.removeEventListener(Event.SOUND_COMPLETE, onCompleteSound);
}
public function muteMusic(){
soundVolume.volume = 0;
playSound();
}
public function unMuteMusic(){
soundVolume.volume = 1;
playSound();
}
function onCompleteSound(event:Event){
soundChannel.stop();
soundChannel.removeEventListener(Event.SOUND_COMPLETE, onCompleteSound);
if (loop){
soundChannel = soundObj.play(0, 0, soundVolume);
soundChannel.addEventListener(Event.SOUND_COMPLETE, onCompleteSound);
} else {
SoundManager.callBack.removeFromArray((soundObj as CustomSound));
};
}
}
}//package assets
Section 2
//FBShare (assets.FBShare)
package assets {
import flash.events.*;
import flash.display.*;
public class FBShare extends MovieClip {
public var fbshare:MovieClip;
public function FBShare(){
super();
init();
}
public function init():void{
addLogoListener();
this.x = 615;
this.y = 475;
}
private function addLogoListener(){
trace("added listener");
fbshare.buttonMode = true;
fbshare.addEventListener(MouseEvent.CLICK, onClick);
}
private function onClick(event:MouseEvent){
trace("clicked on button");
DocumentClass.callFBShare();
}
}
}//package assets
Section 3
//G2WGameOver (assets.G2WGameOver)
package assets {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
public class G2WGameOver extends MovieClip {
private var xmlURL:String;
private var relatedGameXML:XML;
public var parentClip:MovieClip;
private var tempNameText:String;// = ""
private var imageLoader:Loader;
public var btn_playAgain:SimpleButton;
public var thumbClip:MovieClip;
private var gameArray:Array;
public var g2w_skipPanel:MovieClip;
private var xmlArray:Array;
private var skipStatus:Boolean;// = false
public var mc_playAgainAll:MovieClip;
public var hit_area:MovieClip;
public var mcExternalLinks:MovieClip;
private var domainStatus:Boolean;// = false
private var winStatus:Boolean;// = false
public function G2WGameOver(){
xmlURL = ((GameObj.relatedGamesXML + "?t=") + getTimer());
tempNameText = "";
xmlArray = new Array();
gameArray = new Array();
skipStatus = false;
winStatus = false;
domainStatus = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
skipStatus = false;
winStatus = false;
}
public function checkDomainStatus(){
var swfurl:*;
swfurl = String(this.root.loaderInfo.url);
if (((!((swfurl.indexOf("games2win.com") == -1))) || (!((swfurl.indexOf("gangofgamers.com") == -1))))){
GameObj.externalLinkRef = "VT";
domainStatus = true;
} else {
GameObj.externalLinkRef = "BOTH";
domainStatus = false;
};
}
public function init(gType:String, val:Boolean){
var st:String;
st = String(gType);
trace(("asset type loaded = " + st));
skipStatus = val;
trace(("skip level status = " + skipStatus));
checkDomainStatus();
if ((((((st == "gamecomplete")) || ((st == "gameComplete")))) || ((st == "GameComplete")))){
winStatus = true;
gotoAndStop(3);
} else {
if (skipStatus){
mc_playAgainAll.gotoAndStop(1);
} else {
mc_playAgainAll.gotoAndStop(2);
};
winStatus = false;
gotoAndStop(2);
};
if (GameObj.externalLinkRef == "FB"){
mcExternalLinks.gotoAndStop(2);
} else {
if (GameObj.externalLinkRef == "VT"){
mcExternalLinks.gotoAndStop(3);
} else {
if (GameObj.externalLinkRef == "BOTH"){
mcExternalLinks.gotoAndStop(4);
};
};
};
addFrameScript(1, frame2Script);
addFrameScript(2, frame3Script);
addFrameScript(3, frame4Script);
}
public function frame4Script(){
addVideoListener();
btn_playAgain.addEventListener(MouseEvent.CLICK, levelBtnListener);
hit_area.addEventListener(MouseEvent.CLICK, onClick3);
thumbClip.addEventListener(MouseEvent.CLICK, onClick4);
}
public function levelBtnListener(event:MouseEvent){
var btnname:*;
btnname = event.target.name;
trace(("btn name = " + btnname));
if (btnname == "btn_videoTutorial"){
DocumentClass.callVideo();
trace("video click");
return;
};
if (btnname == "btn_shareScore"){
DocumentClass.faceBookCall();
trace("video click");
return;
};
if (btnname == "btn_playAgain"){
if (winStatus){
(parent as DocumentClass).g2wGameOver(true);
} else {
(parent as DocumentClass).g2wGameOver(false);
};
};
if (btnname == "btn_nextLevel"){
(parent as DocumentClass).g2wSkipLevel();
};
}
private function addVideoListener(){
checkDomainStatus();
if (GameObj.externalLinkRef == "FB"){
mcExternalLinks.gotoAndStop(2);
mcExternalLinks.btn_shareScore.addEventListener(MouseEvent.CLICK, levelBtnListener);
} else {
if (GameObj.externalLinkRef == "VT"){
mcExternalLinks.gotoAndStop(3);
mcExternalLinks.btn_videoTutorial.addEventListener(MouseEvent.CLICK, levelBtnListener);
} else {
if (GameObj.externalLinkRef == "BOTH"){
mcExternalLinks.gotoAndStop(4);
mcExternalLinks.btn_videoTutorial.addEventListener(MouseEvent.CLICK, levelBtnListener);
mcExternalLinks.btn_shareScore.addEventListener(MouseEvent.CLICK, levelBtnListener);
};
};
};
}
function frame3(){
stop();
}
public function onClick3(event:MouseEvent){
DocumentClass.callGames2winStrip();
}
public function onClick4(event:MouseEvent){
DocumentClass.callGames2winThumb();
}
function frame1(){
stop();
}
public function frame2Script(){
addVideoListener();
if (skipStatus){
mc_playAgainAll.btn_playAgain.addEventListener(MouseEvent.CLICK, levelBtnListener);
mc_playAgainAll.btn_nextLevel.addEventListener(MouseEvent.CLICK, levelBtnListener);
} else {
mc_playAgainAll.btn_playAgain.addEventListener(MouseEvent.CLICK, levelBtnListener);
};
hit_area.addEventListener(MouseEvent.CLICK, onClick3);
thumbClip.addEventListener(MouseEvent.CLICK, onClick4);
}
public function frame3Script(){
addVideoListener();
btn_playAgain.addEventListener(MouseEvent.CLICK, levelBtnListener);
hit_area.addEventListener(MouseEvent.CLICK, onClick3);
thumbClip.addEventListener(MouseEvent.CLICK, onClick4);
}
function frame2(){
stop();
}
}
}//package assets
Section 4
//InviziAd (assets.InviziAd)
package assets {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
public class InviziAd {
public var movieclip:MovieClip;
public var container:MovieClip;
public var iAdsXML:XML;
public var currentLink:String;// = "http://www.inviziads.com/advertisers-get-started.html?utm_source=4_1&utm_medium=messages&utm_content=1&utm_campaign=invizi"
public var adLoader:Loader;
public var messageXML:XML;
public var titleTxt:TextField;
public var adContainer:MovieClip;
public var progressBar:MovieClip;
public var adHeight:Number;
public var logo:MovieClip;
public var backGround_mc:MovieClip;
private var adVersion:String;// = "1_0"
public var timeCount:int;// = 0
public var bottomTxt:TextField;
public var mystage:Stage;
public var theTimer:Timer;
public var currentMessage:String;// = "Advertisers, try us out for US$250"
public var adWidth:Number;
public var messageTxt:TextField;
public var logoPath:String;// = "http://s1.inviziads.com/partner/inviziad_logo.jpg"
public var showTime:int;
public var onAdFinished:Function;
public var square_mc:MovieClip;
private var adType:String;// = "pre"
public function InviziAd(){
adVersion = "1_0";
adType = "pre";
adLoader = new Loader();
timeCount = 0;
logoPath = "http://s1.inviziads.com/partner/inviziad_logo.jpg";
currentMessage = "Advertisers, try us out for US$250";
currentLink = "http://www.inviziads.com/advertisers-get-started.html?utm_source=4_1&utm_medium=messages&utm_content=1&utm_campaign=invizi";
super();
Security.allowDomain("*");
}
public function showPreRoll(gID:String, gHost:String, clip:MovieClip):void{
var gameID:String;
var gameHost:String;
var isAvailable:Boolean;
var docURL:String;
var myPattern:RegExp;
var fileURL:String;
var adURLRequest:URLRequest;
var adURLLoader:URLLoader;
var adURLVars:URLVariables;
var gID = gID;
var gHost = gHost;
var clip = clip;
movieclip = clip;
mystage = clip.stage;
gameID = gID;
gameHost = gHost;
measureComScore(gameHost);
drawContainer();
container = new MovieClip();
movieclip.addChild(container);
mystage.scaleMode = "noScale";
mystage.align = "TL";
isAvailable = false;
docURL = "null";
if (ExternalInterface.available){
ExternalInterface.call("document.URL.toString");
isAvailable = true;
//unresolved jump
var _slot1 = error;
docURL = "null";
//unresolved jump
var _slot1 = err;
docURL = "null";
if (isAvailable){
docURL = ExternalInterface.call("document.URL.toString");
};
};
myPattern = /\/\[\[DYNAMIC\]\]\/1/;
fileURL = movieclip.loaderInfo.url.replace(myPattern, "");
adURLRequest = new URLRequest((((((("http://s1.inviziads.com/lookup.html?g=" + gameID) + "&h=") + gameHost) + "&v=") + adVersion) + "&type=pre&as3=1&"));
adURLLoader = new URLLoader();
adURLVars = new URLVariables();
adURLLoader.addEventListener(Event.COMPLETE, handleLoadSuccessful);
adURLLoader.addEventListener(IOErrorEvent.IO_ERROR, handleNoResponse);
adURLVars.purl = docURL;
adURLVars.hurl = fileURL;
adURLRequest.method = URLRequestMethod.GET;
adURLRequest.data = adURLVars;
adURLLoader.load(adURLRequest);
}
public function stageResize(evt:Event){
container.x = ((mystage.stageWidth / 2) - (adWidth / 2));
container.y = ((mystage.stageHeight / 2) - (adHeight / 2));
progressBar.y = (container.height + 5);
logo.x = int(((progressBar.x + progressBar.width) - logo.width));
logo.y = int(((progressBar.y + progressBar.height) + 7));
bottomTxt.y = (progressBar.y + 38);
titleTxt.y = -20;
}
public function messageHandlerFails(evt:IOErrorEvent){
messageTxt.htmlText = (((("<u><font face='arial' color='#0066CC'><a href='" + currentLink) + "' target='_blank'>") + currentMessage) + "</a></font>/<u>");
}
public function drawContainer(){
backGround_mc = new MovieClip();
movieclip.addChild(backGround_mc);
backGround_mc.name = "backGround";
backGround_mc.graphics.beginFill(0xFFFFFF);
backGround_mc.graphics.moveTo(0, 0);
backGround_mc.graphics.lineTo(mystage.stageWidth, 0);
backGround_mc.graphics.lineTo(mystage.stageWidth, mystage.stageHeight);
backGround_mc.graphics.lineTo(0, mystage.stageHeight);
backGround_mc.graphics.lineTo(0, 0);
backGround_mc.graphics.endFill();
}
public function createAssets(){
var format:TextFormat;
adLoader.contentLoaderInfo.addEventListener(Event.INIT, loadInit);
if (iAdsXML.type == "EMBED"){
square_mc = new MovieClip();
container.addChild(square_mc);
adContainer = new MovieClip();
adContainer.name = "adContainer";
container.addChild(adContainer);
adContainer.addChild(adLoader);
format = new TextFormat();
format.align = "center";
format.font = "Arial";
format.size = 11;
titleTxt = new TextField();
bottomTxt = new TextField();
titleTxt.width = (bottomTxt.width = adWidth);
titleTxt.autoSize = (bottomTxt.autoSize = TextFieldAutoSize.CENTER);
bottomTxt.selectable = false;
titleTxt.selectable = false;
bottomTxt.multiline = true;
bottomTxt.defaultTextFormat = (titleTxt.defaultTextFormat = format);
titleTxt.text = "";
titleTxt.name = "h_txt";
bottomTxt.name = "b_txt";
progressBar = new MovieClip();
progressBar.name = "progressBar";
container.addChild(progressBar);
container.addChild(titleTxt);
container.addChild(bottomTxt);
} else {
if (iAdsXML.type == "FULL"){
container.addChild(adLoader);
};
};
}
private function onAddedToStage(event:Event=null):void{
}
public function loadInit(evt:Event){
var bar_mc:MovieClip;
var box_mc:MovieClip;
var newline:*;
var logoLoader:*;
var imageURLReq:URLRequest;
var evt = evt;
theTimer.start();
theTimer.addEventListener(TimerEvent.TIMER, timeInc);
theTimer.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
titleTxt.text = "Advertisement";
progressBar.tim = showTime;
progressBar.start = function (){
var game_fps:*;
var maxw:*;
game_fps = mystage.frameRate;
maxw = (this.width - 2);
this.ad = (maxw / (this.tim + 1));
this.ad = (this.ad / game_fps);
};
bar_mc = new MovieClip();
box_mc = new MovieClip();
bar_mc.name = "bar";
bar_mc.graphics.beginFill(0x6600);
bar_mc.graphics.moveTo(0, 0);
bar_mc.graphics.lineTo(1, 0);
bar_mc.graphics.lineTo(1, 13);
bar_mc.graphics.lineTo(0, 13);
bar_mc.graphics.lineTo(0, 0);
bar_mc.graphics.endFill();
bar_mc.x = 1.5;
bar_mc.y = 1;
box_mc.graphics.lineStyle(1, 0x333333, 100, true, "none", "round", "miter", 1);
box_mc.graphics.lineTo(adWidth, 0);
box_mc.graphics.lineTo(adWidth, 15);
box_mc.graphics.lineTo(0, 15);
box_mc.graphics.lineTo(0, 0);
progressBar.addChild(bar_mc);
progressBar.addChild(box_mc);
progressBar.start();
progressBar.addEventListener("enterFrame", function (){
if (bar_mc.width < (adWidth - 3)){
bar_mc.width = (bar_mc.width + progressBar.ad);
} else {
bar_mc.width = adWidth;
};
});
newline = "\n";
bottomTxt.text = (("Note" + newline) + "Clicking on the above Ad won't interrupt your game. Ad link opens in a new window.");
logoLoader = new Loader();
logo = new MovieClip();
container.addChild(logo);
logo.addChild(logoLoader);
imageURLReq = new URLRequest(logoPath);
logoLoader.contentLoaderInfo.addEventListener(Event.INIT, function (){
logo.x = int(((progressBar.x + progressBar.width) - logo.width));
logo.y = int(((progressBar.y + progressBar.height) + 7));
});
logoLoader.load(imageURLReq);
logoLoader.addEventListener("click", function (){
navigateToURL(new URLRequest("http://www.inviziads.com"), "_blank");
});
square_mc.graphics.beginFill(0xFF0000);
square_mc.graphics.moveTo(adWidth, 0);
square_mc.graphics.lineTo(adWidth, adHeight);
square_mc.graphics.lineTo(0, adHeight);
square_mc.graphics.lineTo(0, 0);
square_mc.graphics.endFill();
adContainer.mask = square_mc;
stageResize(null);
loadMessages();
}
public function measureComScore(hID:String){
var hostID:String;
var hostCode:*;
var j:*;
var cs_url:*;
var comscoreRequest:URLRequest;
var comscoreLoader:URLLoader;
hostID = hID.toUpperCase();
hostCode = "";
j = 0;
j = 0;
while (j < hostID.length) {
hostCode = (hostCode + hostID.charCodeAt(j));
j++;
};
while (hostCode.length < 8) {
hostCode = ("0" + hostCode);
};
hostCode = (("10" + hostCode) + "000000000");
cs_url = ("http://beacon.scorecardresearch.com/scripts/beacon.dll?C1=7&C2=5799339&C3=" + hostCode);
comscoreRequest = new URLRequest(cs_url);
comscoreLoader = new URLLoader();
comscoreRequest.method = URLRequestMethod.GET;
comscoreLoader.load(comscoreRequest);
}
public function emptyStage(){
movieclip.removeChild(backGround_mc);
movieclip.removeChild(container);
mystage.scaleMode = "showAll";
mystage.align = "";
trace("end of Advertisement");
trace("calling onAdFinished Handler");
this.onAdFinished();
//unresolved jump
var _slot1 = err;
movieclip.gotoAndPlay(2);
trace("onAdFinished Not Found");
}
public function endSession(evt:TimerEvent){
emptyStage();
}
public function adBrain(){
createAssets();
switch (iAdsXML.type.toString()){
case "FULL":
adLoader.load(new URLRequest(iAdsXML.url));
break;
case "EMBED":
adLoader.load(new URLRequest(iAdsXML.url.toString()));
if (iAdsXML.link != ""){
container.addEventListener(MouseEvent.CLICK, adClickHandler);
};
break;
case "NOOP":
emptyStage();
break;
default:
break;
};
}
public function messageHandlerSuccess(evt:Event){
var totalMessages:uint;
var randDigit:uint;
messageXML = new XML(evt.target.data);
totalMessages = messageXML.message.length();
randDigit = Math.floor((Math.random() * totalMessages));
if (messageXML.message[randDigit] != undefined){
currentMessage = messageXML.message[randDigit];
currentLink = messageXML.message[randDigit].@link;
};
messageTxt.htmlText = (((("<u><font face='arial' color='#0066CC'><a href='" + currentLink) + "' target='_blank'>") + currentMessage) + "</a></font></u>");
}
public function checkAllowedHost(urlList){
var hosturl_array:Array;
var host_url:String;
var isHostAllowed:Boolean;
var sHardCodedUrls:String;
var arrHardCodedUrls:Array;
var i:*;
hosturl_array = String(movieclip.root.loaderInfo.url).split("/");
host_url = hosturl_array[2];
isHostAllowed = false;
sHardCodedUrls = urlList;
arrHardCodedUrls = sHardCodedUrls.split(",");
i = 0;
while (i < arrHardCodedUrls.length) {
if ((host_url.indexOf(arrHardCodedUrls[i]) + arrHardCodedUrls[i].length) == host_url.length){
isHostAllowed = true;
};
i++;
};
return (isHostAllowed);
}
public function timeInc(evt:TimerEvent){
if (movieclip.parent != null){
timeCount = (timeCount + 1);
} else {
theTimer.stop();
};
}
public function debug(str){
var my_txt:TextField;
my_txt = new TextField();
my_txt.text = str;
container.addChild(my_txt);
}
public function loadMessages(){
var messageXMLRequest:URLRequest;
var messageXMLLoader:URLLoader;
messageXMLRequest = new URLRequest("http://s1.inviziads.com/template/invizi_messages.xml");
messageXMLLoader = new URLLoader();
messageXMLLoader.addEventListener(Event.COMPLETE, messageHandlerSuccess);
messageXMLLoader.addEventListener(IOErrorEvent.IO_ERROR, messageHandlerFails);
messageTxt = new TextField();
messageTxt.autoSize = TextFieldAutoSize.LEFT;
messageTxt.y = (progressBar.y + 20);
messageTxt.selectable = false;
container.addChild(messageTxt);
messageXMLLoader.load(messageXMLRequest);
}
public function adClickHandler(e:Event){
navigateToURL(new URLRequest(iAdsXML.link), "_blank");
}
public function initXML(){
var holder:MovieClip;
var mcLoader:Loader;
if (iAdsXML.type == "UPDATE"){
holder = new MovieClip();
container.addChild(holder);
mcLoader = new Loader();
mcLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, function (){
});
holder.addChild(mcLoader);
mcLoader.load(new URLRequest(iAdsXML.url));
} else {
adBrain();
};
}
public function handleLoadSuccessful(evt:Event){
iAdsXML = new XML(evt.currentTarget.data);
showTime = iAdsXML.t.toString();
adWidth = iAdsXML.x;
adHeight = iAdsXML.y;
theTimer = new Timer(1000, showTime);
initXML();
}
public function handleNoResponse(evt:IOErrorEvent){
emptyStage();
}
}
}//package assets
Section 5
//InviziBar (assets.InviziBar)
package assets {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class InviziBar extends MovieClip {
public var loaderClip:MovieClip;
public var mc_common:MovieClip;
public function InviziBar(){
super();
addFrameScript(0, frame1);
addEventListener(Event.ADDED_TO_STAGE, onAdded);
}
public function init(){
var GameURL:*;
var imageLoader:*;
var str:String;
mc_common.addEventListener(MouseEvent.CLICK, onClick);
GameURL = String(this.root.loaderInfo.url);
if (((((!((GameURL.indexOf("gangofgamers.com") == -1))) || (!((GameURL.indexOf("games2win.com") == -1))))) || (!((GameURL.indexOf("girlsgogames.com") == -1))))){
mc_common.visible = false;
GameObj._gameHostStatus = true;
} else {
mc_common.visible = true;
imageLoader = new Loader();
str = ((((("http://s1.inviziads.com/lookup.html?type=strip&g=" + GameObj._g2wGameId) + "&h=") + GameObj._host) + "&hurl=") + this.stage.root.loaderInfo.url);
imageLoader.load(new URLRequest(str));
loaderClip.addChild(imageLoader);
//unresolved jump
var _slot1 = e;
};
}
function frame1(){
stop();
}
private function onAdded(event:Event){
init();
removeEventListener(Event.ADDED_TO_STAGE, onAdded);
}
public function onClick(event:MouseEvent){
DocumentClass.callGames2win();
}
}
}//package assets
Section 6
//LoadingProgress (assets.LoadingProgress)
package assets {
import flash.display.*;
import flash.text.*;
public class LoadingProgress extends MovieClip {
public var bar:MovieClip;
private var currentValue:uint;// = 0
public var percentDisplay:TextField;
public function LoadingProgress(){
currentValue = 0;
super();
}
public function updateProgress(val):void{
currentValue = val;
percentDisplay.text = currentValue.toString();
bar.scaleX = (val / 100);
}
}
}//package assets
Section 7
//Logo (assets.Logo)
package assets {
import flash.events.*;
import flash.display.*;
public class Logo extends MovieClip {
public var g2wlogo:MovieClip;
public function Logo(){
super();
init();
}
public function init():void{
addLogoListener();
this.x = 5;
this.y = 10;
}
private function addLogoListener(){
trace("added listener");
g2wlogo.buttonMode = true;
g2wlogo.addEventListener(MouseEvent.CLICK, onClick);
}
private function onClick(event:MouseEvent){
trace("clicked on button");
DocumentClass.callGames2win();
}
}
}//package assets
Section 8
//SoundManager (assets.SoundManager)
package assets {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
public class SoundManager {
public var inGameSound:Array;
public static var soundVolume:SoundTransform = new SoundTransform();
public static var sm:SoundManager;
public static var muteStatus:Boolean = false;
public function SoundManager(sf:SingletonForcing){
inGameSound = new Array();
super();
}
public function removeAllSounds(){
var soundTemp:CustomSound;
for each (soundTemp in inGameSound) {
soundTemp.stopSound();
trace("Removed All Sounds", soundTemp);
inGameSound.splice(inGameSound.indexOf(soundTemp), 1);
};
}
public function removeSound(linkName:String){
var classReference:Class;
var instance:CustomSound;
classReference = (getDefinitionByName(linkName) as Class);
instance = (new (classReference) as CustomSound);
trace(("instance = " + instance));
instance.stopSound();
removeFromArray(instance);
}
private function checkForRepitation(s:CustomSound){
var i:int;
i = (inGameSound.length - 1);
while (i >= 0) {
if (getQualifiedClassName(inGameSound[i]) == getQualifiedClassName(s)){
return (true);
};
i--;
};
return (false);
}
public function removeFromArray(cs:CustomSound){
var instance:*;
var i:int;
instance = cs;
i = (inGameSound.length - 1);
while (i >= 0) {
if (getQualifiedClassName(inGameSound[i]) == getQualifiedClassName(instance)){
trace("matched");
inGameSound[i].stopSound();
inGameSound.splice(i, 1);
};
i--;
};
trace(("array after sound removal called = " + inGameSound));
}
public function unMuteAllMusic(){
var sound:*;
SoundManager.muteStatus = false;
for each (sound in inGameSound) {
sound.unMuteMusic();
};
}
public function playSound(linkName:String, loop:Boolean=true){
var classReference:Class;
var instance:CustomSound;
var alreadyPresent:Boolean;
classReference = (getDefinitionByName(linkName) as Class);
instance = (new (classReference) as CustomSound);
alreadyPresent = checkForRepitation(instance);
if (!alreadyPresent){
instance.loopStatus = loop;
if (instance != null){
trace(("instance = " + instance));
inGameSound.push(instance);
instance.playSound();
};
};
}
public function muteAllMusic(){
var sound:*;
SoundManager.muteStatus = true;
for each (sound in inGameSound) {
sound.muteMusic();
};
}
public static function get callBack():SoundManager{
if (sm == null){
sm = new SoundManager(new SingletonForcing());
};
return (sm);
}
}
}//package assets
class SingletonForcing {
private function SingletonForcing(){
super();
}
}
Section 9
//VolumeControl (assets.VolumeControl)
package assets {
import flash.events.*;
import flash.display.*;
public class VolumeControl extends MovieClip {
public var volumeControl:MovieClip;
public function VolumeControl(){
super();
init();
}
public function init():void{
addVolumeListener();
this.x = 630;
this.y = 18;
}
private function onMute(event:MouseEvent){
if (volumeControl.currentFrame == 1){
SoundManager.callBack.muteAllMusic();
volumeControl.gotoAndStop(2);
} else {
SoundManager.callBack.unMuteAllMusic();
volumeControl.gotoAndStop(1);
};
}
private function addVolumeListener(){
volumeControl.buttonMode = true;
volumeControl.addEventListener(MouseEvent.CLICK, onMute);
}
}
}//package assets
Section 10
//_char_timeBar_602 (chloes_designer_denims4_fla._char_timeBar_602)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _char_timeBar_602 extends MovieClip {
public function _char_timeBar_602(){
super();
addFrameScript(0, frame1, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 11
//_g2w_skiplevel_634 (chloes_designer_denims4_fla._g2w_skiplevel_634)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _g2w_skiplevel_634 extends MovieClip {
public var btn_nextLevel:SimpleButton;
public var btn_playAgain:SimpleButton;
public function _g2w_skiplevel_634(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 12
//_g2w_teaser_animation_1 (chloes_designer_denims4_fla._g2w_teaser_animation_1)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class _g2w_teaser_animation_1 extends MovieClip {
public var i;
public var thumb10:MovieClip;
public var thumb11:MovieClip;
public var thumb12:MovieClip;
public var thumb16:MovieClip;
public var thumb17:MovieClip;
public var thumb19:MovieClip;
public var thumb13:MovieClip;
public var thumb14:MovieClip;
public var thumb18:MovieClip;
public var thumb20:MovieClip;
public var thumb21:MovieClip;
public var thumb22:MovieClip;
public var thumb23:MovieClip;
public var thumb24:MovieClip;
public var thumb25:MovieClip;
public var thumb26:MovieClip;
public var thumb27:MovieClip;
public var thumb29:MovieClip;
public var thumb28:MovieClip;
public var thumb15:MovieClip;
public var thumb30:MovieClip;
public var thumb32:MovieClip;
public var thumb34:MovieClip;
public var thumb35:MovieClip;
public var thumb36:MovieClip;
public var thumb37:MovieClip;
public var thumb31:MovieClip;
public var thumb33:MovieClip;
public var thumb38:MovieClip;
public var thumb39:MovieClip;
public var thumb40:MovieClip;
public var thumb41:MovieClip;
public var thumb42:MovieClip;
public var thumb43:MovieClip;
public var thumb44:MovieClip;
public var thumb45:MovieClip;
public var thumb46:MovieClip;
public var thumb47:MovieClip;
public var thumb48:MovieClip;
public var inviziBtn:MovieClip;
public var thumb1:MovieClip;
public var thumb2:MovieClip;
public var thumb4:MovieClip;
public var thumb6:MovieClip;
public var thumb8:MovieClip;
public var thumb9:MovieClip;
public var thumb5:MovieClip;
public var thumb7:MovieClip;
public var thumb3:MovieClip;
public function _g2w_teaser_animation_1(){
super();
addFrameScript(0, frame1, 135, frame136);
}
function frame1(){
i = 1;
while (i <= 48) {
this[("thumb" + i)].gotoAndStop(i);
i++;
};
}
function frame136(){
trace("called");
(this.root as DocumentClass).isPlayed = true;
(this.root as DocumentClass).removeChild(this);
//unresolved jump
var _slot1 = e;
stop();
}
}
}//package chloes_designer_denims4_fla
Section 13
//_g2w_tracking_btn_7 (chloes_designer_denims4_fla._g2w_tracking_btn_7)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _g2w_tracking_btn_7 extends MovieClip {
public var hit_area:SimpleButton;
public function _g2w_tracking_btn_7(){
super();
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package chloes_designer_denims4_fla
Section 14
//_inter3550_a_204 (chloes_designer_denims4_fla._inter3550_a_204)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3550_a_204 extends MovieClip {
public function _inter3550_a_204(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 15
//_inter3550pr_207 (chloes_designer_denims4_fla._inter3550pr_207)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3550pr_207 extends MovieClip {
public function _inter3550pr_207(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 16
//_inter3553_236 (chloes_designer_denims4_fla._inter3553_236)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3553_236 extends MovieClip {
public function _inter3553_236(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 17
//_inter3553hhhh_239 (chloes_designer_denims4_fla._inter3553hhhh_239)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3553hhhh_239 extends MovieClip {
public function _inter3553hhhh_239(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 18
//_inter3556_111 (chloes_designer_denims4_fla._inter3556_111)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3556_111 extends MovieClip {
public var custOrder_mc:MovieClip;
public function _inter3556_111(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 19
//_inter3557_127 (chloes_designer_denims4_fla._inter3557_127)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3557_127 extends MovieClip {
public var tuto_fab:SimpleButton;
public var tutoOrder_mc:MovieClip;
public var tuto_style:SimpleButton;
public var stich_btn:SimpleButton;
public var cut_btn:SimpleButton;
public var tuto_stik:SimpleButton;
public function _inter3557_127(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 20
//_inter3561_134 (chloes_designer_denims4_fla._inter3561_134)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3561_134 extends MovieClip {
public function _inter3561_134(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 21
//_inter3562_136 (chloes_designer_denims4_fla._inter3562_136)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3562_136 extends MovieClip {
public function _inter3562_136(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 22
//_inter3574_115 (chloes_designer_denims4_fla._inter3574_115)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3574_115 extends MovieClip {
public var tutoCust_mc:MovieClip;
public function _inter3574_115(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 23
//_inter3609_121 (chloes_designer_denims4_fla._inter3609_121)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3609_121 extends MovieClip {
public function _inter3609_121(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 24
//_inter3610_120 (chloes_designer_denims4_fla._inter3610_120)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3610_120 extends MovieClip {
public var stich:MovieClip;
public function _inter3610_120(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 25
//_inter3615_210 (chloes_designer_denims4_fla._inter3615_210)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3615_210 extends MovieClip {
public var tuto_slim:MovieClip;
public function _inter3615_210(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 26
//_inter3617_133 (chloes_designer_denims4_fla._inter3617_133)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3617_133 extends MovieClip {
public var tuto_raw:MovieClip;
public var tuto_sal:MovieClip;
public var tuto_org:MovieClip;
public function _inter3617_133(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 27
//_inter3623_234 (chloes_designer_denims4_fla._inter3623_234)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3623_234 extends MovieClip {
public function _inter3623_234(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 28
//_inter3624_233 (chloes_designer_denims4_fla._inter3624_233)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3624_233 extends MovieClip {
public var tatoo13:MovieClip;
public var tatoo15:MovieClip;
public var tatoo16:MovieClip;
public var tatoo10:MovieClip;
public var tatoo18:MovieClip;
public var tatoo14:MovieClip;
public var tatoo19:MovieClip;
public var tatoo17:MovieClip;
public var tatoo11:MovieClip;
public var tatoo20:MovieClip;
public var tatoo3:MovieClip;
public var tatoo7:MovieClip;
public var tatoo5:MovieClip;
public var tatoo8:MovieClip;
public var tatoo6:MovieClip;
public var tatoo1:MovieClip;
public var tatoo12:MovieClip;
public var tatoo9:MovieClip;
public var tatoo2:MovieClip;
public var tatoo4:MovieClip;
public function _inter3624_233(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 29
//_inter3634_105 (chloes_designer_denims4_fla._inter3634_105)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3634_105 extends MovieClip {
public function _inter3634_105(){
super();
addFrameScript(0, frame1, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 30
//_inter3644_143 (chloes_designer_denims4_fla._inter3644_143)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class _inter3644_143 extends MovieClip {
public var _mc1:MovieClip;
public function _inter3644_143(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc1 = MovieClip(root);
this.gotoAndStop(_mc1.game_mc.looks);
trace(("aniket here ur result " + _mc1.game_mc.looks));
}
}
}//package chloes_designer_denims4_fla
Section 31
//_inter3646_146 (chloes_designer_denims4_fla._inter3646_146)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class _inter3646_146 extends MovieClip {
public var _mc1:MovieClip;
public function _inter3646_146(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc1 = MovieClip(root);
this.gotoAndStop(_mc1.game_mc.looks);
}
}
}//package chloes_designer_denims4_fla
Section 32
//_inter3647_142 (chloes_designer_denims4_fla._inter3647_142)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3647_142 extends MovieClip {
public var look:MovieClip;
public function _inter3647_142(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 33
//_inter3685_149 (chloes_designer_denims4_fla._inter3685_149)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3685_149 extends MovieClip {
public function _inter3685_149(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 34
//_inter3688_152 (chloes_designer_denims4_fla._inter3688_152)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3688_152 extends MovieClip {
public function _inter3688_152(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 35
//_inter3691_155 (chloes_designer_denims4_fla._inter3691_155)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3691_155 extends MovieClip {
public function _inter3691_155(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 36
//_inter3694_158 (chloes_designer_denims4_fla._inter3694_158)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3694_158 extends MovieClip {
public function _inter3694_158(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 37
//_inter3697_161 (chloes_designer_denims4_fla._inter3697_161)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3697_161 extends MovieClip {
public function _inter3697_161(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 38
//_inter3698_148 (chloes_designer_denims4_fla._inter3698_148)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3698_148 extends MovieClip {
public var line1:MovieClip;
public var line2:MovieClip;
public var line5:MovieClip;
public var line3:MovieClip;
public var line4:MovieClip;
public function _inter3698_148(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 39
//_inter3699_147 (chloes_designer_denims4_fla._inter3699_147)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3699_147 extends MovieClip {
public var stichHit_mc:MovieClip;
public function _inter3699_147(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 40
//_inter3702_192 (chloes_designer_denims4_fla._inter3702_192)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3702_192 extends MovieClip {
public function _inter3702_192(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 41
//_inter3703_191 (chloes_designer_denims4_fla._inter3703_191)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3703_191 extends MovieClip {
public var line_1:MovieClip;
public var line_2:MovieClip;
public function _inter3703_191(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 42
//_inter3704_141 (chloes_designer_denims4_fla._inter3704_141)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3704_141 extends MovieClip {
public var marker_mc3:MovieClip;
public var fab:MovieClip;
public var hitClip3:MovieClip;
public var hitClip2:MovieClip;
public var hitClip4:MovieClip;
public var hitClip1:MovieClip;
public var cut_animation3:MovieClip;
public var cut_animation4:MovieClip;
public var marker_mc1:MovieClip;
public var marker_mc2:MovieClip;
public var marker_mc4:MovieClip;
public var gray_line1:MovieClip;
public var gray_line2:MovieClip;
public function _inter3704_141(){
super();
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package chloes_designer_denims4_fla
Section 43
//_inter3705_124 (chloes_designer_denims4_fla._inter3705_124)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3705_124 extends MovieClip {
public function _inter3705_124(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 44
//_inter3706_123 (chloes_designer_denims4_fla._inter3706_123)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3706_123 extends MovieClip {
public function _inter3706_123(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 45
//_inter3707_122 (chloes_designer_denims4_fla._inter3707_122)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3707_122 extends MovieClip {
public var scissor:MovieClip;
public function _inter3707_122(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 46
//_inter3718_219 (chloes_designer_denims4_fla._inter3718_219)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class _inter3718_219 extends MovieClip {
public var threeForth1:MovieClip;
public var threeForth2:MovieClip;
public var threeForth3:MovieClip;
public var short1:MovieClip;
public var short2:MovieClip;
public var _mc:MovieClip;
public var short3:MovieClip;
public function _inter3718_219(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
_mc.selectShorts();
}
function frame1(){
stop();
_mc = MovieClip(parent);
}
function frame2(){
_mc.selectThreeForths();
}
}
}//package chloes_designer_denims4_fla
Section 47
//_inter3724_242 (chloes_designer_denims4_fla._inter3724_242)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _inter3724_242 extends MovieClip {
public var playMain_btn:SimpleButton;
public function _inter3724_242(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 48
//_inter3745_89 (chloes_designer_denims4_fla._inter3745_89)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class _inter3745_89 extends MovieClip {
public var tuto_mini:MovieClip;
public var againClick:Boolean;
public var pre_9_1:MovieClip;
public var pre_arrow5_1:MovieClip;
public var pre_arrow5_2:MovieClip;
public var pre_arrow5_3:MovieClip;
public var girl_mc:MovieClip;
public var _mc:MovieClip;
public var dragDrop;
public var pre_5_ani:MovieClip;
public var sizeType_popup:MovieClip;
public var in_btn:SimpleButton;
public var in3_btn:SimpleButton;
public var mark_mc:MovieClip;
public var pre_8_1:MovieClip;
public var skip_mc:SimpleButton;
public var pre_arrow3:MovieClip;
public var pre_arrow4:MovieClip;
public var pre_arrow5:MovieClip;
public var i:int;
public var j:int;
public var pre_arrow1:MovieClip;
public var pre_arrow2:MovieClip;
public var _Mc:MovieClip;
public var p:int;
public var stichCount:Number;
public var pre_7_1:MovieClip;
public var pre_arrow3_1:MovieClip;
public var r:Number;
public var _mc1:MovieClip;
public var _mcA:MovieClip;
public var sisClick:Boolean;
public var tuto_item:MovieClip;
public var in4_1_btn:SimpleButton;
public var _mcV:MovieClip;
public var in2_btn:SimpleButton;
public var tuto_sis:MovieClip;
public var _mcp:MovieClip;
public var play_btn:MovieClip;
public var isStDrag:Boolean;
public var pre_arrow2_ani:MovieClip;
public var count1:Number;
public var count:Number;
public var pre_arrow2_you:MovieClip;
public var isSisDrag:Boolean;
public var stitchClick:Boolean;
public var tuto_stich:MovieClip;
public var maxHitClip:Number;
public var isDrag:Boolean;
public var tuto_jeans:MovieClip;
public var pre_1:MovieClip;
public var pre_3:MovieClip;
public var pre_5:MovieClip;
public var pre_6:MovieClip;
public var pre_7:MovieClip;
public var pre_8:MovieClip;
public var pre_2:MovieClip;
public var pre_4:MovieClip;
public var pre_9:MovieClip;
public var maxhitClip:Number;
public var tattoMc:MovieClip;
public var isGoto:Boolean;
public var pre_6_ani:MovieClip;
public var looks:String;
public var tutoStyle_mc:MovieClip;
public var in4_btn:SimpleButton;
public var tuto_stikPan:MovieClip;
public var hud_mc:MovieClip;
public var isStichComplete:Boolean;
public var cross_mc:SimpleButton;
public var pre_6_you:MovieClip;
public function _inter3745_89(){
super();
addFrameScript(0, frame1, 56, frame57, 57, frame58, 108, frame109, 109, frame110, 167, frame168, 168, frame169, 254, frame255, 308, frame309, 335, frame336, 361, frame362, 362, frame363, 403, frame404, 404, frame405, 437, frame438, 494, frame495, 495, frame496, 553, frame554, 600, frame601, 671, frame672, 672, frame673, 704, frame705, 728, frame729, 758, frame759, 779, frame780, 780, frame781, 832, frame833, 890, frame891);
}
public function stichMove(e:MouseEvent):void{
onStichClick((e.currentTarget as MovieClip));
}
public function goNext(e:MouseEvent):void{
gotoAndPlay("4th");
}
function frame833(){
stop();
}
function frame168(){
stop();
}
function frame169(){
}
function frame601(){
stop();
}
public function tatooMove(e:Event){
var i:int;
e.currentTarget.x = mouseX;
e.currentTarget.y = mouseY;
e.currentTarget.mouseEnabled = false;
e.currentTarget.mouseChildren = false;
tattoMc = (e.currentTarget as MovieClip);
i = 1;
while (i <= 2) {
tuto_jeans[("hitClip" + i)].id = i;
tuto_jeans[("hitClip" + i)].addEventListener(MouseEvent.CLICK, removeTatoo);
i++;
};
}
public function cutClick(e:MouseEvent):void{
var parent_mc:MovieClip;
var mark_mc:MovieClip;
if ((((e.currentTarget.parent.name == "marker_mc2")) && ((tuto_jeans.marker_mc1.isDone == true)))){
tuto_sis.scissor.gotoAndPlay(2);
e.currentTarget.parent.count++;
e.currentTarget.removeEventListener(MouseEvent.CLICK, cutClick);
e.currentTarget.gotoAndStop(2);
parent_mc = e.currentTarget.parent;
trace(("parent_mc.count : " + parent_mc.count));
if (parent_mc.count < 2){
trace(("parent_mc : " + parent_mc));
makeCutClickEvents(parent_mc, 2, 1);
};
} else {
if (e.currentTarget.parent.name == "marker_mc2"){
trace("in else part");
} else {
tuto_sis.scissor.gotoAndPlay(2);
e.currentTarget.parent.count++;
e.currentTarget.removeEventListener(MouseEvent.CLICK, cutClick);
e.currentTarget.gotoAndStop(2);
parent_mc = e.currentTarget.parent;
trace(("parent_mc.count : " + parent_mc.count));
if (parent_mc.count < 2){
trace(("parent_mc : " + parent_mc));
makeCutClickEvents(parent_mc, 2, 1);
} else {
mark_mc = tuto_jeans[("marker_mc" + (e.currentTarget.parent.cid + 1))];
trace(((("mark_mc : " + mark_mc) + " :: ") + e.currentTarget.parent.cid));
makeCutClickEvents(mark_mc, 1, (e.currentTarget.parent.cid + 1));
};
};
};
trace(("hhhhhhh " + tuto_jeans.marker_mc1.count));
if ((((tuto_jeans.marker_mc1.count >= 2)) && ((tuto_jeans.marker_mc1.isDone == undefined)))){
tuto_jeans.marker_mc1.visible = false;
tuto_jeans.cut_animation3.gotoAndPlay(1);
tuto_jeans.marker_mc1.isDone = true;
if ((((tuto_jeans.marker_mc1.isDone == true)) && ((tuto_jeans.marker_mc2.isDone == true)))){
trace("mc22222");
gotoAndPlay("7th_2");
tuto_jeans.marker_mc3.visible = false;
tuto_jeans.marker_mc4.visible = false;
maxhitClip = 2;
tuto_jeans.marker_mc3.isDone = true;
tuto_jeans.marker_mc4.isDone = true;
stopSis();
cuttingJeans();
};
} else {
if ((((tuto_jeans.marker_mc2.count >= 2)) && ((tuto_jeans.marker_mc2.isDone == undefined)))){
tuto_jeans.marker_mc2.visible = false;
tuto_jeans.cut_animation4.gotoAndPlay(1);
tuto_jeans.marker_mc2.isDone = true;
if ((((tuto_jeans.marker_mc2.isDone == true)) && ((tuto_jeans.marker_mc1.isDone == true)))){
trace("mc22222");
tuto_jeans.marker_mc3.visible = false;
tuto_jeans.marker_mc4.visible = false;
maxhitClip = 2;
tuto_jeans.marker_mc3.isDone = true;
tuto_jeans.marker_mc4.isDone = true;
stopSis();
cuttingJeans();
};
};
};
if ((((tuto_jeans.marker_mc1.count >= 2)) && ((tuto_jeans.marker_mc1.isDone == undefined)))){
if ((((((tuto_jeans.marker_mc2.count >= 2)) && ((tuto_jeans.marker_mc2.isDone == undefined)))) && ((tuto_jeans.marker_mc1.isDone == undefined)))){
trace(("tuto_jeans.marker_mc2.count " + tuto_jeans.marker_mc2.count));
trace("mc11111");
gotoAndPlay("7th_2");
maxhitClip = 4;
tuto_jeans.marker_mc1.visible = false;
tuto_jeans.marker_mc2.visible = false;
tuto_jeans.marker_mc3.visible = false;
tuto_jeans.marker_mc4.visible = false;
tuto_jeans.fab.look.gotoAndStop(2);
sizeType_popup.gotoAndStop("threeForth");
looks = "threeForth1";
e.currentTarget.parent.isDone = true;
tuto_jeans.marker_mc1.isDone = true;
tuto_jeans.marker_mc2.isDone = true;
stopSis();
cuttingJeans();
};
} else {
looks = "init";
maxhitClip = 4;
};
}
public function cuttingJeans(){
tuto_sis.gotoAndStop(1);
tuto_sis.scissor.gotoAndStop(1);
tuto_sis.buttonMode = true;
tuto_sis.useHandCursor = true;
tuto_sis.addEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
tuto_sis.mouseEnabled = true;
}
function frame1(){
_mc1 = (parent as MovieClip);
if (_mc1.modePlay == true){
gotoAndPlay("5th");
} else {
if (_mc1.modePlay == false){
girl_mc.buttonMode = true;
girl_mc.addEventListener(MouseEvent.CLICK, goNext);
};
};
skip_mc.addEventListener(MouseEvent.CLICK, goOut);
}
public function onStichClick(Mc:MovieClip){
var t:int;
var i:int;
var stich_mc:MovieClip;
var j:int;
if (isDrag){
if (!stitchClick){
stitchClick = true;
gotoAndPlay("9th_1");
};
t = 1;
while (t <= 2) {
tuto_jeans[("hitClip" + t)].removeEventListener(MouseEvent.CLICK, removeTatoo);
t++;
};
tuto_jeans.hitClip1.visible = true;
tuto_jeans.hitClip2.visible = true;
Mc.startDrag(true);
Mc.gotoAndStop(2);
Mc.stich.gotoAndStop(1);
Mc.mouseEnabled = false;
isStDrag = true;
stichCount = 0;
i = 1;
while (i <= maxHitClip) {
stich_mc = tuto_jeans[("hitClip" + i)].stichHit_mc;
if (stich_mc != null){
if (((!((tuto_jeans[("hitClip" + i)].currentFrame == 1))) && ((tuto_jeans[("hitClip" + i)].isDone == undefined)))){
stichCount++;
isStichComplete = false;
trace(("jjjjjjjjjjj " + stichCount));
};
if (tuto_jeans[("hitClip" + i)].isDone == undefined){
j = 1;
while (j <= 5) {
stich_mc[("line" + j)].id = i;
stich_mc[("line" + j)].buttonMode = true;
stich_mc[("line" + j)].useHandCursor = true;
stich_mc[("line" + j)].addEventListener(MouseEvent.CLICK, cutClickTatoo);
j++;
};
};
};
i++;
};
};
}
function frame759(){
stop();
}
public function onScissorClick(Mc:MovieClip){
var k:int;
var i:int;
var mark_mc:MovieClip;
var j:int;
isSisDrag = true;
tuto_jeans.gray_line1.visible = true;
tuto_jeans.gray_line2.visible = true;
if (!sisClick){
sisClick = true;
gotoAndPlay("7th_1");
};
k = 1;
while (k <= 4) {
tuto_jeans[("hitClip" + k)].visible = false;
k++;
};
Mc.startDrag(true);
Mc.gotoAndStop(2);
i = 1;
while (i <= 2) {
mark_mc = tuto_jeans[("marker_mc" + i)];
if (mark_mc.isDone == undefined){
mark_mc.visible = true;
mark_mc.count = 0;
mark_mc.cid = i;
j = 1;
while (j <= 2) {
if (((!(((i % 2) == 0))) && (!((j == 2))))){
makeCutClickEvents(mark_mc, j, i);
} else {
mark_mc[("line_" + j)].gotoAndStop(2);
};
j++;
};
};
i++;
};
}
function frame729(){
stop();
}
public function playMainGame(e:MouseEvent):void{
if (_mc.modePlay == false){
_mc.gotoAndStop("jeansShop");
} else {
if (_mc.modePlay == true){
_mc.gotoAndStop("jeansShop");
};
};
}
public function makeCutClickEvents(parent_mc:MovieClip, j:Number, i:Number){
parent_mc[("line_" + j)].gotoAndStop(1);
parent_mc[("line_" + j)].buttonMode = true;
parent_mc[("line_" + j)].useHandCursor = true;
parent_mc[("line_" + j)].addEventListener(MouseEvent.CLICK, cutClick);
}
public function showStyle(e:MouseEvent):void{
var i:int;
i = 1;
while (i <= 4) {
tuto_jeans[("hitClip" + i)].visible = false;
i++;
};
tuto_jeans.marker_mc2.visible = false;
tuto_jeans.marker_mc1.visible = false;
tuto_jeans.marker_mc2.visible = false;
tuto_jeans.marker_mc1.visible = false;
tuto_jeans.fab.gotoAndStop(2);
gotoAndPlay("7th");
}
public function showStikTuto(e:MouseEvent):void{
var j:Number;
var i:Number;
var stich_mc:MovieClip;
tuto_jeans.hitClip1.visible = false;
tuto_jeans.hitClip2.visible = false;
pre_8.visible = false;
pre_arrow4.visible = false;
tuto_stikPan.visible = true;
gotoAndPlay("8th_1");
cross_mc.visible = true;
j = 1;
while (j <= maxHitClip) {
stich_mc = tuto_jeans[("hitClip" + j)];
stich_mc.isDone = undefined;
stich_mc.stichHit_mc.count = 0;
stich_mc.gotoAndStop(1);
j++;
};
i = 1;
while (i <= 20) {
tuto_stikPan[("tatoo" + i)].id = i;
tuto_stikPan[("tatoo" + i)].gotoAndStop(i);
tuto_stikPan[("tatoo" + i)].buttonMode = true;
tuto_stikPan[("tatoo" + i)].useHandCursor = true;
tuto_stikPan[("tatoo" + i)].addEventListener(MouseEvent.MOUSE_DOWN, addTatoo);
i++;
};
tuto_mini.tuto_stik.removeEventListener(MouseEvent.CLICK, showStikTuto);
}
function frame405(){
tutoStyle_mc.visible = false;
}
function frame404(){
stop();
}
function frame57(){
stop();
}
function frame58(){
girl_mc.buttonMode = false;
girl_mc.removeEventListener(MouseEvent.CLICK, goNext);
}
public function showFab(e:MouseEvent):void{
var i:int;
if (_mcV.modePlay == false){
gotoAndPlay("6th");
tuto_mini.tuto_style.addEventListener(MouseEvent.CLICK, goNext6);
} else {
if (_mcV.modePlay == true){
gotoAndPlay("6th_you");
tuto_mini.tuto_style.addEventListener(MouseEvent.CLICK, goNext6);
};
};
tuto_jeans.visible = true;
i = 1;
while (i <= 4) {
tuto_jeans[("hitClip" + i)].visible = false;
i++;
};
tuto_jeans.marker_mc2.visible = false;
tuto_jeans.marker_mc1.visible = false;
tuto_jeans.marker_mc3.visible = false;
tuto_jeans.marker_mc4.visible = false;
}
function frame891(){
stop();
}
function frame780(){
stop();
}
public function onThreeForthClick(evt:MouseEvent):void{
_Mc.looks = ("threeForth" + evt.currentTarget.id);
tuto_jeans.fab.look.gotoAndStop(1);
evt.currentTarget.removeEventListener(MouseEvent.CLICK, onThreeForthClick);
sizeType_popup.gotoAndStop(1);
pre_7.visible = false;
pre_arrow3.visible = false;
}
function frame309(){
stop();
trace("clip stop");
}
public function cutClickTatoo(e:MouseEvent):void{
var par:MovieClip;
pre_9_1.visible = false;
pre_arrow5_1.visible = false;
tuto_stich.stich.gotoAndPlay(2);
par = e.currentTarget.parent;
e.currentTarget.removeEventListener(MouseEvent.CLICK, cutClickTatoo);
e.currentTarget.gotoAndStop(2);
par.count++;
trace(("hhhhhhhhh " + stichCount));
if (par.count >= 5){
e.currentTarget.parent.parent.isDone = true;
stichCount--;
if (stichCount == 0){
isStichComplete = true;
stopDragStich();
play_btn.visible = true;
tuto_stich.buttonMode = false;
};
};
}
public function stopScissorToMove(evt:MouseEvent):void{
var i:int;
var mark_mc:MovieClip;
var j:int;
i = 1;
while (i <= 2) {
mark_mc = tuto_jeans[("marker_mc" + i)];
j = 1;
while (j <= 2) {
mark_mc[("line_" + j)].buttonMode = false;
mark_mc[("line_" + j)].useHandCursor = false;
mark_mc[("line_" + j)].removeEventListener(MouseEvent.CLICK, cutClick);
j++;
};
i++;
};
if (isSisDrag){
tuto_jeans.marker_mc1.visible = false;
tuto_jeans.marker_mc2.visible = false;
tuto_jeans.marker_mc3.visible = false;
tuto_jeans.marker_mc4.visible = false;
tuto_jeans.gray_line1.visible = false;
tuto_jeans.gray_line2.visible = false;
stopSis();
cuttingJeans();
} else {
onScissorClick(tuto_sis);
};
}
function frame554(){
stop();
}
function frame673(){
count1 = 0;
count = 0;
stichCount = 0;
stitchClick = false;
_mcA = (parent as MovieClip);
maxHitClip = 2;
isDrag = true;
in4_btn.useHandCursor = false;
in4_1_btn.useHandCursor = false;
tuto_stikPan.visible = false;
tuto_sis.buttonMode = false;
cross_mc.visible = false;
tuto_jeans.gray_line1.visible = false;
tuto_jeans.gray_line2.visible = false;
tuto_mini.tuto_style.removeEventListener(MouseEvent.CLICK, goNext6);
tuto_mini.tuto_fab.removeEventListener(MouseEvent.CLICK, goNext5);
tuto_sis.removeEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
tuto_mini.cut_btn.removeEventListener(MouseEvent.CLICK, stopScissorToMove);
if (_mcp.modePlay == false){
gotoAndPlay("8th");
} else {
gotoAndPlay("8th");
};
tuto_mini.tuto_stik.addEventListener(MouseEvent.CLICK, showStikTuto);
tuto_jeans.hitClip1.count = 0;
tuto_jeans.hitClip2.count = 0;
cross_mc.addEventListener(MouseEvent.CLICK, removeAttachTatoo);
}
function frame438(){
stop();
}
function frame672(){
stop();
}
function frame781(){
isStichComplete = false;
tuto_stich.mouseEnabled = true;
tuto_jeans.gray_line1.visible = false;
tuto_jeans.gray_line2.visible = false;
tuto_sis.useHandCursor = true;
play_btn.visible = false;
tuto_mini.tuto_style.removeEventListener(MouseEvent.CLICK, goNext6);
tuto_mini.tuto_fab.removeEventListener(MouseEvent.CLICK, goNext5);
tuto_sis.removeEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
tuto_mini.tuto_stik.removeEventListener(MouseEvent.CLICK, showStikTuto);
tuto_mini.cut_btn.removeEventListener(MouseEvent.CLICK, stopScissorToMove);
tuto_mini.stich_btn.addEventListener(MouseEvent.CLICK, stopTutoStich);
tuto_stich.addEventListener(MouseEvent.MOUSE_DOWN, stichMove);
tuto_stich.buttonMode = true;
r = 1;
while (r <= 20) {
tuto_stikPan[("tatoo" + r)].buttonMode = false;
tuto_stikPan[("tatoo" + r)].useHandCursor = false;
tuto_stikPan[("tatoo" + r)].removeEventListener(MouseEvent.MOUSE_DOWN, addTatoo);
r++;
};
p = 1;
while (p <= 2) {
tuto_jeans[("hitClip" + p)].removeEventListener(MouseEvent.CLICK, removeTatoo);
p++;
};
_mc = (parent as MovieClip);
play_btn.playMain_btn.addEventListener(MouseEvent.CLICK, playMainGame);
}
public function goOut(e:MouseEvent):void{
_mc1.gotoAndStop("jeansShop");
}
public function stopTutoStich(e:MouseEvent):void{
trace(("yahoooo " + isStDrag));
if (isStDrag){
pre_9_1.visible = false;
pre_arrow5_1.visible = false;
stopDragStich();
stichTatoo();
} else {
onStichClick(tuto_stich);
};
}
function frame336(){
stop();
}
public function stichTatoo(){
play_btn.visible = false;
tuto_stich.gotoAndStop(1);
tuto_stich.stich.gotoAndStop(1);
tuto_stich.buttonMode = true;
tuto_stich.useHandCursor = true;
tuto_stich.addEventListener(MouseEvent.MOUSE_DOWN, stichMove);
tuto_mini.stich_btn.addEventListener(MouseEvent.CLICK, stopTutoStich);
tuto_stich.mouseEnabled = true;
}
public function removeAttachTatoo(e:MouseEvent):void{
if (((!((dragDrop == undefined))) && (!((dragDrop == null))))){
removeChild(dragDrop);
count1--;
dragDrop.removeEventListener(Event.ENTER_FRAME, tatooMove);
dragDrop = undefined;
};
}
function frame109(){
stop();
}
public function stopSis(){
isSisDrag = false;
tuto_sis.gotoAndStop(1);
tuto_sis.stopDrag();
tuto_sis.x = 145.9;
tuto_sis.y = 404.6;
tuto_sis.removeEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
tuto_jeans.hitClip4.visible = false;
tuto_jeans.hitClip3.visible = false;
tuto_jeans.marker_mc1.visible = false;
}
function frame110(){
girl_mc.buttonMode = false;
girl_mc.removeEventListener(MouseEvent.CLICK, goNext);
}
public function goNext5(e:MouseEvent):void{
pre_5.visible = false;
pre_arrow1.visible = false;
if (_mcV.modePlay == false){
trace("uuuuuuuuuuuuuuuuuu");
gotoAndPlay("5th_2");
} else {
gotoAndPlay("5th_1");
};
tuto_item.visible = true;
tuto_item.tuto_raw.alpha = 0.3;
tuto_item.tuto_org.alpha = 0.3;
tuto_item.tuto_sal.buttonMode = true;
tuto_mini.tuto_fab.removeEventListener(MouseEvent.CLICK, goNext5);
tuto_item.tuto_sal.addEventListener(MouseEvent.CLICK, showFab);
}
function frame362(){
stop();
}
public function goNext6(e:MouseEvent):void{
if (_mcV.modePlay == false){
pre_6.visible = false;
pre_arrow2.visible = false;
gotoAndPlay("6th_1");
tutoStyle_mc.visible = true;
tuto_mini.tuto_style.removeEventListener(MouseEvent.CLICK, goNext6);
tutoStyle_mc.tuto_slim.addEventListener(MouseEvent.CLICK, showStyle);
tutoStyle_mc.tuto_slim.buttonMode = true;
} else {
if (_mcV.modePlay == true){
pre_6_you.visible = false;
pre_arrow2_you.visible = false;
gotoAndPlay("6th_1");
tutoStyle_mc.visible = true;
tuto_mini.tuto_style.removeEventListener(MouseEvent.CLICK, goNext6);
tutoStyle_mc.tuto_slim.addEventListener(MouseEvent.CLICK, showStyle);
tutoStyle_mc.tuto_slim.buttonMode = true;
};
};
}
public function onShortClick(evt:MouseEvent):void{
_Mc.looks = ("short" + evt.currentTarget.id);
tuto_jeans.fab.look.gotoAndStop(1);
evt.currentTarget.removeEventListener(MouseEvent.CLICK, onShortClick);
sizeType_popup.gotoAndStop(1);
gotoAndPlay("8th");
}
public function addTatoo(e:MouseEvent){
var isDrag:Boolean;
gotoAndPlay("8th_2");
tuto_jeans.hitClip1.visible = true;
tuto_jeans.hitClip2.visible = true;
trace(("id1 " + e.currentTarget.id));
isDrag = false;
if (((!((dragDrop == null))) && (!((dragDrop == undefined))))){
removeDrag();
};
if ((((dragDrop == null)) && ((dragDrop == undefined)))){
dragDrop = new drag_drop();
addChild(dragDrop);
count1++;
dragDrop.gotoAndStop(e.currentTarget.id);
dragDrop.addEventListener(Event.ENTER_FRAME, tatooMove);
};
}
function frame495(){
stop();
}
public function removeTatoo(e:MouseEvent):void{
var stich_mc:MovieClip;
var r:int;
var j:int;
trace("hello ===");
if (isDrag){
stich_mc = tuto_jeans[("hitClip" + e.currentTarget.id)];
if (dragDrop != undefined){
if (((((stich_mc.hitTestObject(dragDrop.hit_mc)) && ((stich_mc.isDone == undefined)))) && ((stich_mc.stichHit_mc.count < 1)))){
if (stich_mc.count < 1){
trace("Fire in the hole");
stich_mc.count++;
count++;
trace(("GGGGGGG " + count));
};
if (e.currentTarget.id == 2){
pre_arrow5_2.visible = false;
} else {
pre_arrow5_3.visible = false;
};
stich_mc.stichHit_mc.visible = true;
stich_mc.gotoAndStop((tattoMc.currentFrame + 1));
removeDrag();
};
};
};
if (_mcA.modePlay == false){
if ((((((tuto_jeans.hitClip1.currentFrame == 2)) && ((tuto_jeans.hitClip2.currentFrame == 3)))) || ((((tuto_jeans.hitClip2.currentFrame == 2)) && ((tuto_jeans.hitClip1.currentFrame == 3)))))){
gotoAndPlay("9th");
tuto_mini.tuto_stik.removeEventListener(MouseEvent.CLICK, showStikTuto);
r = 1;
while (r <= 2) {
tuto_jeans[("hitClip" + r)].removeEventListener(MouseEvent.CLICK, removeTatoo);
r++;
};
};
} else {
if (count == 2){
gotoAndPlay("9th");
tuto_mini.tuto_stik.removeEventListener(MouseEvent.CLICK, showStikTuto);
j = 1;
while (j <= 2) {
tuto_jeans[("hitClip" + j)].removeEventListener(MouseEvent.CLICK, removeTatoo);
j++;
};
};
};
}
public function scissorMove(e:MouseEvent):void{
onScissorClick((e.currentTarget as MovieClip));
}
public function selectThreeForths(){
var i:Number;
i = 1;
while (i <= 3) {
sizeType_popup[("threeForth" + i)].id = i;
sizeType_popup[("threeForth" + i)].buttonMode = true;
sizeType_popup[("threeForth" + i)].useHandCursor = true;
sizeType_popup[("threeForth" + i)].addEventListener(MouseEvent.CLICK, onThreeForthClick);
i++;
};
}
function frame496(){
isGoto = false;
looks = "init";
in3_btn.useHandCursor = false;
maxhitClip = 4;
_mcp = (parent as MovieClip);
tuto_mini.tuto_style.removeEventListener(MouseEvent.CLICK, goNext6);
tuto_mini.tuto_fab.removeEventListener(MouseEvent.CLICK, goNext5);
tuto_sis.useHandCursor = true;
tuto_mini.cut_btn.addEventListener(MouseEvent.CLICK, stopScissorToMove);
tuto_sis.addEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
tuto_sis.buttonMode = true;
i = 1;
while (i <= 2) {
mark_mc = tuto_jeans[("marker_mc" + i)];
mark_mc.isDone = undefined;
j = 1;
while (j <= 2) {
mark_mc[("line_" + j)].gotoAndStop(1);
j++;
};
i++;
};
_Mc = (parent as MovieClip);
}
function frame255(){
trace("55555555555555555");
tuto_jeans.visible = false;
tuto_jeans.gotoAndStop(1);
tuto_item.visible = false;
tuto_jeans.gray_line1.visible = false;
tuto_jeans.gray_line2.visible = false;
_mcV = (parent as MovieClip);
if (_mcV.modePlay == true){
tuto_mini.tutoOrder_mc.tutoCust_mc.visible = false;
};
tuto_mini.tuto_fab.addEventListener(MouseEvent.CLICK, goNext5);
in_btn.useHandCursor = false;
}
public function selectShorts(){
var i:Number;
i = 1;
while (i <= 3) {
sizeType_popup[("short" + i)].id = i;
sizeType_popup[("short" + i)].buttonMode = true;
sizeType_popup[("short" + i)].useHandCursor = true;
sizeType_popup[("short" + i)].addEventListener(MouseEvent.CLICK, onShortClick);
i++;
};
gotoAndPlay("7th_2");
}
public function stopDragStich(){
isStDrag = false;
play_btn.visible = false;
tuto_stich.gotoAndStop(1);
tuto_stich.stich.gotoAndStop(1);
tuto_stich.stopDrag();
tuto_stich.removeEventListener(MouseEvent.MOUSE_DOWN, stichMove);
tuto_mini.stich_btn.removeEventListener(MouseEvent.CLICK, stopTutoStich);
tuto_stich.x = 155.6;
tuto_stich.y = 469.9;
tuto_stich.mouseEnabled = false;
}
public function removeDrag(){
if (dragDrop != undefined){
removeChild(dragDrop);
dragDrop.removeEventListener(Event.ENTER_FRAME, tatooMove);
dragDrop = undefined;
};
}
function frame363(){
sisClick = false;
tutoStyle_mc.visible = false;
tuto_jeans.fab.gotoAndStop(1);
tuto_jeans.gray_line1.visible = false;
tuto_jeans.gray_line2.visible = false;
tuto_mini.tuto_style.addEventListener(MouseEvent.CLICK, goNext6);
tuto_mini.tuto_fab.removeEventListener(MouseEvent.CLICK, goNext5);
in2_btn.useHandCursor = false;
in3_btn.useHandCursor = false;
}
function frame705(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 49
//_ppt0000_447 (chloes_designer_denims4_fla._ppt0000_447)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class _ppt0000_447 extends MovieClip {
public var _mc:MovieClip;
public var skip_mc:SimpleButton;
public var jeansBg:MovieClip;
public var pre_1:MovieClip;
public var pre_3:MovieClip;
public var pre_4:MovieClip;
public var pre_5:MovieClip;
public var pre_6:MovieClip;
public var pre_2:MovieClip;
public var pre_9:MovieClip;
public var pre_7:MovieClip;
public var _mc2:MovieClip;
public var pre_8:MovieClip;
public var hud_mc:MovieClip;
public function _ppt0000_447(){
super();
addFrameScript(0, frame1, 56, frame57, 61, frame62, 108, frame109, 114, frame115, 167, frame168, 172, frame173, 221, frame222, 227, frame228, 276, frame277, 281, frame282, 332, frame333, 337, frame338, 391, frame392, 396, frame397, 442, frame443, 447, frame448, 493, frame494);
}
function frame397(){
pre_8.goNext_mc.addEventListener(MouseEvent.CLICK, goNext8);
skip_mc.addEventListener(MouseEvent.CLICK, skipNext8);
}
function frame277(){
stop();
}
public function skipNext(e:MouseEvent):void{
if (_mc2.isInsideMiniGame == false){
this.visible = false;
gotoAndStop(1);
} else {
if (_mc2.isInsideMiniGame == true){
_mc2.timerOn = false;
_mc2.timerOnGirl = false;
this.visible = false;
gotoAndStop(1);
};
};
}
function frame448(){
_mc = (parent as MovieClip);
pre_9.goNext_mc.addEventListener(MouseEvent.CLICK, goNext9);
skip_mc.addEventListener(MouseEvent.CLICK, skipNext9);
}
function frame168(){
stop();
}
function frame443(){
stop();
}
function frame282(){
pre_6.goNext_mc.addEventListener(MouseEvent.CLICK, goNext6);
skip_mc.addEventListener(MouseEvent.CLICK, skipNext6);
}
public function skipNext5(e:MouseEvent):void{
if (_mc2.isInsideMiniGame == false){
this.visible = false;
gotoAndStop(1);
} else {
if (_mc2.isInsideMiniGame == true){
_mc2.timerOn = false;
_mc2.timerOnGirl = false;
this.visible = false;
gotoAndStop(1);
};
};
}
public function skipNext8(e:MouseEvent):void{
if (_mc2.isInsideMiniGame == false){
this.visible = false;
gotoAndStop(1);
} else {
if (_mc2.isInsideMiniGame == true){
_mc2.timerOn = false;
_mc2.timerOnGirl = false;
this.visible = false;
gotoAndStop(1);
};
};
}
public function skipNext4(e:MouseEvent):void{
if (_mc2.isInsideMiniGame == false){
this.visible = false;
gotoAndStop(1);
} else {
if (_mc2.isInsideMiniGame == true){
_mc2.timerOn = false;
_mc2.timerOnGirl = false;
this.visible = false;
gotoAndStop(1);
};
};
}
public function skipNext6(e:MouseEvent):void{
if (_mc2.isInsideMiniGame == false){
this.visible = false;
gotoAndStop(1);
} else {
if (_mc2.isInsideMiniGame == true){
_mc2.timerOn = false;
_mc2.timerOnGirl = false;
this.visible = false;
gotoAndStop(1);
};
};
}
function frame109(){
stop();
}
public function skipNext9(e:MouseEvent):void{
if (_mc.isInsideMiniGame == false){
this.visible = false;
gotoAndStop(1);
} else {
if (_mc.isInsideMiniGame == true){
_mc.timerOn = false;
_mc.timerOnGirl = false;
this.visible = false;
gotoAndStop(1);
};
};
}
function frame1(){
_mc2 = (parent as MovieClip);
if (_mc2.modePlay == true){
gotoAndPlay("5th");
} else {
if (_mc2.modePlay == false){
pre_1.goNext_mc.addEventListener(MouseEvent.CLICK, goNext);
};
};
skip_mc.addEventListener(MouseEvent.CLICK, skipNext);
}
public function goNext(e:MouseEvent):void{
gotoAndPlay("2nd");
}
public function skipNext3(e:MouseEvent):void{
if (_mc2.isInsideMiniGame == false){
this.visible = false;
gotoAndStop(1);
} else {
if (_mc2.isInsideMiniGame == true){
_mc2.timerOn = false;
_mc2.timerOnGirl = false;
this.visible = false;
gotoAndStop(1);
};
};
}
function frame338(){
pre_7.goNext_mc.addEventListener(MouseEvent.CLICK, goNext7);
skip_mc.addEventListener(MouseEvent.CLICK, skipNext7);
}
public function skipNext7(e:MouseEvent):void{
if (_mc2.isInsideMiniGame == false){
this.visible = false;
gotoAndStop(1);
} else {
if (_mc2.isInsideMiniGame == true){
_mc2.timerOn = false;
_mc2.timerOnGirl = false;
this.visible = false;
gotoAndStop(1);
};
};
}
public function goNext3(e:MouseEvent):void{
gotoAndPlay("4th");
}
public function goNext5(e:MouseEvent):void{
gotoAndPlay("6th");
}
public function goNext2(e:MouseEvent):void{
gotoAndPlay("3rd");
}
public function goNext4(e:MouseEvent):void{
gotoAndPlay("5th");
}
function frame333(){
stop();
}
function frame228(){
pre_5.goNext_mc.addEventListener(MouseEvent.CLICK, goNext5);
skip_mc.addEventListener(MouseEvent.CLICK, skipNext5);
}
function frame222(){
stop();
}
public function goNext6(e:MouseEvent):void{
gotoAndPlay("7th");
}
function frame115(){
pre_3.goNext_mc.addEventListener(MouseEvent.CLICK, goNext3);
skip_mc.addEventListener(MouseEvent.CLICK, skipNext3);
}
function frame494(){
stop();
}
public function goNext7(e:MouseEvent):void{
gotoAndPlay("8th");
}
public function goNext8(e:MouseEvent):void{
gotoAndPlay("9th");
}
function frame57(){
stop();
}
public function skipNext2(e:MouseEvent):void{
if (_mc2.isInsideMiniGame == false){
this.visible = false;
gotoAndStop(1);
} else {
if (_mc2.isInsideMiniGame == true){
_mc2.timerOn = false;
_mc2.timerOnGirl = false;
this.visible = false;
gotoAndStop(1);
};
};
}
function frame173(){
pre_4.goNext_mc.addEventListener(MouseEvent.CLICK, goNext4);
skip_mc.addEventListener(MouseEvent.CLICK, skipNext4);
}
public function goNext9(e:MouseEvent):void{
if (_mc.isInsideMiniGame == false){
this.visible = false;
gotoAndStop(1);
} else {
if (_mc.isInsideMiniGame == true){
_mc.timerOn = false;
_mc.timerOnGirl = false;
this.visible = false;
gotoAndStop(1);
};
};
}
function frame62(){
pre_2.goNext_mc.addEventListener(MouseEvent.CLICK, goNext2);
skip_mc.addEventListener(MouseEvent.CLICK, skipNext2);
}
function frame392(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 50
//_ppt3541_507 (chloes_designer_denims4_fla._ppt3541_507)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3541_507 extends MovieClip {
public var goNext_mc:SimpleButton;
public function _ppt3541_507(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 51
//_ppt3542_454 (chloes_designer_denims4_fla._ppt3542_454)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3542_454 extends MovieClip {
public var goNext_mc:SimpleButton;
public function _ppt3542_454(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 52
//_ppt3543_463 (chloes_designer_denims4_fla._ppt3543_463)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3543_463 extends MovieClip {
public var goNext_mc:SimpleButton;
public function _ppt3543_463(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 53
//_ppt3544_465 (chloes_designer_denims4_fla._ppt3544_465)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3544_465 extends MovieClip {
public var goNext_mc:SimpleButton;
public function _ppt3544_465(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 54
//_ppt3545_516 (chloes_designer_denims4_fla._ppt3545_516)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3545_516 extends MovieClip {
public var goNext_mc:SimpleButton;
public function _ppt3545_516(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 55
//_ppt3546_523 (chloes_designer_denims4_fla._ppt3546_523)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3546_523 extends MovieClip {
public var goNext_mc:SimpleButton;
public function _ppt3546_523(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 56
//_ppt3547_531 (chloes_designer_denims4_fla._ppt3547_531)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3547_531 extends MovieClip {
public var goNext_mc:SimpleButton;
public function _ppt3547_531(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 57
//_ppt3548_551 (chloes_designer_denims4_fla._ppt3548_551)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3548_551 extends MovieClip {
public var goNext_mc:SimpleButton;
public function _ppt3548_551(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 58
//_ppt3549_553 (chloes_designer_denims4_fla._ppt3549_553)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3549_553 extends MovieClip {
public var goNext_mc:SimpleButton;
public function _ppt3549_553(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 59
//_ppt3551_467 (chloes_designer_denims4_fla._ppt3551_467)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3551_467 extends MovieClip {
public var custOrder_mc:MovieClip;
public function _ppt3551_467(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 60
//_ppt3556_510 (chloes_designer_denims4_fla._ppt3556_510)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3556_510 extends MovieClip {
public function _ppt3556_510(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 61
//_ppt3558_512 (chloes_designer_denims4_fla._ppt3558_512)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3558_512 extends MovieClip {
public function _ppt3558_512(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 62
//_ppt3560_514 (chloes_designer_denims4_fla._ppt3560_514)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3560_514 extends MovieClip {
public function _ppt3560_514(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 63
//_ppt3594_472 (chloes_designer_denims4_fla._ppt3594_472)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3594_472 extends MovieClip {
public var tatoo3:MovieClip;
public var tatoo5:MovieClip;
public var tatoo2:MovieClip;
public var tatoo1:MovieClip;
public var tatoo4:MovieClip;
public function _ppt3594_472(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 64
//_ppt3602_471 (chloes_designer_denims4_fla._ppt3602_471)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3602_471 extends MovieClip {
public var fab1:MovieClip;
public var custOrder3_1:MovieClip;
public var custOrder3_2:MovieClip;
public function _ppt3602_471(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 65
//_ppt3621_520 (chloes_designer_denims4_fla._ppt3621_520)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3621_520 extends MovieClip {
public var look:MovieClip;
public function _ppt3621_520(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 66
//_ppt3632_536 (chloes_designer_denims4_fla._ppt3632_536)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3632_536 extends MovieClip {
public function _ppt3632_536(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 67
//_ppt3635_539 (chloes_designer_denims4_fla._ppt3635_539)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3635_539 extends MovieClip {
public function _ppt3635_539(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 68
//_ppt3638_542 (chloes_designer_denims4_fla._ppt3638_542)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3638_542 extends MovieClip {
public function _ppt3638_542(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 69
//_ppt3641_545 (chloes_designer_denims4_fla._ppt3641_545)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3641_545 extends MovieClip {
public function _ppt3641_545(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 70
//_ppt3644_548 (chloes_designer_denims4_fla._ppt3644_548)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3644_548 extends MovieClip {
public function _ppt3644_548(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 71
//_ppt3645_535 (chloes_designer_denims4_fla._ppt3645_535)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3645_535 extends MovieClip {
public var line1:MovieClip;
public var line2:MovieClip;
public var line5:MovieClip;
public var line3:MovieClip;
public var line4:MovieClip;
public function _ppt3645_535(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 72
//_ppt3649_528 (chloes_designer_denims4_fla._ppt3649_528)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3649_528 extends MovieClip {
public function _ppt3649_528(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 73
//_ppt3650_527 (chloes_designer_denims4_fla._ppt3650_527)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3650_527 extends MovieClip {
public var line_1:MovieClip;
public var line_2:MovieClip;
public var line_3:MovieClip;
public var line_4:MovieClip;
public function _ppt3650_527(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 74
//_ppt3669_504 (chloes_designer_denims4_fla._ppt3669_504)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3669_504 extends MovieClip {
public function _ppt3669_504(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 75
//_ppt3670_503 (chloes_designer_denims4_fla._ppt3670_503)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3670_503 extends MovieClip {
public var stich:MovieClip;
public function _ppt3670_503(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 76
//_ppt3671_506 (chloes_designer_denims4_fla._ppt3671_506)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3671_506 extends MovieClip {
public function _ppt3671_506(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 77
//_ppt3672_505 (chloes_designer_denims4_fla._ppt3672_505)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3672_505 extends MovieClip {
public var scissor:MovieClip;
public function _ppt3672_505(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 78
//_ppt3687_533 (chloes_designer_denims4_fla._ppt3687_533)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3687_533 extends MovieClip {
public var fab:MovieClip;
public function _ppt3687_533(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 79
//_ppt3688_526 (chloes_designer_denims4_fla._ppt3688_526)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3688_526 extends MovieClip {
public var fab:MovieClip;
public function _ppt3688_526(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 80
//_ppt3689_519 (chloes_designer_denims4_fla._ppt3689_519)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3689_519 extends MovieClip {
public var fab:MovieClip;
public function _ppt3689_519(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 81
//_ppt3697_461 (chloes_designer_denims4_fla._ppt3697_461)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class _ppt3697_461 extends MovieClip {
public function _ppt3697_461(){
super();
addFrameScript(0, frame1, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 82
//BG_2VPP_19 (chloes_designer_denims4_fla.BG_2VPP_19)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class BG_2VPP_19 extends MovieClip {
public var image_02:MovieClip;
public function BG_2VPP_19(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 83
//BG_3VPP_21 (chloes_designer_denims4_fla.BG_3VPP_21)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class BG_3VPP_21 extends MovieClip {
public var image_03:MovieClip;
public function BG_3VPP_21(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 84
//BG_4VPP_23 (chloes_designer_denims4_fla.BG_4VPP_23)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class BG_4VPP_23 extends MovieClip {
public var image_04:MovieClip;
public function BG_4VPP_23(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 85
//button49_556 (chloes_designer_denims4_fla.button49_556)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class button49_556 extends MovieClip {
public function button49_556(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 86
//custOrder_mc_331 (chloes_designer_denims4_fla.custOrder_mc_331)
package chloes_designer_denims4_fla {
import flash.display.*;
import flash.text.*;
public dynamic class custOrder_mc_331 extends MovieClip {
public var custOrder3_1:MovieClip;
public var custOrder3_2:MovieClip;
public var sticCount:TextField;
public var custOrder1:MovieClip;
public var custOrder2:MovieClip;
public var custOrder4:MovieClip;
public function custOrder_mc_331(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 87
//cutingcuting_382 (chloes_designer_denims4_fla.cutingcuting_382)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class cutingcuting_382 extends MovieClip {
public function cutingcuting_382(){
super();
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 88
//cutingcuting_ani_196 (chloes_designer_denims4_fla.cutingcuting_ani_196)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class cutingcuting_ani_196 extends MovieClip {
public function cutingcuting_ani_196(){
super();
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 89
//cutingcuting_ani1_199 (chloes_designer_denims4_fla.cutingcuting_ani1_199)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class cutingcuting_ani1_199 extends MovieClip {
public var _mc:MovieClip;
public function cutingcuting_ani1_199(){
super();
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
_mc = (parent.parent as MovieClip);
_mc.tuto_jeans.fab.look.gotoAndStop(5);
_mc.sizeType_popup.gotoAndStop("short");
_mc.looks = "short1";
this.visible = false;
_mc.tuto_jeans.cut_animation3.visible = false;
}
}
}//package chloes_designer_denims4_fla
Section 90
//cutingcuting_boot_386 (chloes_designer_denims4_fla.cutingcuting_boot_386)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class cutingcuting_boot_386 extends MovieClip {
public function cutingcuting_boot_386(){
super();
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 91
//cutingcuting2_384 (chloes_designer_denims4_fla.cutingcuting2_384)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class cutingcuting2_384 extends MovieClip {
public var _mc:MovieClip;
public function cutingcuting2_384(){
super();
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
_mc = (parent.parent.parent.parent as MovieClip);
_mc.miniGame_mc.jeans.fab.look.gotoAndStop(2);
_mc.sizeType_popup.gotoAndStop("threeForth");
_mc.looks = "threeForth1";
this.visible = false;
_mc.miniGame_mc.jeans.cut_animation1.cut_ani1.visible = false;
_mc.miniGame_mc.jeans.cut_animation1.cut_ani2.visible = false;
}
}
}//package chloes_designer_denims4_fla
Section 92
//cutingcuting3_388 (chloes_designer_denims4_fla.cutingcuting3_388)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class cutingcuting3_388 extends MovieClip {
public var _mc:MovieClip;
public function cutingcuting3_388(){
super();
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
_mc = (parent.parent.parent.parent as MovieClip);
_mc.miniGame_mc.jeans.fab.look.gotoAndStop(5);
_mc.sizeType_popup.gotoAndStop("short");
_mc.looks = "short1";
this.visible = false;
_mc.miniGame_mc.jeans.cut_animation3.cut_ani1.visible = false;
_mc.miniGame_mc.jeans.cut_animation3.cut_ani2.visible = false;
}
}
}//package chloes_designer_denims4_fla
Section 93
//denim_option_376 (chloes_designer_denims4_fla.denim_option_376)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class denim_option_376 extends MovieClip {
public var marker_mc3:MovieClip;
public var fab:MovieClip;
public var hitClip3:MovieClip;
public var hitClip2:MovieClip;
public var hitClip4:MovieClip;
public var hitClip1:MovieClip;
public var cut_animation3:MovieClip;
public var cut_animation2:MovieClip;
public var cut_animation1:MovieClip;
public var hit1_mc:MovieClip;
public var cut_animation4:MovieClip;
public var marker_mc1:MovieClip;
public var marker_mc2:MovieClip;
public var marker_mc4:MovieClip;
public function denim_option_376(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
hit1_mc = (parent.parent as MovieClip);
hit1_mc.maxhitClip = 4;
}
}
}//package chloes_designer_denims4_fla
Section 94
//dollerpopup_423 (chloes_designer_denims4_fla.dollerpopup_423)
package chloes_designer_denims4_fla {
import flash.display.*;
import flash.text.*;
public dynamic class dollerpopup_423 extends MovieClip {
public var moneyTxt:TextField;
public function dollerpopup_423(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 95
//done_mc_319 (chloes_designer_denims4_fla.done_mc_319)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class done_mc_319 extends MovieClip {
public function done_mc_319(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 96
//dot_line_new_410 (chloes_designer_denims4_fla.dot_line_new_410)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class dot_line_new_410 extends MovieClip {
public var line_1:MovieClip;
public var line_2:MovieClip;
public function dot_line_new_410(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 97
//dots_407 (chloes_designer_denims4_fla.dots_407)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class dots_407 extends MovieClip {
public function dots_407(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 98
//dottedLinecopy_406 (chloes_designer_denims4_fla.dottedLinecopy_406)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class dottedLinecopy_406 extends MovieClip {
public var line_1:MovieClip;
public var line_2:MovieClip;
public function dottedLinecopy_406(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 99
//dummy_txt_368 (chloes_designer_denims4_fla.dummy_txt_368)
package chloes_designer_denims4_fla {
import flash.display.*;
import flash.text.*;
public dynamic class dummy_txt_368 extends MovieClip {
public var submit_btn:SimpleButton;
public var userInput_txt:TextField;
public function dummy_txt_368(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 100
//eye_new_girl_56 (chloes_designer_denims4_fla.eye_new_girl_56)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class eye_new_girl_56 extends MovieClip {
public var EyeLiner_mc:MovieClip;
public function eye_new_girl_56(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 101
//eye_new_girl_69 (chloes_designer_denims4_fla.eye_new_girl_69)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class eye_new_girl_69 extends MovieClip {
public var EyeLiner_mc:MovieClip;
public function eye_new_girl_69(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 102
//eyeliner01_girl_57 (chloes_designer_denims4_fla.eyeliner01_girl_57)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class eyeliner01_girl_57 extends MovieClip {
public function eyeliner01_girl_57(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 103
//eyeliner01_girl_70 (chloes_designer_denims4_fla.eyeliner01_girl_70)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class eyeliner01_girl_70 extends MovieClip {
public function eyeliner01_girl_70(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 104
//freeplaypanel_f_432 (chloes_designer_denims4_fla.freeplaypanel_f_432)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class freeplaypanel_f_432 extends MovieClip {
public var _mc:MovieClip;
public var mainMenu_btn:SimpleButton;
public var jeansBg:MovieClip;
public var play_again:SimpleButton;
public var display_txt:TextField;
public var submit_btn:SimpleButton;
public var jeans:MovieClip;
public var userInput_txt:TextField;
public function freeplaypanel_f_432(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
_mc = MovieClip(parent);
_mc.showResult(jeans, jeans.fab);
}
}
}//package chloes_designer_denims4_fla
Section 105
//g01_girl_271 (chloes_designer_denims4_fla.g01_girl_271)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class g01_girl_271 extends MovieClip {
public var Shoe_mc:MovieClip;
public var Face_mc:MovieClip;
public var Lip_mc:MovieClip;
public function g01_girl_271(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 106
//g2w_end_632 (chloes_designer_denims4_fla.g2w_end_632)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class g2w_end_632 extends MovieClip {
public function g2w_end_632(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 107
//g2w_external_links_626 (chloes_designer_denims4_fla.g2w_external_links_626)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class g2w_external_links_626 extends MovieClip {
public var btn_videoTutorial:SimpleButton;
public var btn_shareScore:SimpleButton;
public function g2w_external_links_626(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 108
//g2w_outro_new_631 (chloes_designer_denims4_fla.g2w_outro_new_631)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class g2w_outro_new_631 extends MovieClip {
public var thumb1:MovieClip;
public var thumb2:MovieClip;
public var thumb4:MovieClip;
public var thumb8:MovieClip;
public var thumb9:MovieClip;
public var thumb7:MovieClip;
public var thumb3:MovieClip;
public var thumb5:MovieClip;
public var thumb6:MovieClip;
public var i;
public var thumb10:MovieClip;
public var thumb11:MovieClip;
public var thumb12:MovieClip;
public var thumb17:MovieClip;
public var thumb18:MovieClip;
public var thumb13:MovieClip;
public var thumb16:MovieClip;
public var thumb14:MovieClip;
public var thumb21:MovieClip;
public var thumb23:MovieClip;
public var thumb24:MovieClip;
public var thumb25:MovieClip;
public var thumb26:MovieClip;
public var thumb22:MovieClip;
public var thumb15:MovieClip;
public var thumb20:MovieClip;
public var thumb27:MovieClip;
public var thumb19:MovieClip;
public var thumb28:MovieClip;
public function g2w_outro_new_631(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
i = 1;
while (i <= 28) {
this[("thumb" + i)].gotoAndStop(i);
i++;
};
}
}
}//package chloes_designer_denims4_fla
Section 109
//game_mc_31 (chloes_designer_denims4_fla.game_mc_31)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import assets.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class game_mc_31 extends MovieClip {
public var timerOn:Boolean;
public var maxCharacter:Number;
public var islooseLevel:Boolean;
public var half:Boolean;
public var levelTarget:Array;
public var dragDrop;
public var isReset:Boolean;
public var sizeType_popup:MovieClip;
public var allComp:Boolean;
public var myName:String;
public var inteAct_mc:MovieClip;
public var dollerPopup:MovieClip;
public var goNext_mc:MovieClip;
public var scoreLable:Number;
public var help_btn:SimpleButton;
public var jeansBg:MovieClip;
public var userNameInput:String;
public var dontClick:Boolean;
public var wingap_mc:MovieClip;
public var characterArr:Array;
public var stichCount:Number;
public var highestDepth:Number;
public var Face_mc:MovieClip;
public var lableStr:String;
public var scoreWin_txt:TextField;
public var miniGame_mc:MovieClip;
public var maxStyle:Number;
public var totalTattos:Number;
public var userNameInputBox:String;
public var maxMarker:Number;
public var timerOnGirl:Boolean;
public var scoreLevelPlus:Number;
public var intervalId:uint;
public var play_btn:SimpleButton;
public var style_arr:Array;
public var stichedArr:Array;
public var isInsideMiniGame:Boolean;
public var Lip_mc:MovieClip;
public var fabStyle:Number;
public var mode2:SimpleButton;
public var mode1:SimpleButton;
public var isStDrag:Boolean;
public var space:int;
public var winLevel:MovieClip;
public var lifes:Number;
public var lengthArray:Array;
public var maxFab:Number;
public var count:Number;
public var userInput_mc:MovieClip;
public var tutoPPT_mc:MovieClip;
public var styleArray:Array;
public var scoreOfLevel:Number;
public var interval_mc:MovieClip;
public var invisible_mc:MovieClip;
public var isScDrag:Boolean;
public var modePlay:Boolean;
public var intervalDuration:Number;
public var levelLoose:MovieClip;
public var tool_tip;
public var level:Number;
public var isDrag:Boolean;
public var maxStich:Number;
public var dragStiker:Boolean;
public var countAgain:Number;
public var fabArray:Array;
public var charMc:MovieClip;
public var tattoMc:MovieClip;
public var clickCut:Number;
public var maxhitClip:Number;
public var doRoll:Boolean;
public var kudos:Boolean;
public var looks:String;
public var maxtatto:Number;
public var sisComp:Boolean;
public var loosegap_mc:MovieClip;
public var tattoCount:Number;
public var fabric_arr:Array;
public var container1:MovieClip;
public var container2:MovieClip;
public var container3:MovieClip;
public var hud_mc:MovieClip;
public var tatoo_arr:Array;
public var isStichComplete:Boolean;
public var rupee:Number;
public function game_mc_31(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
public function taskComplete(e:MouseEvent):void{
var size:Boolean;
isReset = false;
miniGame_mc.jeans.cut_animation1.cut_ani1.visible = false;
miniGame_mc.jeans.cut_animation1.cut_ani2.visible = false;
miniGame_mc.jeans.cut_animation2.cut_ani1.visible = false;
miniGame_mc.jeans.cut_animation2.cut_ani2.visible = false;
miniGame_mc.jeans.cut_animation3.cut_ani1.visible = false;
miniGame_mc.jeans.cut_animation3.cut_ani2.visible = false;
miniGame_mc.jeans.cut_animation4.cut_ani1.visible = false;
miniGame_mc.jeans.cut_animation4.cut_ani2.visible = false;
removeListeners();
miniGame_mc.done_mc.removeEventListener(MouseEvent.CLICK, taskComplete);
miniGame_mc.reset_mc.removeEventListener(MouseEvent.CLICK, resetTask);
if (modePlay == false){
if (miniGame_mc.jeans.currentFrame == miniGame_mc.custOrder_mc.custOrder1.currentFrame){
trace("Happy for fab raw");
if (miniGame_mc.jeans.fab.currentFrame == miniGame_mc.custOrder_mc.custOrder2.currentFrame){
trace("Happy for fab style");
checkForTatoo();
if ((((totalTattos == maxStich)) && ((tattoCount == maxStich)))){
trace("Happy for fab tatoo");
size = checkSize();
if (size){
trace((((("%%%%%%%%%%%%%%%%%%% " + rupee) + " ") + "########## ") + charMc.name));
trace(charMc.name);
interval_mc.gotoAndPlay(2);
trace("Happy for size");
} else {
interval_mc.gotoAndPlay(2);
};
} else {
interval_mc.gotoAndPlay(2);
};
} else {
interval_mc.gotoAndPlay(2);
};
} else {
interval_mc.gotoAndPlay(2);
};
} else {
if (modePlay == true){
if (miniGame_mc.dummy_txt.userInput_txt.text == ""){
kudos = false;
userInput_mc.visible = true;
userInput_mc.x = 323.9;
userInput_mc.y = 278.5;
trace("kudossssssssssss");
userInput_mc.submit_btn.addEventListener(MouseEvent.CLICK, userName);
} else {
trace("hurrrrrrrrr");
userInput_mc.visible = true;
userInput_mc.x = 323.9;
userInput_mc.y = 278.5;
userInput_mc.gotoAndStop(2);
userNameInput = miniGame_mc.dummy_txt.userInput_txt.text;
};
};
};
}
public function stichMove(e:MouseEvent):void{
if (!dragStiker){
onStichClick((e.currentTarget as MovieClip));
};
}
public function removeListenerForTatoo(){
miniGame_mc.cut_mc.removeEventListener(MouseEvent.CLICK, stopScissorToMove);
miniGame_mc.scissor_mc.buttonMode = true;
miniGame_mc.scissor_mc.useHandCursor = true;
miniGame_mc.stich_mc.buttonMode = true;
miniGame_mc.stich_mc.useHandCursor = true;
miniGame_mc.scissor_mc.removeEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
miniGame_mc.stich_mc.removeEventListener(MouseEvent.MOUSE_DOWN, stichMove);
miniGame_mc.fabric.removeEventListener(MouseEvent.CLICK, fabricShow);
miniGame_mc.style.removeEventListener(MouseEvent.CLICK, styleShow);
miniGame_mc.stickers.removeEventListener(MouseEvent.CLICK, stickersShow);
miniGame_mc.done_mc.removeEventListener(MouseEvent.CLICK, taskComplete);
miniGame_mc.reset_mc.removeEventListener(MouseEvent.CLICK, resetTask);
miniGame_mc.sticher_mc.removeEventListener(MouseEvent.CLICK, stopStichToMove);
miniGame_mc.help_btn.removeEventListener(MouseEvent.CLICK, miniHelpPanel);
}
public function addListenerForTatoo(){
miniGame_mc.cut_mc.addEventListener(MouseEvent.CLICK, stopScissorToMove);
miniGame_mc.scissor_mc.buttonMode = true;
miniGame_mc.scissor_mc.useHandCursor = true;
miniGame_mc.stich_mc.buttonMode = true;
miniGame_mc.stich_mc.useHandCursor = true;
miniGame_mc.scissor_mc.addEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
miniGame_mc.stich_mc.addEventListener(MouseEvent.MOUSE_DOWN, stichMove);
miniGame_mc.fabric.addEventListener(MouseEvent.CLICK, fabricShow);
miniGame_mc.style.addEventListener(MouseEvent.CLICK, styleShow);
miniGame_mc.stickers.addEventListener(MouseEvent.CLICK, stickersShow);
miniGame_mc.done_mc.addEventListener(MouseEvent.CLICK, taskComplete);
miniGame_mc.reset_mc.addEventListener(MouseEvent.CLICK, resetTask);
miniGame_mc.sticher_mc.addEventListener(MouseEvent.CLICK, stopStichToMove);
miniGame_mc.help_btn.addEventListener(MouseEvent.CLICK, miniHelpPanel);
}
public function randRange(minNum:Number, maxNum:Number):Number{
return ((Math.floor((Math.random() * ((maxNum - minNum) + 1))) + minNum));
}
public function showToolTipOver(e:MouseEvent):void{
tool_tip = new toolTip();
addChild(tool_tip);
tool_tip.x = mouseX;
tool_tip.y = mouseY;
miniGame_mc.help_btn.addEventListener(MouseEvent.MOUSE_OUT, showToolTipOut);
}
public function removeListeners(){
var r:int;
var i:Number;
var j:int;
var k:int;
r = 1;
while (r <= 4) {
miniGame_mc.jeans[("hitClip" + r)].removeEventListener(MouseEvent.CLICK, removeTatoo);
r++;
};
miniGame_mc.cut_mc.removeEventListener(MouseEvent.CLICK, stopScissorToMove);
if (miniGame_mc.scissor_mc.hasEventListener(MouseEvent.MOUSE_DOWN)){
stopDragScissor();
};
if (miniGame_mc.stich_mc.hasEventListener(MouseEvent.MOUSE_DOWN)){
stopDragStich();
};
i = 1;
while (i <= 20) {
if (i <= maxtatto){
miniGame_mc.stickerpanel_mc[("tatoo" + i)].removeEventListener(MouseEvent.MOUSE_DOWN, addTatoo);
};
i++;
};
j = 1;
while (j <= 3) {
if (j <= maxStyle){
miniGame_mc.style_mc[("style" + j)].removeEventListener(MouseEvent.MOUSE_DOWN, clickStyle);
};
j++;
};
k = 1;
while (k <= 3) {
if (k <= maxFab){
miniGame_mc.item_mc[("type" + k)].removeEventListener(MouseEvent.MOUSE_DOWN, clickItem);
};
k++;
};
miniGame_mc.fabric.removeEventListener(MouseEvent.CLICK, fabricShow);
miniGame_mc.style.removeEventListener(MouseEvent.CLICK, styleShow);
miniGame_mc.stickers.removeEventListener(MouseEvent.CLICK, stickersShow);
miniGame_mc.help_btn.removeEventListener(MouseEvent.CLICK, miniHelpPanel);
}
public function openHelpPanel(e:MouseEvent):void{
isInsideMiniGame = true;
timerOn = true;
timerOnGirl = true;
tutoPPT_mc.visible = true;
tutoPPT_mc.x = -110.8;
tutoPPT_mc.y = -118.6;
tutoPPT_mc.gotoAndPlay(1);
}
public function challengePlay(e:MouseEvent):void{
modePlay = false;
looks = null;
gotoAndStop("interactive_tuto");
}
public function tatooMove(e:Event){
var i:int;
removeListenerForTatoo();
e.currentTarget.x = mouseX;
e.currentTarget.y = mouseY;
e.currentTarget.mouseEnabled = false;
e.currentTarget.mouseChildren = false;
tattoMc = (e.currentTarget as MovieClip);
i = 1;
while (i <= 4) {
miniGame_mc.jeans[("hitClip" + i)].id = i;
miniGame_mc.jeans[("hitClip" + i)].addEventListener(MouseEvent.CLICK, removeTatoo);
i++;
};
stichTatoo();
}
public function initialCharacter(){
var i:Number;
var j:int;
i = 1;
while (i <= maxCharacter) {
characterArr = generateArray(i, lableStr, characterArr);
i++;
};
j = 1;
while (j <= 3) {
this[("container" + j)].isempty = false;
j++;
};
showCharacter();
}
public function onStichClick(Mc:MovieClip){
var i:int;
var stich_mc:MovieClip;
var j:int;
if (!isScDrag){
Mc.startDrag(true);
Mc.gotoAndStop(2);
Mc.stich.gotoAndStop(1);
miniGame_mc.setChildIndex(miniGame_mc.stich_mc, (miniGame_mc.numChildren - 1));
Mc.mouseEnabled = false;
isDrag = true;
isStDrag = true;
};
stichCount = 0;
i = 1;
while (i <= maxhitClip) {
stich_mc = miniGame_mc.jeans[("hitClip" + i)].stichHit_mc;
if (stich_mc != null){
if (((!((miniGame_mc.jeans[("hitClip" + i)].currentFrame == 1))) && ((miniGame_mc.jeans[("hitClip" + i)].isDone == undefined)))){
stichCount++;
};
if (miniGame_mc.jeans[("hitClip" + i)].isDone == undefined){
j = 1;
while (j <= 5) {
stich_mc[("line" + j)].id = i;
stich_mc[("line" + j)].buttonMode = true;
stich_mc[("line" + j)].addEventListener(MouseEvent.CLICK, cutClickTatoo);
j++;
};
};
};
i++;
};
}
public function goNextLevel(e:MouseEvent):void{
gotoAndStop("jeansShop");
}
public function styleShow(e:MouseEvent):void{
var i:int;
if (isScDrag){
if (!allComp){
if (sisComp == false){
cutStopReset();
} else {
allComp = true;
cutStopResetForTwo();
};
};
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
stopDragScissor();
cuttingJeans();
};
if (isStDrag){
stopDragStich();
stichTatoo();
};
miniGame_mc.style_mc.visible = true;
miniGame_mc.item_mc.visible = false;
miniGame_mc.cross_mc.visible = false;
miniGame_mc.stickerpanel_mc.visible = false;
i = 1;
while (i <= 3) {
miniGame_mc.style_mc[("style" + i)].id = i;
miniGame_mc.style_mc[("style" + i)].gotoAndStop(i);
if (i <= maxStyle){
miniGame_mc.style_mc[("style" + i)].buttonMode = true;
miniGame_mc.style_mc[("style" + i)].useHandCursor = true;
miniGame_mc.style_mc[("style" + i)].gotoAndStop(1);
miniGame_mc.style_mc[("style" + i)].addEventListener(MouseEvent.ROLL_OVER, doRollOver2);
miniGame_mc.style_mc[("style" + i)].addEventListener(MouseEvent.ROLL_OUT, doRollOut2);
miniGame_mc.style_mc[("style" + i)].addEventListener(MouseEvent.MOUSE_DOWN, clickStyle);
} else {
miniGame_mc.style_mc[("style" + i)].alpha = 0.3;
};
i++;
};
}
public function customerClick(e:MouseEvent):void{
if (!dontClick){
timerOn = true;
dontClick = true;
timerOnGirl = true;
miniGame_mc.visible = true;
miniGame_mc.x = -0.9;
miniGame_mc.y = -0.1;
charMc = (e.currentTarget as MovieClip);
totalTattos = 0;
miniGameInti();
};
}
function frame4(){
stop();
maxCharacter = 5;
characterArr = [];
lableStr = "customer_";
timerOn = false;
timerOnGirl = false;
space = 3;
islooseLevel = false;
intervalDuration = 1000;
count = 0;
looks = "init";
stichCount = 0;
maxStich = 0;
tattoCount = 0;
scoreLable = 0;
totalTattos = 0;
isDrag = false;
isStDrag = false;
isScDrag = false;
isReset = false;
fabStyle = 1;
isStichComplete = false;
isInsideMiniGame = false;
rupee = 0;
maxhitClip = 4;
maxMarker = 4;
stichedArr = new Array();
scoreOfLevel = 0;
half = false;
levelTarget = new Array("", 150, 300, 400, 500);
kudos = false;
clickCut = 0;
sisComp = false;
allComp = false;
dragStiker = false;
fabArray = new Array();
dontClick = false;
doRoll = false;
fabArray = ["fab1", "fab2", "fab3"];
styleArray = new Array();
styleArray = ["style1", "style2", "style3"];
lengthArray = new Array();
lengthArray = ["normal", "3/4", "short"];
fabric_arr = new Array();
fabric_arr = ["", 2, 2, 3, 3];
maxFab = fabric_arr[level];
style_arr = new Array();
style_arr = ["", 2, 2, 3, 3];
maxStyle = style_arr[level];
tatoo_arr = new Array();
tatoo_arr = ["", 5, 10, 15, 20];
maxtatto = tatoo_arr[level];
lifes = 3;
userInput_mc.visible = false;
userInput_mc.x = 335.4;
userInput_mc.y = 952.3;
miniGame_mc.dummy_txt.userInput_txt.text = "";
highestDepth = (numChildren - 1);
init();
}
function frame5(){
SoundManager.callBack.removeAllSounds();
SoundManager.callBack.playSound("winSound", true);
goNext_mc.buttonMode = true;
goNext_mc.useHandCursor = true;
goNext_mc.addEventListener(MouseEvent.CLICK, goNextLevel);
scoreWin_txt.text = String(scoreLevelPlus);
winLevel.gotoAndStop(("level_" + level));
}
function frame6(){
if (level < 4){
(this.root as DocumentClass).doGameOver("gameOver", true, 3);
} else {
(this.root as DocumentClass).doGameOver("gameOver", false, 3);
};
trace(("looseLevel=====" + islooseLevel));
SoundManager.callBack.removeAllSounds();
SoundManager.callBack.playSound("LoseSound1", true);
if (islooseLevel == true){
levelLoose.gotoAndStop(1);
};
if (islooseLevel == false){
levelLoose.gotoAndStop(2);
};
}
function frame1(){
stop();
SoundManager.callBack.removeAllSounds();
SoundManager.callBack.playSound("Title", true);
myName = "";
play_btn.addEventListener(MouseEvent.CLICK, startGame);
}
public function openToolTipOut(e:MouseEvent):void{
if (tool_tip != null){
removeChild(tool_tip);
};
}
function frame7(){
stop();
SoundManager.callBack.removeAllSounds();
SoundManager.callBack.playSound("winSound", true);
DocumentClass(this.root).doGameOver("gameComplete", false, 3);
}
public function doRollOut2(e:MouseEvent):void{
e.currentTarget.gotoAndStop(1);
}
public function cutClick(e:MouseEvent):void{
var parent_mc:MovieClip;
var mark_mc:MovieClip;
if (isDrag){
clickCut++;
trace(("id of line === " + e.currentTarget.parent.name));
if ((((e.currentTarget.parent.name == "marker_mc2")) && ((miniGame_mc.jeans.marker_mc1.isDone == true)))){
miniGame_mc.scissor_mc.scissor.gotoAndPlay(2);
e.currentTarget.removeEventListener(MouseEvent.CLICK, cutClick);
e.currentTarget.gotoAndStop(2);
e.currentTarget.useHandCursor = false;
e.currentTarget.parent.count++;
trace(("fire in the hole" + e.currentTarget.parent.count));
parent_mc = e.currentTarget.parent;
trace(("parent_mc.count : " + parent_mc.count));
if (parent_mc.count < 2){
trace(("parent_mc : " + parent_mc));
makeCutClickEvents(parent_mc, 2, 1);
};
} else {
if ((((e.currentTarget.parent.name == "marker_mc4")) && ((miniGame_mc.jeans.marker_mc3.isDone == true)))){
miniGame_mc.scissor_mc.scissor.gotoAndPlay(2);
e.currentTarget.removeEventListener(MouseEvent.CLICK, cutClick);
e.currentTarget.gotoAndStop(2);
e.currentTarget.useHandCursor = false;
e.currentTarget.parent.count++;
parent_mc = e.currentTarget.parent;
trace(("parent_mc.count : " + parent_mc.count));
if (parent_mc.count < 2){
trace(("parent_mc : " + parent_mc));
makeCutClickEvents(parent_mc, 2, 1);
};
} else {
if ((((e.currentTarget.parent.name == "marker_mc4")) || ((e.currentTarget.parent.name == "marker_mc2")))){
trace("in else part");
} else {
miniGame_mc.scissor_mc.scissor.gotoAndPlay(2);
e.currentTarget.removeEventListener(MouseEvent.CLICK, cutClick);
e.currentTarget.gotoAndStop(2);
e.currentTarget.useHandCursor = false;
e.currentTarget.parent.count++;
parent_mc = e.currentTarget.parent;
trace(("parent_mc.count : " + parent_mc.count));
if (parent_mc.count < 2){
trace(("parent_mc : " + parent_mc));
makeCutClickEvents(parent_mc, 2, 1);
} else {
mark_mc = miniGame_mc.jeans[("marker_mc" + (e.currentTarget.parent.cid + 1))];
trace(((("mark_mc : " + mark_mc) + " :: ") + e.currentTarget.parent.cid));
makeCutClickEvents(mark_mc, 1, (e.currentTarget.parent.cid + 1));
};
};
};
};
if ((((miniGame_mc.jeans.marker_mc1.count >= 2)) && ((miniGame_mc.jeans.marker_mc1.isDone == undefined)))){
if (miniGame_mc.jeans.fab.currentFrame == 2){
miniGame_mc.jeans.cut_animation3.cut_ani2.gotoAndPlay(2);
} else {
if (miniGame_mc.jeans.fab.currentFrame == 3){
miniGame_mc.jeans.cut_animation3.cut_ani3.gotoAndPlay(2);
} else {
miniGame_mc.jeans.cut_animation3.cut_ani1.gotoAndPlay(1);
};
};
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc1.isDone = true;
if ((((miniGame_mc.jeans.marker_mc1.isDone == true)) && ((miniGame_mc.jeans.marker_mc2.isDone == true)))){
trace("mc22222222 new ");
miniGame_mc.jeans.fab.look.gotoAndStop(5);
maxhitClip = 2;
maxMarker = 0;
if (((!((miniGame_mc.jeans.hitClip3.currentFrame == 1))) && ((miniGame_mc.jeans.hitClip3.isDone == true)))){
tattoCount--;
};
if (((!((miniGame_mc.jeans.hitClip4.currentFrame == 1))) && ((miniGame_mc.jeans.hitClip4.isDone == true)))){
tattoCount--;
};
miniGame_mc.jeans.hitClip3.visible = false;
miniGame_mc.jeans.hitClip3.gotoAndStop(1);
miniGame_mc.jeans.hitClip4.gotoAndStop(1);
miniGame_mc.jeans.hitClip4.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
miniGame_mc.jeans.marker_mc3.isDone = true;
miniGame_mc.jeans.marker_mc4.isDone = true;
stopDragScissor();
cuttingJeans();
};
} else {
if ((((miniGame_mc.jeans.marker_mc2.count >= 2)) && ((miniGame_mc.jeans.marker_mc2.isDone == undefined)))){
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc2.isDone = true;
invisible_mc.visible = true;
allComp = true;
if (miniGame_mc.jeans.fab.currentFrame == 2){
miniGame_mc.jeans.cut_animation4.cut_ani2.gotoAndPlay(2);
} else {
if (miniGame_mc.jeans.fab.currentFrame == 3){
miniGame_mc.jeans.cut_animation4.cut_ani3.gotoAndPlay(2);
} else {
miniGame_mc.jeans.cut_animation4.cut_ani1.gotoAndPlay(1);
};
};
if ((((miniGame_mc.jeans.marker_mc2.isDone == true)) && ((miniGame_mc.jeans.marker_mc1.isDone == true)))){
trace("mc22222222 new ");
half = true;
maxhitClip = 2;
maxMarker = 0;
if (((!((miniGame_mc.jeans.hitClip3.currentFrame == 1))) && ((miniGame_mc.jeans.hitClip3.isDone == true)))){
tattoCount--;
};
if (((!((miniGame_mc.jeans.hitClip4.currentFrame == 1))) && ((miniGame_mc.jeans.hitClip4.isDone == true)))){
tattoCount--;
};
miniGame_mc.jeans.hitClip3.visible = false;
miniGame_mc.jeans.hitClip4.visible = false;
miniGame_mc.jeans.hitClip3.gotoAndStop(1);
miniGame_mc.jeans.hitClip4.gotoAndStop(1);
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
miniGame_mc.jeans.marker_mc3.isDone = true;
miniGame_mc.jeans.marker_mc4.isDone = true;
stopDragScissor();
cuttingJeans();
};
} else {
if ((((miniGame_mc.jeans.marker_mc3.count >= 2)) && ((miniGame_mc.jeans.marker_mc3.isDone == undefined)))){
trace(("miniGame_mc.jeans.marker_mc1.isDone " + miniGame_mc.jeans.marker_mc3.isDone));
trace(("kkkkkkkkkkkkkkkkkkkk " + miniGame_mc.jeans.fab.currentFrame));
if (miniGame_mc.jeans.fab.currentFrame == 2){
miniGame_mc.jeans.cut_animation1.cut_ani2.gotoAndPlay(2);
} else {
miniGame_mc.jeans.cut_animation1.cut_ani1.gotoAndPlay(1);
};
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc3.isDone = true;
if ((((miniGame_mc.jeans.marker_mc3.isDone == true)) && ((miniGame_mc.jeans.marker_mc4.isDone == true)))){
trace(("miniGame_mc.jeans.marker_mc2.isDone " + miniGame_mc.jeans.marker_mc3.isDone));
maxhitClip = 4;
maxMarker = 2;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc2.visible = false;
(miniGame_mc.jeans.marker_mc1.isDone == false);
(miniGame_mc.jeans.marker_mc2.isDone == false);
stopDragScissor();
cuttingJeans();
};
} else {
if ((((miniGame_mc.jeans.marker_mc4.count >= 2)) && ((miniGame_mc.jeans.marker_mc4.isDone == undefined)))){
trace(("miniGame_mc.jeans.marker_mc1.isDone " + miniGame_mc.jeans.marker_mc4.isDone));
miniGame_mc.jeans.marker_mc4.visible = false;
miniGame_mc.jeans.marker_mc4.isDone = true;
invisible_mc.visible = true;
sisComp = true;
if (miniGame_mc.jeans.fab.currentFrame == 2){
miniGame_mc.jeans.cut_animation2.cut_ani2.gotoAndPlay(2);
} else {
miniGame_mc.jeans.cut_animation2.cut_ani1.gotoAndPlay(1);
};
if ((((miniGame_mc.jeans.marker_mc3.isDone == true)) && ((miniGame_mc.jeans.marker_mc4.isDone == true)))){
trace(("miniGame_mc.jeans.marker_mc2.isDone " + miniGame_mc.jeans.marker_mc2.isDone));
maxhitClip = 4;
maxMarker = 2;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc2.visible = false;
stopDragScissor();
cuttingJeans();
};
} else {
looks = "init";
maxhitClip = 4;
maxMarker = 4;
};
};
};
};
};
}
public function checkLoose(){
if (lifes == 0){
removeAllMc();
islooseLevel = false;
gotoAndStop("levelFail");
};
}
public function stopStichToMove(evt:MouseEvent):void{
if (isStDrag){
stopDragStich();
stichTatoo();
} else {
onStichClick(miniGame_mc.stich_mc);
};
}
public function removeHandTatoo(e:MouseEvent):void{
addListenerForTatoo();
if (((!((dragDrop == undefined))) && (!((dragDrop == null))))){
miniGame_mc.removeChild(dragDrop);
dragDrop.removeEventListener(Event.ENTER_FRAME, tatooMove);
dragDrop = undefined;
};
}
public function cutStopReset(){
var i:int;
var p:int;
var mark_mc:MovieClip;
var j:int;
var mark_mc1:MovieClip;
var k:int;
i = 1;
while (i <= 4) {
mark_mc = miniGame_mc.jeans[("marker_mc" + i)];
j = 1;
while (j <= 2) {
mark_mc[("line_" + j)].buttonMode = false;
mark_mc[("line_" + j)].removeEventListener(MouseEvent.CLICK, cutClick);
j++;
};
i++;
};
p = 1;
while (p <= 4) {
mark_mc1 = miniGame_mc.jeans[("marker_mc" + p)];
mark_mc1.isDone = undefined;
k = 1;
while (k <= 2) {
mark_mc1[("line_" + k)].gotoAndStop(1);
k++;
};
p++;
};
miniGame_mc.jeans.cut_animation1.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation1.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation2.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation2.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani3.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani3.gotoAndStop(1);
}
function frame2(){
stop();
modePlay = false;
level = 1;
scoreLevelPlus = 0;
mode1.addEventListener(MouseEvent.CLICK, freePlay);
mode2.addEventListener(MouseEvent.CLICK, challengePlay);
}
public function play_again(e:MouseEvent):void{
e.currentTarget.removeEventListener(MouseEvent.CLICK, play_again);
userInput_mc.gotoAndStop(1);
userInput_mc.visible = false;
userInput_mc.x = 335.4;
userInput_mc.y = 952.3;
miniGameInti();
}
public function cuttingJeans(){
miniGame_mc.scissor_mc.gotoAndStop(1);
miniGame_mc.scissor_mc.scissor.gotoAndStop(1);
miniGame_mc.scissor_mc.buttonMode = true;
miniGame_mc.scissor_mc.useHandCursor = true;
miniGame_mc.scissor_mc.addEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
miniGame_mc.scissor_mc.mouseEnabled = true;
miniGame_mc.scissor_mc.gotoAndStop(1);
miniGame_mc.sticher_mc.addEventListener(MouseEvent.CLICK, stopStichToMove);
stichTatoo();
}
function frame3(){
SoundManager.callBack.removeAllSounds();
SoundManager.callBack.playSound("InGame", true);
}
public function onScissorClick(Mc:MovieClip){
var i:int;
var mark_mc:MovieClip;
var j:int;
if (!isStDrag){
Mc.startDrag(true);
Mc.gotoAndStop(2);
Mc.scissor.gotoAndStop(1);
miniGame_mc.setChildIndex(miniGame_mc.scissor_mc, (miniGame_mc.numChildren - 1));
trace("aniket aniket ");
Mc.mouseEnabled = false;
isDrag = true;
isScDrag = true;
i = 1;
while (i <= 4) {
mark_mc = miniGame_mc.jeans[("marker_mc" + i)];
if (mark_mc.isDone == undefined){
mark_mc.visible = true;
mark_mc.count = 0;
mark_mc.cid = i;
j = 1;
while (j <= 2) {
if (((!(((i % 2) == 0))) && (!((j == 2))))){
makeCutClickEvents(mark_mc, j, i);
} else {
mark_mc[("line_" + j)].gotoAndStop(2);
};
j++;
};
};
i++;
};
};
}
public function addListeners(){
var r:int;
var i:Number;
var j:int;
var k:int;
r = 1;
while (r <= 4) {
miniGame_mc.jeans[("hitClip" + r)].addEventListener(MouseEvent.CLICK, removeTatoo);
r++;
};
miniGame_mc.cut_mc.addEventListener(MouseEvent.CLICK, stopScissorToMove);
miniGame_mc.scissor_mc.buttonMode = true;
miniGame_mc.scissor_mc.useHandCursor = true;
miniGame_mc.stich_mc.buttonMode = true;
miniGame_mc.stich_mc.useHandCursor = true;
miniGame_mc.scissor_mc.addEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
miniGame_mc.stich_mc.addEventListener(MouseEvent.MOUSE_DOWN, stichMove);
i = 1;
while (i <= 20) {
if (i <= maxtatto){
miniGame_mc.stickerpanel_mc[("tatoo" + i)].addEventListener(MouseEvent.MOUSE_DOWN, addTatoo);
};
i++;
};
j = 1;
while (j <= 3) {
if (j <= maxStyle){
miniGame_mc.style_mc[("style" + j)].addEventListener(MouseEvent.MOUSE_DOWN, clickStyle);
};
j++;
};
k = 1;
while (k <= 3) {
if (k <= maxFab){
miniGame_mc.item_mc[("type" + k)].addEventListener(MouseEvent.MOUSE_DOWN, clickItem);
};
k++;
};
miniGame_mc.fabric.addEventListener(MouseEvent.CLICK, fabricShow);
miniGame_mc.style.addEventListener(MouseEvent.CLICK, styleShow);
miniGame_mc.stickers.addEventListener(MouseEvent.CLICK, stickersShow);
miniGame_mc.help_btn.addEventListener(MouseEvent.CLICK, miniHelpPanel);
}
public function stopDragScissor(){
isScDrag = false;
isDrag = false;
miniGame_mc.scissor_mc.gotoAndStop(1);
miniGame_mc.scissor_mc.scissor.gotoAndStop(1);
miniGame_mc.scissor_mc.stopDrag();
miniGame_mc.swapChildrenAt(miniGame_mc.scissor_mc.depth, (miniGame_mc.numChildren - 1));
miniGame_mc.scissor_mc.removeEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
miniGame_mc.scissor_mc.x = 35.9;
miniGame_mc.scissor_mc.y = 283.5;
}
public function showCharacter(){
var i:int;
var char:character;
trace(((characterArr.length + " characterArr ") + characterArr));
if (characterArr.length != 0){
i = 1;
while (i <= 3) {
char = new character();
trace(("isEnpty " + this[("container" + i)].isempty));
if (this[("container" + i)].isempty == false){
this[("container" + i)].id = i;
this[("container" + i)].addChild(char);
this[("container" + i)].isempty = true;
char.buttonMode = true;
char.useHandCursor = true;
char.addEventListener(MouseEvent.CLICK, customerClick);
repeatCharacter(char);
break;
};
i++;
};
};
}
public function clickItem(e:MouseEvent):void{
var k:int;
var p:int;
var i:Number;
var mark_mc:MovieClip;
var j:int;
var stich_mc:MovieClip;
var l:int;
stopAnimation();
if (isScDrag){
if (!allComp){
if (sisComp == false){
cutStopReset();
} else {
allComp = true;
cutStopResetForTwo();
};
};
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
stopDragScissor();
cuttingJeans();
};
if (isStDrag){
stopDragStich();
stichTatoo();
};
k = 1;
while (k <= 4) {
miniGame_mc.jeans[("hitClip" + k)].visible = false;
k++;
};
tattoCount = 0;
p = 1;
while (p <= maxMarker) {
mark_mc = miniGame_mc.jeans[("marker_mc" + p)];
mark_mc.isDone = undefined;
j = 1;
while (j <= 2) {
mark_mc[("line_" + j)].gotoAndStop(1);
j++;
};
p++;
};
i = 1;
while (i <= maxhitClip) {
stich_mc = miniGame_mc.jeans[("hitClip" + i)];
stich_mc.isDone = undefined;
trace((stich_mc.isDone + "+++++++++++++"));
stich_mc.stichHit_mc.count = 0;
stich_mc.gotoAndStop(1);
if (stich_mc.stichHit_mc != null){
l = 1;
while (l <= 5) {
stich_mc.stichHit_mc[("line" + l)].gotoAndStop(1);
l++;
};
};
i++;
};
miniGame_mc.done_mc.visible = true;
miniGame_mc.reset_mc.visible = true;
miniGame_mc.jeans.visible = true;
miniGame_mc.jeans.gotoAndStop(e.currentTarget.id);
cuttingJeans();
miniGame_mc.cut_mc.addEventListener(MouseEvent.CLICK, stopScissorToMove);
}
public function miniHelpPanel(e:MouseEvent):void{
if (isStDrag){
stopDragStich();
stichTatoo();
};
if (isScDrag){
if (!allComp){
if (sisComp == false){
cutStopReset();
} else {
allComp = true;
cutStopResetForTwo();
};
};
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
stopDragScissor();
cuttingJeans();
};
isInsideMiniGame = false;
tutoPPT_mc.visible = true;
tutoPPT_mc.x = -110.8;
tutoPPT_mc.y = -118.6;
tutoPPT_mc.gotoAndPlay(1);
}
public function openToolTipOver(e:MouseEvent):void{
tool_tip = new toolTip();
addChild(tool_tip);
tool_tip.x = mouseX;
tool_tip.y = mouseY;
help_btn.addEventListener(MouseEvent.MOUSE_OUT, openToolTipOut);
}
public function onDoneButtonClick(){
var size:Boolean;
SoundManager.callBack.removeAllSounds();
SoundManager.callBack.playSound("InGame", true);
miniGame_mc.visible = false;
miniGame_mc.x = -727.6;
miniGame_mc.y = -8.4;
dollerPopup.x = (charMc.parent.x + (charMc.parent.width / 2));
dollerPopup.y = (charMc.parent.y - 5);
if (miniGame_mc.jeans.currentFrame == miniGame_mc.custOrder_mc.custOrder1.currentFrame){
trace("chkkkkkkkkkkkkkkkkkkkk11111111");
if (miniGame_mc.jeans.fab.currentFrame == miniGame_mc.custOrder_mc.custOrder2.currentFrame){
trace("chkkkkkkkkkkkkkkkkkkkk222222");
trace(((((("Here ur result " + totalTattos) + " ::: ") + tattoCount) + " ::: ") + maxStich));
if ((((totalTattos == maxStich)) && ((tattoCount == maxStich)))){
trace("chkkkkkkkkkkkkkkkkkkkk3333333");
size = checkSize();
if (size){
trace("chkkkkkkkkkkkkkkkkkkkk4444444");
dollerPopup.gotoAndStop("happy");
rupee = (rupee + 50);
hud_mc.scoreTxt.text = String((rupee + "$"));
wingap_mc.gotoAndPlay(2);
} else {
onLevelFail();
};
} else {
onLevelFail();
};
} else {
onLevelFail();
};
} else {
onLevelFail();
};
}
public function makeCutClickEvents(parent_mc:MovieClip, j:Number, i:Number){
parent_mc[("line_" + j)].id = i;
parent_mc[("line_" + j)].gotoAndStop(1);
parent_mc[("line_" + j)].buttonMode = true;
parent_mc[("line_" + j)].useHandCursor = true;
parent_mc[("line_" + j)].addEventListener(MouseEvent.CLICK, cutClick);
}
public function onThreeForthClick(evt:MouseEvent):void{
var i:int;
var mark_mc:MovieClip;
var j:int;
looks = ("threeForth" + evt.currentTarget.id);
miniGame_mc.jeans.fab.look.gotoAndStop(1);
evt.currentTarget.removeEventListener(MouseEvent.CLICK, onThreeForthClick);
sizeType_popup.gotoAndStop(1);
i = 1;
while (i <= 2) {
mark_mc = miniGame_mc.jeans[("marker_mc" + i)];
mark_mc.isDone = undefined;
j = 1;
while (j <= 2) {
mark_mc[("line_" + j)].gotoAndStop(1);
j++;
};
i++;
};
miniGame_mc.jeans.cut_animation3.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani3.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani3.gotoAndStop(1);
addListeners();
}
public function removeAllMc(){
var i:int;
var j:Number;
var char:MovieClip;
clearInterval(intervalId);
i = 1;
while (i <= 3) {
if (this[("container" + i)].isempty == true){
j = 0;
while (j < this[("container" + i)].numChildren) {
if ((this[("container" + i)].getChildAt(j) is MovieClip)){
char = (this[("container" + i)].getChildAt(j) as MovieClip);
char.removeEventListener(MouseEvent.CLICK, customerClick);
clearInterval(char.charInterval);
this[("container" + i)].removeChild(char);
this[("container" + i)].isempty = false;
};
j++;
};
};
i++;
};
}
public function cutClickTatoo(e:MouseEvent):void{
var par:MovieClip;
if (isStDrag){
if (!isScDrag){
miniGame_mc.stich_mc.stich.gotoAndPlay(2);
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
par = e.currentTarget.parent;
e.currentTarget.removeEventListener(MouseEvent.CLICK, cutClickTatoo);
e.currentTarget.gotoAndStop(2);
e.currentTarget.buttonMode = false;
par.count++;
if (par.count >= 5){
tattoCount++;
e.currentTarget.parent.parent.isDone = true;
stichCount--;
if (stichCount == 0){
isStichComplete = true;
stopDragStich();
stichTatoo();
};
};
};
};
}
public function clickStyle(e:MouseEvent):void{
var k:int;
var i:Number;
var stich_mc:MovieClip;
var l:int;
stopAnimation();
if (isScDrag){
if (!allComp){
if (sisComp == false){
cutStopReset();
} else {
allComp = true;
cutStopResetForTwo();
};
};
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
stopDragScissor();
cuttingJeans();
};
if (isStDrag){
stopDragStich();
stichTatoo();
};
k = 1;
while (k <= 4) {
miniGame_mc.jeans[("hitClip" + k)].visible = false;
k++;
};
tattoCount = 0;
fabStyle = e.currentTarget.id;
i = 1;
while (i <= maxhitClip) {
stich_mc = miniGame_mc.jeans[("hitClip" + i)];
stich_mc.isDone = undefined;
stich_mc.stichHit_mc.count = 0;
stich_mc.gotoAndStop(1);
if (stich_mc.stichHit_mc != null){
l = 1;
while (l <= 5) {
stich_mc.stichHit_mc[("line" + l)].gotoAndStop(1);
l++;
};
};
i++;
};
cuttingJeans();
miniGame_mc.jeans.fab.gotoAndStop(e.currentTarget.id);
trace(("hello world " + miniGame_mc.jeans.fab.currentFrame));
if (miniGame_mc.jeans.fab.currentFrame == 2){
trace(("hello world " + miniGame_mc.jeans.hitClip4.x));
miniGame_mc.jeans.hitClip3.x = 8;
miniGame_mc.jeans.hitClip4.x = 80;
miniGame_mc.jeans.marker_mc3.x = 64;
miniGame_mc.jeans.marker_mc4.x = 107;
} else {
miniGame_mc.jeans.hitClip3.x = 17;
miniGame_mc.jeans.hitClip4.x = 74;
miniGame_mc.jeans.marker_mc3.x = 71.8;
miniGame_mc.jeans.marker_mc4.x = 94.8;
};
}
public function stopScissorToMove(evt:MouseEvent):void{
if (!allComp){
if (sisComp == false){
cutStopReset();
} else {
allComp = true;
cutStopResetForTwo();
};
};
if (isScDrag){
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
stopDragScissor();
cuttingJeans();
} else {
onScissorClick(miniGame_mc.scissor_mc);
};
}
public function userName(e:MouseEvent):void{
userNameInput = userInput_mc.userInput_txt.text;
myName = userInput_mc.userInput_txt.text;
miniGame_mc.dummy_txt.userInput_txt.text = myName;
userInput_mc.gotoAndStop(2);
}
public function init(){
var i:int;
var doRollOver:Function;
var doRollOut:Function;
var doRollOver1:Function;
var doRollOut1:Function;
trace(("depthhhhhhhhhh " + highestDepth));
SoundManager.callBack.removeAllSounds();
SoundManager.callBack.playSound("InGame", true);
invisible_mc.visible = false;
tutoPPT_mc.visible = false;
tutoPPT_mc.x = 804;
tutoPPT_mc.y = -93.6;
sisComp = false;
allComp = false;
dragStiker = false;
dontClick = false;
rupee = 0;
count = 0;
countAgain = 0;
stichedArr = [];
maxhitClip = 4;
totalTattos = 0;
scoreOfLevel = 0;
kudos = false;
islooseLevel = false;
lifes = 3;
jeansBg.mouseEnabled = false;
jeansBg.mouseChildren = false;
timerOn = false;
timerOnGirl = false;
half = false;
dollerPopup.x = -40;
miniGame_mc.scissor_mc.depth = miniGame_mc.getChildIndex(miniGame_mc.scissor_mc);
miniGame_mc.stich_mc.depth = miniGame_mc.getChildIndex(miniGame_mc.stich_mc);
help_btn.addEventListener(MouseEvent.CLICK, openHelpPanel);
help_btn.addEventListener(MouseEvent.MOUSE_OVER, openToolTipOver);
i = 1;
while (i <= 3) {
hud_mc[("life_" + i)].gotoAndStop(1);
i = (i + 1);
};
if (modePlay == true){
doRollOver = function (e:MouseEvent):void{
miniGame_mc.done_mc.gotoAndStop(4);
};
doRollOut = function (e:MouseEvent):void{
miniGame_mc.done_mc.gotoAndStop(2);
};
maxFab = 3;
maxStyle = 3;
maxtatto = 20;
hud_mc.visible = false;
miniGame_mc.visible = true;
miniGame_mc.x = -0.9;
miniGame_mc.y = -0.1;
miniGame_mc.custOrder_mc.visible = false;
miniGame_mc.dummy_txt.visible = true;
miniGameInti();
miniGame_mc.done_mc.gotoAndStop(2);
miniGame_mc.done_mc.addEventListener(MouseEvent.ROLL_OVER, doRollOver);
miniGame_mc.done_mc.addEventListener(MouseEvent.ROLL_OUT, doRollOut);
} else {
doRollOver1 = function (e:MouseEvent):void{
miniGame_mc.done_mc.gotoAndStop(3);
};
doRollOut1 = function (e:MouseEvent):void{
miniGame_mc.done_mc.gotoAndStop(1);
};
hud_mc.visible = true;
mainTimer();
initialCharacter();
miniGame_mc.visible = false;
miniGame_mc.x = -727.6;
miniGame_mc.y = -8.4;
miniGame_mc.custOrder_mc.visible = true;
miniGame_mc.dummy_txt.visible = false;
miniGame_mc.done_mc.gotoAndStop(1);
miniGame_mc.done_mc.addEventListener(MouseEvent.ROLL_OVER, doRollOver1);
miniGame_mc.done_mc.addEventListener(MouseEvent.ROLL_OUT, doRollOut1);
};
}
public function stickersShow(e:MouseEvent):void{
var i:Number;
var k:int;
if (half == false){
k = 1;
while (k <= 4) {
miniGame_mc.jeans[("hitClip" + k)].visible = true;
k++;
};
} else {
miniGame_mc.jeans.hitClip1.visible = true;
miniGame_mc.jeans.hitClip2.visible = true;
};
if (isScDrag){
if (!allComp){
if (sisComp == false){
cutStopReset();
} else {
allComp = true;
cutStopResetForTwo();
};
};
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
stopDragScissor();
cuttingJeans();
};
if (isStDrag){
stopDragStich();
stichTatoo();
};
miniGame_mc.stickerpanel_mc.visible = true;
miniGame_mc.cross_mc.visible = true;
miniGame_mc.item_mc.visible = false;
miniGame_mc.style_mc.visible = false;
i = 1;
while (i <= 20) {
miniGame_mc.stickerpanel_mc[("tatoo" + i)].id = i;
miniGame_mc.stickerpanel_mc[("tatoo" + i)].gotoAndStop(i);
if (i <= maxtatto){
miniGame_mc.stickerpanel_mc[("tatoo" + i)].buttonMode = true;
miniGame_mc.stickerpanel_mc[("tatoo" + i)].useHandCursor = true;
miniGame_mc.stickerpanel_mc[("tatoo" + i)].addEventListener(MouseEvent.MOUSE_DOWN, addTatoo);
} else {
miniGame_mc.stickerpanel_mc[("tatoo" + i)].alpha = 0.3;
};
i++;
};
miniGame_mc.cross_mc.addEventListener(MouseEvent.CLICK, removeHandTatoo);
}
public function miniGameInti(){
var i:int;
var k:int;
var randRange:Function;
var mark_mc:MovieClip;
var j:int;
var stich_mc:MovieClip;
var l:int;
var rndNum1:Number;
var rndNum2:Number;
var rndNum3:Number;
var rndNum5:Number;
var rndNum4:Number;
randRange = function (minNum:Number, maxNum:Number):Number{
return ((Math.floor((Math.random() * ((maxNum - minNum) + 1))) + minNum));
};
SoundManager.callBack.removeAllSounds();
SoundManager.callBack.playSound("MniGame", true);
isInsideMiniGame = false;
half = false;
kudos = false;
sisComp = false;
allComp = false;
dragStiker = false;
fabStyle = 1;
maxhitClip = 4;
clickCut = 0;
interval_mc.gotoAndStop(1);
tattoCount = 0;
stichedArr = [];
miniGame_mc.jeans.hitClip3.x = 17;
miniGame_mc.jeans.hitClip4.x = 74;
miniGame_mc.jeans.marker_mc3.x = 71.8;
miniGame_mc.jeans.marker_mc4.x = 94.8;
miniGame_mc.jeans.cut_animation1.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation1.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation2.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation2.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani3.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani3.gotoAndStop(1);
miniGame_mc.jeans.cut_animation1.cut_ani1.visible = true;
miniGame_mc.jeans.cut_animation1.cut_ani2.visible = true;
miniGame_mc.jeans.cut_animation2.cut_ani1.visible = true;
miniGame_mc.jeans.cut_animation2.cut_ani2.visible = true;
miniGame_mc.jeans.cut_animation3.cut_ani1.visible = true;
miniGame_mc.jeans.cut_animation3.cut_ani2.visible = true;
miniGame_mc.jeans.cut_animation3.cut_ani3.visible = true;
miniGame_mc.jeans.cut_animation4.cut_ani1.visible = true;
miniGame_mc.jeans.cut_animation4.cut_ani2.visible = true;
miniGame_mc.jeans.cut_animation4.cut_ani3.visible = true;
miniGame_mc.dummy_txt.userInput_txt.type = TextFieldType.INPUT;
miniGame_mc.dummy_txt.userInput_txt.selectable = true;
miniGame_mc.dummy_txt.submit_btn.addEventListener(MouseEvent.CLICK, putUserName);
userInput_mc.gotoAndStop(1);
miniGame_mc.done_mc.visible = false;
miniGame_mc.reset_mc.visible = false;
miniGame_mc.cross_mc.visible = false;
miniGame_mc.done_mc.buttonMode = true;
miniGame_mc.done_mc.useHandCursor = true;
miniGame_mc.help_btn.addEventListener(MouseEvent.MOUSE_OVER, showToolTipOver);
miniGame_mc.done_mc.addEventListener(MouseEvent.CLICK, taskComplete);
miniGame_mc.reset_mc.addEventListener(MouseEvent.CLICK, resetTask);
miniGame_mc.help_btn.addEventListener(MouseEvent.CLICK, miniHelpPanel);
looks = "init";
isStichComplete = false;
i = 1;
while (i <= 4) {
mark_mc = miniGame_mc.jeans[("marker_mc" + i)];
mark_mc.isDone = undefined;
j = 1;
while (j <= 2) {
mark_mc[("line_" + j)].gotoAndStop(1);
j = (j + 1);
};
i = (i + 1);
};
k = 1;
while (k <= 4) {
stich_mc = miniGame_mc.jeans[("hitClip" + k)].stichHit_mc;
stich_mc.count = 0;
miniGame_mc.jeans[("hitClip" + k)].isDone = undefined;
miniGame_mc.jeans[("hitClip" + k)].visible = true;
if (stich_mc != null){
l = 1;
while (l <= 5) {
stich_mc[("line" + l)].gotoAndStop(1);
l = (l + 1);
};
};
k = (k + 1);
};
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
isDrag = false;
miniGame_mc.jeans.fab.gotoAndStop("init");
miniGame_mc.jeans.fab.look.gotoAndStop(1);
miniGame_mc.jeans.visible = false;
miniGame_mc.style_mc.visible = false;
miniGame_mc.item_mc.visible = false;
miniGame_mc.stickerpanel_mc.visible = false;
miniGame_mc.fabric.addEventListener(MouseEvent.CLICK, fabricShow);
miniGame_mc.style.addEventListener(MouseEvent.CLICK, styleShow);
miniGame_mc.stickers.addEventListener(MouseEvent.CLICK, stickersShow);
if (!isReset){
maxStich = randRange(1, 2);
trace(("jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj : " + maxStich));
rndNum1 = randRange(1, maxFab);
rndNum2 = randRange(1, maxStyle);
rndNum3 = randRange(1, maxtatto);
rndNum5 = randRange(1, maxtatto);
rndNum4 = randRange(1, lengthArray.length);
miniGame_mc.custOrder_mc.custOrder1.gotoAndStop(rndNum1);
miniGame_mc.custOrder_mc.custOrder2.gotoAndStop(rndNum2);
if (maxStich < 2){
miniGame_mc.custOrder_mc.custOrder3_1.gotoAndStop((rndNum3 + 1));
miniGame_mc.custOrder_mc.custOrder3_2.gotoAndStop(1);
} else {
miniGame_mc.custOrder_mc.custOrder3_1.gotoAndStop((rndNum3 + 1));
miniGame_mc.custOrder_mc.custOrder3_2.gotoAndStop((rndNum5 + 1));
};
trace(("see the randomGe no " + rndNum2));
if (rndNum2 == 2){
rndNum4 = 1;
};
miniGame_mc.custOrder_mc.custOrder4.gotoAndStop(rndNum4);
if (maxStich == 2){
miniGame_mc.custOrder_mc.sticCount.text = (String(maxStich) + " Stickers");
} else {
miniGame_mc.custOrder_mc.sticCount.text = (String(maxStich) + " Sticker");
};
};
}
public function checkSize():Boolean{
var match:Boolean;
match = false;
if ((((miniGame_mc.custOrder_mc.custOrder4.currentFrame == 1)) && ((miniGame_mc.jeans.fab.look.currentFrame == 1)))){
match = true;
} else {
if ((((((miniGame_mc.custOrder_mc.custOrder4.currentFrame == 2)) && ((miniGame_mc.jeans.fab.look.currentFrame >= 2)))) && ((miniGame_mc.jeans.fab.look.currentFrame <= 4)))){
match = true;
} else {
if ((((((miniGame_mc.custOrder_mc.custOrder4.currentFrame == 3)) && ((miniGame_mc.jeans.fab.look.currentFrame >= 5)))) && ((miniGame_mc.jeans.fab.look.currentFrame <= 7)))){
match = true;
};
};
};
return (match);
}
public function removeCharacter(){
var container:MovieClip;
timerOn = false;
timerOnGirl = false;
dollerPopup.x = -40;
container = (charMc.parent as MovieClip);
clearInterval(charMc.charInterval);
characterArr = generateArray(charMc.id, lableStr, characterArr);
container.removeChild(charMc);
dontClick = false;
container.isempty = false;
}
public function myRepeatingFunction():void{
if (timerOn == false){
count++;
scoreLable = (100 - count);
hud_mc.timerTxt.text = String(scoreLable);
if ((count % arguments[1]) == 0){
showCharacter();
};
if (count >= arguments[0]){
trace("clearInterval");
islooseLevel = false;
removeAllMc();
gotoAndStop("levelFail");
};
};
}
public function doRollOver2(e:MouseEvent):void{
e.currentTarget.gotoAndStop(2);
}
public function mainTimer(){
intervalId = setInterval(myRepeatingFunction, intervalDuration, 100, 2);
}
public function putUserName(e:MouseEvent):void{
miniGame_mc.dummy_txt.userInput_txt.type = TextFieldType.DYNAMIC;
miniGame_mc.dummy_txt.userInput_txt.selectable = false;
}
public function fabricShow(e:MouseEvent):void{
var i:int;
if (isScDrag){
if (!allComp){
if (sisComp == false){
cutStopReset();
} else {
allComp = true;
cutStopResetForTwo();
};
};
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
stopDragScissor();
cuttingJeans();
};
if (isStDrag){
stopDragStich();
stichTatoo();
};
miniGame_mc.item_mc.visible = true;
miniGame_mc.style_mc.visible = false;
miniGame_mc.cross_mc.visible = false;
miniGame_mc.stickerpanel_mc.visible = false;
i = 1;
while (i <= 3) {
miniGame_mc.item_mc[("type" + i)].id = i;
miniGame_mc.item_mc[("type" + i)].gotoAndStop(i);
if (i <= maxFab){
miniGame_mc.item_mc[("type" + i)].buttonMode = true;
miniGame_mc.item_mc[("type" + i)].useHandCursor = true;
miniGame_mc.item_mc[("type" + i)].gotoAndStop(1);
miniGame_mc.item_mc[("type" + i)].addEventListener(MouseEvent.ROLL_OVER, doRollOver2);
miniGame_mc.item_mc[("type" + i)].addEventListener(MouseEvent.ROLL_OUT, doRollOut2);
miniGame_mc.item_mc[("type" + i)].addEventListener(MouseEvent.MOUSE_DOWN, clickItem);
} else {
miniGame_mc.item_mc[("type" + i)].alpha = 0.3;
};
i++;
};
}
public function showToolTipOut(e:MouseEvent):void{
if (tool_tip != null){
removeChild(tool_tip);
};
}
public function stichTatoo(){
miniGame_mc.stich_mc.gotoAndStop(1);
miniGame_mc.stich_mc.stich.gotoAndStop(1);
miniGame_mc.stich_mc.buttonMode = true;
miniGame_mc.stich_mc.useHandCursor = true;
miniGame_mc.stich_mc.addEventListener(MouseEvent.MOUSE_DOWN, stichMove);
miniGame_mc.stich_mc.mouseEnabled = true;
miniGame_mc.stich_mc.gotoAndStop(1);
}
public function gotoMainMenu(e:MouseEvent):void{
e.currentTarget.removeEventListener(MouseEvent.CLICK, gotoMainMenu);
userInput_mc.gotoAndStop(1);
userInput_mc.visible = false;
userInput_mc.x = 335.4;
userInput_mc.y = 952.3;
gotoAndStop("mode");
}
public function cutStopResetForTwo(){
var i:int;
var p:int;
var mark_mc:MovieClip;
var j:int;
var mark_mc1:MovieClip;
var k:int;
i = 1;
while (i <= 2) {
mark_mc = miniGame_mc.jeans[("marker_mc" + i)];
j = 1;
while (j <= 2) {
mark_mc[("line_" + j)].buttonMode = false;
mark_mc[("line_" + j)].removeEventListener(MouseEvent.CLICK, cutClick);
j++;
};
i++;
};
p = 1;
while (p <= 2) {
mark_mc1 = miniGame_mc.jeans[("marker_mc" + p)];
mark_mc1.isDone = undefined;
k = 1;
while (k <= 2) {
mark_mc1[("line_" + k)].gotoAndStop(1);
k++;
};
p++;
};
miniGame_mc.jeans.cut_animation3.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani3.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani3.gotoAndStop(1);
}
public function startGame(evt:MouseEvent):void{
gotoAndStop("mode");
}
public function showResult(jean:MovieClip, fabMC:MovieClip){
var i:Number;
if (kudos == false){
userInput_mc.display_txt.text = userNameInput;
} else {
miniGame_mc.dummy_txt.userInput_txt.text = myName;
};
userInput_mc.mainMenu_btn.addEventListener(MouseEvent.CLICK, gotoMainMenu);
userInput_mc.play_again.addEventListener(MouseEvent.CLICK, play_again);
jean.gotoAndStop(miniGame_mc.jeans.currentFrame);
jean.marker_mc1.visible = false;
jean.marker_mc2.visible = false;
jean.marker_mc3.visible = false;
jean.marker_mc4.visible = false;
i = 1;
while (i <= maxhitClip) {
jean[("hitClip" + i)].stichHit_mc.visible = false;
if (miniGame_mc.jeans[("hitClip" + i)].isDone == true){
jean[("hitClip" + i)].gotoAndStop(miniGame_mc.jeans[("hitClip" + i)].currentFrame);
} else {
jean[("hitClip" + i)].visible = false;
};
i++;
};
if (maxhitClip <= 2){
jean.hitClip3.visible = false;
jean.hitClip4.visible = false;
};
trace(("666666666666666 == " + miniGame_mc.jeans.fab.currentFrame));
if (((!((fabMC.look == null))) && (!((miniGame_mc.jeans.look == undefined))))){
fabMC.look.gotoAndStop(miniGame_mc.jeans.look.currentFrame);
};
}
public function stopAnimation(){
miniGame_mc.jeans.cut_animation1.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation1.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation2.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation2.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation3.cut_ani3.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani1.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani2.gotoAndStop(1);
miniGame_mc.jeans.cut_animation4.cut_ani3.gotoAndStop(1);
}
public function removeTatoo(e:MouseEvent):void{
var stich_mc:MovieClip;
if (e.currentTarget.stichHit_mc.count <= 0){
addListenerForTatoo();
stich_mc = miniGame_mc.jeans[("hitClip" + e.currentTarget.id)];
if (dragDrop != null){
trace(("vvvvvvvv" + stich_mc.isDone));
if (((((stich_mc.hitTestObject(dragDrop.hit_mc)) && ((stich_mc.isDone == undefined)))) && ((stich_mc.stichHit_mc.count < 1)))){
trace("inside condition_________-");
stich_mc.gotoAndStop((tattoMc.currentFrame + 1));
stich_mc.stichHit_mc.visible = true;
removeDrag();
};
};
};
}
public function resetTask(e:MouseEvent):void{
trace(((((((((("order before : fabric " + miniGame_mc.custOrder_mc.custOrder1.currentFrame) + " : style ") + miniGame_mc.custOrder_mc.custOrder2.currentFrame) + " :tatoo1 ") + miniGame_mc.custOrder_mc.custOrder3_1.currentFrame) + " :tatoo2 ") + miniGame_mc.custOrder_mc.custOrder3_2.currentFrame) + " :size ") + miniGame_mc.custOrder_mc.custOrder4.currentFrame));
if (isScDrag){
if (!allComp){
if (sisComp == false){
cutStopReset();
} else {
allComp = true;
cutStopResetForTwo();
};
};
stopDragScissor();
cuttingJeans();
};
if (isStDrag){
stopDragStich();
stichTatoo();
};
trace("resetTask");
miniGame_mc.cut_mc.removeEventListener(MouseEvent.CLICK, stopScissorToMove);
miniGame_mc.scissor_mc.removeEventListener(MouseEvent.MOUSE_DOWN, scissorMove);
miniGame_mc.sticher_mc.removeEventListener(MouseEvent.CLICK, stopStichToMove);
miniGame_mc.stich_mc.removeEventListener(MouseEvent.MOUSE_DOWN, stichMove);
isReset = true;
totalTattos = 0;
miniGameInti();
}
public function onLevelFail(){
hud_mc[("life_" + lifes)].gotoAndStop(2);
lifes--;
dollerPopup.gotoAndStop("sad");
loosegap_mc.gotoAndPlay(2);
}
public function addTatoo(e:MouseEvent){
if (isScDrag){
if (!allComp){
if (sisComp == false){
cutStopReset();
} else {
allComp = true;
cutStopResetForTwo();
};
};
miniGame_mc.jeans.marker_mc2.visible = false;
miniGame_mc.jeans.marker_mc1.visible = false;
miniGame_mc.jeans.marker_mc3.visible = false;
miniGame_mc.jeans.marker_mc4.visible = false;
stopDragScissor();
cuttingJeans();
};
if (isStDrag){
stopDragStich();
stichTatoo();
};
if (!isDrag){
if (((!((dragDrop == null))) && (!((dragDrop == undefined))))){
removeDrag();
};
if ((((dragDrop == null)) && ((dragDrop == undefined)))){
dragStiker = true;
dragDrop = new drag_drop();
miniGame_mc.addChild(dragDrop);
dragDrop.gotoAndStop(e.currentTarget.id);
dragDrop.addEventListener(Event.ENTER_FRAME, tatooMove);
};
};
}
public function freePlay(e:MouseEvent):void{
modePlay = true;
looks = null;
gotoAndStop("interactive_tuto");
}
public function onShortClick(evt:MouseEvent):void{
looks = ("short" + evt.currentTarget.id);
miniGame_mc.jeans.fab.look.gotoAndStop(1);
evt.currentTarget.removeEventListener(MouseEvent.CLICK, onShortClick);
sizeType_popup.gotoAndStop(1);
miniGame_mc.jeans.cut_animation1.cut_ani1.visible = false;
miniGame_mc.jeans.cut_animation1.cut_ani2.visible = false;
miniGame_mc.jeans.cut_animation2.cut_ani1.visible = false;
miniGame_mc.jeans.cut_animation2.cut_ani2.visible = false;
addListeners();
}
public function checkForTatoo(){
var i:Number;
var k:Number;
var j:Number;
i = 1;
while (i <= maxStich) {
stichedArr.push(miniGame_mc.custOrder_mc[("custOrder3_" + i)].currentFrame);
i++;
};
trace(("stichedArr before" + stichedArr));
k = 0;
while (k < maxStich) {
j = 1;
while (j <= maxhitClip) {
if (miniGame_mc.jeans[("hitClip" + j)].isDone == true){
trace(((j + " k.... ") + k));
trace(((stichedArr[k] + " ") + miniGame_mc.jeans[("hitClip" + j)].currentFrame));
if (stichedArr[k] == miniGame_mc.jeans[("hitClip" + j)].currentFrame){
stichedArr[k] = 50;
totalTattos++;
};
} else {
miniGame_mc.jeans[("hitClip" + j)].visible = false;
};
j++;
};
k++;
};
}
public function selectShorts(){
var i:Number;
removeListeners();
i = 1;
while (i <= 3) {
sizeType_popup[("short" + i)].id = i;
sizeType_popup[("short" + i)].buttonMode = true;
sizeType_popup[("short" + i)].useHandCursor = true;
sizeType_popup[("short" + i)].addEventListener(MouseEvent.CLICK, onShortClick);
i++;
};
}
public function repeatCharacter(_mc:MovieClip){
var rndNum:Number;
var Num:Number;
rndNum = randRange(0, (characterArr.length - 1));
_mc.gotoAndStop(characterArr[rndNum]);
Num = characterArr[rndNum].substr(-1, 1);
_mc.id = Num;
_mc.cnt = 0;
_mc.charInterval = setInterval(removeChar, intervalDuration, 25, _mc, 1);
characterArr.splice(rndNum, 1);
trace(characterArr);
}
public function checkWin(){
if (rupee >= levelTarget[level]){
level++;
removeAllMc();
scoreOfLevel = (scoreLable * 100);
scoreLevelPlus = (scoreLevelPlus + scoreOfLevel);
if (level > 4){
gotoAndStop("gamewin");
} else {
gotoAndStop("levelWin");
};
};
}
public function stopDragStich(){
isDrag = false;
isStDrag = false;
miniGame_mc.stich_mc.gotoAndStop(1);
miniGame_mc.stich_mc.stich.gotoAndStop(1);
miniGame_mc.stich_mc.stopDrag();
miniGame_mc.setChildIndex(miniGame_mc.stich_mc, miniGame_mc.stich_mc.depth);
miniGame_mc.stich_mc.removeEventListener(MouseEvent.MOUSE_DOWN, stichMove);
miniGame_mc.stich_mc.x = 45.5;
miniGame_mc.stich_mc.y = 348.9;
}
public function generateArray(Num:Number, lable:String, arr:Array){
var str:String;
str = (lable + Num);
arr.push(str);
return (arr);
}
public function removeDrag(){
if (dragDrop != undefined){
dragStiker = false;
miniGame_mc.removeChild(dragDrop);
dragDrop.removeEventListener(Event.ENTER_FRAME, tatooMove);
dragDrop = undefined;
};
}
public function scissorMove(e:MouseEvent):void{
if (!dragStiker){
onScissorClick((e.currentTarget as MovieClip));
};
}
public function selectThreeForths(){
var i:Number;
removeListeners();
i = 1;
while (i <= 3) {
sizeType_popup[("threeForth" + i)].id = i;
sizeType_popup[("threeForth" + i)].buttonMode = true;
sizeType_popup[("threeForth" + i)].useHandCursor = true;
sizeType_popup[("threeForth" + i)].addEventListener(MouseEvent.CLICK, onThreeForthClick);
i++;
};
}
public function removeChar():void{
var mc:MovieClip;
if (timerOnGirl == false){
arguments[1].cnt = (arguments[1].cnt + arguments[2]);
arguments[1].timerBar_mc.gotoAndStop(arguments[1].cnt);
if (arguments[1].cnt >= arguments[0]){
clearInterval(arguments[1].charInterval);
characterArr = generateArray(arguments[1].id, lableStr, characterArr);
mc = (arguments[1].parent as MovieClip);
mc.removeChild((arguments[1] as MovieClip));
mc.isempty = false;
hud_mc[("life_" + lifes)].gotoAndStop(2);
lifes--;
dollerPopup.gotoAndStop("sad");
checkLoose();
};
};
}
}
}//package chloes_designer_denims4_fla
Section 110
//gap_mc_310 (chloes_designer_denims4_fla.gap_mc_310)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class gap_mc_310 extends MovieClip {
public var _mc:MovieClip;
public function gap_mc_310(){
super();
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
_mc = MovieClip(parent);
_mc.removeCharacter();
_mc.checkLoose();
}
}
}//package chloes_designer_denims4_fla
Section 111
//gap_mccopy_311 (chloes_designer_denims4_fla.gap_mccopy_311)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class gap_mccopy_311 extends MovieClip {
public var _mc:MovieClip;
public function gap_mccopy_311(){
super();
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
stop();
}
function frame35(){
stop();
_mc = MovieClip(parent);
_mc.onDoneButtonClick();
}
}
}//package chloes_designer_denims4_fla
Section 112
//gap_mccopy2_312 (chloes_designer_denims4_fla.gap_mccopy2_312)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class gap_mccopy2_312 extends MovieClip {
public var _mc:MovieClip;
public function gap_mccopy2_312(){
super();
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
_mc = MovieClip(parent);
_mc.removeCharacter();
_mc.checkWin();
}
}
}//package chloes_designer_denims4_fla
Section 113
//headermgm_53 (chloes_designer_denims4_fla.headermgm_53)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class headermgm_53 extends MovieClip {
public var Face_mc:MovieClip;
public var Lip_mc:MovieClip;
public function headermgm_53(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 114
//hud_445 (chloes_designer_denims4_fla.hud_445)
package chloes_designer_denims4_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hud_445 extends MovieClip {
public var timerTxt:TextField;
public var life_2:MovieClip;
public var life_3:MovieClip;
public var life_1:MovieClip;
public var scoreTxt:TextField;
public function hud_445(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 115
//itoms_326 (chloes_designer_denims4_fla.itoms_326)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class itoms_326 extends MovieClip {
public var type2:MovieClip;
public var type1:MovieClip;
public var type3:MovieClip;
public function itoms_326(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 116
//jeans_style_580 (chloes_designer_denims4_fla.jeans_style_580)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class jeans_style_580 extends MovieClip {
public var green:MovieClip;
public var blue:MovieClip;
public var red:MovieClip;
public var marker_mc:MovieClip;
public function jeans_style_580(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 117
//jeans1_418 (chloes_designer_denims4_fla.jeans1_418)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class jeans1_418 extends MovieClip {
public var _mc:MovieClip;
public function jeans1_418(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc = MovieClip(root);
this.gotoAndStop(_mc.game_mc.looks);
}
}
}//package chloes_designer_denims4_fla
Section 118
//jeans11_380 (chloes_designer_denims4_fla.jeans11_380)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class jeans11_380 extends MovieClip {
public var _mc:MovieClip;
public function jeans11_380(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc = MovieClip(root);
this.gotoAndStop(_mc.game_mc.looks);
}
}
}//package chloes_designer_denims4_fla
Section 119
//jeans111_414 (chloes_designer_denims4_fla.jeans111_414)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class jeans111_414 extends MovieClip {
public var _mc:MovieClip;
public function jeans111_414(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc = MovieClip(root);
this.gotoAndStop(_mc.game_mc.looks);
}
}
}//package chloes_designer_denims4_fla
Section 120
//jeans2_417 (chloes_designer_denims4_fla.jeans2_417)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class jeans2_417 extends MovieClip {
public var _mc:MovieClip;
public function jeans2_417(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc = MovieClip(root);
this.gotoAndStop(_mc.game_mc.looks);
}
}
}//package chloes_designer_denims4_fla
Section 121
//jeans22_379 (chloes_designer_denims4_fla.jeans22_379)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class jeans22_379 extends MovieClip {
public var _mc:MovieClip;
public function jeans22_379(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc = MovieClip(root);
this.gotoAndStop(_mc.game_mc.looks);
}
}
}//package chloes_designer_denims4_fla
Section 122
//jeans23_413 (chloes_designer_denims4_fla.jeans23_413)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class jeans23_413 extends MovieClip {
public var _mc:MovieClip;
public function jeans23_413(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc = MovieClip(root);
this.gotoAndStop(_mc.game_mc.looks);
}
}
}//package chloes_designer_denims4_fla
Section 123
//jeans3_416 (chloes_designer_denims4_fla.jeans3_416)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class jeans3_416 extends MovieClip {
public var _mc:MovieClip;
public function jeans3_416(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc = MovieClip(root);
this.gotoAndStop(_mc.game_mc.looks);
}
}
}//package chloes_designer_denims4_fla
Section 124
//jeans32_378 (chloes_designer_denims4_fla.jeans32_378)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class jeans32_378 extends MovieClip {
public var _mc:MovieClip;
public function jeans32_378(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc = MovieClip(root);
this.gotoAndStop(_mc.game_mc.looks);
}
}
}//package chloes_designer_denims4_fla
Section 125
//jeans33_412 (chloes_designer_denims4_fla.jeans33_412)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class jeans33_412 extends MovieClip {
public var _mc:MovieClip;
public function jeans33_412(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc = MovieClip(root);
this.gotoAndStop(_mc.game_mc.looks);
}
}
}//package chloes_designer_denims4_fla
Section 126
//life_mc_446 (chloes_designer_denims4_fla.life_mc_446)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class life_mc_446 extends MovieClip {
public function life_mc_446(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 127
//line1_391 (chloes_designer_denims4_fla.line1_391)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class line1_391 extends MovieClip {
public function line1_391(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 128
//line2_394 (chloes_designer_denims4_fla.line2_394)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class line2_394 extends MovieClip {
public function line2_394(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 129
//line3_397 (chloes_designer_denims4_fla.line3_397)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class line3_397 extends MovieClip {
public function line3_397(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 130
//line4_400 (chloes_designer_denims4_fla.line4_400)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class line4_400 extends MovieClip {
public function line4_400(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 131
//line5_403 (chloes_designer_denims4_fla.line5_403)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class line5_403 extends MovieClip {
public function line5_403(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 132
//lip01_girl_68 (chloes_designer_denims4_fla.lip01_girl_68)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class lip01_girl_68 extends MovieClip {
public function lip01_girl_68(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 133
//lip01_girlmhgm_55 (chloes_designer_denims4_fla.lip01_girlmhgm_55)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class lip01_girlmhgm_55 extends MovieClip {
public function lip01_girlmhgm_55(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 134
//loder_18 (chloes_designer_denims4_fla.loder_18)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class loder_18 extends MovieClip {
public var _mc:MovieClip;
public function loder_18(){
super();
addFrameScript(129, frame130);
}
function frame130(){
stop();
_mc = (parent as MovieClip);
_mc.gotoAndStop("gameStart");
}
}
}//package chloes_designer_denims4_fla
Section 135
//marker_mc2_195 (chloes_designer_denims4_fla.marker_mc2_195)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class marker_mc2_195 extends MovieClip {
public var line_1:MovieClip;
public var line_2:MovieClip;
public function marker_mc2_195(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 136
//mc_all_playagain_lose_629 (chloes_designer_denims4_fla.mc_all_playagain_lose_629)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class mc_all_playagain_lose_629 extends MovieClip {
public var btn_nextLevel:SimpleButton;
public var btn_playAgain:SimpleButton;
public function mc_all_playagain_lose_629(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 137
//mc_glows_Jeans_139 (chloes_designer_denims4_fla.mc_glows_Jeans_139)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class mc_glows_Jeans_139 extends MovieClip {
public function mc_glows_Jeans_139(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 138
//minigame_315 (chloes_designer_denims4_fla.minigame_315)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class minigame_315 extends MovieClip {
public var cross_mc:SimpleButton;
public var style_mc:MovieClip;
public var help_btn:SimpleButton;
public var dummy_txt:MovieClip;
public var item_mc:MovieClip;
public var sticher_mc:SimpleButton;
public var reset_mc:SimpleButton;
public var stich_mc:MovieClip;
public var custOrder_mc:MovieClip;
public var fabric:SimpleButton;
public var style:SimpleButton;
public var cut_mc:SimpleButton;
public var jeans:MovieClip;
public var stickers:SimpleButton;
public var scissor_mc:MovieClip;
public var done_mc:MovieClip;
public var stickerpanel_mc:MovieClip;
public function minigame_315(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 139
//option_denim_329 (chloes_designer_denims4_fla.option_denim_329)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class option_denim_329 extends MovieClip {
public function option_denim_329(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 140
//option_denim1_328 (chloes_designer_denims4_fla.option_denim1_328)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class option_denim1_328 extends MovieClip {
public function option_denim1_328(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 141
//option_denim2_327 (chloes_designer_denims4_fla.option_denim2_327)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class option_denim2_327 extends MovieClip {
public function option_denim2_327(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 142
//order_text1_362 (chloes_designer_denims4_fla.order_text1_362)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class order_text1_362 extends MovieClip {
public var fab2:MovieClip;
public var fab1:MovieClip;
public var fab3:MovieClip;
public function order_text1_362(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 143
//order_text2_366 (chloes_designer_denims4_fla.order_text2_366)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class order_text2_366 extends MovieClip {
public function order_text2_366(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 144
//organic_option_415 (chloes_designer_denims4_fla.organic_option_415)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class organic_option_415 extends MovieClip {
public var look:MovieClip;
public var _fabmc:MovieClip;
public function organic_option_415(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_fabmc = MovieClip(root);
gotoAndStop(_fabmc.game_mc.fabStyle);
}
}
}//package chloes_designer_denims4_fla
Section 145
//popup_424 (chloes_designer_denims4_fla.popup_424)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class popup_424 extends MovieClip {
public var threeForth1:MovieClip;
public var threeForth2:MovieClip;
public var threeForth3:MovieClip;
public var short1:MovieClip;
public var short2:MovieClip;
public var _mc:MovieClip;
public var short3:MovieClip;
public var _mc2:MovieClip;
public var _mc1:MovieClip;
public function popup_424(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
_mc2 = (parent as MovieClip);
_mc2.invisible_mc.visible = false;
_mc.selectShorts();
}
function frame1(){
stop();
_mc = MovieClip(parent);
}
function frame2(){
_mc1 = (parent as MovieClip);
_mc1.invisible_mc.visible = false;
_mc.selectThreeForths();
}
}
}//package chloes_designer_denims4_fla
Section 146
//raw_274 (chloes_designer_denims4_fla.raw_274)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class raw_274 extends MovieClip {
public var hit5_mc:MovieClip;
public var hitClip1:MovieClip;
public var hitClip3:MovieClip;
public var hitClip2:MovieClip;
public var hitClip4:MovieClip;
public var hit3_mc:MovieClip;
public var hit1_mc:MovieClip;
public var hit6_mc:MovieClip;
public var hit4_mc:MovieClip;
public var hit2_mc:MovieClip;
public function raw_274(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
hit3_mc = (parent.parent.parent as MovieClip);
hit3_mc.maxhitClip = 4;
}
function frame6(){
hit6_mc = (parent.parent.parent as MovieClip);
hit6_mc.maxhitClip = 1;
}
function frame1(){
stop();
hit1_mc = (parent.parent.parent as MovieClip);
hit1_mc.maxhitClip = 4;
}
function frame4(){
hit4_mc = (parent.parent.parent as MovieClip);
hit4_mc.maxhitClip = 4;
}
function frame2(){
hit2_mc = (parent.parent.parent as MovieClip);
hit2_mc.maxhitClip = 3;
}
function frame5(){
hit5_mc = (parent.parent.parent as MovieClip);
hit5_mc.maxhitClip = 2;
}
}
}//package chloes_designer_denims4_fla
Section 147
//row_option_377 (chloes_designer_denims4_fla.row_option_377)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class row_option_377 extends MovieClip {
public var look:MovieClip;
public var _fabmc:MovieClip;
public function row_option_377(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_fabmc = MovieClip(root);
gotoAndStop(_fabmc.game_mc.fabStyle);
}
}
}//package chloes_designer_denims4_fla
Section 148
//sadgirl_567 (chloes_designer_denims4_fla.sadgirl_567)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class sadgirl_567 extends MovieClip {
public var Face_mc:MovieClip;
public function sadgirl_567(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 149
//salvage_581 (chloes_designer_denims4_fla.salvage_581)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class salvage_581 extends MovieClip {
public function salvage_581(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 150
//salveg_option_411 (chloes_designer_denims4_fla.salveg_option_411)
package chloes_designer_denims4_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class salveg_option_411 extends MovieClip {
public var look:MovieClip;
public var _fabmc:MovieClip;
public function salveg_option_411(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
_fabmc = MovieClip(root);
gotoAndStop(_fabmc.game_mc.fabStyle);
}
}
}//package chloes_designer_denims4_fla
Section 151
//scissor_mc_593 (chloes_designer_denims4_fla.scissor_mc_593)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class scissor_mc_593 extends MovieClip {
public function scissor_mc_593(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 152
//scissore1_421 (chloes_designer_denims4_fla.scissore1_421)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class scissore1_421 extends MovieClip {
public var scissor:MovieClip;
public function scissore1_421(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 153
//shoes_283 (chloes_designer_denims4_fla.shoes_283)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class shoes_283 extends MovieClip {
public function shoes_283(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 154
//siccore_1mc_422 (chloes_designer_denims4_fla.siccore_1mc_422)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class siccore_1mc_422 extends MovieClip {
public function siccore_1mc_422(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 155
//sound1_595 (chloes_designer_denims4_fla.sound1_595)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class sound1_595 extends MovieClip {
public function sound1_595(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 156
//sprite138_566 (chloes_designer_denims4_fla.sprite138_566)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class sprite138_566 extends MovieClip {
public function sprite138_566(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 157
//sprite158_570 (chloes_designer_denims4_fla.sprite158_570)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class sprite158_570 extends MovieClip {
public function sprite158_570(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 158
//stap1_419 (chloes_designer_denims4_fla.stap1_419)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stap1_419 extends MovieClip {
public var stich:MovieClip;
public function stap1_419(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 159
//stich_1mc_420 (chloes_designer_denims4_fla.stich_1mc_420)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stich_1mc_420 extends MovieClip {
public function stich_1mc_420(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 160
//stichHit_mc_390 (chloes_designer_denims4_fla.stichHit_mc_390)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stichHit_mc_390 extends MovieClip {
public var line1:MovieClip;
public var line2:MovieClip;
public var line5:MovieClip;
public var line3:MovieClip;
public var line4:MovieClip;
public function stichHit_mc_390(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 161
//stick_1copy_275 (chloes_designer_denims4_fla.stick_1copy_275)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stick_1copy_275 extends MovieClip {
public function stick_1copy_275(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 162
//stick_1copy2_276 (chloes_designer_denims4_fla.stick_1copy2_276)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stick_1copy2_276 extends MovieClip {
public function stick_1copy2_276(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 163
//stick_1copy3_277 (chloes_designer_denims4_fla.stick_1copy3_277)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stick_1copy3_277 extends MovieClip {
public function stick_1copy3_277(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 164
//stick_1copy4_278 (chloes_designer_denims4_fla.stick_1copy4_278)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stick_1copy4_278 extends MovieClip {
public function stick_1copy4_278(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 165
//stick_1copy5_279 (chloes_designer_denims4_fla.stick_1copy5_279)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stick_1copy5_279 extends MovieClip {
public function stick_1copy5_279(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 166
//stick_1copy6_280 (chloes_designer_denims4_fla.stick_1copy6_280)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stick_1copy6_280 extends MovieClip {
public function stick_1copy6_280(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 167
//stick_1copy7_281 (chloes_designer_denims4_fla.stick_1copy7_281)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stick_1copy7_281 extends MovieClip {
public function stick_1copy7_281(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 168
//stick_1copy8_282 (chloes_designer_denims4_fla.stick_1copy8_282)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stick_1copy8_282 extends MovieClip {
public function stick_1copy8_282(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 169
//stickerPanel_370 (chloes_designer_denims4_fla.stickerPanel_370)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stickerPanel_370 extends MovieClip {
public var tatoo13:MovieClip;
public var tatoo15:MovieClip;
public var tatoo16:MovieClip;
public var tatoo10:MovieClip;
public var tatoo18:MovieClip;
public var tatoo14:MovieClip;
public var tatoo19:MovieClip;
public var tatoo17:MovieClip;
public var tatoo11:MovieClip;
public var tatoo20:MovieClip;
public var tatoo3:MovieClip;
public var tatoo7:MovieClip;
public var tatoo5:MovieClip;
public var tatoo8:MovieClip;
public var tatoo6:MovieClip;
public var tatoo1:MovieClip;
public var tatoo12:MovieClip;
public var tatoo9:MovieClip;
public var tatoo2:MovieClip;
public var tatoo4:MovieClip;
public function stickerPanel_370(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 170
//stickers_332 (chloes_designer_denims4_fla.stickers_332)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stickers_332 extends MovieClip {
public var tatoo3:MovieClip;
public var tatoo5:MovieClip;
public var tatoo2:MovieClip;
public var tatoo1:MovieClip;
public var tatoo4:MovieClip;
public function stickers_332(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 171
//stickers1_371 (chloes_designer_denims4_fla.stickers1_371)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stickers1_371 extends MovieClip {
public function stickers1_371(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package chloes_designer_denims4_fla
Section 172
//stickers2_389 (chloes_designer_denims4_fla.stickers2_389)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stickers2_389 extends MovieClip {
public var stichHit_mc:MovieClip;
public function stickers2_389(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
stichHit_mc.visible = false;
}
}
}//package chloes_designer_denims4_fla
Section 173
//stickPanel_586 (chloes_designer_denims4_fla.stickPanel_586)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class stickPanel_586 extends MovieClip {
public var tatoo3:MovieClip;
public var tatoo5:MovieClip;
public var tatoo2:MovieClip;
public var tatoo6:MovieClip;
public var tatoo1:MovieClip;
public var tatoo4:MovieClip;
public function stickPanel_586(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 174
//style_mc_372 (chloes_designer_denims4_fla.style_mc_372)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class style_mc_372 extends MovieClip {
public var style2:MovieClip;
public var style1:MovieClip;
public var style3:MovieClip;
public function style_mc_372(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 175
//Symbol10cut_387 (chloes_designer_denims4_fla.Symbol10cut_387)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class Symbol10cut_387 extends MovieClip {
public var cut_ani2:MovieClip;
public var cut_ani1:MovieClip;
public var cut_ani3:MovieClip;
public function Symbol10cut_387(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 176
//Symbol3_381 (chloes_designer_denims4_fla.Symbol3_381)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class Symbol3_381 extends MovieClip {
public var cut_ani2:MovieClip;
public var cut_ani1:MovieClip;
public function Symbol3_381(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 177
//Symbol8_383 (chloes_designer_denims4_fla.Symbol8_383)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class Symbol8_383 extends MovieClip {
public var cut_ani2:MovieClip;
public var cut_ani1:MovieClip;
public function Symbol8_383(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 178
//Symbolcut_385 (chloes_designer_denims4_fla.Symbolcut_385)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class Symbolcut_385 extends MovieClip {
public var cut_ani2:MovieClip;
public var cut_ani1:MovieClip;
public var cut_ani3:MovieClip;
public function Symbolcut_385(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 179
//tuto_cust_order_116 (chloes_designer_denims4_fla.tuto_cust_order_116)
package chloes_designer_denims4_fla {
import flash.display.*;
public dynamic class tuto_cust_order_116 extends MovieClip {
public var fab1:MovieClip;
public var tatoo2:MovieClip;
public var tatoo1:MovieClip;
public function tuto_cust_order_116(){
super();
}
}
}//package chloes_designer_denims4_fla
Section 180
//character (character)
package {
import flash.display.*;
public dynamic class character extends MovieClip {
public var girl:MovieClip;
public var timerBar_mc:MovieClip;
public function character(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 181
//DocumentClass (DocumentClass)
package {
import flash.events.*;
import flash.display.*;
import assets.*;
import flash.text.*;
import flash.utils.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
public class DocumentClass extends MovieClip {
public var game_mc:MovieClip;
public var inviziad:InviziAd;
public var myContextMenu:ContextMenu;
public var chimpoo:MovieClip;
public var customGameOver:G2WGameOver;
public var fbShare:FBShare;// = null
private var gameStatus:String;// = "gameover"
private var timeCounter:uint;// = 0
public var loadingProgress:LoadingProgress;
public var completeStatus:Boolean;// = false
public var isPlayed:Boolean;// = false
private var timeMaxCounter:uint;// = 60
public var logo:Logo;// = null
public var vc:VolumeControl;// = null
public var sns_bar:InviziBar;
private var skipOption:Boolean;// = false
public function DocumentClass(){
isPlayed = false;
completeStatus = false;
logo = null;
vc = null;
fbShare = null;
timeCounter = 0;
skipOption = false;
gameStatus = "gameover";
timeMaxCounter = 60;
inviziad = new InviziAd();
super();
addFrameScript(0, frame1, 2, frame3, 3, frame4);
chimpoo.inviziBtn.addEventListener(MouseEvent.CLICK, onClick);
loadingProgress.visible = false;
loaderInfo.addEventListener(Event.COMPLETE, onCompletelyDownloaded);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressMade);
}
public function createFBShare(){
trace("created header");
if (fbShare == null){
fbShare = new FBShare();
};
if (!contains(fbShare)){
addChild(fbShare);
};
}
public function addLoader(){
isPlayed = true;
loadingProgress.visible = true;
}
public function g2wGameOver(resetStatus:Boolean){
this.removeChild(customGameOver);
this.customGameOver = null;
stage.scaleMode = StageScaleMode.SHOW_ALL;
if (resetStatus){
playAgainWin();
} else {
playAgainLose();
};
}
public function skipLevel(){
game_mc.level++;
game_mc.gotoAndStop("jeansShop");
}
public function onEnter(event:Event){
var event = event;
if (((completeStatus) && (isPlayed))){
removeEventListener(Event.ENTER_FRAME, onEnter);
inviziad.showPreRoll(GameObj._g2wGameId, GameObj._host, MovieClip(root));
inviziad.onAdFinished = function (){
this.gotoAndStop("gameSplash");
};
};
}
public function createVolumeControl(){
trace("created header");
if (vc == null){
vc = new VolumeControl();
};
if (!contains(vc)){
addChild(vc);
};
}
function frame3(){
stop();
}
function frame1(){
stop();
this.tabEnabled = false;
this.stage.stageFocusRect = false;
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
this.contextMenu = myContextMenu;
stage.scaleMode = StageScaleMode.SHOW_ALL;
}
public function onProgressMade(progressEvent:ProgressEvent):void{
var val:*;
trace("running", loadingProgress);
val = Math.floor(((100 * loaderInfo.bytesLoaded) / loaderInfo.bytesTotal));
loadingProgress.updateProgress(val);
}
public function addCustomGameOver(){
customGameOver = new G2WGameOver();
addChild(customGameOver);
this.addChild(fbShare);
customGameOver.init(gameStatus, skipOption);
customGameOver.x = 325;
customGameOver.y = 250;
}
public function doGameOver(type:String, opt:Boolean, t:uint=1, score=0){
G2W.submitGameScore(GameObj._g2wGameId, score, root);
timeMaxCounter = (t * this.stage.frameRate);
skipOption = opt;
gameStatus = type;
addEventListener(Event.ENTER_FRAME, runTimer);
}
public function createAssets(){
createLogo();
createVolumeControl();
createFBShare();
}
public function g2wSkipLevel(){
this.removeChild(customGameOver);
stage.scaleMode = StageScaleMode.SHOW_ALL;
this.customGameOver = null;
skipLevel();
}
private function runTimer(event:Event){
timeCounter++;
if (timeCounter >= timeMaxCounter){
timeCounter = 0;
removeEventListener(Event.ENTER_FRAME, runTimer);
stage.scaleMode = StageScaleMode.NO_SCALE;
addCustomGameOver();
SoundManager.callBack.removeAllSounds();
trace("Removed All Sounds");
};
}
public function playAgainWin(){
gotoAndStop("gameStart");
game_mc.gotoAndStop("init");
}
function frame4(){
stop();
createAssets();
}
public function playAgainLose(){
game_mc.gotoAndStop("jeansShop");
}
public function createLogo(){
trace("created header");
if (logo == null){
logo = new Logo();
};
if (!contains(logo)){
addChild(logo);
};
}
public function onCompletelyDownloaded(event:Event):void{
completeStatus = true;
addEventListener(Event.ENTER_FRAME, onEnter);
}
public function onClick(event:MouseEvent){
callGames2win();
}
public static function faceBookCall(){
var request:URLRequest;
request = new URLRequest(GameObj.facebookURL);
navigateToURL(request, "_blank");
}
public static function callGames2win(){
var url:String;
var request:URLRequest;
url = String(GameObj._logoClick);
request = new URLRequest(url);
navigateToURL(request, "_blank");
//unresolved jump
var _slot1 = e;
}
public static function callFBShare(){
var url:String;
var request:URLRequest;
url = String(GameObj.facebookShareURL);
request = new URLRequest(url);
navigateToURL(request, "_blank");
//unresolved jump
var _slot1 = e;
}
public static function callGames2winThumb(){
var url:String;
var request:URLRequest;
url = String(GameObj._gameTrackingThumb);
request = new URLRequest(url);
navigateToURL(request, "_blank");
//unresolved jump
var _slot1 = e;
}
public static function callGames2winStrip(){
var url:String;
var request:URLRequest;
url = String(GameObj._gameTrackingStrip);
request = new URLRequest(url);
navigateToURL(request, "_blank");
//unresolved jump
var _slot1 = e;
}
public static function callVideo(){
var request:URLRequest;
request = new URLRequest(GameObj._gameVideoURL);
navigateToURL(request, "_blank");
}
}
}//package
Section 182
//drag_drop (drag_drop)
package {
import flash.display.*;
public dynamic class drag_drop extends MovieClip {
public var hit_mc:MovieClip;
public function drag_drop(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 183
//G2W (G2W)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
public class G2W {
private static var loader:URLLoader;
private static var gameRoot:MovieClip;
private static var request:URLRequest;
public function G2W(){
super();
}
private static function addFBSessionVars(lv){
var keyStr:String;
var valueStr:String;
for (keyStr in gameRoot.loaderInfo.parameters) {
if (keyStr.indexOf("fb_sig") == 0){
valueStr = String(gameRoot.loaderInfo.parameters[keyStr]);
lv[keyStr] = valueStr;
};
};
}
public static function submitGameScore(gid, score, clip){
var variables:URLVariables;
if (LoaderInfo(clip.loaderInfo).parameters["score_enable"] == true){
gameRoot = clip;
debug(((("Submitting Score gameid:" + gid) + " gamescore:") + score));
loader = new URLLoader();
request = new URLRequest("http://facebook.games2win.com/games2win_ifr/score_submit.php");
variables = new URLVariables();
variables.game = gid;
variables.score = score;
addFBSessionVars(variables);
request.data = variables;
request.method = URLRequestMethod.POST;
debug("POST URL : http://facebook.games2win.com/games2win_ifr/score_submit.php");
debug(("POST Variables " + variables));
loader.addEventListener(Event.COMPLETE, parseResponse);
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.load(request);
};
}
private static function trim(str:String):String{
var i:*;
var j:*;
i = 0;
while (str.charCodeAt(i) < 33) {
i++;
};
j = (str.length - 1);
while (str.charCodeAt(j) < 33) {
j--;
};
return (str.substring(i, (j + 1)));
}
private static function debug(str){
trace(str);
gameRoot.outputBox.text = (gameRoot.outputBox.text + ("\n-" + str));
}
private static function parseResponse(e){
var lv:URLLoader;
var userList:*;
lv = e.currentTarget;
debug(lv.data.type);
if (((!((lv.data.type == undefined))) && (!((lv.data.type == "blank"))))){
debug(lv.data.type);
userList = ((lv.data.userlist) || ("-"));
ExternalInterface.call("g2wShareScore", lv.data.type, lv.data.userlist);
ExternalInterface.call("refresh_gamepage_score");
};
}
}
}//package
Section 184
//GameObj (GameObj)
package {
public class GameObj {
public static var facebookShareURL = (("http://www.facebook.com/share.php?u=http://apps.facebook.com/gamestowin-games/play/" + _g2wGameId) + "");
public static var _host:String = "g2w";
public static var inviziads = (((("http://s1.inviziads.com/lookup.html?g=" + _g2wGameId) + "&h=") + _host) + "&l=");
public static var _gameTop10URL = "http://www.games2win.com/get_top_scorer.asp";
public static var _gameScoreOrder = "desc";
public static var _gameTitle = "Chloe's Designer Denims";
public static var _partnerGameId = "chloesdesignerdenims";
public static var _logoClick = "http://www.games2win.com/en/";
public static var _gameDomainName = "games2win.com";
public static var _googleText = _gameTitle;
public static var _gameTrackingThumb = (("http://www.games2win.com/?utm_source=g2w_wrapper&utm_medium=post_rolls&utm_content=" + _gameName) + "&utm_campaign=g2w_wrapper");
public static var inviziadStr = ((("http://s1.inviziads.com/lookup.html?type=strip&g=" + _g2wGameId) + "&h=") + _host);
public static var _gameRegisterURL = "http://www.games2win.com/register.asp";
public static var gameScore = 0;
public static var facebookURL = ("http://apps.facebook.com/gamestowin-games/playpage.php?game=" + _g2wGameId);
public static var _gameTrackingStrip = (("http://www.games2win.com/?utm_source=g2w_strip&utm_medium=post_rolls&utm_content=" + _gameName) + "&utm_campaign=g2w_strip");
public static var _gameStageH = 490;
public static var _gameStageW = 650;
public static var _gstatus = "gameover";
public static var _gameResolution = ((_gameStageW + "x") + _gameStageH);
public static var relatedGamesXML = "http://s1.inviziads.com/partner/g2w/related/gamemenu_tag_kissing_games.xml";
public static var relatedGamesTAG = "KSGM";
public static var _gameVideoURL = ((("http://www.games2win.com/videotutorial.html?url=" + _gameVideoId) + "&name=") + _gameTitle);
public static var _gameSubmitURL = "http://www.games2win.com/submit_score.asp";
public static var _gameHostStatus = false;
public static var _gameVideoId = "8gBZjZo-WLE";
public static var externalLinkRef = "BOTH";
public static var _g2wGameId = "1417";
public static var _gameName = "chloes_designer_denims";
public function GameObj(){
super();
}
}
}//package
Section 185
//GameSound (GameSound)
package {
import assets.*;
public dynamic class GameSound extends CustomSound {
public function GameSound(){
super();
}
}
}//package
Section 186
//InGame (InGame)
package {
import assets.*;
public dynamic class InGame extends CustomSound {
public function InGame(){
super();
}
}
}//package
Section 187
//IntroSound (IntroSound)
package {
import assets.*;
public dynamic class IntroSound extends CustomSound {
public function IntroSound(){
super();
}
}
}//package
Section 188
//LoseSound (LoseSound)
package {
import flash.media.*;
public dynamic class LoseSound extends Sound {
public function LoseSound(){
super();
}
}
}//package
Section 189
//LoseSound1 (LoseSound1)
package {
import assets.*;
public dynamic class LoseSound1 extends CustomSound {
public function LoseSound1(){
super();
}
}
}//package
Section 190
//miniGame (miniGame)
package {
import flash.display.*;
public dynamic class miniGame extends MovieClip {
public var straight:SimpleButton;
public var blue_btn:SimpleButton;
public var green_btn:SimpleButton;
public var stickPanel:MovieClip;
public var stich_mc:MovieClip;
public var fabric:SimpleButton;
public var style:SimpleButton;
public var red_btn:SimpleButton;
public var slimFit:SimpleButton;
public var jeans:MovieClip;
public var stickers:SimpleButton;
public var scissor_mc:MovieClip;
public var bootCut:SimpleButton;
public function miniGame(){
super();
}
}
}//package
Section 191
//MniGame (MniGame)
package {
import assets.*;
public dynamic class MniGame extends CustomSound {
public function MniGame(){
super();
}
}
}//package
Section 192
//Title (Title)
package {
import assets.*;
public dynamic class Title extends CustomSound {
public function Title(){
super();
}
}
}//package
Section 193
//toolTip (toolTip)
package {
import flash.display.*;
public dynamic class toolTip extends MovieClip {
public function toolTip(){
super();
}
}
}//package
Section 194
//winSound (winSound)
package {
import assets.*;
public dynamic class winSound extends CustomSound {
public function winSound(){
super();
}
}
}//package