Section 1
//FileEvent (be.nascom.flash.events.FileEvent)
package be.nascom.flash.events {
import flash.events.*;
public class FileEvent extends Event {
private var _filename:String;
public static const FILE_UPLOADED:String = "fileUploaded";
public function FileEvent(_arg1:String, _arg2:String, _arg3:Boolean=true, _arg4:Boolean=false):void{
_filename = _arg2;
super(_arg1, _arg3, _arg4);
}
public function get filename():String{
return (_filename);
}
}
}//package be.nascom.flash.events
Section 2
//ImageUploader (be.nascom.flash.net.upload.ImageUploader)
package be.nascom.flash.net.upload {
import flash.display.*;
import flash.events.*;
import com.adobe.images.*;
import flash.utils.*;
import be.nascom.flash.events.*;
import flash.net.*;
public class ImageUploader extends EventDispatcher {
private var _uploadScriptUrl:String;
public static const FILETYPE_JPG:String = "jpg";
public function ImageUploader(_arg1:String):void{
_uploadScriptUrl = _arg1;
}
private function handleComplete(_arg1:Event):void{
dispatchEvent(new FileEvent(FileEvent.FILE_UPLOADED, String(_arg1.target.data)));
}
public function upload(_arg1:BitmapData, _arg2:uint=70, _arg3:String="jpg", _arg4:String="filedata", _arg5:Object=null):void{
var _local6:JPGEncoder = new JPGEncoder(_arg2);
var _local7:ByteArray = _local6.encode(_arg1);
var _local8:URLRequest = new URLRequest();
var _local9:String = _arg5.fileName;
_local8.url = _uploadScriptUrl;
_local8.contentType = ("multipart/form-data; boundary=" + UploadPostHelper.getBoundary());
_local8.method = URLRequestMethod.POST;
_local8.data = UploadPostHelper.getPostData(_local9, _local7, _arg4, _arg5);
_local8.requestHeaders.push(new URLRequestHeader("Cache-Control", "no-cache"));
var _local10:URLLoader = new URLLoader();
_local10.dataFormat = URLLoaderDataFormat.BINARY;
_local10.addEventListener(Event.COMPLETE, handleComplete);
_local10.addEventListener(IOErrorEvent.IO_ERROR, onError);
_local10.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
_local10.load(_local8);
}
private function onError(_arg1:IOErrorEvent):void{
dispatchEvent(_arg1);
}
private function onSecurityError(_arg1:SecurityErrorEvent):void{
dispatchEvent(_arg1);
}
}
}//package be.nascom.flash.net.upload
Section 3
//UploadPostHelper (be.nascom.flash.net.upload.UploadPostHelper)
package be.nascom.flash.net.upload {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class UploadPostHelper {
private static var _boundary:String = "";
public static function getBoundary():String{
var _local1:int;
if (_boundary.length == 0){
_local1 = 0;
while (_local1 < 32) {
_boundary = (_boundary + String.fromCharCode(int((97 + (Math.random() * 25)))));
_local1++;
};
};
return (_boundary);
}
private static function DOUBLEDASH(_arg1:ByteArray):ByteArray{
_arg1.writeShort(0x2D2D);
return (_arg1);
}
public static function getPostData(_arg1:String, _arg2:ByteArray, _arg3:String="filedata", _arg4:Object=null):ByteArray{
var _local5:int;
var _local6:String;
var _local8:String;
var _local7:ByteArray = new ByteArray();
_local7.endian = Endian.BIG_ENDIAN;
if (_arg4 == null){
_arg4 = new Object();
};
_arg4.Filename = _arg1;
for (_local8 in _arg4) {
_local7 = BOUNDARY(_local7);
_local7 = LINEBREAK(_local7);
_local6 = (("Content-Disposition: form-data; name=\"" + _local8) + "\"");
_local5 = 0;
while (_local5 < _local6.length) {
_local7.writeByte(_local6.charCodeAt(_local5));
_local5++;
};
_local7 = LINEBREAK(_local7);
_local7 = LINEBREAK(_local7);
_local7.writeUTFBytes(_arg4[_local8]);
_local7 = LINEBREAK(_local7);
};
_local7 = BOUNDARY(_local7);
_local7 = LINEBREAK(_local7);
_local6 = (("Content-Disposition: form-data; name=\"" + _arg3) + "\"; filename=\"");
_local5 = 0;
while (_local5 < _local6.length) {
_local7.writeByte(_local6.charCodeAt(_local5));
_local5++;
};
_local7.writeUTFBytes(_arg1);
_local7 = QUOTATIONMARK(_local7);
_local7 = LINEBREAK(_local7);
_local6 = "Content-Type: application/octet-stream";
_local5 = 0;
while (_local5 < _local6.length) {
_local7.writeByte(_local6.charCodeAt(_local5));
_local5++;
};
_local7 = LINEBREAK(_local7);
_local7 = LINEBREAK(_local7);
_local7.writeBytes(_arg2, 0, _arg2.length);
_local7 = LINEBREAK(_local7);
_local7 = LINEBREAK(_local7);
_local7 = BOUNDARY(_local7);
_local7 = LINEBREAK(_local7);
_local6 = "Content-Disposition: form-data; name=\"Upload\"";
_local5 = 0;
while (_local5 < _local6.length) {
_local7.writeByte(_local6.charCodeAt(_local5));
_local5++;
};
_local7 = LINEBREAK(_local7);
_local7 = LINEBREAK(_local7);
_local6 = "Submit Query";
_local5 = 0;
while (_local5 < _local6.length) {
_local7.writeByte(_local6.charCodeAt(_local5));
_local5++;
};
_local7 = LINEBREAK(_local7);
_local7 = BOUNDARY(_local7);
_local7 = DOUBLEDASH(_local7);
return (_local7);
}
private static function QUOTATIONMARK(_arg1:ByteArray):ByteArray{
_arg1.writeByte(34);
return (_arg1);
}
private static function BOUNDARY(_arg1:ByteArray):ByteArray{
var _local2:int = UploadPostHelper.getBoundary().length;
_arg1 = DOUBLEDASH(_arg1);
var _local3:int;
while (_local3 < _local2) {
_arg1.writeByte(_boundary.charCodeAt(_local3));
_local3++;
};
return (_arg1);
}
private static function LINEBREAK(_arg1:ByteArray):ByteArray{
_arg1.writeShort(3338);
return (_arg1);
}
}
}//package be.nascom.flash.net.upload
Section 4
//BitString (com.adobe.images.BitString)
package com.adobe.images {
public class BitString {
public var val:int;// = 0
public var len:int;// = 0
}
}//package com.adobe.images
Section 5
//JPGEncoder (com.adobe.images.JPGEncoder)
package com.adobe.images {
import flash.geom.*;
import flash.display.*;
import flash.utils.*;
public class JPGEncoder {
private var fdtbl_UV:Array;
private var std_ac_chrominance_values:Array;
private var std_dc_chrominance_values:Array;
private var ZigZag:Array;
private var YDC_HT:Array;
private var YAC_HT:Array;
private var bytenew:int;// = 0
private var fdtbl_Y:Array;
private var std_ac_chrominance_nrcodes:Array;
private var DU:Array;
private var std_ac_luminance_values:Array;
private var std_dc_chrominance_nrcodes:Array;
private var UVTable:Array;
private var YDU:Array;
private var UDU:Array;
private var byteout:ByteArray;
private var UVAC_HT:Array;
private var UVDC_HT:Array;
private var bytepos:int;// = 7
private var VDU:Array;
private var std_ac_luminance_nrcodes:Array;
private var std_dc_luminance_values:Array;
private var YTable:Array;
private var std_dc_luminance_nrcodes:Array;
private var bitcode:Array;
private var category:Array;
public function JPGEncoder(_arg1:Number=50){
ZigZag = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63];
YTable = new Array(64);
UVTable = new Array(64);
fdtbl_Y = new Array(64);
fdtbl_UV = new Array(64);
std_dc_luminance_nrcodes = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0];
std_dc_luminance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
std_ac_luminance_nrcodes = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125];
std_ac_luminance_values = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250];
std_dc_chrominance_nrcodes = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0];
std_dc_chrominance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
std_ac_chrominance_nrcodes = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119];
std_ac_chrominance_values = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
bitcode = new Array(0xFFFF);
category = new Array(0xFFFF);
DU = new Array(64);
YDU = new Array(64);
UDU = new Array(64);
VDU = new Array(64);
super();
if (_arg1 <= 0){
_arg1 = 1;
};
if (_arg1 > 100){
_arg1 = 100;
};
var _local2:int;
if (_arg1 < 50){
_local2 = int((5000 / _arg1));
} else {
_local2 = int((200 - (_arg1 * 2)));
};
initHuffmanTbl();
initCategoryNumber();
initQuantTables(_local2);
}
private function initHuffmanTbl():void{
YDC_HT = computeHuffmanTbl(std_dc_luminance_nrcodes, std_dc_luminance_values);
UVDC_HT = computeHuffmanTbl(std_dc_chrominance_nrcodes, std_dc_chrominance_values);
YAC_HT = computeHuffmanTbl(std_ac_luminance_nrcodes, std_ac_luminance_values);
UVAC_HT = computeHuffmanTbl(std_ac_chrominance_nrcodes, std_ac_chrominance_values);
}
private function RGB2YUV(_arg1:BitmapData, _arg2:int, _arg3:int):void{
var _local6:int;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local4:int;
var _local5:int;
while (_local5 < 8) {
_local6 = 0;
while (_local6 < 8) {
_local7 = _arg1.getPixel32((_arg2 + _local6), (_arg3 + _local5));
_local8 = Number(((_local7 >> 16) & 0xFF));
_local9 = Number(((_local7 >> 8) & 0xFF));
_local10 = Number((_local7 & 0xFF));
YDU[_local4] = ((((0.299 * _local8) + (0.587 * _local9)) + (0.114 * _local10)) - 128);
UDU[_local4] = (((-0.16874 * _local8) + (-0.33126 * _local9)) + (0.5 * _local10));
VDU[_local4] = (((0.5 * _local8) + (-0.41869 * _local9)) + (-0.08131 * _local10));
_local4++;
_local6++;
};
_local5++;
};
}
private function writeBits(_arg1:BitString):void{
var _local2:int = _arg1.val;
var _local3:int = (_arg1.len - 1);
while (_local3 >= 0) {
if ((_local2 & uint((1 << _local3)))){
bytenew = (bytenew | uint((1 << bytepos)));
};
_local3--;
bytepos--;
if (bytepos < 0){
if (bytenew == 0xFF){
writeByte(0xFF);
writeByte(0);
} else {
writeByte(bytenew);
};
bytepos = 7;
bytenew = 0;
};
};
}
private function writeWord(_arg1:int):void{
writeByte(((_arg1 >> 8) & 0xFF));
writeByte((_arg1 & 0xFF));
}
private function writeByte(_arg1:int):void{
byteout.writeByte(_arg1);
}
private function writeDHT():void{
var _local1:int;
writeWord(65476);
writeWord(418);
writeByte(0);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_dc_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
writeByte(std_dc_luminance_values[_local1]);
_local1++;
};
writeByte(16);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_ac_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
writeByte(std_ac_luminance_values[_local1]);
_local1++;
};
writeByte(1);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_dc_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
writeByte(std_dc_chrominance_values[_local1]);
_local1++;
};
writeByte(17);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_ac_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
writeByte(std_ac_chrominance_values[_local1]);
_local1++;
};
}
public function encode(_arg1:BitmapData):ByteArray{
var _local6:int;
var _local7:BitString;
byteout = new ByteArray();
bytenew = 0;
bytepos = 7;
writeWord(65496);
writeAPP0();
writeDQT();
writeSOF0(_arg1.width, _arg1.height);
writeDHT();
writeSOS();
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
bytenew = 0;
bytepos = 7;
var _local5:int;
while (_local5 < _arg1.height) {
_local6 = 0;
while (_local6 < _arg1.width) {
RGB2YUV(_arg1, _local6, _local5);
_local2 = processDU(YDU, fdtbl_Y, _local2, YDC_HT, YAC_HT);
_local3 = processDU(UDU, fdtbl_UV, _local3, UVDC_HT, UVAC_HT);
_local4 = processDU(VDU, fdtbl_UV, _local4, UVDC_HT, UVAC_HT);
_local6 = (_local6 + 8);
};
_local5 = (_local5 + 8);
};
if (bytepos >= 0){
_local7 = new BitString();
_local7.len = (bytepos + 1);
_local7.val = ((1 << (bytepos + 1)) - 1);
writeBits(_local7);
};
writeWord(65497);
return (byteout);
}
private function initCategoryNumber():void{
var _local3:int;
var _local1 = 1;
var _local2 = 2;
var _local4 = 1;
while (_local4 <= 15) {
_local3 = _local1;
while (_local3 < _local2) {
category[(32767 + _local3)] = _local4;
bitcode[(32767 + _local3)] = new BitString();
bitcode[(32767 + _local3)].len = _local4;
bitcode[(32767 + _local3)].val = _local3;
_local3++;
};
_local3 = -((_local2 - 1));
while (_local3 <= -(_local1)) {
category[(32767 + _local3)] = _local4;
bitcode[(32767 + _local3)] = new BitString();
bitcode[(32767 + _local3)].len = _local4;
bitcode[(32767 + _local3)].val = ((_local2 - 1) + _local3);
_local3++;
};
_local1 = (_local1 << 1);
_local2 = (_local2 << 1);
_local4++;
};
}
private function writeDQT():void{
var _local1:int;
writeWord(65499);
writeWord(132);
writeByte(0);
_local1 = 0;
while (_local1 < 64) {
writeByte(YTable[_local1]);
_local1++;
};
writeByte(1);
_local1 = 0;
while (_local1 < 64) {
writeByte(UVTable[_local1]);
_local1++;
};
}
private function writeAPP0():void{
writeWord(65504);
writeWord(16);
writeByte(74);
writeByte(70);
writeByte(73);
writeByte(70);
writeByte(0);
writeByte(1);
writeByte(1);
writeByte(0);
writeWord(1);
writeWord(1);
writeByte(0);
writeByte(0);
}
private function writeSOS():void{
writeWord(65498);
writeWord(12);
writeByte(3);
writeByte(1);
writeByte(0);
writeByte(2);
writeByte(17);
writeByte(3);
writeByte(17);
writeByte(0);
writeByte(63);
writeByte(0);
}
private function processDU(_arg1:Array, _arg2:Array, _arg3:Number, _arg4:Array, _arg5:Array):Number{
var _local8:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local6:BitString = _arg5[0];
var _local7:BitString = _arg5[240];
var _local9:Array = fDCTQuant(_arg1, _arg2);
_local8 = 0;
while (_local8 < 64) {
DU[ZigZag[_local8]] = _local9[_local8];
_local8++;
};
var _local10:int = (DU[0] - _arg3);
_arg3 = DU[0];
if (_local10 == 0){
writeBits(_arg4[0]);
} else {
writeBits(_arg4[category[(32767 + _local10)]]);
writeBits(bitcode[(32767 + _local10)]);
};
var _local11 = 63;
while ((((_local11 > 0)) && ((DU[_local11] == 0)))) {
_local11--;
};
if (_local11 == 0){
writeBits(_local6);
return (_arg3);
};
_local8 = 1;
while (_local8 <= _local11) {
_local12 = _local8;
while ((((DU[_local8] == 0)) && ((_local8 <= _local11)))) {
_local8++;
};
_local13 = (_local8 - _local12);
if (_local13 >= 16){
_local14 = 1;
while (_local14 <= (_local13 / 16)) {
writeBits(_local7);
_local14++;
};
_local13 = int((_local13 & 15));
};
writeBits(_arg5[((_local13 * 16) + category[(32767 + DU[_local8])])]);
writeBits(bitcode[(32767 + DU[_local8])]);
_local8++;
};
if (_local11 != 63){
writeBits(_local6);
};
return (_arg3);
}
private function initQuantTables(_arg1:int):void{
var _local2:int;
var _local3:Number;
var _local8:int;
var _local4:Array = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99];
_local2 = 0;
while (_local2 < 64) {
_local3 = Math.floor((((_local4[_local2] * _arg1) + 50) / 100));
if (_local3 < 1){
_local3 = 1;
} else {
if (_local3 > 0xFF){
_local3 = 0xFF;
};
};
YTable[ZigZag[_local2]] = _local3;
_local2++;
};
var _local5:Array = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99];
_local2 = 0;
while (_local2 < 64) {
_local3 = Math.floor((((_local5[_local2] * _arg1) + 50) / 100));
if (_local3 < 1){
_local3 = 1;
} else {
if (_local3 > 0xFF){
_local3 = 0xFF;
};
};
UVTable[ZigZag[_local2]] = _local3;
_local2++;
};
var _local6:Array = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379];
_local2 = 0;
var _local7:int;
while (_local7 < 8) {
_local8 = 0;
while (_local8 < 8) {
fdtbl_Y[_local2] = (1 / (((YTable[ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
fdtbl_UV[_local2] = (1 / (((UVTable[ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
_local2++;
_local8++;
};
_local7++;
};
}
private function writeSOF0(_arg1:int, _arg2:int):void{
writeWord(65472);
writeWord(17);
writeByte(8);
writeWord(_arg2);
writeWord(_arg1);
writeByte(3);
writeByte(1);
writeByte(17);
writeByte(0);
writeByte(2);
writeByte(17);
writeByte(1);
writeByte(3);
writeByte(17);
writeByte(1);
}
private function computeHuffmanTbl(_arg1:Array, _arg2:Array):Array{
var _local7:int;
var _local3:int;
var _local4:int;
var _local5:Array = new Array();
var _local6 = 1;
while (_local6 <= 16) {
_local7 = 1;
while (_local7 <= _arg1[_local6]) {
_local5[_arg2[_local4]] = new BitString();
_local5[_arg2[_local4]].val = _local3;
_local5[_arg2[_local4]].len = _local6;
_local4++;
_local3++;
_local7++;
};
_local3 = (_local3 * 2);
_local6++;
};
return (_local5);
}
private function fDCTQuant(_arg1:Array, _arg2:Array):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:int;
var _local23:int;
_local22 = 0;
while (_local22 < 8) {
_local3 = (_arg1[(_local23 + 0)] + _arg1[(_local23 + 7)]);
_local10 = (_arg1[(_local23 + 0)] - _arg1[(_local23 + 7)]);
_local4 = (_arg1[(_local23 + 1)] + _arg1[(_local23 + 6)]);
_local9 = (_arg1[(_local23 + 1)] - _arg1[(_local23 + 6)]);
_local5 = (_arg1[(_local23 + 2)] + _arg1[(_local23 + 5)]);
_local8 = (_arg1[(_local23 + 2)] - _arg1[(_local23 + 5)]);
_local6 = (_arg1[(_local23 + 3)] + _arg1[(_local23 + 4)]);
_local7 = (_arg1[(_local23 + 3)] - _arg1[(_local23 + 4)]);
_local11 = (_local3 + _local6);
_local14 = (_local3 - _local6);
_local12 = (_local4 + _local5);
_local13 = (_local4 - _local5);
_arg1[(_local23 + 0)] = (_local11 + _local12);
_arg1[(_local23 + 4)] = (_local11 - _local12);
_local15 = ((_local13 + _local14) * 0.707106781);
_arg1[(_local23 + 2)] = (_local14 + _local15);
_arg1[(_local23 + 6)] = (_local14 - _local15);
_local11 = (_local7 + _local8);
_local12 = (_local8 + _local9);
_local13 = (_local9 + _local10);
_local19 = ((_local11 - _local13) * 0.382683433);
_local16 = ((0.5411961 * _local11) + _local19);
_local18 = ((1.306562965 * _local13) + _local19);
_local17 = (_local12 * 0.707106781);
_local20 = (_local10 + _local17);
_local21 = (_local10 - _local17);
_arg1[(_local23 + 5)] = (_local21 + _local16);
_arg1[(_local23 + 3)] = (_local21 - _local16);
_arg1[(_local23 + 1)] = (_local20 + _local18);
_arg1[(_local23 + 7)] = (_local20 - _local18);
_local23 = (_local23 + 8);
_local22++;
};
_local23 = 0;
_local22 = 0;
while (_local22 < 8) {
_local3 = (_arg1[(_local23 + 0)] + _arg1[(_local23 + 56)]);
_local10 = (_arg1[(_local23 + 0)] - _arg1[(_local23 + 56)]);
_local4 = (_arg1[(_local23 + 8)] + _arg1[(_local23 + 48)]);
_local9 = (_arg1[(_local23 + 8)] - _arg1[(_local23 + 48)]);
_local5 = (_arg1[(_local23 + 16)] + _arg1[(_local23 + 40)]);
_local8 = (_arg1[(_local23 + 16)] - _arg1[(_local23 + 40)]);
_local6 = (_arg1[(_local23 + 24)] + _arg1[(_local23 + 32)]);
_local7 = (_arg1[(_local23 + 24)] - _arg1[(_local23 + 32)]);
_local11 = (_local3 + _local6);
_local14 = (_local3 - _local6);
_local12 = (_local4 + _local5);
_local13 = (_local4 - _local5);
_arg1[(_local23 + 0)] = (_local11 + _local12);
_arg1[(_local23 + 32)] = (_local11 - _local12);
_local15 = ((_local13 + _local14) * 0.707106781);
_arg1[(_local23 + 16)] = (_local14 + _local15);
_arg1[(_local23 + 48)] = (_local14 - _local15);
_local11 = (_local7 + _local8);
_local12 = (_local8 + _local9);
_local13 = (_local9 + _local10);
_local19 = ((_local11 - _local13) * 0.382683433);
_local16 = ((0.5411961 * _local11) + _local19);
_local18 = ((1.306562965 * _local13) + _local19);
_local17 = (_local12 * 0.707106781);
_local20 = (_local10 + _local17);
_local21 = (_local10 - _local17);
_arg1[(_local23 + 40)] = (_local21 + _local16);
_arg1[(_local23 + 24)] = (_local21 - _local16);
_arg1[(_local23 + 8)] = (_local20 + _local18);
_arg1[(_local23 + 56)] = (_local20 - _local18);
_local23++;
_local22++;
};
_local22 = 0;
while (_local22 < 64) {
_arg1[_local22] = Math.round((_arg1[_local22] * _arg2[_local22]));
_local22++;
};
return (_arg1);
}
}
}//package com.adobe.images
Section 6
//GATrackerLibrary (com.google.analytics.components.GATrackerLibrary)
package com.google.analytics.components {
import com.google.analytics.utils.*;
import flash.display.*;
import com.google.analytics.*;
public class GATrackerLibrary extends MovieClip {
public static var version:Version = API.version;
}
}//package com.google.analytics.components
Section 7
//Version (com.google.analytics.utils.Version)
package com.google.analytics.utils {
public class Version {
private var _revision:uint;
private var _maxBuild:uint;// = 0xFF
private var _maxMinor:uint;// = 15
private var _maxMajor:uint;// = 15
private var _separator:String;// = "."
private var _maxRevision:uint;// = 0xFFFF
private var _build:uint;
private var _major:uint;
private var _minor:uint;
public function Version(_arg1:uint=0, _arg2:uint=0, _arg3:uint=0, _arg4:uint=0){
var _local5:Version;
super();
if ((((((((_arg1 > _maxMajor)) && ((_arg2 == 0)))) && ((_arg3 == 0)))) && ((_arg4 == 0)))){
_local5 = Version.fromNumber(_arg1);
_arg1 = _local5.major;
_arg2 = _local5.minor;
_arg3 = _local5.build;
_arg4 = _local5.revision;
};
this.major = _arg1;
this.minor = _arg2;
this.build = _arg3;
this.revision = _arg4;
}
public function toString(_arg1:int=0):String{
var _local2:Array;
if ((((_arg1 <= 0)) || ((_arg1 > 4)))){
_arg1 = getFields();
};
switch (_arg1){
case 1:
_local2 = [major];
break;
case 2:
_local2 = [major, minor];
break;
case 3:
_local2 = [major, minor, build];
break;
case 4:
default:
_local2 = [major, minor, build, revision];
};
return (_local2.join(_separator));
}
public function set revision(_arg1:uint):void{
_revision = Math.min(_arg1, _maxRevision);
}
public function get revision():uint{
return (_revision);
}
public function set build(_arg1:uint):void{
_build = Math.min(_arg1, _maxBuild);
}
public function set minor(_arg1:uint):void{
_minor = Math.min(_arg1, _maxMinor);
}
public function get build():uint{
return (_build);
}
public function set major(_arg1:uint):void{
_major = Math.min(_arg1, _maxMajor);
}
public function get minor():uint{
return (_minor);
}
private function getFields():int{
var _local1 = 4;
if (revision == 0){
_local1--;
};
if ((((_local1 == 3)) && ((build == 0)))){
_local1--;
};
if ((((_local1 == 2)) && ((minor == 0)))){
_local1--;
};
return (_local1);
}
public function valueOf():uint{
return (((((major << 28) | (minor << 24)) | (build << 16)) | revision));
}
public function get major():uint{
return (_major);
}
public function equals(_arg1):Boolean{
if (!(_arg1 is Version)){
return (false);
};
if ((((((((_arg1.major == major)) && ((_arg1.minor == minor)))) && ((_arg1.build == build)))) && ((_arg1.revision == revision)))){
return (true);
};
return (false);
}
public static function fromString(_arg1:String="", _arg2:String="."):Version{
var _local4:Array;
var _local3:Version = new (Version);
if ((((_arg1 == "")) || ((_arg1 == null)))){
return (_local3);
};
if (_arg1.indexOf(_arg2) > -1){
_local4 = _arg1.split(_arg2);
_local3.major = parseInt(_local4[0]);
_local3.minor = parseInt(_local4[1]);
_local3.build = parseInt(_local4[2]);
_local3.revision = parseInt(_local4[3]);
} else {
_local3.major = parseInt(_arg1);
};
return (_local3);
}
public static function fromNumber(_arg1:Number=0):Version{
var _local2:Version = new (Version);
if (((((((((((isNaN(_arg1)) || ((_arg1 == 0)))) || ((_arg1 < 0)))) || ((_arg1 == Number.MAX_VALUE)))) || ((_arg1 == Number.POSITIVE_INFINITY)))) || ((_arg1 == Number.NEGATIVE_INFINITY)))){
return (_local2);
};
_local2.major = (_arg1 >>> 28);
_local2.minor = ((_arg1 & 251658240) >>> 24);
_local2.build = ((_arg1 & 0xFF0000) >>> 16);
_local2.revision = (_arg1 & 0xFFFF);
return (_local2);
}
}
}//package com.google.analytics.utils
Section 8
//API (com.google.analytics.API)
package com.google.analytics {
import com.google.analytics.utils.*;
public class API {
public static var version:Version = new Version();
version.major = 1;
version.minor = 0;
version.build = 1;
version.revision = "$Rev: 319 $ ".split(" ")[1];
}
}//package com.google.analytics
Section 9
//DisplayObjectPath (com.HazmiWeb.Paths.DisplayObjectPath)
package com.HazmiWeb.Paths {
import flash.display.*;
public class DisplayObjectPath {
public var target:DisplayObject;
private var _addPos:int;
public var posList:Array;
public function DisplayObjectPath(){
posList = new Array();
_addPos = 0;
}
public function setPos(_arg1:DisplayObject=null, _arg2:int=0, _arg3:Boolean=false):Boolean{
if (_arg1 == null){
_arg1 = target;
};
if (_arg3){
_arg2 = (_arg2 % _addPos);
};
var _local4:DisplayObjectPathPosition = posList[_arg2];
if (_local4 != null){
_arg1.x = _local4.x;
_arg1.y = _local4.y;
_arg1.alpha = _local4.alpha;
_arg1.rotation = _local4.rotation;
};
return ((_arg2 >= _addPos));
}
public function get positionsCount():int{
return (_addPos);
}
public function setRelativePos(_arg1:Number, _arg2:Number, _arg3:DisplayObject=null, _arg4:int=0, _arg5:Boolean=false):void{
var _local6:DisplayObjectPathPosition;
if (_arg3 == null){
_arg3 = target;
};
if (_arg5){
_arg4 = (_arg4 % _addPos);
};
_local6 = posList[_arg4];
if (_local6 != null){
_arg3.x = (_local6.x + _arg1);
_arg3.y = (_local6.y + _arg2);
_arg3.alpha = _local6.alpha;
_arg3.rotation = _local6.rotation;
};
}
public function addWait(_arg1:int=1):void{
_addPos = (_addPos + _arg1);
}
public function addPos(_arg1:DisplayObjectPathPosition):void{
posList[_addPos] = new DisplayObjectPathPosition(_arg1.x, _arg1.y, _arg1.alpha, _arg1.rotation);
_addPos++;
}
}
}//package com.HazmiWeb.Paths
Section 10
//DisplayObjectPathGenerator (com.HazmiWeb.Paths.DisplayObjectPathGenerator)
package com.HazmiWeb.Paths {
import flash.display.*;
import com.HazmiWeb.*;
public class DisplayObjectPathGenerator extends Ease {
public var startRotation:Number;// = 0
public var rotationFacingUp:Number;// = 0
public var endAlpha:Number;// = 1
public var startX:Number;// = 0
private var _modelObject:DisplayObject;
public var easeDirectionRotation:int;// = 1
public var startAlpha:Number;// = 1
public var endX:Number;// = 0
public var endY:Number;// = 0
public var easeDirectionPos:int;// = 1
public var easeTypeRotation:int;// = 1
public var easeDirectionAlpha:int;// = 1
public var easeTypePos:int;// = 1
public var ticks:int;
public var startY:Number;// = 0
public var endRotation:Number;// = 0
public var easeTypeAlpha:int;// = 1
public function generatePathTo(_arg1:DisplayObjectPath):void{
var _local3:DisplayObjectPathPosition;
var _local2:int;
while (_local2 <= ticks) {
_local3 = new DisplayObjectPathPosition();
_local3.x = ease(_local2, startX, endX, ticks, easeTypePos, easeDirectionPos);
_local3.y = ease(_local2, startY, endY, ticks, easeTypePos, easeDirectionPos);
_local3.alpha = ease(_local2, startAlpha, endAlpha, ticks, easeTypeAlpha, easeDirectionAlpha);
_local3.rotation = ease(_local2, startRotation, endRotation, ticks, easeTypeRotation, easeDirectionRotation);
_arg1.addPos(_local3);
_local2++;
};
}
public function getPath():DisplayObjectPath{
var _local1:DisplayObjectPath = new DisplayObjectPath();
generatePathTo(_local1);
return (_local1);
}
}
}//package com.HazmiWeb.Paths
Section 11
//DisplayObjectPathPosition (com.HazmiWeb.Paths.DisplayObjectPathPosition)
package com.HazmiWeb.Paths {
public class DisplayObjectPathPosition {
public var rotation:Number;
public var x:Number;
public var y:Number;
public var alpha:Number;
public function DisplayObjectPathPosition(_arg1:Number=0, _arg2:Number=0, _arg3:Number=1, _arg4:Number=0){
x = _arg1;
y = _arg2;
alpha = _arg3;
rotation = _arg4;
}
}
}//package com.HazmiWeb.Paths
Section 12
//GUID (com.HazmiWeb.Utils.GUID)
package com.HazmiWeb.Utils {
import flash.display.*;
import flash.system.*;
public class GUID extends Sprite {
private static var counter:Number = 0;
private static function sha1_kt(_arg1:Number):Number{
return (((_arg1)<20) ? 1518500249 : ((_arg1)<40) ? 1859775393 : ((_arg1)<60) ? -1894007588 : -899497514);
}
private static function binb2hex(_arg1:Array):String{
var _local2:String = new String("");
var _local3:String = new String("0123456789abcdef");
var _local4:Number = 0;
while (_local4 < (_arg1.length * 4)) {
_local2 = (_local2 + (_local3.charAt(((_arg1[(_local4 >> 2)] >> (((3 - (_local4 % 4)) * 8) + 4)) & 15)) + _local3.charAt(((_arg1[(_local4 >> 2)] >> ((3 - (_local4 % 4)) * 8)) & 15))));
_local4++;
};
return (_local2);
}
private static function core_sha1(_arg1:Array, _arg2:Number):Array{
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (24 - (_arg2 % 32))));
_arg1[((((_arg2 + 64) >> 9) << 4) + 15)] = _arg2;
var _local3:Array = new Array(80);
var _local4:Number = 1732584193;
var _local5:Number = -271733879;
var _local6:Number = -1732584194;
var _local7:Number = 271733878;
var _local8:Number = -1009589776;
var _local9:Number = 0;
while (_local9 < _arg1.length) {
_local10 = _local4;
_local11 = _local5;
_local12 = _local6;
_local13 = _local7;
_local14 = _local8;
_local15 = 0;
while (_local15 < 80) {
if (_local15 < 16){
_local3[_local15] = _arg1[(_local9 + _local15)];
} else {
_local3[_local15] = rol((((_local3[(_local15 - 3)] ^ _local3[(_local15 - 8)]) ^ _local3[(_local15 - 14)]) ^ _local3[(_local15 - 16)]), 1);
};
_local16 = safe_add(safe_add(rol(_local4, 5), sha1_ft(_local15, _local5, _local6, _local7)), safe_add(safe_add(_local8, _local3[_local15]), sha1_kt(_local15)));
_local8 = _local7;
_local7 = _local6;
_local6 = rol(_local5, 30);
_local5 = _local4;
_local4 = _local16;
_local15++;
};
_local4 = safe_add(_local4, _local10);
_local5 = safe_add(_local5, _local11);
_local6 = safe_add(_local6, _local12);
_local7 = safe_add(_local7, _local13);
_local8 = safe_add(_local8, _local14);
_local9 = (_local9 + 16);
};
return (new Array(_local4, _local5, _local6, _local7, _local8));
}
private static function calculate(_arg1:String):String{
return (hex_sha1(_arg1));
}
private static function sha1_ft(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < 20){
return (((_arg2 & _arg3) | (~(_arg2) & _arg4)));
};
if (_arg1 < 40){
return (((_arg2 ^ _arg3) ^ _arg4));
};
if (_arg1 < 60){
return ((((_arg2 & _arg3) | (_arg2 & _arg4)) | (_arg3 & _arg4)));
};
return (((_arg2 ^ _arg3) ^ _arg4));
}
private static function hex_sha1(_arg1:String):String{
return (binb2hex(core_sha1(str2binb(_arg1), (_arg1.length * 8))));
}
private static function str2binb(_arg1:String):Array{
var _local2:Array = new Array();
var _local3:Number = ((1 << 8) - 1);
var _local4:Number = 0;
while (_local4 < (_arg1.length * 8)) {
_local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / 8)) & _local3) << (24 - (_local4 % 32))));
_local4 = (_local4 + 8);
};
return (_local2);
}
private static function rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
public static function create():String{
var _local1:Date = new Date();
var _local2:Number = _local1.getTime();
var _local3:Number = (Math.random() * Number.MAX_VALUE);
var _local4:String = Capabilities.serverString;
var _local5:String = calculate((((_local2 + _local4) + _local3) + counter++)).toUpperCase();
var _local6:String = ((((((((_local5.substring(0, 8) + "-") + _local5.substring(8, 12)) + "-") + _local5.substring(12, 16)) + "-") + _local5.substring(16, 20)) + "-") + _local5.substring(20, 32));
return (_local6);
}
private static function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
var _local4:Number = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
}
}//package com.HazmiWeb.Utils
Section 13
//Ease (com.HazmiWeb.Ease)
package com.HazmiWeb {
public class Ease {
public static const EaseCircular:int = 8;
public static const EaseIn:int = 1;
public static const EaseBack:int = 10;
public static const EaseExponential:int = 7;
public static const EaseCubic:int = 3;
public static const EaseOut:int = 3;
public static const EaseElastic:int = 9;
public static const EaseQuadratic:int = 2;
public static const EaseQuartic:int = 4;
public static const EaseSinusoidal:int = 6;
public static const EaseLinear:int = 1;
public static const EaseBounce:int = 11;
public static const EaseQuintic:int = 5;
public static const EaseInOut:int = 2;
public static function ease(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int=1, _arg6:int=1, _arg7:Number=0, _arg8:Number=0, _arg9:Number=1.70158):Number{
var _local10:Number;
switch (_arg5){
case EaseLinear:
return (((((_arg3 - _arg2) * _arg1) / _arg4) + _arg2));
case EaseQuadratic:
switch (_arg6){
case EaseIn:
_arg1 = (_arg1 / _arg4);
return (((((_arg3 - _arg2) * _arg1) * _arg1) + _arg2));
case EaseOut:
_arg1 = (_arg1 / _arg4);
return ((((-((_arg3 - _arg2)) * _arg1) * (_arg1 - 2)) + _arg2));
case EaseInOut:
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 - _arg2) / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-((_arg3 - _arg2)) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
};
break;
case EaseCubic:
switch (_arg6){
case EaseIn:
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 - _arg2) * _arg1) * _arg1) * _arg1) + _arg2));
case EaseOut:
_arg1 = ((_arg1 / _arg4) - 1);
return ((((_arg3 - _arg2) * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
case EaseInOut:
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 - _arg2) / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return (((((_arg3 - _arg2) / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
};
break;
case EaseQuartic:
switch (_arg6){
case EaseIn:
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 - _arg2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
case EaseOut:
_arg1 = ((_arg1 / _arg4) - 1);
return (((-((_arg3 - _arg2)) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
case EaseInOut:
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 - _arg2) / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-((_arg3 - _arg2)) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
};
break;
case EaseQuintic:
switch (_arg6){
case EaseIn:
_arg1 = (_arg1 / _arg4);
return ((((((((_arg3 - _arg2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
case EaseOut:
_arg1 = ((_arg1 / _arg4) - 1);
return ((((_arg3 - _arg2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
case EaseInOut:
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((((_arg3 - _arg2) / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return (((((_arg3 - _arg2) / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
};
break;
case EaseSinusoidal:
switch (_arg6){
case EaseIn:
return ((((-((_arg3 - _arg2)) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + (_arg3 - _arg2)) + _arg2));
case EaseOut:
return ((((_arg3 - _arg2) * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
case EaseInOut:
return ((((-((_arg3 - _arg2)) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
};
break;
case EaseExponential:
switch (_arg6){
case EaseIn:
if (_arg1 == 0){
return (_arg2);
};
return ((((_arg3 - _arg2) * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2));
case EaseOut:
if (_arg1 == _arg4){
return (_arg3);
};
return ((((_arg3 - _arg2) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
case EaseInOut:
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return (_arg3);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 - _arg2) / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2));
};
--_arg1;
return (((((_arg3 - _arg2) / 2) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
};
break;
case EaseCircular:
switch (_arg6){
case EaseIn:
_arg1 = (_arg1 / _arg4);
return (((-((_arg3 - _arg2)) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
case EaseOut:
_arg1 = ((_arg1 / _arg4) - 1);
return ((((_arg3 - _arg2) * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
case EaseInOut:
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-((_arg3 - _arg2)) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return (((((_arg3 - _arg2) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
};
break;
case EaseElastic:
switch (_arg6){
case EaseIn:
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + (_arg3 - _arg2)));
};
if (!_arg8){
_arg8 = (_arg4 * 0.3);
};
if (((!(_arg7)) || ((_arg7 < Math.abs((_arg3 - _arg2)))))){
_arg7 = (_arg3 - _arg2);
_local10 = (_arg8 / 4);
} else {
_local10 = ((_arg8 / (2 * Math.PI)) * Math.asin(((_arg3 - _arg2) / _arg7)));
};
--_arg1;
return ((-(((_arg7 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local10) * (2 * Math.PI)) / _arg8)))) + _arg2));
case EaseOut:
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + (_arg3 - _arg2)));
};
if (!_arg8){
_arg8 = (_arg4 * 0.3);
};
if (((!(_arg7)) || ((_arg7 < Math.abs((_arg3 - _arg2)))))){
_arg7 = (_arg3 - _arg2);
_local10 = (_arg8 / 4);
} else {
_local10 = ((_arg8 / (2 * Math.PI)) * Math.asin(((_arg3 - _arg2) / _arg7)));
};
return (((((_arg7 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local10) * (2 * Math.PI)) / _arg8))) + (_arg3 - _arg2)) + _arg2));
case EaseInOut:
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + (_arg3 - _arg2)));
};
if (!_arg8){
_arg8 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg7)) || ((_arg7 < Math.abs((_arg3 - _arg2)))))){
_arg7 = (_arg3 - _arg2);
_local10 = (_arg8 / 4);
} else {
_local10 = ((_arg8 / (2 * Math.PI)) * Math.asin(((_arg3 - _arg2) / _arg7)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg7 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local10) * (2 * Math.PI)) / _arg8)))) + _arg2));
};
--_arg1;
return ((((((_arg7 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local10) * (2 * Math.PI)) / _arg8))) * 0.5) + (_arg3 - _arg2)) + _arg2));
};
break;
case EaseBack:
switch (_arg6){
case EaseIn:
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 - _arg2) * _arg1) * _arg1) * (((_arg9 + 1) * _arg1) - _arg9)) + _arg2));
case EaseOut:
_arg1 = ((_arg1 / _arg4) - 1);
return ((((_arg3 - _arg2) * (((_arg1 * _arg1) * (((_arg9 + 1) * _arg1) + _arg9)) + 1)) + _arg2));
case EaseInOut:
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg9 = (_arg9 * 1.525);
return (((((_arg3 - _arg2) / 2) * ((_arg1 * _arg1) * (((_arg9 + 1) * _arg1) - _arg9))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg9 = (_arg9 * 1.525);
return (((((_arg3 - _arg2) / 2) * (((_arg1 * _arg1) * (((_arg9 + 1) * _arg1) + _arg9)) + 2)) + _arg2));
};
break;
case EaseBounce:
switch (_arg6){
case EaseIn:
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return ((((_arg3 - _arg2) * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return ((((_arg3 - _arg2) * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return ((((_arg3 - _arg2) * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return ((((_arg3 - _arg2) * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
case EaseOut:
return ((((_arg3 - _arg2) - ease((_arg4 - _arg1), 0, (_arg3 - _arg2), _arg4, EaseOut, EaseBounce)) + _arg2));
case EaseInOut:
if (_arg1 < (_arg4 / 2)){
return (((ease((_arg1 * 2), 0, (_arg3 - _arg2), _arg4, EaseIn, EaseBounce) * 0.5) + _arg2));
};
return ((((ease(((_arg1 * 2) - _arg4), 0, (_arg3 - _arg2), _arg4, EaseOut, EaseBounce) * 0.5) + ((_arg3 - _arg2) * 0.5)) + _arg2));
};
break;
};
return (0);
}
}
}//package com.HazmiWeb
Section 14
//GameEvent (com.ubi.events.GameEvent)
package com.ubi.events {
import flash.events.*;
public class GameEvent extends Event {
public var param:String;
public static const GAME_PROGRESS:String = "getHIgheScores";
public static const GET_HIGH_SCORES:String = "getHIgheScores";
public static const SUBMIT_SCORE:String = "submitScore";
public function GameEvent(_arg1:String, _arg2:String=""){
super(_arg1, bubbles, cancelable);
this.param = _arg2;
}
override public function clone():Event{
return (new GameEvent(type, param));
}
override public function toString():String{
return (formatToString("GameEvent", "param"));
}
}
}//package com.ubi.events
Section 15
//GameBase (com.ubi.game.GameBase)
package com.ubi.game {
import flash.display.*;
import com.ubi.events.*;
public class GameBase extends MovieClip {
public var _insideUbiland:Boolean;// = false
public function validateUbiland():void{
_insideUbiland = true;
}
public function destroy():void{
}
public function pause():void{
}
public function submitScore(_arg1:Number):void{
dispatchEvent(new GameEvent(GameEvent.SUBMIT_SCORE, String(_arg1)));
}
public function resume():void{
}
}
}//package com.ubi.game
Section 16
//BezierSegment (fl.motion.BezierSegment)
package fl.motion {
import flash.geom.*;
public class BezierSegment {
public var a:Point;
public var c:Point;
public var b:Point;
public var d:Point;
public function BezierSegment(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point){
this.a = _arg1;
this.b = _arg2;
this.c = _arg3;
this.d = _arg4;
}
public function getValue(_arg1:Number):Point{
var _local2:Number = this.a.x;
var _local3:Number = (((((_arg1 * _arg1) * (this.d.x - _local2)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.x - _local2)) + ((1 - _arg1) * (this.b.x - _local2))))) * _arg1) + _local2);
var _local4:Number = this.a.y;
var _local5:Number = (((((_arg1 * _arg1) * (this.d.y - _local4)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.y - _local4)) + ((1 - _arg1) * (this.b.y - _local4))))) * _arg1) + _local4);
return (new Point(_local3, _local5));
}
public function getYForX(_arg1:Number, _arg2:Array=null):Number{
var _local6:Number;
if (this.a.x < this.d.x){
if (_arg1 <= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 >= (this.d.x - 1E-16)){
return (this.d.y);
};
} else {
if (_arg1 >= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 <= (this.d.x - 1E-16)){
return (this.d.y);
};
};
if (!_arg2){
_arg2 = getCubicCoefficients(this.a.x, this.b.x, this.c.x, this.d.x);
};
var _local3:Array = getCubicRoots(_arg2[0], _arg2[1], _arg2[2], (_arg2[3] - _arg1));
var _local4:Number = NaN;
if (_local3.length == 0){
_local4 = 0;
} else {
if (_local3.length == 1){
_local4 = _local3[0];
} else {
for each (_local6 in _local3) {
if ((((0 <= _local6)) && ((_local6 <= 1)))){
_local4 = _local6;
break;
};
};
};
};
if (isNaN(_local4)){
return (NaN);
};
var _local5:Number = getSingleValue(_local4, this.a.y, this.b.y, this.c.y, this.d.y);
return (_local5);
}
public static function getCubicCoefficients(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Array{
return ([(((-(_arg1) + (3 * _arg2)) - (3 * _arg3)) + _arg4), (((3 * _arg1) - (6 * _arg2)) + (3 * _arg3)), ((-3 * _arg1) + (3 * _arg2)), _arg1]);
}
public static function getSingleValue(_arg1:Number, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):Number{
return ((((((_arg1 * _arg1) * (_arg5 - _arg2)) + ((3 * (1 - _arg1)) * ((_arg1 * (_arg4 - _arg2)) + ((1 - _arg1) * (_arg3 - _arg2))))) * _arg1) + _arg2));
}
public static function getCubicRoots(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0):Array{
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:int;
var _local16:Number;
if (!_arg1){
return (BezierSegment.getQuadraticRoots(_arg2, _arg3, _arg4));
};
if (_arg1 != 1){
_arg2 = (_arg2 / _arg1);
_arg3 = (_arg3 / _arg1);
_arg4 = (_arg4 / _arg1);
};
var _local5:Number = (((_arg2 * _arg2) - (3 * _arg3)) / 9);
var _local6:Number = (((((_arg2 * _arg2) - (3 * _arg3)) / 9) * _local5) * _local5);
var _local7:Number = ((((((2 * _arg2) * _arg2) * _arg2) - ((9 * _arg2) * _arg3)) + (27 * _arg4)) / 54);
var _local8:Number = (_local6 - (_local7 * _local7));
if (_local8 >= 0){
if (!_local5){
return ([0]);
};
_local9 = Math.acos((_local7 / Math.sqrt(_local6)));
_local10 = Math.sqrt(_local5);
_local11 = (((-2 * _local10) * Math.cos((_local9 / 3))) - (_arg2 / 3));
_local12 = (((-2 * _local10) * Math.cos(((_local9 + (2 * Math.PI)) / 3))) - (_arg2 / 3));
_local13 = (((-2 * _local10) * Math.cos(((_local9 + (4 * Math.PI)) / 3))) - (_arg2 / 3));
return ([_local11, _local12, _local13]);
//unresolved jump
};
_local14 = Math.pow((Math.sqrt(-(_local8)) + Math.abs(_local7)), (1 / 3));
_local15 = ((_local7)>0) ? 1 : ((_local7 < 0)) ? -1 : 0;
_local16 = ((-(_local15) * (_local14 + (_local5 / _local14))) - (_arg2 / 3));
return ([_local16]);
}
public static function getQuadraticRoots(_arg1:Number, _arg2:Number, _arg3:Number):Array{
var _local7:Number;
var _local4:Array = [];
if (!_arg1){
if (!_arg2){
return ([]);
};
_local4[0] = (-(_arg3) / _arg2);
return (_local4);
};
var _local5:Number = ((_arg2 * _arg2) - ((4 * _arg1) * _arg3));
var _local6:int = ((_local5)>0) ? 1 : ((_local5 < 0)) ? -1 : 0;
if (_local6 < 0){
return ([]);
};
if (!_local6){
_local4[0] = (-(_arg2) / (2 * _arg1));
} else {
_local4[0] = (_local4[1] = (-(_arg2) / (2 * _arg1)));
_local7 = (Math.sqrt(_local5) / (2 * _arg1));
_local4[0] = (_local4[0] - _local7);
_local4[1] = (_local4[1] + _local7);
};
return (_local4);
}
}
}//package fl.motion
Section 17
//Blush_18 (MakeOver_int_fla.Blush_18)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Blush_18 extends MovieClip {
public function Blush_18(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package MakeOver_int_fla
Section 18
//Blush_intro_127 (MakeOver_int_fla.Blush_intro_127)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Blush_intro_127 extends MovieClip {
public function Blush_intro_127(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 19
//Blush_text_146 (MakeOver_int_fla.Blush_text_146)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Blush_text_146 extends MovieClip {
public function Blush_text_146(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 20
//BrandLogo_131 (MakeOver_int_fla.BrandLogo_131)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class BrandLogo_131 extends MovieClip {
public function BrandLogo_131(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(Translator.language);
}
}
}//package MakeOver_int_fla
Section 21
//Brows_11 (MakeOver_int_fla.Brows_11)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Brows_11 extends MovieClip {
public function Brows_11(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25);
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
}
}//package MakeOver_int_fla
Section 22
//Brows_intro_120 (MakeOver_int_fla.Brows_intro_120)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Brows_intro_120 extends MovieClip {
public function Brows_intro_120(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25);
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
}
}//package MakeOver_int_fla
Section 23
//Brows_text_139 (MakeOver_int_fla.Brows_text_139)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Brows_text_139 extends MovieClip {
public function Brows_text_139(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25);
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
}
}//package MakeOver_int_fla
Section 24
//clic_to_continue_button_110 (MakeOver_int_fla.clic_to_continue_button_110)
package MakeOver_int_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class clic_to_continue_button_110 extends MovieClip {
public var clickToContinue_btn:GameButton;
public function clic_to_continue_button_110(){
__setProp_clickToContinue_btn_clic_to_continue_button_Layer1_0();
}
function __setProp_clickToContinue_btn_clic_to_continue_button_Layer1_0(){
try {
clickToContinue_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
clickToContinue_btn.center = true;
try {
clickToContinue_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package MakeOver_int_fla
Section 25
//done_button_160 (MakeOver_int_fla.done_button_160)
package MakeOver_int_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class done_button_160 extends MovieClip {
public var faceButton_mc:MovieClip;
public var done_btn:GameButton;
public function done_button_160(){
__setProp_done_btn_done_button_text_0();
}
function __setProp_done_btn_done_button_text_0(){
try {
done_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
done_btn.center = true;
try {
done_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package MakeOver_int_fla
Section 26
//EyeColor_16 (MakeOver_int_fla.EyeColor_16)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeColor_16 extends MovieClip {
public function EyeColor_16(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
}
}//package MakeOver_int_fla
Section 27
//EyeColor_intro_125 (MakeOver_int_fla.EyeColor_intro_125)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeColor_intro_125 extends MovieClip {
public function EyeColor_intro_125(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 28
//EyeColor_text_144 (MakeOver_int_fla.EyeColor_text_144)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeColor_text_144 extends MovieClip {
public function EyeColor_text_144(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 29
//EyeMask_15 (MakeOver_int_fla.EyeMask_15)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeMask_15 extends MovieClip {
public function EyeMask_15(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package MakeOver_int_fla
Section 30
//EyeMask_intro_124 (MakeOver_int_fla.EyeMask_intro_124)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeMask_intro_124 extends MovieClip {
public function EyeMask_intro_124(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package MakeOver_int_fla
Section 31
//EyeMask_text_143 (MakeOver_int_fla.EyeMask_text_143)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeMask_text_143 extends MovieClip {
public function EyeMask_text_143(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package MakeOver_int_fla
Section 32
//eyes_brush_72 (MakeOver_int_fla.eyes_brush_72)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class eyes_brush_72 extends MovieClip {
public function eyes_brush_72(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
}
}//package MakeOver_int_fla
Section 33
//EyeShadow_12 (MakeOver_int_fla.EyeShadow_12)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeShadow_12 extends MovieClip {
public function EyeShadow_12(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package MakeOver_int_fla
Section 34
//EyeShadow_intro_121 (MakeOver_int_fla.EyeShadow_intro_121)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeShadow_intro_121 extends MovieClip {
public function EyeShadow_intro_121(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 35
//EyeShadow_text_140 (MakeOver_int_fla.EyeShadow_text_140)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeShadow_text_140 extends MovieClip {
public function EyeShadow_text_140(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 36
//EyeShape_14 (MakeOver_int_fla.EyeShape_14)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeShape_14 extends MovieClip {
public function EyeShape_14(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package MakeOver_int_fla
Section 37
//EyeShape_intro_123 (MakeOver_int_fla.EyeShape_intro_123)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeShape_intro_123 extends MovieClip {
public function EyeShape_intro_123(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package MakeOver_int_fla
Section 38
//EyeShape_text_142 (MakeOver_int_fla.EyeShape_text_142)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class EyeShape_text_142 extends MovieClip {
public function EyeShape_text_142(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package MakeOver_int_fla
Section 39
//face_brush_75 (MakeOver_int_fla.face_brush_75)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class face_brush_75 extends MovieClip {
public function face_brush_75(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
}
}//package MakeOver_int_fla
Section 40
//Hair_17 (MakeOver_int_fla.Hair_17)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Hair_17 extends MovieClip {
public function Hair_17(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50);
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame32(){
stop();
}
function frame33(){
stop();
}
function frame34(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame37(){
stop();
}
function frame38(){
stop();
}
function frame39(){
stop();
}
function frame40(){
stop();
}
function frame41(){
stop();
}
function frame42(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame50(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
}
}//package MakeOver_int_fla
Section 41
//Hair_intro_126 (MakeOver_int_fla.Hair_intro_126)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Hair_intro_126 extends MovieClip {
public function Hair_intro_126(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 42
//Hair_text_145 (MakeOver_int_fla.Hair_text_145)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Hair_text_145 extends MovieClip {
public function Hair_text_145(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 43
//HairBack_6 (MakeOver_int_fla.HairBack_6)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class HairBack_6 extends MovieClip {
public function HairBack_6(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50);
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame32(){
stop();
}
function frame33(){
stop();
}
function frame34(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame37(){
stop();
}
function frame38(){
stop();
}
function frame39(){
stop();
}
function frame40(){
stop();
}
function frame41(){
stop();
}
function frame42(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame50(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
}
}//package MakeOver_int_fla
Section 44
//HairBack_intro_116 (MakeOver_int_fla.HairBack_intro_116)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class HairBack_intro_116 extends MovieClip {
public function HairBack_intro_116(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 45
//HairBack_text_135 (MakeOver_int_fla.HairBack_text_135)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class HairBack_text_135 extends MovieClip {
public function HairBack_text_135(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 46
//HairComponents_21 (MakeOver_int_fla.HairComponents_21)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class HairComponents_21 extends MovieClip {
public function HairComponents_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 47
//HeadShape_7 (MakeOver_int_fla.HeadShape_7)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class HeadShape_7 extends MovieClip {
public function HeadShape_7(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
}
}//package MakeOver_int_fla
Section 48
//HeadShape_intro_117 (MakeOver_int_fla.HeadShape_intro_117)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class HeadShape_intro_117 extends MovieClip {
public function HeadShape_intro_117(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 49
//HeadShape_text_136 (MakeOver_int_fla.HeadShape_text_136)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class HeadShape_text_136 extends MovieClip {
public function HeadShape_text_136(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 50
//Lips_8 (MakeOver_int_fla.Lips_8)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Lips_8 extends MovieClip {
public function Lips_8(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
}
}//package MakeOver_int_fla
Section 51
//Lipstick_9 (MakeOver_int_fla.Lipstick_9)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Lipstick_9 extends MovieClip {
public function Lipstick_9(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30);
}
function frame30(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
}
}//package MakeOver_int_fla
Section 52
//Lipstick_intro_118 (MakeOver_int_fla.Lipstick_intro_118)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Lipstick_intro_118 extends MovieClip {
public function Lipstick_intro_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 53
//Lipstick_text_137 (MakeOver_int_fla.Lipstick_text_137)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Lipstick_text_137 extends MovieClip {
public function Lipstick_text_137(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 54
//logo_ds_111 (MakeOver_int_fla.logo_ds_111)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class logo_ds_111 extends MovieClip {
public function logo_ds_111(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
gotoAndStop(Translator.language);
}
}
}//package MakeOver_int_fla
Section 55
//main_button_48 (MakeOver_int_fla.main_button_48)
package MakeOver_int_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class main_button_48 extends MovieClip {
public var mainMenu_btn:GameButton;
public function main_button_48(){
addFrameScript(0, frame1, 8, frame9);
__setProp_mainMenu_btn_main_button_text_0();
}
function frame1(){
stop();
}
function __setProp_mainMenu_btn_main_button_text_0(){
try {
mainMenu_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
mainMenu_btn.center = true;
try {
mainMenu_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame9(){
stop();
}
}
}//package MakeOver_int_fla
Section 56
//Mascara_13 (MakeOver_int_fla.Mascara_13)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Mascara_13 extends MovieClip {
public function Mascara_13(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29);
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame28(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame21(){
stop();
}
}
}//package MakeOver_int_fla
Section 57
//Mascara_intro_122 (MakeOver_int_fla.Mascara_intro_122)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Mascara_intro_122 extends MovieClip {
public function Mascara_intro_122(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29);
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame28(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame21(){
stop();
}
}
}//package MakeOver_int_fla
Section 58
//Mascara_text_141 (MakeOver_int_fla.Mascara_text_141)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Mascara_text_141 extends MovieClip {
public function Mascara_text_141(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29);
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame28(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame21(){
stop();
}
}
}//package MakeOver_int_fla
Section 59
//MenuDoneButton_54 (MakeOver_int_fla.MenuDoneButton_54)
package MakeOver_int_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class MenuDoneButton_54 extends MovieClip {
public var done_btn:GameButton;
public function MenuDoneButton_54(){
__setProp_done_btn_MenuDoneButton_Layer1_0();
}
function __setProp_done_btn_MenuDoneButton_Layer1_0(){
try {
done_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
done_btn.center = true;
try {
done_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package MakeOver_int_fla
Section 60
//menuFaceButton_56 (MakeOver_int_fla.menuFaceButton_56)
package MakeOver_int_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class menuFaceButton_56 extends MovieClip {
public var faceButton_mc:MovieClip;
public var face_btn:GameButton;
public function menuFaceButton_56(){
__setProp_face_btn_menuFaceButton_Layer1_0();
}
function __setProp_face_btn_menuFaceButton_Layer1_0(){
try {
face_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
face_btn.center = true;
try {
face_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package MakeOver_int_fla
Section 61
//menuHairButton_57 (MakeOver_int_fla.menuHairButton_57)
package MakeOver_int_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class menuHairButton_57 extends MovieClip {
public var hairButton_mc:MovieClip;
public var hair_btn:GameButton;
public function menuHairButton_57(){
__setProp_hair_btn_menuHairButton_Layer1_0();
}
function __setProp_hair_btn_menuHairButton_Layer1_0(){
try {
hair_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
hair_btn.center = true;
try {
hair_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package MakeOver_int_fla
Section 62
//menuMakeupButton_58 (MakeOver_int_fla.menuMakeupButton_58)
package MakeOver_int_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class menuMakeupButton_58 extends MovieClip {
public var makeup_btn:GameButton;
public var makeupButton_mc:MovieClip;
public function menuMakeupButton_58(){
__setProp_makeup_btn_menuMakeupButton_Layer1_0();
}
function __setProp_makeup_btn_menuMakeupButton_Layer1_0(){
try {
makeup_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
makeup_btn.center = true;
try {
makeup_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package MakeOver_int_fla
Section 63
//MenuPeekButton_52 (MakeOver_int_fla.MenuPeekButton_52)
package MakeOver_int_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class MenuPeekButton_52 extends MovieClip {
public var peek_btn:GameButton;
public var peek_mc:MovieClip;
public function MenuPeekButton_52(){
__setProp_peek_btn_MenuPeekButton_Layer1_0();
}
function __setProp_peek_btn_MenuPeekButton_Layer1_0(){
try {
peek_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
peek_btn.center = true;
try {
peek_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package MakeOver_int_fla
Section 64
//Nose_10 (MakeOver_int_fla.Nose_10)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Nose_10 extends MovieClip {
public function Nose_10(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package MakeOver_int_fla
Section 65
//Nose_intro_119 (MakeOver_int_fla.Nose_intro_119)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Nose_intro_119 extends MovieClip {
public function Nose_intro_119(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 66
//Nose_text_138 (MakeOver_int_fla.Nose_text_138)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class Nose_text_138 extends MovieClip {
public function Nose_text_138(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 67
//PackShotBig_104 (MakeOver_int_fla.PackShotBig_104)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class PackShotBig_104 extends MovieClip {
public function PackShotBig_104(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
gotoAndStop(Translator.language);
}
}
}//package MakeOver_int_fla
Section 68
//SoundsForImport_168 (MakeOver_int_fla.SoundsForImport_168)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class SoundsForImport_168 extends MovieClip {
public function SoundsForImport_168(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MakeOver_int_fla
Section 69
//StickersLeft_20 (MakeOver_int_fla.StickersLeft_20)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class StickersLeft_20 extends MovieClip {
public function StickersLeft_20(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
}
}//package MakeOver_int_fla
Section 70
//StickersRight_19 (MakeOver_int_fla.StickersRight_19)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class StickersRight_19 extends MovieClip {
public function StickersRight_19(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package MakeOver_int_fla
Section 71
//text3_164 (MakeOver_int_fla.text3_164)
package MakeOver_int_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class text3_164 extends MovieClip {
public var winning_txt:TextField;
public var resultAccuracy_txt:TextField;
public var winLostAccuracy_txt:TextField;
public var winProceed_btn:GameButton;
public var winPoints_txt:TextField;
public var resultPoints_txt:TextField;
public var resultBonus_txt:TextField;
public var winTime_txt:TextField;
public var winBonus_txt:TextField;
public var winMessage_txt:TextField;
public var resultTime_txt:TextField;
public function text3_164(){
__setProp_winProceed_btn_text3_Layer1_0();
}
function __setProp_winProceed_btn_text3_Layer1_0(){
try {
winProceed_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
winProceed_btn.center = true;
try {
winProceed_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package MakeOver_int_fla
Section 72
//UbiLogo_130 (MakeOver_int_fla.UbiLogo_130)
package MakeOver_int_fla {
import flash.display.*;
public dynamic class UbiLogo_130 extends MovieClip {
public function UbiLogo_130(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(Translator.language);
}
}
}//package MakeOver_int_fla
Section 73
//MochiCoins (mochi.as3.MochiCoins)
package mochi.as3 {
public class MochiCoins {
public static const STORE_HIDE:String = "StoreHide";
public static const LOGGED_IN:String = "LoggedIn";
public static const STORE_ITEMS:String = "StoreItems";
public static const NO_USER:String = "NoUser";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
public static const ITEM_NEW:String = "ItemNew";
public static const USER_INFO:String = "UserInfo";
public static const IO_ERROR:String = "IOError";
public static const ITEM_OWNED:String = "ItemOwned";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const ERROR:String = "Error";
public static const LOGGED_OUT:String = "LoggedOut";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const LOGIN_HIDE:String = "LoginHide";
public static const LOGIN_SHOW:String = "LoginShow";
public static const STORE_SHOW:String = "StoreShow";
public static const PROFILE_HIDE:String = "ProfileHide";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static function showItem(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showItem call must pass an Object with an item key");
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showItem", {options:_arg1}, null, null);
}
public static function saveUserProperties(_arg1:Object):void{
MochiServices.send("coins_saveUserProperties", _arg1);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function showLoginWidget(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showLoginWidget", {options:_arg1});
}
public static function getStoreItems():void{
MochiServices.send("coins_getStoreItems");
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showStore(_arg1:Object=null):void{
MochiServices.bringToTop();
MochiServices.send("coins_showStore", {options:_arg1}, null, null);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function getUserInfo():void{
MochiServices.send("coins_getUserInfo");
}
public static function hideLoginWidget():void{
MochiServices.send("coins_hideLoginWidget");
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function showVideo(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showVideo call must pass an Object with an item key");
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showVideo", {options:_arg1}, null, null);
}
}
}//package mochi.as3
Section 74
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher)
package mochi.as3 {
public class MochiEventDispatcher {
private var eventTable:Object;
public function MochiEventDispatcher():void{
eventTable = {};
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
return;
};
for (_local3 in eventTable[_arg1]) {
var _local6 = eventTable[_arg1];
_local6[_local3](_arg2);
};
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
eventTable[_arg1] = [];
return;
};
for (_local3 in eventTable[_arg1]) {
if (eventTable[_arg1][_local3] != _arg2){
} else {
eventTable[_arg1].splice(Number(_local3), 1);
};
};
}
public function addEventListener(_arg1:String, _arg2:Function):void{
removeEventListener(_arg1, _arg2);
eventTable[_arg1].push(_arg2);
}
}
}//package mochi.as3
Section 75
//MochiEvents (mochi.as3.MochiEvents)
package mochi.as3 {
import flash.display.*;
public class MochiEvents {
public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL";
public static const FORMAT_LONG:String = "LongForm";
public static const ALIGN_BOTTOM:String = "ALIGN_B";
public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived";
public static const FORMAT_SHORT:String = "ShortForm";
public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR";
public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR";
public static const ALIGN_TOP:String = "ALIGN_T";
public static const ALIGN_LEFT:String = "ALIGN_L";
public static const ALIGN_RIGHT:String = "ALIGN_R";
public static const ALIGN_TOP_LEFT:String = "ALIGN_TL";
public static const ALIGN_CENTER:String = "ALIGN_C";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var gameStart:Number;
private static var levelStart:Number;
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function startSession(_arg1:String):void{
MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{
var _local4:Object;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
_local3.clip = _arg1;
MochiServices.send("events_setNotifications", _local3, null, null);
}
public static function endGame():void{
var _local1:Number = (new Date().time - gameStart);
trigger("end_game", {time:_local1});
}
public static function startGame():void{
gameStart = new Date().time;
trigger("start_game");
}
public static function trigger(_arg1:String, _arg2:Object=null):void{
if (_arg2 == null){
_arg2 = {};
} else {
if (_arg2["kind"] != undefined){
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
_arg2["kind"] = _arg1;
};
};
MochiServices.send("events_triggerEvent", {eventObject:_arg2}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function startLevel():void{
levelStart = new Date().time;
trigger("start_level");
}
public static function endLevel():void{
var _local1:Number = (new Date().time - levelStart);
trigger("end_level", {time:_local1});
}
}
}//package mochi.as3
Section 76
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
private static var _preserved:Object;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
public static var servicesSync:MochiSync = new MochiSync();
private static var _clip:MovieClip;
private static var _id:String;
private static var _services:String = "services.swf";
private static var _servURL:String = "http://www.mochiads.com/static/lib/services/";
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _loader:Loader;
private static var _connecting:Boolean = false;
private static var _mochiLocalConnection:MovieClip;
private static var _listenChannelName:String = "__ms_";
public static var onError:Object;
public static var netup:Boolean = true;
private static var _mochiLC:String = "MochiLC.swf";
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function onReceive(_arg1:Object):void{
var methodName:String;
var pkg = _arg1;
var cb:String = pkg.callbackID;
var cblst:Object = _clip._callbacks[cb];
if (!cblst){
return;
};
var method:* = cblst.callbackMethod;
methodName = "";
var obj:Object = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
delete _clip._callbacks[cb];
}
public static function get childClip():Object{
return (_clip);
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1));
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._nextcallbackID++;
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local4:int;
var _local14:Loader;
var _local3:Array = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
var _local6:Array = [0, 64, 0, 0, 0];
var _local7:MovieClip = new MovieClip();
var _local8:LocalConnection = new LocalConnection();
var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
var _local10:ByteArray = new ByteArray();
var _local11:ByteArray = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
var _local12:uint = ((_local3.length + _local11.length) + 4);
var _local13:uint = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var avm1Click:DisplayObject;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
var vars:Object = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
var s = "?";
var i:Number = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://x.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
var _local2:Rectangle = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!((netupAttempted) || (_connected))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function warnID(_arg1:String, _arg2:Boolean):void{
_arg1 = _arg1.toLowerCase();
if (_arg1.length != 16){
trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length"));
return;
} else {
if (_arg1 == "1e113c7239048b3f"){
if (_arg2){
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
};
return;
} else {
if (_arg1 == "84993a1de4031cd8"){
if (_arg2){
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
};
return;
};
};
};
var _local3:Number = 0;
while (_local3 < _arg1.length) {
switch (_arg1.charAt(_local3)){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "a":
case "b":
case "c":
case "d":
case "e":
case "f":
break;
default:
trace(("WARNING: Board ID contains illegal characters: " + _arg1));
return;
};
_local3++;
};
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_mochiLocalConnection.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function getVersion():String{
return ("3.3 as3");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (((_clip) && (_clip._queue))){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
}
public static function get id():String{
return (_id);
}
private static function onEvent(_arg1:Object):void{
var _local2:String = _arg1.target;
var _local3:String = _arg1.event;
switch (_local2){
case "events":
MochiEvents.triggerEvent(_arg1.event, _arg1.args);
break;
case "coins":
MochiCoins.triggerEvent(_arg1.event, _arg1.args);
break;
case "sync":
servicesSync.triggerEvent(_arg1.event, _arg1.args);
break;
};
}
private static function urlOptions(_arg1:Object):Object{
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
var _local2:Object = {};
if (_arg1.stage){
_local3 = _arg1.stage.loaderInfo.parameters.mochiad_options;
} else {
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
};
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
private static function loadError(_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
}
private static function initComChannels():void{
if (!_connected){
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_clip.onReceive = onReceive;
_clip.onEvent = onEvent;
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
while (_clip._queue.length > 0) {
_mochiLocalConnection.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function loadLCBridge(_arg1:Object):void{
var loader:Loader;
var clip = _arg1;
loader = new Loader();
var mochiLCURL:String = (_servURL + _mochiLC);
var req:URLRequest = new URLRequest(mochiLCURL);
var complete:Function = function (_arg1:Object):void{
_mochiLocalConnection = MovieClip(loader.content);
listen();
};
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
loader.load(req);
clip.addChild(loader);
}
private static function listen():void{
_mochiLocalConnection.connect(_listenChannelName);
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
trace("Waiting for MochiAds services to connect...");
}
public static function get clip():Object{
return (_container);
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var _local3:String = ("_mochiservices_com_" + _arg1);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(_arg2).servURL){
_servURL = urlOptions(_arg2).servURL;
};
var _local4:String = (_servURL + _services);
if (urlOptions(_arg2).servicesURL){
_local4 = urlOptions(_arg2).servicesURL;
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999))));
MochiServices.allowDomains(_local4);
_clip = createEmptyMovieClip(_arg2, _local3, 10336, false);
loadLCBridge(_clip);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
var _local5:URLRequest = new URLRequest(_local4);
var _local6:URLVariables = new URLVariables();
_local6.listenLC = _listenChannelName;
_local6.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options;
_local6.api_version = getVersion();
if (widget){
_local6.widget = true;
};
_local5.data = _local6;
_loader.load(_local5);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_clip._nextcallbackID = 0;
_clip._callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
warnID(id, false);
if ((clip is DisplayObject)){
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
var mc:MovieClip = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function bringToTop(_arg1:Event=null):void{
var e = _arg1;
if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
}
}//package mochi.as3
Section 77
//MochiSync (mochi.as3.MochiSync)
package mochi.as3 {
import flash.utils.*;
public dynamic class MochiSync extends Proxy {
private var _syncContainer:Object;
public static var SYNC_PROPERTY:String = "UpdateProperty";
public static var SYNC_REQUEST:String = "SyncRequest";
public function MochiSync():void{
_syncContainer = {};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
if (_syncContainer[_arg1] == _arg2){
return;
};
var _local3:String = _arg1.toString();
_syncContainer[_local3] = _arg2;
MochiServices.send("sync_propUpdate", {name:_local3, value:_arg2});
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
return (_syncContainer[_arg1]);
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
switch (_arg1){
case SYNC_REQUEST:
MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY:
_syncContainer[_arg2.name] = _arg2.value;
break;
};
}
}
}//package mochi.as3
Section 78
//Web (net.stevensacks.utils.Web)
package net.stevensacks.utils {
import flash.net.*;
public class Web {
public static function getURL(_arg1:String, _arg2:String=null):void{
var url = _arg1;
var window = _arg2;
var req:URLRequest = new URLRequest(url);
trace("getURL", url);
try {
navigateToURL(req, window);
} catch(e:Error) {
trace("Navigate to URL failed", e.message);
};
}
}
}//package net.stevensacks.utils
Section 79
//Accessory (Accessory)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.ui.*;
public class Accessory extends MovieClip {
private var _originalPos:Point;
private var _bst:Number;// = 0
private var _dragging:Boolean;// = false
private var _bs:BezierSegment;
private var _accessoryIndex:int;
public function Accessory():void{
_originalPos = new Point(x, y);
super();
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
_accessoryIndex = CommonStuff.stripNumberFromString(name, "Accessory", "_mc");
gotoAndStop(_accessoryIndex);
}
private function onMouseUp(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, onMouseUp);
if (CommonStuff.isMouseCloseToHair(stage)){
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
Globals.girlCurrentConfiguration.hairAccesory = _accessoryIndex;
stage.dispatchEvent(new Event("UPDATEGIRL"));
restoreOriginal();
Mouse.show();
} else {
stopDragging();
};
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
}
private function onMouseMove(_arg1:MouseEvent):void{
x = parent.mouseX;
y = parent.mouseY;
_arg1.updateAfterEvent();
}
private function restoreOriginal():void{
x = _originalPos.x;
y = _originalPos.y;
_dragging = false;
}
public function startDragging():void{
if (!_dragging){
new take().play();
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
_dragging = true;
Mouse.hide();
};
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Point;
_bst = (_bst + 0.05);
if (_bst >= 1){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
restoreOriginal();
} else {
_local2 = _bs.getValue(_bst);
x = _local2.x;
y = _local2.y;
};
}
private function onMouseDown(_arg1:MouseEvent):void{
startDragging();
}
private function stopDragging():void{
if (_dragging){
new leave().play();
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
_bs = new BezierSegment(new Point(x, y), new Point(x, (y - 100)), new Point(_originalPos.x, (_originalPos.y - 50)), _originalPos);
_bst = 0;
_dragging = false;
Mouse.show();
};
}
}
}//package
Section 80
//Accuracy (Accuracy)
package {
public class Accuracy {
public var explanationArr:Array;
private var _configUser:GirlConfiguration;
private var _game:int;
private var _configTarget:GirlConfiguration;
public var percentage:int;
public function Accuracy(_arg1:int, _arg2:GirlConfiguration, _arg3:GirlConfiguration){
_configTarget = _arg2;
_configUser = _arg3;
game = _arg1;
}
private function calculate1():void{
var _local1:Number = 7;
var _local2:Number = 0;
if (_configTarget.headShape == _configUser.headShape){
_local2++;
} else {
explanationArr.push(Translator.translate("wrongHeadShape"));
};
if (_configTarget.eyeColor == _configUser.eyeColor){
_local2++;
} else {
explanationArr.push(Translator.translate("wrongEyeColor"));
};
if (_configTarget.eye == _configUser.eye){
_local2++;
} else {
explanationArr.push(Translator.translate("wrongEyeShape"));
};
if (_configTarget.nose == _configUser.nose){
_local2++;
} else {
explanationArr.push(Translator.translate("wrongNoseShape"));
};
if (_configTarget.mouth == _configUser.mouth){
_local2++;
} else {
explanationArr.push(Translator.translate("wrongMouthShape"));
};
if (_configTarget.browShape == _configUser.browShape){
_local2++;
} else {
explanationArr.push(Translator.translate("wrongBrowShape"));
};
if (_configTarget.browColor == _configUser.browColor){
_local2++;
} else {
explanationArr.push(Translator.translate("wrongBrowColor"));
};
percentage = (100 * (_local2 / _local1));
}
public function calculate():void{
explanationArr = new Array();
switch (_game){
case 1:
calculate1();
break;
case 2:
calculate2();
break;
case 3:
calculate3();
break;
};
}
private function sameHairStyle(_arg1:int, _arg2:int):Boolean{
if (_arg1 == _arg2){
return (true);
};
if (Math.abs((_arg1 - _arg2)) > 1){
return (false);
};
if (((_arg1 % 2) + (_arg2 % 2)) == 1){
return (true);
};
return (false);
}
public function set game(_arg1:int):void{
_game = _arg1;
calculate();
}
private function calculate3():void{
var _local1:Number = 4;
var _local2:Number = 0;
if (_configTarget.hairColor == _configUser.hairColor){
_local2++;
} else {
explanationArr.push(Translator.translate("wrongHairColor"));
};
if (_configTarget.hairShape == _configUser.hairShape){
_local2++;
_local2++;
} else {
if (sameHairStyle(_configTarget.hairShape, _configUser.hairShape)){
_local2++;
explanationArr.push(Translator.translate("wrongHairLength"));
} else {
explanationArr.push(Translator.translate("wrongHairStyle"));
};
};
if (_configTarget.hairAccesory == _configUser.hairAccesory){
_local2++;
} else {
explanationArr.push(Translator.translate("wrongHairAccesory"));
};
percentage = (100 * (_local2 / _local1));
}
public function get game():int{
return (_game);
}
private function calculate2():void{
var _local1:Number = 6;
var _local2:Number = 0;
if (_configTarget.mascaraColor == _configUser.mascaraColor){
_local2 = (_local2 + _configUser.mascaraAlpha);
if (_configUser.mascaraAlpha < 1){
explanationArr.push(Translator.translate("wrongMascaraAlpha"));
};
} else {
explanationArr.push(Translator.translate("wrongMascaraColor"));
};
if (_configTarget.lipstickColor == _configUser.lipstickColor){
_local2 = (_local2 + _configUser.lipstickAlpha);
if (_configUser.lipstickAlpha < 1){
explanationArr.push(Translator.translate("wrongLipstickAlpha"));
};
} else {
explanationArr.push(Translator.translate("wrongLipstickColor"));
};
if (_configTarget.eyeShadow == _configUser.eyeShadow){
_local2 = (_local2 + _configUser.eyeShadowAlpha);
if (_configUser.eyeShadowAlpha < 1){
explanationArr.push(Translator.translate("wrongEyeShadowAlpha"));
};
} else {
explanationArr.push(Translator.translate("wrongEyeShadowColor"));
};
if (_configTarget.blush == _configUser.blush){
_local2 = (_local2 + _configUser.blushAlpha);
if (_configUser.blushAlpha < 1){
explanationArr.push(Translator.translate("wrongBlushAlpha"));
};
} else {
explanationArr.push(Translator.translate("wrongBlushColor"));
};
if (_configTarget.leftSticker == _configUser.leftSticker){
_local2 = (_local2 + 1);
};
if (_configTarget.rightSticker == _configUser.rightSticker){
_local2 = (_local2 + 1);
};
if (((!((_configTarget.rightSticker == _configUser.rightSticker))) || (!((_configTarget.leftSticker == _configUser.leftSticker))))){
explanationArr.push(Translator.translate("wrongStickers"));
};
percentage = (100 * (_local2 / _local1));
}
}
}//package
Section 81
//BasMath (BasMath)
package {
import flash.geom.*;
public class BasMath {
public static function percentage(_arg1:Number, _arg2:Number=0, _arg3:Number=100):Number{
var _local4:Number = ((_arg1 - _arg2) / (_arg3 - _arg2));
if (_local4 > 1){
_local4 = 1;
};
if (_local4 < 0){
_local4 = 0;
};
return (_local4);
}
public static function linearPointBetween(_arg1:Point, _arg2:Point, _arg3:Number):Point{
return (new Point((((_arg2.x - _arg1.x) * _arg3) + _arg1.x), (((_arg2.y - _arg1.y) * _arg3) + _arg1.y)));
}
}
}//package
Section 82
//BlushBox (BlushBox)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.ui.*;
public class BlushBox extends MovieClip {
private var _bst:Number;// = 0
private var _originalRot:Number;
private var _originalPos:Point;
private var _colorIndex:int;
private var _bs:BezierSegment;
private var _center:Point;
private var _brush:MovieClip;
public function BlushBox():void{
_center = new Point(360, 190);
super();
addEventListener(Event.ENTER_FRAME, onAddedToStage, false, 0, true);
_colorIndex = CommonStuff.stripNumberFromString(name, "blushBox", "_mc");
gotoAndStop(_colorIndex);
}
private function onMouseUp(_arg1:MouseEvent):void{
stopDragging();
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, onAddedToStage);
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
_brush = (this.parent.parent.getChildByName("faceBrush_mc") as MovieClip);
_brush.gotoAndStop(6);
_originalPos = new Point(_brush.x, _brush.y);
_originalRot = _brush.rotation;
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Point;
_bst = (_bst + 0.05);
if (_bst >= 1){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_brush.x = _originalPos.x;
_brush.y = _originalPos.y;
updateRotation();
_brush.gotoAndStop(6);
_brush.rotation = _originalRot;
} else {
_local2 = _bs.getValue(_bst);
_brush.x = _local2.x;
_brush.y = _local2.y;
updateRotation();
};
}
private function onMouseDown(_arg1:MouseEvent):void{
startDragging();
}
private function applyColor():void{
var _local1:Point = new Point(stage.mouseX, stage.mouseY);
if (((CommonStuff.isMouseCloseToLeftCheak(stage)) || (CommonStuff.isMouseCloseToRightCheak(stage)))){
if (Globals.girlCurrentConfiguration.blush == 6){
Globals.girlCurrentConfiguration.blush = _colorIndex;
Globals.girlCurrentConfiguration.blushAlpha = 0;
};
if (Globals.girlCurrentConfiguration.blush == _colorIndex){
GameCommon.changeAlphaMakeupCurrentGirl("blushAlpha", 0.01, stage);
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
};
}
private function startDragging():void{
if (_brush.currentFrame == 6){
new take().play();
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
_brush.gotoAndStop(_colorIndex);
Mouse.hide();
onMouseMove();
};
}
private function stopDragging():void{
if (_brush.currentFrame != 6){
new leave().play();
stage.removeEventListener(MouseEvent.MOUSE_UP, onMouseUp);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
_bs = new BezierSegment(new Point(_brush.x, _brush.y), new Point(_brush.x, (_brush.y - 100)), new Point(_originalPos.x, (_originalPos.y - 50)), _originalPos);
_bst = 0;
Mouse.show();
};
}
private function onMouseMove(_arg1:MouseEvent=null):void{
_brush.x = _brush.parent.mouseX;
_brush.y = _brush.parent.mouseY;
updateRotation();
applyColor();
if (_arg1 != null){
_arg1.updateAfterEvent();
};
}
private function updateRotation():void{
var _local1:Point = new Point(-200, _brush.y);
_local1 = localToGlobal(_local1);
var _local2:Number = BasMath.percentage(y, _center.y, (_originalPos.y - 50));
var _local3:Point = BasMath.linearPointBetween(_center, _local1, _local2);
_brush.rotation = (((Math.atan2((_brush.y - _local3.y), (_brush.x - _local3.x)) * 180) / Math.PI) - 90);
}
}
}//package
Section 83
//Brows (Brows)
package {
import flash.display.*;
import flash.events.*;
public class Brows extends MovieClip {
public var brow1_mc:MovieClip;
public var browColor5_mc:MovieClip;
public var browColor4_mc:MovieClip;
public var browColor3_mc:MovieClip;
public var browColor2_mc:MovieClip;
public var browColor1_mc:MovieClip;
public var brow4_mc:MovieClip;
public var brow3_mc:MovieClip;
public var brow2_mc:MovieClip;
public var brow5_mc:MovieClip;
public function Brows(){
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
var _local2 = 1;
while (_local2 <= 5) {
this[(("brow" + _local2) + "_mc")].gotoAndStop(_local2);
this[(("brow" + _local2) + "_mc")].addEventListener(MouseEvent.CLICK, onBrowShapeClick, false, 0, true);
this[(("brow" + _local2) + "_mc")].buttonMode = true;
_local2++;
};
var _local3 = 1;
while (_local3 <= 5) {
this[(("browColor" + _local3) + "_mc")].addEventListener(MouseEvent.CLICK, onBrowColorClick, false, 0, true);
this[(("browColor" + _local3) + "_mc")].buttonMode = true;
_local3++;
};
if (Globals.isFreePlay){
gotoAndStop(1);
} else {
gotoAndStop(2);
};
}
private function onBrowShapeClick(_arg1:MouseEvent):void{
var _local2:int;
var _local3:String = _arg1.currentTarget.name;
_local3 = _local3.replace("brow", "");
_local3 = _local3.replace("_mc", "");
if (_local3 != ""){
_local2 = int(_local3);
Globals.girlCurrentConfiguration.browShape = _local2;
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
}
private function onBrowColorClick(_arg1:MouseEvent):void{
var _local2:int = CommonStuff.stripNumberFromString(_arg1.currentTarget.name, "browColor", "_mc");
Globals.girlCurrentConfiguration.browColor = _local2;
stage.dispatchEvent(new Event("UPDATEGIRL"));
}
}
}//package
Section 84
//CleanerCloth (CleanerCloth)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.ui.*;
public class CleanerCloth extends MovieClip {
private var stickRadius:Number;// = 25
private var leftCheak:Point;
private var _originalPos:Point;
private var _dragging:Boolean;// = false
private var _bs:BezierSegment;
private var _bst:Number;// = 0
private var rightCheak:Point;
public function CleanerCloth():void{
_originalPos = new Point(x, y);
leftCheak = new Point(400, 170);
rightCheak = new Point(320, 170);
super();
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
}
private function onMouseUp(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, onMouseUp);
stopDragging();
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
}
public function startDragging():void{
if (!_dragging){
new take().play();
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
_dragging = true;
Mouse.hide();
};
}
private function onMouseDown(_arg1:MouseEvent):void{
startDragging();
}
private function stopDragging():void{
if (_dragging){
new leave().play();
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
_bs = new BezierSegment(new Point(x, y), new Point(x, (y - 100)), new Point(_originalPos.x, (_originalPos.y - 50)), _originalPos);
_bst = 0;
_dragging = false;
Mouse.show();
};
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Point;
_bst = (_bst + 0.05);
if (_bst >= 1){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
restoreOriginal();
} else {
_local2 = _bs.getValue(_bst);
x = _local2.x;
y = _local2.y;
};
}
private function checkCleaner():void{
if (((CommonStuff.isMouseCloseToLeftCheak(stage)) || (CommonStuff.isMouseCloseToRightCheak(stage)))){
GameCommon.changeAlphaMakeupCurrentGirl("blushAlpha", -0.1, stage);
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
if (((CommonStuff.isMouseCloseToLeftEye(stage)) || (CommonStuff.isMouseCloseToRightEye(stage)))){
GameCommon.changeAlphaMakeupCurrentGirl("eyeShadowAlpha", -0.1, stage);
GameCommon.changeAlphaMakeupCurrentGirl("mascaraAlpha", -0.1, stage);
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
if (CommonStuff.isMouseCloseToMouth(stage)){
GameCommon.changeAlphaMakeupCurrentGirl("lipstickAlpha", -0.1, stage);
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
}
private function onMouseMove(_arg1:MouseEvent):void{
x = parent.mouseX;
y = parent.mouseY;
checkCleaner();
_arg1.updateAfterEvent();
}
private function restoreOriginal():void{
x = _originalPos.x;
y = _originalPos.y;
_dragging = false;
}
}
}//package
Section 85
//clic_button (clic_button)
package {
import flash.media.*;
public dynamic class clic_button extends Sound {
}
}//package
Section 86
//CommonStuff (CommonStuff)
package {
import flash.geom.*;
import flash.display.*;
public class CommonStuff {
public static function configurationFromString(_arg1:String):Array{
var _local6:int;
var _local2:* = new Array();
var _local3:int = (_arg1.charCodeAt(0) - 65);
var _local4:int = _local3;
var _local5 = 1;
while (_local5 < (_arg1.length - 1)) {
_local6 = (_arg1.charCodeAt(_local5) - _local3);
if (_local6 < 65){
_local6 = (_local6 + 26);
};
_local4 = (_local4 + (_local6 + _local3));
_local6 = (_local6 - 65);
_local2.push(_local6);
_local5++;
};
_local4 = ((_local4 % 25) + 65);
return (_local2);
}
public static function configurationToString(_arg1:Array):String{
var _local5:int;
var _local6:int;
var _local2 = "";
var _local3:int;
var _local4:int = int((Math.random() * 26));
_local2 = (_local2 + String.fromCharCode((_local4 + 65)));
_local3 = (_local3 + _local4);
for each (_local5 in _arg1) {
_local6 = ((_local5 + 65) + _local4);
if (_local6 > 90){
_local6 = (_local6 - 26);
};
_local3 = (_local3 + _local6);
_local2 = (_local2 + String.fromCharCode(_local6));
};
_local3 = ((_local3 % 25) + 65);
_local2 = (_local2 + String.fromCharCode(_local3));
return (_local2);
}
public static function isMouseCloseToLeftEye(_arg1:DisplayObject):Boolean{
return ((Point.distance(new Point(335, 177), mousePos(_arg1)) < 25));
}
public static function isMouseCloseToRightCheak(_arg1:DisplayObject):Boolean{
return ((Point.distance(new Point(320, 203), mousePos(_arg1)) < 25));
}
public static function secondsToTimeString(_arg1:int):String{
var _local2:int = Math.floor((_arg1 / 60));
var _local3:int = (_arg1 - (_local2 * 60));
return (((String(("00" + _local2)).substr(-2) + ":") + String(("00" + _local3)).substr(-2)));
}
public static function isMouseCloseToHair(_arg1:DisplayObject):Boolean{
return ((Point.distance(new Point(362, 125), mousePos(_arg1)) < 100));
}
public static function isMouseCloseToLeftCheak(_arg1:DisplayObject):Boolean{
return ((Point.distance(new Point(400, 203), mousePos(_arg1)) < 25));
}
public static function stripNumberFromString(_arg1:String, _arg2:String, _arg3:String):int{
_arg1 = _arg1.replace(_arg2, "");
_arg1 = _arg1.replace(_arg3, "");
return (int(_arg1));
}
public static function isMouseCloseToRightEye(_arg1:DisplayObject):Boolean{
return ((Point.distance(new Point(388, 177), mousePos(_arg1)) < 25));
}
public static function mousePos(_arg1:DisplayObject):Point{
return (new Point((_arg1.mouseX - GameConfiguration.gameOffset.x), (_arg1.mouseY - GameConfiguration.gameOffset.y)));
}
public static function isMouseCloseToMouth(_arg1:DisplayObject):Boolean{
return ((Point.distance(new Point(362, 237), mousePos(_arg1)) < 25));
}
}
}//package
Section 87
//EyeColor (EyeColor)
package {
import flash.display.*;
import flash.events.*;
public class EyeColor extends MovieClip {
public var eyeColor10_mc:MovieClip;
public var eyeColor9_mc:MovieClip;
public var eyeColor8_mc:MovieClip;
public var eyeColor7_mc:MovieClip;
public var eyeColor6_mc:MovieClip;
public var eyeColor5_mc:MovieClip;
public var eyeColor4_mc:MovieClip;
public var eyeColor3_mc:MovieClip;
public var eyeColor2_mc:MovieClip;
public var eyeColor1_mc:MovieClip;
public function EyeColor(){
addEventListener(Event.REMOVED_FROM_STAGE, onRemoved, false, 0, true);
var _local1 = 1;
while (_local1 <= 10) {
this[(("eyeColor" + _local1) + "_mc")].addEventListener(MouseEvent.CLICK, onColorClick, false, 0, true);
this[(("eyeColor" + _local1) + "_mc")].buttonMode = true;
_local1++;
};
}
private function onRemoved(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
var _local2 = 1;
while (_local2 < 10) {
this[(("eyeColor" + _local2) + "_mc")].removeEventListener(MouseEvent.CLICK, onColorClick);
_local2++;
};
}
private function onColorClick(_arg1:MouseEvent):void{
var _local2:int;
var _local3:String = _arg1.currentTarget.name;
_local3 = _local3.replace("eyeColor", "");
_local3 = _local3.replace("_mc", "");
if (_local3 != ""){
_local2 = int(_local3);
Globals.girlCurrentConfiguration.eyeColor = _local2;
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
}
}
}//package
Section 88
//EyeShadeBox (EyeShadeBox)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.ui.*;
public class EyeShadeBox extends MovieClip {
private var _bst:Number;// = 0
private var _originalRot:Number;
private var _originalPos:Point;
private var _colorIndex:int;
private var _bs:BezierSegment;
private var _center:Point;
private var _brush:MovieClip;
public function EyeShadeBox():void{
_center = new Point(360, 220);
super();
addEventListener(Event.ENTER_FRAME, onAddedToStage, false, 0, true);
_colorIndex = CommonStuff.stripNumberFromString(name, "eyeShadow", "_mc");
gotoAndStop(_colorIndex);
}
private function onMouseUp(_arg1:MouseEvent):void{
stopDragging();
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, onAddedToStage);
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
_brush = (this.parent.parent.getChildByName("eyeBrush_mc") as MovieClip);
_brush.gotoAndStop(6);
_originalPos = new Point(_brush.x, _brush.y);
_originalRot = _brush.rotation;
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Point;
_bst = (_bst + 0.05);
if (_bst >= 1){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_brush.x = _originalPos.x;
_brush.y = _originalPos.y;
updateRotation();
_brush.gotoAndStop(6);
_brush.rotation = _originalRot;
} else {
_local2 = _bs.getValue(_bst);
_brush.x = _local2.x;
_brush.y = _local2.y;
updateRotation();
};
}
private function onMouseDown(_arg1:MouseEvent):void{
startDragging();
}
private function applyColor():void{
var _local1:Point = new Point(stage.mouseX, stage.mouseY);
if (((CommonStuff.isMouseCloseToLeftEye(stage)) || (CommonStuff.isMouseCloseToRightEye(stage)))){
if (Globals.girlCurrentConfiguration.eyeShadow == 6){
Globals.girlCurrentConfiguration.eyeShadow = _colorIndex;
Globals.girlCurrentConfiguration.eyeShadowAlpha = 0;
};
if (Globals.girlCurrentConfiguration.eyeShadow == _colorIndex){
GameCommon.changeAlphaMakeupCurrentGirl("eyeShadowAlpha", 0.01, stage);
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
};
}
private function startDragging():void{
if (_brush.currentFrame == 6){
new take().play();
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
_brush.gotoAndStop(_colorIndex);
Mouse.hide();
onMouseMove();
};
}
private function stopDragging():void{
if (_brush.currentFrame != 6){
new leave().play();
stage.removeEventListener(MouseEvent.MOUSE_UP, onMouseUp);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
_bs = new BezierSegment(new Point(_brush.x, _brush.y), new Point(_brush.x, (_brush.y - 100)), new Point(_originalPos.x, (_originalPos.y - 50)), _originalPos);
_bst = 0;
Mouse.show();
};
}
private function onMouseMove(_arg1:MouseEvent=null):void{
_brush.x = _brush.parent.mouseX;
_brush.y = _brush.parent.mouseY;
updateRotation();
applyColor();
if (_arg1 != null){
_arg1.updateAfterEvent();
};
}
private function updateRotation():void{
var _local1:Point = new Point(_brush.x, -200);
var _local2:Number = BasMath.percentage(_brush.y, _center.y, (_originalPos.y - 50));
var _local3:Point = BasMath.linearPointBetween(_center, _local1, _local2);
_brush.rotation = (((Math.atan2((_brush.y - _local3.y), (_brush.x - _local3.x)) * 180) / Math.PI) - 90);
}
}
}//package
Section 89
//EyeShapes (EyeShapes)
package {
import flash.display.*;
import flash.events.*;
public class EyeShapes extends MovieClip {
public var eyeShape5_mc:MovieClip;
public var eyeShape4_mc:MovieClip;
public var eyeShape3_mc:MovieClip;
public var eyeShape2_mc:MovieClip;
public var eyeShape1_mc:MovieClip;
public function EyeShapes(){
var _local1 = 1;
while (_local1 <= 5) {
this[(("eyeShape" + _local1) + "_mc")].gotoAndStop(_local1);
this[(("eyeShape" + _local1) + "_mc")].addEventListener(MouseEvent.CLICK, onEyeShapeClick, false, 0, true);
this[(("eyeShape" + _local1) + "_mc")].buttonMode = true;
_local1++;
};
if (Globals.isFreePlay){
gotoAndStop(1);
} else {
gotoAndStop(2);
};
}
private function onEyeShapeClick(_arg1:MouseEvent):void{
var _local2:int;
var _local3:String = _arg1.currentTarget.name;
_local3 = _local3.replace("eyeShape", "");
_local3 = _local3.replace("_mc", "");
if (_local3 != ""){
_local2 = int(_local3);
Globals.girlCurrentConfiguration.eye = _local2;
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
}
}
}//package
Section 90
//FaceBook (FaceBook)
package {
import flash.display.*;
import flash.events.*;
public class FaceBook extends MovieClip {
public var goBack_mc:MovieClip;
private var _currentPage:int;// = 1
public var rightPage_mc:MovieClip;
public var faceLeft_mc:MovieClip;
public var faceRight_mc:MovieClip;
public var goForward_mc:MovieClip;
private var _faceCount:int;
public var leftPage_mc:MovieClip;
public function FaceBook(){
updateBook();
goBack_mc.addEventListener(MouseEvent.CLICK, onBack, false, 0, true);
goForward_mc.addEventListener(MouseEvent.CLICK, onForward, false, 0, true);
faceLeft_mc.addEventListener(MouseEvent.CLICK, onFaceLeft, false, 0, true);
faceRight_mc.addEventListener(MouseEvent.CLICK, onFaceRight, false, 0, true);
goBack_mc.buttonMode = true;
goForward_mc.buttonMode = true;
faceLeft_mc.buttonMode = true;
faceRight_mc.buttonMode = true;
leftPage_mc.mouseEnabled = false;
rightPage_mc.mouseEnabled = false;
_faceCount = (Globals.isFreePlay) ? 7 : 3;
}
private function onFaceRight(_arg1:MouseEvent):void{
Globals.girlCurrentConfiguration.headShape = (_currentPage + 1);
stage.dispatchEvent(new Event("UPDATEGIRL"));
}
private function onFaceLeft(_arg1:MouseEvent):void{
Globals.girlCurrentConfiguration.headShape = _currentPage;
stage.dispatchEvent(new Event("UPDATEGIRL"));
}
private function onBack(_arg1:MouseEvent):void{
_currentPage = (_currentPage - 2);
updateBook();
}
private function onForward(_arg1:MouseEvent):void{
_currentPage = (_currentPage + 2);
updateBook();
}
private function updateBook():void{
faceLeft_mc.gotoAndStop(_currentPage);
faceRight_mc.gotoAndStop((_currentPage + 1));
goBack_mc.visible = !((_currentPage == 1));
goForward_mc.visible = !((_currentPage == _faceCount));
}
}
}//package
Section 91
//final_count (final_count)
package {
import flash.media.*;
public dynamic class final_count extends Sound {
}
}//package
Section 92
//FinalScreen (FinalScreen)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class FinalScreen extends MovieClip implements IGamePart {
public var wellDone_txt:TextField;
public var girl_mc:Girl;
public var done_btn:MovieClip;
public function FinalScreen(){
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
done_btn.addEventListener(MouseEvent.CLICK, onDone, false, 0, true);
var _local2:Girl = Girl(getChildByName("girl_mc"));
Globals.girlTargetConfiguration = new GirlConfiguration();
Globals.girlTargetConfiguration.setConfigurationCode(Globals.getGirlConfigurationForCurrentLevel());
_local2.girlConfig = Globals.girlTargetConfiguration;
wellDone_txt.text = Translator.translate(("WellDone" + String((int((Math.random() * 4)) + 1))));
}
public function dispose():void{
parent.removeChild(this);
delete ??getglobalscope
[this];
}
private function onDone(_arg1:MouseEvent):void{
done_btn.removeEventListener(MouseEvent.CLICK, onDone);
stage.dispatchEvent(new Event("nextgame"));
}
}
}//package
Section 93
//GameButton (GameButton)
package {
import flash.display.*;
import flash.events.*;
public class GameButton extends MovieClip {
private var _caption:String;
public var caption_mc:MovieClip;
private var _center:Boolean;
public function GameButton(){
addEventListener(Event.REMOVED_FROM_STAGE, onRemoved, false, 0, true);
addEventListener(MouseEvent.ROLL_OVER, onRollOver, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, onRollOut, false, 0, true);
addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
this.mouseChildren = false;
this.useHandCursor = true;
this.buttonMode = true;
onRollOut();
caption = Translator.translate(name);
}
private function onRemoved(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
removeEventListener(MouseEvent.ROLL_OVER, onRollOver);
removeEventListener(MouseEvent.ROLL_OUT, onRollOut);
removeEventListener(MouseEvent.CLICK, onClick);
}
public function get caption():String{
return (_caption);
}
private function onClick(_arg1:MouseEvent):void{
new clic_button().play();
}
public function set center(_arg1:Boolean):void{
_center = _arg1;
alignText();
}
public function set caption(_arg1:String):void{
_caption = _arg1;
caption_mc.caption_txt.text = _caption;
caption_mc.caption_txt.width = (caption_mc.caption_txt.textWidth + 5);
alignText();
}
private function onRollOver(_arg1:MouseEvent):void{
caption_mc.caption_txt.textColor = 0xFFFFFF;
}
private function onRollOut(_arg1:MouseEvent=null):void{
caption_mc.caption_txt.textColor = 16764108;
}
public function get center():Boolean{
return (_center);
}
private function alignText():void{
if (_center){
caption_mc.caption_txt.x = (-(caption_mc.caption_txt.width) / 2);
} else {
caption_mc.caption_txt.x = 0;
};
}
}
}//package
Section 94
//GameCommon (GameCommon)
package {
import flash.display.*;
import flash.events.*;
public class GameCommon extends MovieClip implements IGamePart {
private var _tryAgain:Boolean;
private var _messageLost:MessageLost;
public var eyeBrush_mc:MovieClip;
private var _messageInfo:MessageInfo;
public var girl_mc:Girl;
private var _messageEmail:MessageEmail;
private var _hasPeeked:Boolean;// = false
public var menu_mc:InGameMenu;
public var faceBrush_mc:MovieClip;
private var _messageWin:MessageWin;
private var _picture:Picture;
public function GameCommon(_arg1:Boolean=false){
addFrameScript(0, frame1, 3, frame4);
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
_tryAgain = _arg1;
}
private function onPreviewReady(_arg1:Event):void{
_picture.removeEventListener("READY", onPreviewReady);
startGame();
}
private function onKeyUp(_arg1:KeyboardEvent):void{
}
private function startGame():void{
menu_mc.visible = true;
menu_mc.showButtons();
girl_mc.visible = true;
if (!Globals.isFreePlay){
InGameMenu(menu_mc).startClock();
menu_mc.addEventListener("TIMEUP", onTimeUp, false, 0, true);
};
}
private function onTimeUp(_arg1:Event):void{
onDone();
}
private function onKeyDown(_arg1:KeyboardEvent):void{
var _local2:int;
if (((((_arg1.ctrlKey) && ((_arg1.keyCode >= 48)))) && ((_arg1.keyCode <= 57)))){
_local2 = (_arg1.keyCode - 48);
if (_local2 == 0){
_local2 = 10;
};
Globals.isFreePlay = false;
Globals.score = 0;
Globals.currentGame = 4;
Globals.level = (_local2 - 1);
stage.dispatchEvent(new Event("nextgame"));
};
}
private function onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
stage.removeEventListener("DONE", onDone);
stage.removeEventListener("SNEAK", onSneak);
}
private function onLostAndMain(_arg1:Event=null):void{
_messageLost.removeEventListener("MAIN", onLostAndMain);
_messageLost.removeEventListener("RETRY", onLostAndRetry);
gotoAndStop("returnScreen");
}
private function onInit(_arg1:Event):void{
if (Globals.isFreePlay){
gotoAndStop("game");
};
}
private function onIntroMessageReady(_arg1:Event=null):void{
if (_arg1 != null){
_messageInfo.removeEventListener("READY", onIntroMessageReady);
};
if (Globals.isFreePlay){
startGame();
} else {
_picture = Picture(stage.addChild(new Picture()));
_picture.addEventListener("READY", onPreviewReady, false, 0, true);
_picture.x = GameConfiguration.gameOffset.left;
_picture.y = GameConfiguration.gameOffset.top;
};
}
private function onLostAndRetry(_arg1:Event):void{
_messageLost.removeEventListener("MAIN", onLostAndMain);
_messageLost.removeEventListener("RETRY", onLostAndRetry);
stage.dispatchEvent(new Event("repeatgame"));
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp, false, 0, true);
if (Globals.level > 10){
gotoAndStop("returnScreen");
return;
};
this.gotoAndStop(("game" + Globals.currentGame));
var _local2:Girl = Girl(getChildByName("girl_mc"));
stage.addEventListener("DONE", onDone, false, 0, true);
stage.addEventListener("SNEAK", onSneak, false, 0, true);
menu_mc.visible = false;
if (!Globals.isFreePlay){
girl_mc.visible = false;
trace("CURRENT GAME:", Globals.currentGame);
if (Globals.currentGame == 1){
Globals.girlCurrentConfiguration = new GirlConfiguration();
Globals.girlCurrentConfiguration.setConfigurationCode(Globals.getGirlConfigurationForCurrentLevel());
Globals.girlCurrentConfiguration.changeHair();
Globals.girlCurrentConfiguration.removeAllGame2Makeup();
Globals.girlTargetConfiguration = new GirlConfiguration();
Globals.girlCurrentConfiguration.cloneTo(Globals.girlTargetConfiguration);
Globals.girlCurrentConfiguration.changeFace();
};
if (Globals.currentGame == 2){
Globals.girlTargetConfiguration.setConfigurationCode(Globals.getGirlConfigurationForCurrentLevel());
Globals.girlTargetConfiguration.hairShape = Globals.girlCurrentConfiguration.hairShape;
Globals.girlTargetConfiguration.hairColor = Globals.girlCurrentConfiguration.hairColor;
Globals.girlTargetConfiguration.brow = Globals.girlCurrentConfiguration.brow;
Globals.girlTargetConfiguration.browColor = Globals.girlCurrentConfiguration.browColor;
Globals.girlTargetConfiguration.hairAccesory = Globals.girlCurrentConfiguration.hairAccesory;
Globals.girlTargetConfiguration.cloneTo(Globals.girlCurrentConfiguration);
Globals.girlCurrentConfiguration.removeAllGame2Makeup();
};
if (Globals.currentGame == 3){
Globals.girlTargetConfiguration.cloneTo(Globals.girlCurrentConfiguration);
Globals.girlTargetConfiguration.setConfigurationCode(Globals.getGirlConfigurationForCurrentLevel());
};
trace("HAIRS TARGET:", Globals.girlTargetConfiguration.hair, Globals.girlCurrentConfiguration.hair);
_local2.girlConfig = Globals.girlCurrentConfiguration;
if (!_tryAgain){
_messageInfo = MessageInfo(stage.addChild(new MessageInfo(MessageInfo[("MESSAGE_BEGINGAME" + String(Globals.currentGame))])));
_messageInfo.x = GameConfiguration.gameOffset.left;
_messageInfo.y = GameConfiguration.gameOffset.top;
_messageInfo.addEventListener("READY", onIntroMessageReady, false, 0, true);
} else {
onIntroMessageReady();
};
} else {
if (Globals.girlCurrentConfiguration == null){
Globals.girlCurrentConfiguration = new GirlConfiguration();
};
_local2.girlConfig = Globals.girlCurrentConfiguration;
if (_tryAgain){
startGame();
} else {
_messageInfo = MessageInfo(stage.addChild(new MessageInfo(MessageInfo.MESSAGE_BEGINFREEPLAY)));
_messageInfo.addEventListener("READY", onIntroMessageReady, false, 0, true);
_messageInfo.x = GameConfiguration.gameOffset.left;
_messageInfo.y = GameConfiguration.gameOffset.top;
};
};
}
private function onDone(_arg1:Event=null):void{
var _local2:Accuracy;
var _local3:int;
var _local4:int;
var _local5:int;
if (Globals.isFreePlay){
_messageEmail = new MessageEmail();
stage.addChild(MovieClip(_messageEmail));
_messageEmail.x = GameConfiguration.gameOffset.left;
_messageEmail.y = GameConfiguration.gameOffset.top;
} else {
InGameMenu(menu_mc).stopClock();
_local2 = new Accuracy(Globals.currentGame, Globals.girlTargetConfiguration, Globals.girlCurrentConfiguration);
_local3 = (Globals.levelTime - InGameMenu(menu_mc).timeLeft);
_local4 = 0;
_local5 = 0;
_local4 = (10 * InGameMenu(menu_mc).timeLeft);
if (_local2.percentage == 100){
_local5 = 3000;
} else {
if (_local2.percentage > 90){
_local5 = 1000;
};
};
if (_hasPeeked){
_local5 = 0;
};
if (_local2.percentage < 70){
_messageLost = MessageLost(stage.addChild(MovieClip(new MessageLost(_local2, _local3, _local4, _local5))));
_messageLost.x = GameConfiguration.gameOffset.left;
_messageLost.y = GameConfiguration.gameOffset.top;
_messageLost.addEventListener("MAIN", onLostAndMain, false, 0, true);
_messageLost.addEventListener("RETRY", onLostAndRetry, false, 0, true);
} else {
_messageWin = (stage.addChild(new MessageWin(_local2, _local3, _local4, _local5)) as MessageWin);
_messageWin.x = GameConfiguration.gameOffset.left;
_messageWin.y = GameConfiguration.gameOffset.top;
_messageWin.addEventListener("READY", onWin, false, 0, true);
Globals.score = (Globals.score + (_local4 + _local5));
};
};
}
private function onFinishGame():void{
onLostAndMain();
}
public function dispose():void{
parent.removeChild(this);
delete ??getglobalscope
[this];
}
private function onPeekReady(_arg1:Event):void{
InGameMenu(menu_mc).startClock();
_picture.addEventListener("READY", onPeekReady);
}
function frame1(){
stop();
dispatchEvent(new Event("INIT_GAMEPLAY"));
}
function frame4(){
stop();
}
private function onSneak(_arg1:Event):void{
InGameMenu(menu_mc).stopClock();
_picture = Picture(stage.addChild(new Picture(5)));
_picture.addEventListener("READY", onPeekReady, false, 0, true);
_picture.x = GameConfiguration.gameOffset.left;
_picture.y = GameConfiguration.gameOffset.top;
_hasPeeked = true;
}
private function onWin(_arg1:Event):void{
_messageWin.removeEventListener("READY", onWin);
stage.dispatchEvent(new Event("nextgame"));
}
public static function changeAlphaMakeupCurrentGirl(_arg1:String, _arg2:Number, _arg3:Stage):void{
var _local4:Number = Globals.girlCurrentConfiguration[_arg1];
Globals.girlCurrentConfiguration[_arg1] = (Globals.girlCurrentConfiguration[_arg1] + _arg2);
if (_local4 != Globals.girlCurrentConfiguration[_arg1]){
if ((((Globals.girlCurrentConfiguration[_arg1] == 0)) || ((Globals.girlCurrentConfiguration[_arg1] == 1)))){
_arg3.addChild(new Spark());
};
};
}
}
}//package
Section 95
//GameConfiguration (GameConfiguration)
package {
import flash.geom.*;
public class GameConfiguration {
public static const googleAnalyticsID:String = "UA-10175332-1";
public static var gameOffset:Rectangle;
}
}//package
Section 96
//Girl (Girl)
package {
import flash.display.*;
import flash.events.*;
public class Girl extends MovieClip {
public var head_mc:MovieClip;
private var _girlConfig:GirlConfiguration;
public function Girl(){
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, onRemoved, false, 0, true);
}
private function onRemoved(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
stage.removeEventListener("UPDATEGIRL", updateGirl);
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
}
private function setVisibilityForTarget():void{
head_mc.stickersLeft_mc.visible = true;
head_mc.stickersRight_mc.visible = true;
head_mc.blush_mc.visible = true;
head_mc.blush_mc.visible = true;
head_mc.eyeShadow_mc.visible = true;
head_mc.eyeShadow_mc.visible = true;
head_mc.mascara_mc.visible = true;
head_mc.mascara_mc.visible = true;
head_mc.lipstick_mc.visible = true;
head_mc.lipstick_mc.visible = true;
head_mc.hairAccessory_mc.visible = true;
if (!Globals.isFreePlay){
switch (Globals.currentGame){
case 1:
head_mc.blush_mc.visible = false;
head_mc.blush_mc.visible = false;
head_mc.eyeShadow_mc.visible = false;
head_mc.eyeShadow_mc.visible = false;
head_mc.mascara_mc.visible = false;
head_mc.mascara_mc.visible = false;
head_mc.lipstick_mc.visible = false;
head_mc.lipstick_mc.visible = false;
head_mc.stickersLeft_mc.visible = false;
head_mc.stickersRight_mc.visible = false;
case 2:
head_mc.hairAccessory_mc.visible = false;
};
};
}
public function set girlConfig(_arg1:GirlConfiguration):void{
_girlConfig = _arg1;
updateGirl();
if (stage != null){
stage.addEventListener("UPDATEGIRL", updateGirl, false, 0, true);
};
}
public function updateGirl(_arg1:Event=null):void{
setVisibilityForTarget();
head_mc.brows_mc.gotoAndStop(_girlConfig.brow);
head_mc.eyeColor_mc.gotoAndStop(_girlConfig.eyeColor);
head_mc.eyeShape_mc.gotoAndStop(_girlConfig.eye);
head_mc.eyeMask_mc.gotoAndStop(_girlConfig.eye);
head_mc.hair_mc.gotoAndStop(_girlConfig.hair);
head_mc.headShape_mc.gotoAndStop(_girlConfig.headShape);
head_mc.nose_mc.gotoAndStop(_girlConfig.nose);
head_mc.stickersLeft_mc.gotoAndStop(_girlConfig.leftSticker);
head_mc.stickersRight_mc.gotoAndStop(_girlConfig.rightSticker);
head_mc.blush_mc.gotoAndStop(_girlConfig.blush);
head_mc.blush_mc.alpha = _girlConfig.blushAlpha;
head_mc.eyeShadow_mc.gotoAndStop(_girlConfig.eyeShadow);
head_mc.eyeShadow_mc.alpha = _girlConfig.eyeShadowAlpha;
head_mc.mascara_mc.gotoAndStop(_girlConfig.mascaraFrame);
head_mc.mascara_mc.alpha = _girlConfig.mascaraAlpha;
head_mc.mouth_mc.gotoAndStop(_girlConfig.mouth);
head_mc.lipstick_mc.gotoAndStop((_girlConfig.mouth + (6 * (_girlConfig.lipstickColor - 1))));
head_mc.lipstick_mc.alpha = _girlConfig.lipstickAlpha;
head_mc.hair_mc.gotoAndStop(_girlConfig.hair);
head_mc.hairBack_mc.gotoAndStop(_girlConfig.hair);
head_mc.hairAccessory_mc.gotoAndStop(_girlConfig.hairAccesory);
}
public function get girlConfig():GirlConfiguration{
return (_girlConfig);
}
}
}//package
Section 97
//GirlConfiguration (GirlConfiguration)
package {
public class GirlConfiguration {
private var _blush:int;// = 6
private var _lipstickColor:int;// = 6
private var _hairAccesory:int;// = 13
private var _lipstickAlpha:Number;// = 1
private var _browColor:int;// = 1
private var _eyeColor:int;// = 1
private var _brow:int;// = 1
private var _headShape:int;// = 1
private var _mascara:int;// = 6
private var _hairColor:int;// = 1
private var _mascaraAlpha:Number;// = 1
private var _eyeShadow:int;// = 6
private var _hair:int;// = 1
private var _mouth:int;// = 1
private var _browShape:int;// = 1
private var _eyeShadowAlpha:Number;// = 1
private var _nose:int;// = 1
private var _blushAlpha:Number;// = 1
private var _hairShape:int;// = 1
private var _rightSticker:int;// = 6
private var _eye:int;// = 1
private var _leftSticker:int;// = 6
public function get blush():int{
return (_blush);
}
public function set blushAlpha(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
};
if (_arg1 < 0){
_arg1 = 1;
_blush = 6;
};
if (_blush == 6){
_arg1 = 1;
};
_blushAlpha = _arg1;
}
public function get lipstickColor():int{
return (_lipstickColor);
}
public function get browColor():int{
return (_browColor);
}
public function set eyeShadow(_arg1:int):void{
_eyeShadow = _arg1;
}
public function set browShape(_arg1:int):void{
_browShape = _arg1;
_brow = (((_browColor - 1) * 5) + _browShape);
}
public function set lipstickColor(_arg1:int):void{
_lipstickColor = _arg1;
}
public function set mouth(_arg1:int):void{
_mouth = _arg1;
}
public function set browColor(_arg1:int):void{
_browColor = _arg1;
_brow = (((_browColor - 1) * 5) + _browShape);
}
public function set leftSticker(_arg1:int):void{
_leftSticker = _arg1;
}
public function get headShape():int{
return (_headShape);
}
public function get rightSticker():int{
return (_rightSticker);
}
public function set rightSticker(_arg1:int):void{
_rightSticker = _arg1;
}
public function set nose(_arg1:int):void{
_nose = _arg1;
}
public function set mascaraAlpha(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
};
if (_arg1 < 0){
_arg1 = 1;
_mascara = 6;
};
if (_mascara == 6){
_arg1 = 1;
};
_mascaraAlpha = _arg1;
}
public function set lipstickAlpha(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
};
if (_arg1 < 0){
_arg1 = 1;
_lipstickColor = 6;
};
if (_lipstickColor == 6){
_arg1 = 1;
};
_lipstickAlpha = _arg1;
}
public function get hairColor():int{
return (_hairColor);
}
public function changeHair():void{
var _local1:int;
while (_local1 < 20) {
ChangeRandomElement(3);
_local1++;
};
hairAccesory = 13;
hairColor = browColor;
}
public function changeFace():void{
var _local1:int;
while (_local1 < 40) {
ChangeRandomElement(1);
_local1++;
};
}
public function set mascaraColor(_arg1:int):void{
_mascara = _arg1;
}
public function get leftSticker():int{
return (_leftSticker);
}
public function get eyeShadowAlpha():Number{
return (_eyeShadowAlpha);
}
public function get blushAlpha():Number{
return (_blushAlpha);
}
public function cloneTo(_arg1:GirlConfiguration):void{
_arg1.browShape = browShape;
_arg1.browColor = browColor;
_arg1.eyeColor = eyeColor;
_arg1.eye = eye;
_arg1.headShape = headShape;
_arg1.nose = nose;
_arg1.mouth = mouth;
_arg1.lipstickColor = lipstickColor;
_arg1.lipstickAlpha = lipstickAlpha;
_arg1.leftSticker = leftSticker;
_arg1.rightSticker = rightSticker;
_arg1.eyeShadow = eyeShadow;
_arg1.eyeShadowAlpha = eyeShadowAlpha;
_arg1.blush = blush;
_arg1.blushAlpha = blushAlpha;
_arg1.mascaraColor = mascaraColor;
_arg1.mascaraAlpha = mascaraAlpha;
_arg1.hairColor = hairColor;
_arg1.hairShape = hairShape;
_arg1.hairAccesory = hairAccesory;
}
public function set headShape(_arg1:int):void{
_headShape = _arg1;
}
public function set hairShape(_arg1:int):void{
_hairShape = _arg1;
_hair = (((_hairColor - 1) * 10) + _hairShape);
}
public function set blush(_arg1:int):void{
_blush = _arg1;
}
public function ChangeRandomElement(_arg1:int=0):void{
randomizeComponent(_arg1, int(((Math.random() * elementsPerGame(_arg1)) + 1)));
}
public function getConfigurationCode():String{
var _local1:Array = new Array();
_local1.push(browShape);
_local1.push(browColor);
_local1.push(eyeColor);
_local1.push(eye);
_local1.push(headShape);
_local1.push(nose);
_local1.push(mouth);
_local1.push(lipstickColor);
_local1.push(leftSticker);
_local1.push(rightSticker);
_local1.push(eyeShadow);
_local1.push(blush);
_local1.push(mascaraColor);
_local1.push(hairColor);
_local1.push(hairShape);
_local1.push(hairAccesory);
return (CommonStuff.configurationToString(_local1));
}
public function get mouth():int{
return (_mouth);
}
public function setConfigurationCode(_arg1:String):void{
var _local2:Array = CommonStuff.configurationFromString(_arg1);
if (_local2 == null){
trace("invalid code ");
return;
};
browShape = _local2[0];
browColor = _local2[1];
eyeColor = _local2[2];
eye = _local2[3];
headShape = _local2[4];
nose = _local2[5];
mouth = _local2[6];
lipstickColor = _local2[7];
lipstickAlpha = 1;
leftSticker = _local2[8];
rightSticker = _local2[9];
eyeShadow = _local2[10];
eyeShadowAlpha = 1;
blush = _local2[11];
blushAlpha = 1;
mascaraColor = _local2[12];
mascaraAlpha = 1;
hairColor = _local2[13];
hairShape = _local2[14];
hairAccesory = _local2[15];
}
public function set hairColor(_arg1:int):void{
_hairColor = _arg1;
_hair = (((_hairColor - 1) * 10) + _hairShape);
}
public function get mascaraAlpha():Number{
return (_mascaraAlpha);
}
public function copyHairStyleFrom(_arg1:GirlConfiguration):void{
hair = _arg1.hair;
hairColor = _arg1.hairColor;
brow = _arg1.brow;
browColor = _arg1.browColor;
hairAccesory = _arg1.hairAccesory;
}
public function get lipstickAlpha():Number{
return (_lipstickAlpha);
}
public function get hairAccesory():int{
return (_hairAccesory);
}
public function get mascaraColor():int{
return (_mascara);
}
public function get browShape():int{
return (_browShape);
}
public function set hairAccesory(_arg1:int):void{
_hairAccesory = _arg1;
}
private function randomizeComponent(_arg1:int, _arg2:int):void{
switch (_arg1){
case 1:
switch (_arg2){
case 1:
_eyeColor = (int((Math.random() * 5)) + 1);
break;
case 2:
_eye = (int((Math.random() * 5)) + 1);
break;
case 3:
_headShape = (int((Math.random() * 5)) + 1);
break;
case 4:
_nose = (int((Math.random() * 5)) + 1);
break;
case 5:
_mouth = (int((Math.random() * 5)) + 1);
break;
};
break;
case 2:
switch (_arg2){
case 1:
_lipstickColor = (int((Math.random() * 5)) + 1);
_lipstickAlpha = 1;
break;
case 2:
_leftSticker = (int((Math.random() * 6)) + 1);
break;
case 3:
_rightSticker = (int((Math.random() * 6)) + 1);
break;
case 4:
_eyeShadow = (int((Math.random() * 5)) + 1);
_eyeShadowAlpha = 1;
break;
case 5:
_blush = (int((Math.random() * 5)) + 1);
_blushAlpha = 1;
break;
case 6:
_mascara = (int((Math.random() * 5)) + 1);
_mascaraAlpha = 1;
break;
};
break;
case 3:
switch (_arg2){
case 1:
hairShape = (int((Math.random() * 10)) + 1);
break;
case 2:
hairColor = (int((Math.random() * 5)) + 1);
break;
case 3:
hairAccesory = (int((Math.random() * 12)) + 1);
break;
case 4:
browShape = (int((Math.random() * 5)) + 1);
break;
case 5:
browColor = (int((Math.random() * 5)) + 1);
break;
};
break;
};
}
public function set hair(_arg1:int):void{
_hair = _arg1;
}
public function get eye():int{
return (_eye);
}
public function get eyeColor():int{
return (_eyeColor);
}
public function set eyeShadowAlpha(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
};
if (_arg1 < 0){
_arg1 = 1;
_eyeShadow = 6;
};
_eyeShadowAlpha = _arg1;
}
private function elementsPerGame(_arg1:int):int{
if (_arg1 == 1){
return (5);
};
if (_arg1 == 2){
return (6);
};
if (_arg1 == 3){
return (5);
};
return (0);
}
public function get hairShape():int{
return (_hairShape);
}
public function get mascaraFrame():int{
return ((_mascara + ((eye - 1) * 6)));
}
public function set eye(_arg1:int):void{
_eye = _arg1;
}
public function get eyeShadow():int{
return (_eyeShadow);
}
public function clone():GirlConfiguration{
var _local1:GirlConfiguration = new GirlConfiguration();
_local1.browShape = browShape;
_local1.browColor = browColor;
_local1.eyeColor = eyeColor;
_local1.eye = eye;
_local1.headShape = headShape;
_local1.nose = nose;
_local1.mouth = mouth;
_local1.lipstickColor = lipstickColor;
_local1.lipstickAlpha = lipstickAlpha;
_local1.leftSticker = leftSticker;
_local1.rightSticker = rightSticker;
_local1.eyeShadow = eyeShadow;
_local1.eyeShadowAlpha = eyeShadowAlpha;
_local1.blush = blush;
_local1.blushAlpha = blushAlpha;
_local1.mascaraColor = mascaraColor;
_local1.mascaraAlpha = mascaraAlpha;
_local1.hairColor = hairColor;
_local1.hairShape = hairShape;
_local1.hairAccesory = hairAccesory;
return (_local1);
}
public function set brow(_arg1:int):void{
_brow = _arg1;
}
public function get brow():int{
return (_brow);
}
public function get nose():int{
return (_nose);
}
public function get hair():int{
return (_hair);
}
public function removeAllGame2Makeup():void{
_lipstickColor = 6;
_lipstickAlpha = 1;
_leftSticker = 6;
_rightSticker = 6;
_eyeShadow = 6;
_eyeShadowAlpha = 1;
_blush = 6;
_blushAlpha = 1;
_mascara = 6;
_mascaraAlpha = 1;
}
public function set eyeColor(_arg1:int):void{
_eyeColor = _arg1;
}
}
}//package
Section 98
//Glitter (Glitter)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.filters.*;
public class Glitter extends MovieClip {
private var _a:Number;// = 0
private var _posArr:Array;
private var _spotsArr:Array;
private var _offset:int;// = 0
private var _hPos;// = 0
private var _hDistance:int;// = 130
public function Glitter():void{
var _local2:int;
var _local3:Sprite;
_spotsArr = new Array();
_posArr = new Array();
super();
var _local1:int;
while (_local1 < 800) {
_local2 = 50;
while (_local2 < 300) {
_local3 = new Sprite();
_local3.graphics.beginFill(0xFFFFFF, 1);
_local3.graphics.drawRoundRect(0, 0, 10, 10, 3, 3);
_local3.graphics.endFill();
_local3.y = _local2;
_spotsArr.push(_local3);
_posArr.push(new Point((_local1 + (_local2 / 10)), _local2));
addChild(_local3);
_local2 = (_local2 + 80);
};
_local1 = (_local1 + _hDistance);
};
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
}
private function onEnterFrame(_arg1:Event):void{
_hPos = (_hPos + 1);
if (_hPos > _hDistance){
_hPos = (_hPos - _hDistance);
};
_a = (_a + 0.01);
if (_a > (Math.PI * 2)){
_a = (_a - (Math.PI * 2));
};
this.y = (Math.sin(_a) * 15);
render();
}
private function render():void{
var _local3:Sprite;
var _local1:int = _posArr.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = _spotsArr[_local2];
_local3.x = (_posArr[_local2].x + _hPos);
_local3.alpha = (0.75 - (_local3.x / 2000));
_local3.filters = [new BlurFilter((_local3.x / 30), (_local3.x / 50))];
if (Math.random() < 0.01){
_local3.visible = false;
};
if (Math.random() < 0.1){
_local3.visible = true;
};
if (Math.random() < 0.01){
_local3.alpha = 0.9;
};
_local2++;
};
}
}
}//package
Section 99
//Globals (Globals)
package {
public class Globals {
private static const levelTime_arr:Array = new Array(90, 90, 90);
public static var girlCurrentConfiguration:GirlConfiguration = null;
public static var insideUbiland:Boolean = false;
public static var level:int = 0;
public static var girlTargetConfiguration:GirlConfiguration = null;
public static var isFreePlay:Boolean = false;
private static var girlConfigsArr = new Array("PRRTUSUQQVVVUQRZUJ", "WZYBAAZZXCCCYXAYDP", "UZZXZYYVXAAAAYZCCD", "VWWBYYYAYBBBXWZZYY", "UVVYYXYXXAAXZYVVZH", "WXXXBZBXACCXCBACIV", "LQNTQNQMNRRPPPNMWU", "LMNMPOQMOPPQNQNVNG", "IJLLLJNLMLOJKMLQJC", "KLPQOLNPLPQMLPPMUW");
public static var levelForTracker:int = 0;
public static var score:int = 0;
public static var currentGame:int = 0;
public static var soundMuted:Boolean = false;
public static function getGirlConfigurationForCurrentLevel():String{
return (girlConfigsArr[(level - 1)]);
}
public static function get levelTime():int{
return (levelTime_arr[(currentGame - 1)]);
}
}
}//package
Section 100
//HairAccessoryBox (HairAccessoryBox)
package {
import flash.display.*;
import flash.events.*;
public class HairAccessoryBox extends MovieClip {
public var Accessory12_mc:Accessory;
public var Accessory10_mc:Accessory;
public var Accessory9_mc:Accessory;
public var Accessory7_mc:Accessory;
public var Accessory5_mc:Accessory;
public var Accessory3_mc:Accessory;
public var Accessory1_mc:Accessory;
public var Accessory11_mc:Accessory;
public var Accessory8_mc:Accessory;
public var Accessory6_mc:Accessory;
public var Accessory4_mc:Accessory;
public var Accessory2_mc:Accessory;
public function HairAccessoryBox(){
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage, false, 0, true);
}
private function onMouseDown(_arg1:MouseEvent):void{
if ((((_arg1.target.name == "hairAccessory_mc")) && (!((_arg1.target.currentFrame == 13))))){
startDraggingSticker(int(_arg1.target.currentFrame));
Globals.girlCurrentConfiguration.hairAccesory = 13;
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
}
private function onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
}
private function startDraggingSticker(_arg1:int):void{
var _local2:Accessory = Accessory(this.getChildByName((("Accessory" + _arg1) + "_mc")));
_local2.startDragging();
}
}
}//package
Section 101
//HairBook (HairBook)
package {
import flash.display.*;
import flash.events.*;
public class HairBook extends MovieClip {
public var leftColor1_mc:MovieClip;
public var leftColor5_mc:MovieClip;
public var rightColor5_mc:MovieClip;
public var rightColor3_mc:MovieClip;
public var rightColor1_mc:MovieClip;
public var leftHair_mc:MovieClip;
public var rightHair_mc:MovieClip;
public var leftColor4_mc:MovieClip;
public var goForward_mc:MovieClip;
public var goBack_mc:MovieClip;
public var rightColor4_mc:MovieClip;
private var _currentPage:int;// = 1
public var rightColor2_mc:MovieClip;
public var leftColor2_mc:MovieClip;
public var leftColor3_mc:MovieClip;
public function HairBook(){
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage, false, 0, true);
updateBook();
goBack_mc.addEventListener(MouseEvent.CLICK, onBack, false, 0, true);
goForward_mc.addEventListener(MouseEvent.CLICK, onForward, false, 0, true);
leftHair_mc.addEventListener(MouseEvent.CLICK, onHairLeft, false, 0, true);
rightHair_mc.addEventListener(MouseEvent.CLICK, onHairRight, false, 0, true);
goBack_mc.buttonMode = true;
goForward_mc.buttonMode = true;
leftHair_mc.buttonMode = true;
rightHair_mc.buttonMode = true;
var _local1 = 1;
while (_local1 <= 5) {
this[(("leftColor" + _local1) + "_mc")].addEventListener(MouseEvent.CLICK, onHairColorClick, false, 0, true);
this[(("leftColor" + _local1) + "_mc")].buttonMode = true;
this[(("rightColor" + _local1) + "_mc")].addEventListener(MouseEvent.CLICK, onHairColorClick, false, 0, true);
this[(("rightColor" + _local1) + "_mc")].buttonMode = true;
_local1++;
};
}
private function onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
var _local2 = 1;
while (_local2 <= 5) {
this[(("leftColor" + _local2) + "_mc")].removeEventListener(MouseEvent.CLICK, onHairColorClick);
this[(("rightColor" + _local2) + "_mc")].removeEventListener(MouseEvent.CLICK, onHairColorClick);
_local2++;
};
}
private function onHairLeft(_arg1:MouseEvent=null):void{
Globals.girlCurrentConfiguration.hairShape = _currentPage;
stage.dispatchEvent(new Event("UPDATEGIRL"));
}
private function updateBook():void{
leftHair_mc.gotoAndStop(_currentPage);
rightHair_mc.gotoAndStop((_currentPage + 1));
goBack_mc.visible = !((_currentPage == 1));
goForward_mc.visible = !((_currentPage == 9));
}
private function onBack(_arg1:MouseEvent):void{
_currentPage = (_currentPage - 2);
updateBook();
}
private function onHairColorClick(_arg1:MouseEvent):void{
var _local2 = CommonStuff.stripNumberFromString(_arg1.currentTarget.name, "leftColor", "_mc");
if (_local2 > 0){
Globals.girlCurrentConfiguration.hairColor = _local2;
onHairLeft();
};
_local2 = CommonStuff.stripNumberFromString(_arg1.currentTarget.name, "rightColor", "_mc");
if (_local2 > 0){
Globals.girlCurrentConfiguration.hairColor = _local2;
onHairRight();
};
}
private function onForward(_arg1:MouseEvent):void{
_currentPage = (_currentPage + 2);
updateBook();
}
private function onHairRight(_arg1:MouseEvent=null):void{
Globals.girlCurrentConfiguration.hairShape = (_currentPage + 1);
stage.dispatchEvent(new Event("UPDATEGIRL"));
}
}
}//package
Section 102
//IGamePart (IGamePart)
package {
public interface IGamePart {
function dispose():void;
}
}//package
Section 103
//InGameMenu (InGameMenu)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.media.*;
public class InGameMenu extends MovieClip {
public var menuBar_mc:MovieClip;
private var _timer:Timer;
private var _ping:Sound;
public var freePlayMenu_mc:MovieClip;
private var _timeLeft:int;
private var _buttonTweenArray:Array;
public var menu_mc:MovieClip;
public var done_btn:MovieClip;
public var peek_btn:MovieClip;
public function InGameMenu(){
_ping = new final_count();
_buttonTweenArray = new Array();
super();
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, onRemoved, false, 0, true);
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, onTick, false, 0, true);
_timeLeft = Globals.levelTime;
if (Globals.isFreePlay){
done_btn.done_btn.caption = Translator.translate("send");
};
updateClock();
}
private function onRemoved(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
menu_mc.removeEventListener(MouseEvent.ROLL_OVER, onMenuOver);
menu_mc.removeEventListener(MouseEvent.ROLL_OUT, onMenuOut);
menu_mc.removeEventListener(MouseEvent.CLICK, onMenuClick);
done_btn.removeEventListener(MouseEvent.CLICK, onDone);
peek_btn.removeEventListener(MouseEvent.CLICK, onPeek);
freePlayMenu_mc.makeup_btn.removeEventListener(MouseEvent.CLICK, onGame2Click);
freePlayMenu_mc.hair_btn.removeEventListener(MouseEvent.CLICK, onGame3Click);
freePlayMenu_mc.face_btn.removeEventListener(MouseEvent.CLICK, onGame1Click);
_timer.removeEventListener(TimerEvent.TIMER, onTick);
}
private function onMenuClick(_arg1:MouseEvent):void{
stage.dispatchEvent(new Event("intro"));
}
private function hideSneakButton():void{
_buttonTweenArray.push(new Tweener(peek_btn, 50, 0, null, new Point(peek_btn.x, (peek_btn.y + 100))));
}
private function onGame3Click(_arg1:MouseEvent):void{
if (Globals.currentGame != 3){
stage.dispatchEvent(new Event("game3"));
};
}
private function onGame1Click(_arg1:MouseEvent):void{
if (Globals.currentGame != 1){
stage.dispatchEvent(new Event("game1"));
};
}
private function onDone(_arg1:MouseEvent):void{
stage.dispatchEvent(new Event("DONE"));
}
private function onMenuOver(_arg1:MouseEvent):void{
menu_mc.play();
}
public function startClock():void{
_timer.start();
}
private function updateClock():void{
menuBar_mc.gamePlayStuff_mc.timeLeft_txt.text = CommonStuff.secondsToTimeString(_timeLeft);
if ((((_timeLeft < 10)) && (((_timeLeft % 2) == 0)))){
_ping.play(0, 0);
};
}
private function onMenuOut(_arg1:MouseEvent):void{
menu_mc.gotoAndStop(1);
}
private function onTick(_arg1:TimerEvent):void{
_timeLeft--;
updateClock();
if (_timeLeft <= 0){
stopClock();
dispatchEvent(new Event("TIMEUP"));
};
}
private function onPeek(_arg1:MouseEvent):void{
stage.dispatchEvent(new Event("SNEAK"));
hideSneakButton();
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
menu_mc.addEventListener(MouseEvent.ROLL_OVER, onMenuOver, false, 0, true);
menu_mc.addEventListener(MouseEvent.ROLL_OUT, onMenuOut, false, 0, true);
menu_mc.addEventListener(MouseEvent.CLICK, onMenuClick, false, 0, true);
done_btn.addEventListener(MouseEvent.CLICK, onDone, false, 0, true);
peek_btn.addEventListener(MouseEvent.CLICK, onPeek, false, 0, true);
freePlayMenu_mc.makeup_btn.addEventListener(MouseEvent.CLICK, onGame2Click, false, 0, true);
freePlayMenu_mc.hair_btn.addEventListener(MouseEvent.CLICK, onGame3Click, false, 0, true);
freePlayMenu_mc.face_btn.addEventListener(MouseEvent.CLICK, onGame1Click, false, 0, true);
menuBar_mc.gamePlayStuff_mc.gameScore_txt.text = Globals.score;
hideButtons();
}
private function onGame2Click(_arg1:MouseEvent):void{
if (Globals.currentGame != 2){
stage.dispatchEvent(new Event("game2"));
};
}
private function hideButtons():void{
freePlayMenu_mc.visible = Globals.isFreePlay;
menuBar_mc.gamePlayStuff_mc.visible = !(Globals.isFreePlay);
peek_btn.visible = !(Globals.isFreePlay);
if (Globals.isFreePlay){
if ((((Translator.language == "es")) || ((Translator.language == "de")))){
done_btn.visible = false;
};
};
}
public function showButtons():void{
_buttonTweenArray.push(new Tweener(menuBar_mc, 30, 0, new Point(menuBar_mc.x, (menuBar_mc.y - 80))));
_buttonTweenArray.push(new Tweener(menu_mc, 30, 0, new Point(menu_mc.x, (menu_mc.y - 80))));
_buttonTweenArray.push(new Tweener(peek_btn, 40, 30, new Point(peek_btn.x, (peek_btn.y + 100))));
_buttonTweenArray.push(new Tweener(done_btn, 40, 25, new Point(done_btn.x, (done_btn.y + 100))));
_buttonTweenArray.push(new Tweener(freePlayMenu_mc.makeup_btn, 40, 15, new Point(freePlayMenu_mc.makeup_btn.x, (freePlayMenu_mc.makeup_btn.y - 200))));
_buttonTweenArray.push(new Tweener(freePlayMenu_mc.hair_btn, 40, 10, new Point(freePlayMenu_mc.hair_btn.x, (freePlayMenu_mc.hair_btn.y - 200))));
_buttonTweenArray.push(new Tweener(freePlayMenu_mc.face_btn, 40, 5, new Point(freePlayMenu_mc.face_btn.x, (freePlayMenu_mc.face_btn.y - 200))));
}
public function get timeLeft():int{
return (_timeLeft);
}
public function hideButtons2():void{
_buttonTweenArray.push(new Tweener(menuBar_mc, 30, 0, null, new Point(menuBar_mc.x, (menuBar_mc.y - 80))));
_buttonTweenArray.push(new Tweener(menu_mc, 30, 0, null, new Point(menu_mc.x, (menu_mc.y - 80))));
_buttonTweenArray.push(new Tweener(peek_btn, 40, 25, null, new Point(peek_btn.x, (peek_btn.y + 100))));
_buttonTweenArray.push(new Tweener(done_btn, 40, 20, null, new Point(done_btn.x, (done_btn.y + 100))));
_buttonTweenArray.push(new Tweener(freePlayMenu_mc.makeup_btn, 40, 15, null, new Point(freePlayMenu_mc.makeup_btn.x, (freePlayMenu_mc.makeup_btn.y - 200))));
_buttonTweenArray.push(new Tweener(freePlayMenu_mc.hair_btn, 40, 10, null, new Point(freePlayMenu_mc.hair_btn.x, (freePlayMenu_mc.hair_btn.y - 200))));
_buttonTweenArray.push(new Tweener(freePlayMenu_mc.face_btn, 40, 5, null, new Point(freePlayMenu_mc.face_btn.x, (freePlayMenu_mc.face_btn.y - 200))));
}
public function stopClock():void{
_timer.stop();
}
}
}//package
Section 104
//Intro (Intro)
package {
import flash.display.*;
import flash.events.*;
import net.stevensacks.utils.*;
import flash.text.*;
public class Intro extends MovieClip implements IGamePart {
public var partnerLogo_mc:PartnerLogo;
public var textHolder_mc:MovieClip;
public var legal_txt:TextField;
public var scene1_mc:MovieClip;
public var logo_mc:MovieClip;
public var choose_mc:MovieClip;
public function Intro(){
addFrameScript(20, frame21, 31, frame32, 57, frame58, 79, frame80, 85, frame86);
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
}
private function onEnd(_arg1:Event):void{
if (Globals.isFreePlay){
stage.dispatchEvent(new Event("newFreePlay"));
} else {
stage.dispatchEvent(new Event("newGame"));
};
}
private function onInitChooseMode(_arg1:Event):void{
choose_mc.freePlay_btn.addEventListener(MouseEvent.CLICK, onFreePlayClick, false, 0, true);
choose_mc.makeOverFriends_btn.addEventListener(MouseEvent.CLICK, onMakeOverFriendsClick, false, 0, true);
}
function frame32(){
dispatchEvent(new Event("INIT_ENTERNAME"));
}
private function onFreePlayClick(_arg1:MouseEvent):void{
Globals.isFreePlay = true;
continueAfterModeChoice();
}
private function onContinueClick(_arg1:MouseEvent):void{
this.removeEventListener(MouseEvent.CLICK, onContinueClick);
this.play();
}
function frame58(){
stop();
dispatchEvent(new Event("INIT_ENTERNAME"));
}
private function onKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 13){
onOkayClick();
};
}
private function onPartnerClick(_arg1:MouseEvent):void{
trace("partner url:", Translator.translate("partnerURL"));
Web.getURL(Translator.translate("partnerURL"), "_blank");
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener("INIT_CLICKTOCONTINUE", onInitClickToContinue, false, 0, true);
addEventListener("INIT_ENTERNAME", onInitEnterName, false, 0, true);
addEventListener("INIT_CHOOSEMODE", onInitChooseMode, false, 0, true);
addEventListener("END", onEnd, false, 0, true);
scene1_mc.packshot_mc.gotoAndStop(Translator.language);
logo_mc.gotoAndStop(Translator.language);
}
function frame80(){
stop();
dispatchEvent(new Event("INIT_CHOOSEMODE"));
}
public function dispose():void{
removeEventListener("INIT_CLICKTOCONTINUE", onInitClickToContinue);
removeEventListener("INIT_ENTERNAME", onInitEnterName);
removeEventListener("INIT_CHOOSEMODE", onInitChooseMode);
removeEventListener("END", onEnd);
this.stop();
parent.removeChild(this);
delete ??getglobalscope
[this];
}
function frame86(){
stop();
dispatchEvent(new Event("END"));
}
function frame21(){
stop();
dispatchEvent(new Event("INIT_CLICKTOCONTINUE"));
}
private function onMakeOverFriendsClick(_arg1:MouseEvent):void{
Globals.isFreePlay = false;
continueAfterModeChoice();
}
private function onOkayClick(_arg1:MouseEvent=null):void{
textHolder_mc.ok_btn.removeEventListener(MouseEvent.CLICK, onOkayClick);
this.play();
}
private function continueAfterModeChoice():void{
choose_mc.freePlay_btn.removeEventListener(MouseEvent.CLICK, onFreePlayClick);
choose_mc.makeOverFriends_btn.removeEventListener(MouseEvent.CLICK, onMakeOverFriendsClick);
this.play();
}
private function onInitEnterName(_arg1:Event):void{
removeEventListener("INIT_ENTERNAME", onInitEnterName);
textHolder_mc.ok_btn.addEventListener(MouseEvent.CLICK, onOkayClick, false, 0, true);
}
private function onInitClickToContinue(_arg1:Event):void{
this.addEventListener(MouseEvent.CLICK, onContinueClick, false, 0, true);
partnerLogo_mc.addEventListener(MouseEvent.CLICK, onPartnerClick, false, 0, true);
}
}
}//package
Section 105
//LanguageSelection (LanguageSelection)
package {
import flash.display.*;
import flash.events.*;
public class LanguageSelection extends MovieClip implements IGamePart {
public var de:SimpleButton;
public var fr:SimpleButton;
public var sa:SimpleButton;
private var tempMagicPos:int;// = 0
public var uk:SimpleButton;
public var us:SimpleButton;
public var it:SimpleButton;
private var magic:String;// = "translate"
public var es:SimpleButton;
public var nl:SimpleButton;
public function LanguageSelection(){
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage, false, 0, true);
}
private function onKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.charCode == magic.charCodeAt(tempMagicPos)){
tempMagicPos++;
if (tempMagicPos == magic.length){
setLanguage("xx");
};
} else {
tempMagicPos = 0;
};
}
private function setLanguage(_arg1:String){
Translator.language = _arg1;
stage.dispatchEvent(new Event("intro"));
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown, false, 0, true);
}
public function dispose():void{
parent.removeChild(this);
delete ??getglobalscope
[this];
}
private function onClick(_arg1:MouseEvent):void{
if (_arg1.target.name.length == 2){
setLanguage(_arg1.target.name);
};
}
private function onRemovedFromStage(_arg1:Event):void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
removeEventListener(MouseEvent.CLICK, onClick);
}
}
}//package
Section 106
//leave (leave)
package {
import flash.media.*;
public dynamic class leave extends Sound {
}
}//package
Section 107
//LipShape (LipShape)
package {
import flash.display.*;
import flash.events.*;
public class LipShape extends MovieClip {
public var lipShape6_mc:MovieClip;
public var lipShape5_mc:MovieClip;
public var lipShape4_mc:MovieClip;
public var lipShape3_mc:MovieClip;
public var lipShape2_mc:MovieClip;
public var lipShape1_mc:MovieClip;
public function LipShape(){
var _local1 = 1;
while (_local1 <= 6) {
this[(("lipShape" + _local1) + "_mc")].gotoAndStop(_local1);
this[(("lipShape" + _local1) + "_mc")].addEventListener(MouseEvent.CLICK, onNoseShapeClick, false, 0, true);
this[(("lipShape" + _local1) + "_mc")].buttonMode = true;
_local1++;
};
if (Globals.isFreePlay){
gotoAndStop(1);
} else {
gotoAndStop(2);
};
}
private function onNoseShapeClick(_arg1:MouseEvent):void{
var _local2:int;
var _local3:String = _arg1.currentTarget.name;
_local3 = _local3.replace("lipShape", "");
_local3 = _local3.replace("_mc", "");
if (_local3 != ""){
_local2 = int(_local3);
Globals.girlCurrentConfiguration.mouth = _local2;
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
}
}
}//package
Section 108
//Lipstick (Lipstick)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.ui.*;
public class Lipstick extends MovieClip {
private var _bst:Number;// = 0
private var _originalPos:Point;
private var _dragging:Boolean;// = false
private var _bs:BezierSegment;
private var _center:Point;
public var shadow_mc:MovieClip;
private var _colorIndex:int;
public function Lipstick():void{
_center = new Point((360 + GameConfiguration.gameOffset.x), (230 + GameConfiguration.gameOffset.y));
_originalPos = new Point(x, y);
super();
addFrameScript(0, frame1);
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
_colorIndex = CommonStuff.stripNumberFromString(name, "lipstick", "_mc");
gotoAndStop(_colorIndex);
}
private function onMouseUp(_arg1:MouseEvent):void{
stopDragging();
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
_center = parent.globalToLocal(_center);
}
function frame1(){
stop();
}
private function updateRotation():void{
var _local1:Point = new Point(x, -200);
var _local2:Number = BasMath.percentage(y, (_center.y - 15), (_originalPos.y - 10));
var _local3:Point = BasMath.linearPointBetween(_center, _local1, _local2);
rotation = (((Math.atan2((y - _local3.y), (x - _local3.x)) * 180) / Math.PI) - 90);
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Point;
_bst = (_bst + 0.05);
if (_bst >= 1){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
x = _originalPos.x;
y = _originalPos.y;
shadow_mc.visible = true;
updateRotation();
_dragging = false;
} else {
_local2 = _bs.getValue(_bst);
x = _local2.x;
y = _local2.y;
updateRotation();
};
}
private function applyColor():void{
var _local1:Point = new Point(stage.mouseX, stage.mouseY);
if (CommonStuff.isMouseCloseToMouth(stage)){
if (Globals.girlCurrentConfiguration.lipstickColor == 6){
Globals.girlCurrentConfiguration.lipstickColor = _colorIndex;
Globals.girlCurrentConfiguration.lipstickAlpha = 0;
};
if (Globals.girlCurrentConfiguration.lipstickColor == _colorIndex){
GameCommon.changeAlphaMakeupCurrentGirl("lipstickAlpha", 0.01, stage);
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
};
}
private function startDragging():void{
if (!_dragging){
new take().play();
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
_dragging = true;
shadow_mc.visible = false;
Mouse.hide();
};
}
private function stopDragging():void{
if (_dragging){
new leave().play();
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
_bs = new BezierSegment(new Point(x, y), new Point(x, (y - 100)), new Point(_originalPos.x, (_originalPos.y - 50)), _originalPos);
_bst = 0;
_dragging = false;
Mouse.show();
};
}
private function onMouseDown(_arg1:MouseEvent):void{
startDragging();
}
private function onMouseMove(_arg1:MouseEvent):void{
x = parent.mouseX;
y = parent.mouseY;
updateRotation();
applyColor();
_arg1.updateAfterEvent();
}
}
}//package
Section 109
//Lipstrick (Lipstrick)
package {
import flash.display.*;
public dynamic class Lipstrick extends MovieClip {
public var lipstick2_mc:Lipstick;
public var lipstick1_mc:Lipstick;
public var lipstick4_mc:Lipstick;
public var lipstick5_mc:Lipstick;
public var lipstick3_mc:Lipstick;
}
}//package
Section 110
//MakeOver (MakeOver)
package {
import flash.display.*;
import flash.events.*;
import com.ubi.game.*;
import flash.system.*;
public dynamic class MakeOver extends GameBase {
private var _tryAgain:Boolean;
private var mochiTrackerSent:Boolean;// = false
private var _currentGamePart:MovieClip;
private var _currentTransition:Transition;
private var mochiBotHolder:MovieClip;
public function MakeOver(){
mochiBotHolder = new MovieClip();
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
Translator.language = "";
}
override public function validateUbiland():void{
super.validateUbiland();
Globals.insideUbiland = _insideUbiland;
}
private function nextGame(_arg1:Event=null):void{
Globals.levelForTracker++;
Globals.currentGame++;
if (Globals.currentGame > 4){
Globals.level++;
Globals.currentGame = 1;
};
_tryAgain = false;
showGame(Globals.currentGame);
}
private function clearStage():void{
if (_currentTransition != null){
_currentTransition.dispose();
};
if (_currentGamePart != null){
IGamePart(_currentGamePart).dispose();
};
}
private function startGameThree(_arg1:Event):void{
showGame(3);
}
private function showGame(_arg1:int):void{
if (mochiBotHolder != null){
stage.removeChild(mochiBotHolder);
mochiBotHolder = null;
};
var _local2:Transition = new Transition(_currentGamePart);
Globals.currentGame = _arg1;
clearStage();
if (_arg1 == 4){
_currentGamePart = (this.addChild(new FinalScreen()) as MovieClip);
} else {
_currentGamePart = (this.addChild(new GameCommon(_tryAgain)) as MovieClip);
};
_currentTransition = (this.addChild(_local2) as Transition);
}
private function init():void{
Translator.startTranslator(stage);
this.gotoAndStop(3);
stage.addEventListener("newGame", newGame, false, 0, true);
stage.addEventListener("newFreePlay", newFree, false, 0, true);
stage.addEventListener("game1", startGameOne, false, 0, true);
stage.addEventListener("game2", startGameTwo, false, 0, true);
stage.addEventListener("game3", startGameThree, false, 0, true);
stage.addEventListener("intro", startIntro, false, 0, true);
stage.addEventListener("language", startLanguageSelection, false, 0, true);
stage.addEventListener("nextgame", nextGame, false, 0, true);
stage.addEventListener("repeatgame", repeatGame, false, 0, true);
stage.addEventListener("submitScore", submitHighScore, false, 0, true);
stage.dispatchEvent(new Event("language"));
}
private function startGameOne(_arg1:Event):void{
showGame(1);
}
private function triggerMochiBotTracking(_arg1:Event):void{
mochiBotHolder.removeEventListener(Event.ADDED_TO_STAGE, triggerMochiBotTracking);
Security.allowDomain("http://core.mochibot.com/my/core.swf");
MochiBot.track(mochiBotHolder, Translator.translate("MochiTrackingCode"));
mochiBotHolder.visible = false;
mochiBotHolder.x = -2200;
}
private function submitHighScore(_arg1:Event):void{
submitScore(Globals.score);
startIntro();
}
private function startLanguageSelection(_arg1:Event):void{
clearStage();
if (((!((loaderInfo.parameters.language == null))) && (!((loaderInfo.parameters.language == ""))))){
Translator.language = loaderInfo.parameters.language;
stage.dispatchEvent(new Event("intro"));
} else {
if (Translator.language != ""){
stage.dispatchEvent(new Event("intro"));
} else {
_currentGamePart = (this.addChild(new LanguageSelection()) as MovieClip);
};
};
}
public function setLanguage(_arg1:String):void{
Translator.language = _arg1;
}
function frame1(){
stop();
}
function frame2(){
trace("GO AWAY!");
gotoAndStop(1);
}
private function dispose(){
Translator.stopTranslator();
clearStage();
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
GameConfiguration.gameOffset = this.getBounds(this.stage);
}
private function startIntro(_arg1:Event=null):void{
clearStage();
if (!mochiTrackerSent){
mochiBotHolder.addEventListener(Event.ADDED_TO_STAGE, triggerMochiBotTracking);
stage.addChild(mochiBotHolder);
mochiTrackerSent = true;
};
_currentGamePart = (this.addChild(new Intro()) as MovieClip);
}
private function newFree(_arg1:Event):void{
_tryAgain = false;
Globals.girlCurrentConfiguration = null;
Globals.currentGame = 1;
showGame(1);
_tryAgain = true;
}
private function repeatGame(_arg1:Event):void{
_tryAgain = true;
showGame(Globals.currentGame);
}
private function newGame(_arg1:Event):void{
_tryAgain = false;
Globals.levelForTracker = 0;
Globals.level = 0;
Globals.score = 0;
Globals.currentGame = 4;
nextGame();
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Number = (this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal);
if (_local2 == 1){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
init();
};
}
function frame3(){
stop();
}
private function startGameTwo(_arg1:Event):void{
showGame(2);
}
override public function destroy():void{
dispose();
}
}
}//package
Section 111
//Mascara (Mascara)
package {
import flash.display.*;
public dynamic class Mascara extends MovieClip {
public var mascara3_mc:MascaraStick;
public var mascara1_mc:MascaraStick;
public var mascara5_mc:MascaraStick;
public var mascara4_mc:MascaraStick;
public var mascara2_mc:MascaraStick;
}
}//package
Section 112
//MascaraStick (MascaraStick)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.ui.*;
public class MascaraStick extends MovieClip {
private var _bst:Number;// = 0
private var _originalPos:Point;
private var _colorIndex:int;
private var _bs:BezierSegment;
private var _center:Point;
private var _dragging:Boolean;// = false
public function MascaraStick():void{
_center = new Point((360 + GameConfiguration.gameOffset.x), (190 + GameConfiguration.gameOffset.y));
_originalPos = new Point(x, y);
super();
addFrameScript(0, frame1);
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
_colorIndex = CommonStuff.stripNumberFromString(name, "mascara", "_mc");
gotoAndStop(_colorIndex);
}
private function onMouseUp(_arg1:MouseEvent):void{
stopDragging();
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
_center = parent.globalToLocal(_center);
}
function frame1(){
stop();
}
private function updateRotation():void{
var _local1:Point = new Point(x, -200);
var _local2:Number = BasMath.percentage(y, _center.y, (_originalPos.y - 50));
var _local3:Point = BasMath.linearPointBetween(_center, _local1, _local2);
rotation = (((Math.atan2((y - _local3.y), (x - _local3.x)) * 180) / Math.PI) - 90);
}
private function onMouseDown(_arg1:MouseEvent):void{
startDragging();
}
private function applyColor():void{
var _local1:Point = new Point(stage.mouseX, stage.mouseY);
if (((CommonStuff.isMouseCloseToLeftEye(stage)) || (CommonStuff.isMouseCloseToRightEye(stage)))){
if (Globals.girlCurrentConfiguration.mascaraColor == 6){
Globals.girlCurrentConfiguration.mascaraColor = _colorIndex;
Globals.girlCurrentConfiguration.mascaraAlpha = 0;
};
if (Globals.girlCurrentConfiguration.mascaraColor == _colorIndex){
GameCommon.changeAlphaMakeupCurrentGirl("mascaraAlpha", 0.01, stage);
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
};
}
private function startDragging():void{
if (!_dragging){
new take().play();
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
_dragging = true;
Mouse.hide();
};
}
private function stopDragging():void{
if (_dragging){
new leave().play();
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
_bs = new BezierSegment(new Point(x, y), new Point(x, (y - 100)), new Point(_originalPos.x, (_originalPos.y - 50)), _originalPos);
_bst = 0;
_dragging = false;
Mouse.show();
};
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Point;
_bst = (_bst + 0.05);
if (_bst >= 1){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
x = _originalPos.x;
y = _originalPos.y;
updateRotation();
_dragging = false;
} else {
_local2 = _bs.getValue(_bst);
x = _local2.x;
y = _local2.y;
updateRotation();
};
}
private function onMouseMove(_arg1:MouseEvent):void{
x = parent.mouseX;
y = parent.mouseY;
updateRotation();
applyColor();
_arg1.updateAfterEvent();
}
}
}//package
Section 113
//MessageEmail (MessageEmail)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import be.nascom.flash.events.*;
import be.nascom.flash.net.upload.*;
import com.HazmiWeb.Utils.*;
import flash.text.*;
import flash.ui.*;
public class MessageEmail extends MovieClip {
private const EMAIL_REGEX:RegExp;
public var window_mc:MovieClip;
private var window:MovieClip;
public function MessageEmail(){
EMAIL_REGEX = /^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}$/i;
super();
addFrameScript(15, frame16, 25, frame26);
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
}
private function onHide(_arg1:Event):void{
removeListeners();
parent.removeChild(this);
delete ??getglobalscope
[this];
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, onRemoveFromStage, false, 0, true);
addEventListener("HIDE", onHide, false, 0, true);
addEventListener("BUTTONS", onButtons, false, 0, true);
window = (getChildByName("window_mc") as MovieClip);
feedback();
addListeners();
}
private function onUploaded(_arg1:FileEvent):void{
feedback(Translator.translate("mailSent"));
var _local2:Timer = new Timer(5000, 0);
_local2.addEventListener(TimerEvent.TIMER, onTimer, false, 0, true);
_local2.start();
}
private function onButtons(_arg1:Event):void{
window.email_txt.text = "";
}
private function onError(_arg1:IOErrorEvent):void{
error();
}
private function feedback(_arg1:String=""):void{
window.feedback_txt.text = _arg1;
}
private function onTimer(_arg1:TimerEvent):void{
Timer(_arg1.currentTarget).stop();
play();
}
private function onProceed(_arg1:MouseEvent=null):void{
var _local2:String = window.email_txt.text;
if (_local2.match(EMAIL_REGEX)){
sendMail();
} else {
feedback(Translator.translate("mailInvalidAddress"));
};
}
private function onRemoveFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoveFromStage);
removeListeners();
}
function frame16(){
stop();
dispatchEvent(new Event("BUTTONS"));
}
function frame26(){
stop();
dispatchEvent(new Event("HIDE"));
}
private function error():void{
feedback(Translator.translate("mailSendError"));
window.send_btn.visible = true;
addListeners();
}
private function onErrorSecurity(_arg1:SecurityErrorEvent):void{
error();
}
private function onCancel(_arg1:MouseEvent=null):void{
removeListeners();
play();
}
private function onKeyDown(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == Keyboard.ENTER)) && (window.send_btn.visible))){
onProceed();
};
if (_arg1.keyCode == Keyboard.ESCAPE){
onCancel();
};
feedback();
}
private function removeListeners():void{
window.send_btn.removeEventListener(MouseEvent.CLICK, onProceed);
window.close_btn.removeEventListener(MouseEvent.CLICK, onCancel);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
TextField(window.email_txt).type = TextFieldType.DYNAMIC;
window.close_btn.visible = false;
window.send_btn.visible = false;
}
private function addListeners():void{
window.send_btn.addEventListener(MouseEvent.CLICK, onProceed, false, 0, true);
window.close_btn.addEventListener(MouseEvent.CLICK, onCancel, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown, false, 0, true);
TextField(window.email_txt).visible = true;
TextField(window.email_txt).type = TextFieldType.INPUT;
window.close_btn.visible = true;
}
private function sendMail():void{
feedback(Translator.translate("mailSending"));
removeListeners();
var _local1:Picture = new Picture();
var _local2:ImageUploader = new ImageUploader("http://imagine.ubi.com/makeover/upload.php");
var _local3:Girl = new Girl();
_local3.girlConfig = Globals.girlCurrentConfiguration;
var _local4:BitmapData = new BitmapData(_local3.width, _local3.height, false);
var _local5:Rectangle = _local3.getBounds(_local3);
var _local6:Matrix = new Matrix();
_local6.tx = -(_local5.x);
_local6.ty = -(_local5.y);
_local4.draw(_local3, _local6);
_local2.addEventListener(FileEvent.FILE_UPLOADED, onUploaded, false, 0, true);
_local2.addEventListener(IOErrorEvent.IO_ERROR, onError, false, 0, true);
_local2.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onErrorSecurity, false, 0, true);
var _local7:Object = new Object();
_local7.language = Translator.language;
_local7.mailTo = window.email_txt.text;
_local7.fileName = (GUID.create() + ".jpg");
_local2.upload(_local4, 70, "jpg", "filedata", _local7);
}
}
}//package
Section 114
//MessageInfo (MessageInfo)
package {
import flash.display.*;
import flash.events.*;
public class MessageInfo extends MovieClip {
private var _message:int;
public var win_mc:MovieClip;
public static const MESSAGE_BEGINGAME3:int = 3;
public static const MESSAGE_BEGINFREEPLAY:int = 0;
public static const MESSAGE_BEGINGAME1:int = 1;
public static const MESSAGE_BEGINGAME2:int = 2;
public function MessageInfo(_arg1){
addFrameScript(15, frame16, 25, frame26);
_message = _arg1;
addEventListener(Event.REMOVED_FROM_STAGE, onRemoveFromStage, false, 0, true);
addEventListener("HIDE", onHide, false, 0, true);
addEventListener("BUTTONS", onButtons, false, 0, true);
var _local2:MovieClip = MovieClip(getChildByName("win_mc"));
switch (_message){
case MESSAGE_BEGINFREEPLAY:
_local2.message_txt.text = Translator.translate("startFreePlay");
_local2.removeChild(_local2.getChildByName("showAgain_btn"));
break;
case MESSAGE_BEGINGAME1:
_local2.message_txt.text = Translator.translate("startGame1");
_local2.removeChild(_local2.getChildByName("showAgain_btn"));
break;
case MESSAGE_BEGINGAME2:
_local2.message_txt.text = Translator.translate("startGame2");
_local2.removeChild(_local2.getChildByName("showAgain_btn"));
break;
case MESSAGE_BEGINGAME3:
_local2.message_txt.text = Translator.translate("startGame3");
_local2.removeChild(_local2.getChildByName("showAgain_btn"));
break;
};
}
private function onRemoveFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoveFromStage);
win_mc.ok_btn.removeEventListener(MouseEvent.CLICK, onProceed);
removeEventListener("HIDE", onHide);
removeEventListener("BUTTONS", onButtons);
}
function frame16(){
stop();
dispatchEvent(new Event("BUTTONS"));
}
function frame26(){
stop();
dispatchEvent(new Event("HIDE"));
}
private function onButtons(_arg1:Event):void{
win_mc.ok_btn.addEventListener(MouseEvent.CLICK, onProceed, false, 0, true);
}
private function onHide(_arg1:Event):void{
parent.removeChild(this);
dispatchEvent(new Event("READY"));
}
private function onProceed(_arg1:MouseEvent):void{
play();
}
}
}//package
Section 115
//MessageLost (MessageLost)
package {
import flash.display.*;
import flash.events.*;
public class MessageLost extends MovieClip {
public var win_mc:MovieClip;
public function MessageLost(_arg1:Accuracy, _arg2:int, _arg3:int, _arg4:int){
var _local6:String;
super();
addFrameScript(13, frame14, 24, frame25);
addEventListener(Event.REMOVED_FROM_STAGE, onRemoveFromStage, false, 0, true);
addEventListener("HIDE", onHide, false, 0, true);
addEventListener("BUTTONS", onButtons, false, 0, true);
var _local5:MovieClip = MovieClip(getChildByName("win_mc"));
_local5.resultAccuracy_txt.text = (_arg1.percentage + "%");
_local5.lostDescription_txt.text = "";
for each (_local6 in _arg1.explanationArr) {
_local5.lostDescription_txt.text = (_local5.lostDescription_txt.text + (_local6 + "\n"));
};
}
private function onRetry(_arg1:MouseEvent):void{
dispatchEvent(new Event("RETRY"));
play();
}
private function onRemoveFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoveFromStage);
win_mc.lostMainMenu_btn.removeEventListener(MouseEvent.CLICK, onMainMenu);
win_mc.lostTryAgain_btn.removeEventListener(MouseEvent.CLICK, onRetry);
removeEventListener("HIDE", onHide);
removeEventListener("BUTTONS", onButtons);
}
private function onMainMenu(_arg1:MouseEvent):void{
dispatchEvent(new Event("MAIN"));
play();
}
private function onHide(_arg1:Event):void{
parent.removeChild(this);
}
private function onButtons(_arg1:Event):void{
win_mc.lostMainMenu_btn.addEventListener(MouseEvent.CLICK, onMainMenu, false, 0, true);
win_mc.lostTryAgain_btn.addEventListener(MouseEvent.CLICK, onRetry, false, 0, true);
}
function frame25(){
stop();
dispatchEvent(new Event("HIDE"));
}
function frame14(){
stop();
dispatchEvent(new Event("BUTTONS"));
}
}
}//package
Section 116
//MessageWin (MessageWin)
package {
import flash.display.*;
import flash.events.*;
public class MessageWin extends MovieClip {
public var win_mc:MovieClip;
public function MessageWin(_arg1:Accuracy, _arg2:int, _arg3:int, _arg4:int){
var _local6:String;
super();
addFrameScript(13, frame14, 25, frame26);
addEventListener(Event.REMOVED_FROM_STAGE, onRemoveFromStage, false, 0, true);
addEventListener("HIDE", onHide, false, 0, true);
addEventListener("BUTTONS", onButtons, false, 0, true);
var _local5:MovieClip = MovieClip(getChildByName("win_mc"));
_local5.resultAccuracy_txt.text = (_arg1.percentage + "%");
_local5.resultPoints_txt.text = _arg3;
_local5.resultTime_txt.text = CommonStuff.secondsToTimeString(_arg2);
_local5.resultBonus_txt.text = _arg4;
_local5.winning_txt.text = "";
for each (_local6 in _arg1.explanationArr) {
_local5.winning_txt.text = (_local5.winning_txt.text + (_local6 + "\n"));
};
}
function frame14(){
stop();
dispatchEvent(new Event("BUTTONS"));
}
private function onRemoveFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoveFromStage);
removeEventListener("HIDE", onHide);
removeEventListener("BUTTONS", onButtons);
}
private function onHide(_arg1:Event):void{
parent.removeChild(this);
}
private function onButtons(_arg1:Event):void{
win_mc.winProceed_btn.addEventListener(MouseEvent.CLICK, onProceed, false, 0, true);
}
function frame26(){
stop();
dispatchEvent(new Event("HIDE"));
}
private function onProceed(_arg1:MouseEvent):void{
play();
win_mc.winProceed_btn.removeEventListener(MouseEvent.CLICK, onProceed);
dispatchEvent(new Event("READY"));
}
}
}//package
Section 117
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 118
//MuteButton (MuteButton)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class MuteButton extends MovieClip {
public function MuteButton(){
buttonMode = true;
addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
updateMuteState();
}
function onClick(_arg1:MouseEvent):void{
toggleMuteState();
}
function toggleMuteState():void{
Globals.soundMuted = !(Globals.soundMuted);
updateMuteState();
}
function setVolume(_arg1:Number):void{
SoundMixer.soundTransform = new SoundTransform(_arg1);
}
function updateMuteState():void{
if (Globals.soundMuted){
setVolume(0);
gotoAndStop(2);
} else {
setVolume(1);
gotoAndStop(1);
};
}
}
}//package
Section 119
//Noses (Noses)
package {
import flash.display.*;
import flash.events.*;
public class Noses extends MovieClip {
public var nose5_mc:MovieClip;
public var nose4_mc:MovieClip;
public var nose3_mc:MovieClip;
public var nose1_mc:MovieClip;
public var nose2_mc:MovieClip;
public function Noses(){
var _local1 = 1;
while (_local1 <= 5) {
this[(("nose" + _local1) + "_mc")].gotoAndStop(_local1);
this[(("nose" + _local1) + "_mc")].addEventListener(MouseEvent.CLICK, onNoseShapeClick, false, 0, true);
this[(("nose" + _local1) + "_mc")].buttonMode = true;
_local1++;
};
if (Globals.isFreePlay){
gotoAndStop(1);
} else {
gotoAndStop(2);
};
}
private function onNoseShapeClick(_arg1:MouseEvent):void{
var _local2:int;
var _local3:String = _arg1.currentTarget.name;
_local3 = _local3.replace("nose", "");
_local3 = _local3.replace("_mc", "");
if (_local3 != ""){
_local2 = int(_local3);
Globals.girlCurrentConfiguration.nose = _local2;
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
}
}
}//package
Section 120
//PartnerLogo (PartnerLogo)
package {
import flash.display.*;
import flash.events.*;
import net.stevensacks.utils.*;
public class PartnerLogo extends MovieClip {
public function PartnerLogo(){
addFrameScript(0, frame1);
addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage, false, 0, true);
this.buttonMode = true;
}
private function onClick(_arg1:MouseEvent):void{
Web.getURL(Translator.translate("partnerURL"));
}
private function onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
removeEventListener(MouseEvent.CLICK, onClick);
}
function frame1(){
gotoAndStop(Translator.language);
}
}
}//package
Section 121
//Picture (Picture)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Picture extends MovieClip {
private var _timer:Timer;
private var _timeLeft:int;
public var foto_mc:MovieClip;
public var done_mc:MovieClip;
public function Picture(_arg1:int=15){
addFrameScript(21, frame22, 34, frame35);
_timeLeft = _arg1;
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
}
private function onDone(_arg1:MouseEvent=null):void{
_timer.stop();
play();
_timer.removeEventListener(TimerEvent.TIMER, onTick);
done_mc.done_btn.removeEventListener(MouseEvent.CLICK, onDone);
dispatchEvent(new Event("READY"));
}
private function onTick(_arg1:TimerEvent):void{
_timeLeft--;
updateClock();
if (_timeLeft <= 0){
onDone();
};
}
private function updateClock():void{
foto_mc.countdown_txt.text = CommonStuff.secondsToTimeString(_timeLeft);
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage, false, 0, true);
addEventListener("END", onEnd, false, 0, true);
addEventListener("WAITING", onWaiting, false, 0, true);
done_mc.done_btn.addEventListener(MouseEvent.CLICK, onDone, false, 0, true);
updateClock();
foto_mc.girl_mc.girlConfig = Globals.girlTargetConfiguration;
foto_mc.levelName_txt.text = (("'" + Translator.translate(("levelName" + String(Globals.level)))) + "'");
}
private function onWaiting(_arg1:Event):void{
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, onTick, false, 0, true);
_timer.start();
}
function frame22(){
stop();
dispatchEvent(new Event("WAITING"));
}
private function onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
removeEventListener("END", onEnd);
removeEventListener("WAITING", onWaiting);
}
public function makeImage(_arg1:GirlConfiguration):BitmapData{
gotoAndStop("stopped");
foto_mc.girl_mc.girlConfig = Globals.girlCurrentConfiguration;
var _local2:BitmapData = new BitmapData(this.width, this.height, false);
_local2.draw(this);
return (_local2);
}
function frame35(){
stop();
dispatchEvent(new Event("END"));
}
private function onEnd(_arg1:Event):void{
parent.removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 122
//ReturnScreen (ReturnScreen)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import mochi.as3.*;
import flash.net.*;
public class ReturnScreen extends MovieClip implements IGamePart {
public var tryAgain_btn:GameButton;
public var buyNow_btn:GameButton;
public var backToTown_btn:GameButton;
public var __setPropDict:Dictionary;
public var cover_mc:MovieClip;
public function ReturnScreen(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(29, frame30);
addEventListener("BUTTONS", onButtons, false, 0, true);
}
function __setProp_backToTown_btn_ReturnScreen_buttons_29(){
try {
backToTown_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
backToTown_btn.center = true;
try {
backToTown_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tryAgain_btn_ReturnScreen_buttons_29(){
try {
tryAgain_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tryAgain_btn.center = true;
try {
tryAgain_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
private function onButtonsTryAgainClick(_arg1:MouseEvent):void{
stage.dispatchEvent(new Event("intro"));
dispose();
}
function frame30(){
if ((((__setPropDict[backToTown_btn] == undefined)) || (!((int(__setPropDict[backToTown_btn]) == 30))))){
__setPropDict[backToTown_btn] = 30;
__setProp_backToTown_btn_ReturnScreen_buttons_29();
};
if ((((__setPropDict[buyNow_btn] == undefined)) || (!((int(__setPropDict[buyNow_btn]) == 30))))){
__setPropDict[buyNow_btn] = 30;
__setProp_buyNow_btn_ReturnScreen_buttons_29();
};
if ((((__setPropDict[tryAgain_btn] == undefined)) || (!((int(__setPropDict[tryAgain_btn]) == 30))))){
__setPropDict[tryAgain_btn] = 30;
__setProp_tryAgain_btn_ReturnScreen_buttons_29();
};
stop();
dispatchEvent(new Event("BUTTONS"));
}
private function onButtons(_arg1:Event):void{
removeEventListener("BUTTONS", onButtons);
if (Globals.insideUbiland){
backToTown_btn.caption = Translator.translate("submitScore");
backToTown_btn.addEventListener(MouseEvent.CLICK, onSubmitScoreClick, false, 0, true);
} else {
backToTown_btn.caption = Translator.translate("visitWeb");
backToTown_btn.addEventListener(MouseEvent.CLICK, onBackToTownClick, false, 0, true);
MochiServices.addLinkEvent(Translator.translate("visitOurSiteLinkMochiTracking"), Translator.translate("visitOurSiteLink"), backToTown_btn);
};
tryAgain_btn.addEventListener(MouseEvent.CLICK, onButtonsTryAgainClick, false, 0, true);
buyNow_btn.addEventListener(MouseEvent.CLICK, onBuyNowClick, false, 0, true);
MochiServices.addLinkEvent(Translator.translate("buyNowLinkMochiTracking"), Translator.translate("buyNowLink"), buyNow_btn);
}
function __setProp_buyNow_btn_ReturnScreen_buttons_29(){
try {
buyNow_btn["componentInspectorSetting"] = true;
} catch(e:Error) {
};
buyNow_btn.center = true;
try {
buyNow_btn["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
private function onSubmitScoreClick(_arg1:MouseEvent):void{
stage.dispatchEvent(new Event("submitScore"));
dispose();
}
private function onBackToTownClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"));
}
private function onBuyNowClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(" http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"));
}
private function onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
tryAgain_btn.removeEventListener(MouseEvent.CLICK, onButtonsTryAgainClick);
buyNow_btn.removeEventListener(MouseEvent.CLICK, onBuyNowClick);
backToTown_btn.removeEventListener(MouseEvent.CLICK, onBackToTownClick);
}
public function dispose():void{
this.parent.removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 123
//shine2 (shine2)
package {
import flash.media.*;
public dynamic class shine2 extends Sound {
}
}//package
Section 124
//Spark (Spark)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class Spark extends Sprite {
private var _ping:Sound;
public function Spark(){
_ping = new shine2();
super();
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
x = stage.mouseX;
y = stage.mouseY;
var _local2:int;
while (_local2 < 10) {
addChild(new Sparkle());
_local2++;
};
_ping.play(0, 0);
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
}
private function onEnterFrame(_arg1:Event):void{
if (numChildren == 0){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
stage.removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 125
//Sparkle (Sparkle)
package {
import flash.display.*;
import flash.events.*;
public class Sparkle extends MovieClip {
private var _speedX:Number;
private var _speedY:Number;
public function Sparkle(){
_speedX = ((Math.random() * 10) - 5);
_speedY = ((Math.random() * 10) - 5);
super();
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
x = (x + _speedX);
y = (y + _speedY);
scaleX = (scaleY = ((Math.random() * 0.5) + 0.5));
rotation = (Math.random() * 360);
}
private function onEnterFrame(_arg1:Event):void{
_speedX = (_speedX * 0.99);
_speedY = (_speedY * 0.99);
scaleY = (scaleY * 0.97);
_speedY = (_speedY + 0.2);
scaleX = scaleY;
x = (x + _speedX);
y = (y + _speedY);
rotation = (rotation + 5);
if (scaleX < 0.1){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
parent.removeChild(this);
delete ??getglobalscope
[this];
};
}
}
}//package
Section 126
//Sticker (Sticker)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.ui.*;
public class Sticker extends MovieClip {
private var _originalPos:Point;
private var _bst:Number;// = 0
private var _colorIndex:int;
private var _bs:BezierSegment;
public var shadow_mc:MovieClip;
private var _dragging:Boolean;// = false
public function Sticker():void{
_originalPos = new Point(x, y);
super();
addFrameScript(0, frame1);
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
_colorIndex = CommonStuff.stripNumberFromString(name, "sticker", "_mc");
gotoAndStop(_colorIndex);
}
private function onMouseUp(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, onMouseUp);
if (CommonStuff.isMouseCloseToLeftCheak(stage)){
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
Globals.girlCurrentConfiguration.leftSticker = _colorIndex;
stage.dispatchEvent(new Event("UPDATEGIRL"));
restoreOriginal();
Mouse.show();
} else {
if (CommonStuff.isMouseCloseToRightCheak(stage)){
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
Globals.girlCurrentConfiguration.rightSticker = _colorIndex;
stage.dispatchEvent(new Event("UPDATEGIRL"));
restoreOriginal();
Mouse.show();
} else {
stopDragging();
};
};
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
}
function frame1(){
stop();
}
public function startDragging():void{
if (!_dragging){
new take().play();
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
_dragging = true;
shadow_mc.visible = false;
Mouse.hide();
};
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Point;
_bst = (_bst + 0.05);
if (_bst >= 1){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
restoreOriginal();
} else {
_local2 = _bs.getValue(_bst);
x = _local2.x;
y = _local2.y;
};
}
private function onMouseDown(_arg1:MouseEvent):void{
startDragging();
}
private function stopDragging():void{
if (_dragging){
new leave().play();
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
_bs = new BezierSegment(new Point(x, y), new Point(x, (y - 100)), new Point(_originalPos.x, (_originalPos.y - 50)), _originalPos);
_bst = 0;
_dragging = false;
Mouse.show();
};
}
private function onMouseMove(_arg1:MouseEvent):void{
x = parent.mouseX;
y = parent.mouseY;
_arg1.updateAfterEvent();
}
private function restoreOriginal():void{
x = _originalPos.x;
y = _originalPos.y;
shadow_mc.visible = true;
_dragging = false;
}
}
}//package
Section 127
//StickerBox (StickerBox)
package {
import flash.display.*;
import flash.events.*;
public class StickerBox extends MovieClip {
public var sticker2_mc:Sticker;
public var sticker1_mc:Sticker;
public var sticker5_mc:Sticker;
public var sticker4_mc:Sticker;
public var sticker3_mc:Sticker;
public function StickerBox(){
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage, false, 0, true);
}
private function onMouseDown(_arg1:MouseEvent):void{
if ((((_arg1.target.name == "stickersRight_mc")) && (!((_arg1.target.currentFrame == 6))))){
startDraggingSticker(int(_arg1.target.currentFrame));
Globals.girlCurrentConfiguration.rightSticker = 6;
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
if ((((_arg1.target.name == "stickersLeft_mc")) && (!((_arg1.target.currentFrame == 6))))){
startDraggingSticker(int(_arg1.target.currentFrame));
Globals.girlCurrentConfiguration.leftSticker = 6;
stage.dispatchEvent(new Event("UPDATEGIRL"));
};
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
}
private function onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemovedFromStage);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
}
private function startDraggingSticker(_arg1:int):void{
var _local2:Sticker = Sticker(this.getChildByName((("sticker" + _arg1) + "_mc")));
_local2.startDragging();
}
}
}//package
Section 128
//take (take)
package {
import flash.media.*;
public dynamic class take extends Sound {
}
}//package
Section 129
//Transition (Transition)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.filters.*;
public class Transition extends Bitmap {
private var _timer:Timer;
private var _transitionIndex:int;// = 0
public function Transition(_arg1:DisplayObject){
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
bitmapData = new BitmapData(700, 450, true);
bitmapData.draw(_arg1, null, null, null, new Rectangle(0, 0, 700, 450));
}
private function onAddedToStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
_timer = new Timer(90, 20);
_timer.addEventListener(TimerEvent.TIMER, onTick, false, 0, true);
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
_timer.start();
}
private function onTick(_arg1:TimerEvent):void{
var _local2 = 100;
var _local3:Array = new Array();
_local3 = _local3.concat([1.3, 0, 0, 0, 0]);
_local3 = _local3.concat([0, 1.3, 0, 0, 0]);
_local3 = _local3.concat([0, 0, 1.3, 0, 0]);
_local3 = _local3.concat([0, 0, 0, 0.7, 0]);
var _local4:ColorMatrixFilter = new ColorMatrixFilter(_local3);
bitmapData.applyFilter(bitmapData, new Rectangle(0, 0, 700, 450), new Point(0, 0), _local4);
}
private function onComplete(_arg1:TimerEvent):void{
dispose();
}
public function dispose():void{
try {
_timer.removeEventListener(TimerEvent.TIMER, onTick);
_timer.removeEventListener(TimerEvent.TIMER_COMPLETE, onComplete);
_timer.stop();
_timer = null;
bitmapData.dispose();
parent.removeChild(this);
} catch(e:Error) {
};
delete ??getglobalscope
[this];
}
}
}//package
Section 130
//Translation (Translation)
package {
public class Translation {
public static var data:XML = <ROOT>
<translation language="us">
<node tag="partnerURL" text="http://www.ubi.com"/>
<node tag="MochiTrackingCode" text="5501dfd9"/>
<node tag="buyNowLinkMochiTracking" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="buyNowLink" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="visitOurSiteLink" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="visitOurSiteLinkMochiTracking" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="clickToContinue_btn" text="Click to continue"/>
<node tag="welcome_txt" text="Welcome!"/>
<node tag="ok_btn" text="Okay"/>
<node tag="enterName_txt" text="Enter your name"/>
<node tag="enterYourNameIntro_txt" text="Makeovers are a fun way to play with your style and try out some cool new looks. Ready to start?"/>
<node tag="freePlay_btn" text="Free Play"/>
<node tag="makeOverFriends_btn" text="Makeover Friends"/>
<node tag="chooseGamePlay_txt" text="What do you want to do today? Makeover yourself for fun or earn points by making over your friends?"/>
<node tag="startGame1" text="Quick! Your friend Jenna is going to the school dance and wants to look like her favorite movie star. Can you help? Look carefully at the photo and then try to make her over as quick as possible."/>
<node tag="startGame2" text="Your best bud Brittany has a date with the cute guy in her math class and wants your help getting ready! Take this picture you found in a fashion magazine and do her makeup just like it."/>
<node tag="startGame3" text="Today is the first day of school and your friend Lisa wants a cool new hairstyle. Copy this picture to give her a whole new 'do."/>
<node tag="startFreePlay" text="In free play mode you can try out tons of new styles without worrying about time or points."/>
<node tag="face_btn" text="Face"/>
<node tag="hair_btn" text="Hair"/>
<node tag="makeup_btn" text="Makeup"/>
<node tag="mainMenu_btn" text="Main Menu"/>
<node tag="done_btn" text="Done"/>
<node tag="memorize_txt" text="Memorize the picture!"/>
<node tag="timeLeft_txt" text="Time left:"/>
<node tag="score_txt" text="Score:"/>
<node tag="peek_btn" text="Sneak peek"/>
<node tag="lostTitle_txt" text="Not that good!"/>
<node tag="lostAccuracyTooLow_txt" text="Try to be a little more accurate."/>
<node tag="lostMainMenu_btn" text="Main Menu"/>
<node tag="lostTryAgain_btn" text="Try again"/>
<node tag="winLostAccuracy_txt" text="Accuracy:"/>
<node tag="winPoints_txt" text="Points:"/>
<node tag="winTime_txt" text="Time:"/>
<node tag="winBonus_txt" text="Bonus:"/>
<node tag="winProceed_btn" text="Proceed"/>
<node tag="winMessage_txt" text="Well done!"/>
<node tag="wrongHairAccesory" text="The hair accessories are not very well chosen."/>
<node tag="wrongHairColor" text="The hair color is different."/>
<node tag="wrongHairLength" text="The hair length is wrong."/>
<node tag="wrongHairStyle" text="The hair style is not correct."/>
<node tag="wrongMascaraAlpha" text="The mascara is not applied well enough"/>
<node tag="wrongMascaraColor" text="The mascara looks different."/>
<node tag="wrongLipstickAlpha" text="The lipstick is not applied well enough."/>
<node tag="wrongLipstickColor" text="The lipstick color is not the same."/>
<node tag="wrongEyeShadowAlpha" text="The eye shadow is not applied well enough"/>
<node tag="wrongEyeShadowColor" text="The eye shadow color is wrong"/>
<node tag="wrongBlushAlpha" text="The blush is not applied well enough"/>
<node tag="wrongBlushColor" text="That's the wrong blush color"/>
<node tag="wrongStickers" text="The stickers are not correctly placed."/>
<node tag="wrongHeadShape" text="The face shape is not accurate."/>
<node tag="wrongEyeColor" text="The eye color is not the same."/>
<node tag="wrongEyeShape" text="The shape of the eye is not correct."/>
<node tag="wrongNoseShape" text="The shape of the nose is different."/>
<node tag="wrongMouthShape" text="The mouth shape is wrong."/>
<node tag="wrongBrowShape" text="The eyebrows don't look right."/>
<node tag="wrongBrowColor" text="The eyebrow color is wrong"/>
<node tag="packShot_txt" text="If you enjoyed this online game, be sure to check out the new Style Lab Makeover videogame!"/>
<node tag="tryAgain_btn" text="Try Again"/>
<node tag="buyNow_btn" text="Buy Now"/>
<node tag="submitScore" text="Submit Score"/>
<node tag="visitWeb" text="Visit Our Website"/>
<node tag="send" text="Send"/>
<node tag="WellDone1" text="Well done! You look great!"/>
<node tag="WellDone2" text="Great job! You look fabulous!"/>
<node tag="WellDone3" text="Nice work! You look gorgeous!"/>
<node tag="WellDone4" text="Good job! You look fantastic!"/>
<node tag="legal_txt" text="(C) 2009 Ubisoft Entertainment. All Rights Reserved. Style Lab, Ubisoft, Ubi.com, and the Ubisoft logo are trademarks of Ubisoft Entertainment in the U.S. and/or other countries."/>
<node tag="emailMessage_txt" text="Write the email address of a good friend and we will send her a picture!"/>
<node tag="send_btn" text="Send"/>
<node tag="close_btn" text="Close"/>
<node tag="mailInvalidAddress" text="Invalid email address!"/>
<node tag="mailSending" text="Sending message..."/>
<node tag="mailSendError" text="Picture could not be sent :-("/>
<node tag="mailSent" text="Your picture has been sent!"/>
<node tag="levelName1" text="Party Perfect"/>
<node tag="levelName2" text="Pearlessence"/>
<node tag="levelName3" text="Dorothy in Kansas"/>
<node tag="levelName4" text="New Wave"/>
<node tag="levelName5" text="Fresh Beauty"/>
<node tag="levelName6" text="Celebrity Style"/>
<node tag="levelName7" text="Golden Glow"/>
<node tag="levelName8" text="Sporty Sparkles"/>
<node tag="levelName9" text="Day at the Beach"/>
<node tag="levelName10" text="Butterfly Dream"/>
</translation>
<translation language="uk">
<node tag="partnerURL" text="http://www.ubi.com"/>
<node tag="MochiTrackingCode" text="0fe6faa2"/>
<node tag="buyNowLinkMochiTracking" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="buyNowLink" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="visitOurSiteLink" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="visitOurSiteLinkMochiTracking" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="clickToContinue_btn" text="Click to continue"/>
<node tag="welcome_txt" text="Welcome!"/>
<node tag="ok_btn" text="Okay"/>
<node tag="enterName_txt" text="Enter your name"/>
<node tag="enterYourNameIntro_txt" text="Ready for your makeover? We’re here to make you look your absolute best. Follow these rules, and you’ll definitely get the most out of this experience. Let’s go!"/>
<node tag="freePlay_btn" text="Free Play"/>
<node tag="makeOverFriends_btn" text="Makeover Friends"/>
<node tag="chooseGamePlay_txt" text="What do you fancy today? Do you want to freely try out some styles or do you want to help out your friends by making them look good and earn points?"/>
<node tag="startGame1" text="Hello gorgeous! Do you want a special Makeover to make you look like your favourite movie star? Well, let's look carefully at the photo and then we'll try to make you just as glamorous as she is."/>
<node tag="startGame2" text="You've got a date with the most good looking guy in maths class? Cool! We’re going to get you looking great for the occasion. Come and see this picture I found in a fashion magazine and we will do your make-up exactly the same."/>
<node tag="startGame3" text="Today is your first day of school! It’s a special day so everybody wants to look their best. Let's get you a beautiful new hair-do. I've seen a hairstyle in a magazine that would look fab on you."/>
<node tag="startFreePlay" text="In free play mode you can freely apply make-up however you like. Have fun and make yourself look pretty without worrying about time or points."/>
<node tag="face_btn" text="Face"/>
<node tag="hair_btn" text="Hair"/>
<node tag="makeup_btn" text="Makeup"/>
<node tag="mainMenu_btn" text="Main Menu"/>
<node tag="done_btn" text="Done"/>
<node tag="memorize_txt" text="Memorise the picture!"/>
<node tag="timeLeft_txt" text="Time left:"/>
<node tag="score_txt" text="Score:"/>
<node tag="peek_btn" text="Sneak peek"/>
<node tag="lostTitle_txt" text="Not that good!"/>
<node tag="lostAccuracyTooLow_txt" text="Try to be a little more accurate."/>
<node tag="lostMainMenu_btn" text="Main Menu"/>
<node tag="lostTryAgain_btn" text="Try again"/>
<node tag="winLostAccuracy_txt" text="Accuracy:"/>
<node tag="winPoints_txt" text="Points:"/>
<node tag="winTime_txt" text="Time:"/>
<node tag="winBonus_txt" text="Bonus:"/>
<node tag="winProceed_btn" text="Continue"/>
<node tag="winMessage_txt" text="Well done!"/>
<node tag="wrongHairAccesory" text="The hair accessories are not very well chosen."/>
<node tag="wrongHairColor" text="The hair color is different."/>
<node tag="wrongHairLength" text="The hair length is wrong."/>
<node tag="wrongHairStyle" text="The hair style is not correct."/>
<node tag="wrongMascaraAlpha" text="The mascara is not applied well enough"/>
<node tag="wrongMascaraColor" text="The mascara looks different."/>
<node tag="wrongLipstickAlpha" text="The lipstick is not applied well enough."/>
<node tag="wrongLipstickColor" text="The lipstick color is not the same."/>
<node tag="wrongEyeShadowAlpha" text="The eye shadow is not applied well enough"/>
<node tag="wrongEyeShadowColor" text="The eye shadow color is wrong"/>
<node tag="wrongBlushAlpha" text="The blush is not applied well enough"/>
<node tag="wrongBlushColor" text="That's the wrong blush color"/>
<node tag="wrongStickers" text="The stickers are not correctly placed."/>
<node tag="wrongHeadShape" text="The face shape is not accurate."/>
<node tag="wrongEyeColor" text="The eye color is not the same."/>
<node tag="wrongEyeShape" text="The shape of the eye is not correct."/>
<node tag="wrongNoseShape" text="The shape of the nose is different."/>
<node tag="wrongMouthShape" text="The mouth shape is wrong."/>
<node tag="wrongBrowShape" text="The eyebrows don't look right."/>
<node tag="wrongBrowColor" text="The eyebrow color is wrong"/>
<node tag="packShot_txt" text="If you enjoyed this online game, be sure to check out the new Style Lab Makeover videogame!"/>
<node tag="tryAgain_btn" text="Try Again"/>
<node tag="buyNow_btn" text="Sign up"/>
<node tag="submitScore" text="Submit Score"/>
<node tag="visitWeb" text="Visit Our Website"/>
<node tag="send" text="Send"/>
<node tag="WellDone1" text="Well done! You look great!"/>
<node tag="WellDone2" text="Great job! You look fabulous!"/>
<node tag="WellDone3" text="Nice work! You look gorgeous!"/>
<node tag="WellDone4" text="Good job! You look fantastic!"/>
<node tag="legal_txt" text="(C) 2009 Ubisoft Entertainment. All Rights Reserved. Style Lab, Ubisoft, Ubi.com, and the Ubisoft logo are trademarks of Ubisoft Entertainment in the U.S. and/or other countries."/>
<node tag="emailMessage_txt" text="Write the email address of a good friend and we will send her a picture!"/>
<node tag="send_btn" text="Send"/>
<node tag="close_btn" text="Close"/>
<node tag="mailInvalidAddress" text="Invalid email address!"/>
<node tag="mailSending" text="Sending message..."/>
<node tag="mailSendError" text="Picture could not be sent :-("/>
<node tag="mailSent" text="Your picture has been sent!"/>
<node tag="levelName1" text="Party Perfect"/>
<node tag="levelName2" text="Pearlessence"/>
<node tag="levelName3" text="Dorothy in Kansas"/>
<node tag="levelName4" text="New Wave"/>
<node tag="levelName5" text="Fresh Beauty"/>
<node tag="levelName6" text="Celebrity Style"/>
<node tag="levelName7" text="Golden Glow"/>
<node tag="levelName8" text="Sporty Sparkles"/>
<node tag="levelName9" text="Day at the Beach"/>
<node tag="levelName10" text="Butterfly Dream"/>
</translation>
<translation language="es">
<node tag="partnerURL" text="http://www.ubi.com"/>
<node tag="MochiTrackingCode" text="fad9cdad"/>
<node tag="buyNowLinkMochiTracking" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="buyNowLink" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="visitOurSiteLink" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="visitOurSiteLinkMochiTracking" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="clickToContinue_btn" text="Pulsa para continuar"></node>
<node tag="welcome_txt" text="¡Bienvenida!"/>
<node tag="ok_btn" text="Aceptar"/>
<node tag="enterYourNameIntro_txt" text="¿Lista para maquillarte? Vamos a conseguir estés absolutamente radiante. Sigue estas las indicaciones y te verás fantástica."/>
<node tag="freePlay_btn" text="Juego libre"/>
<node tag="makeOverFriends_btn" text="Amigas de maquillaje"/>
<node tag="chooseGamePlay_txt" text="¿Cómo te sientes hoy? ¿Te apetece probar nuevos estilos, o quieres ayudar a tus amigas para que tengan un aspecto increíble y así ganar puntos?"></node>
<node tag="startGame1" text="¡Hola, guapa! ¿Quieres que utilice un maquillaje especial para que te parezcas a tu estrella de cine favorita? Bien, pues veamos la foto e intentemos ponerte tan guapa como ella."/>
<node tag="startGame2" text="¿Has quedado con el chico más guapo de clase? ¡Genial! ¡Vamos a ponerte guapa para la ocasión! Te enseñaré la foto que he encontrado en una revista de moda: vamos a maquillarte igual."/>
<node tag="startGame3" text="Hoy es tu primer día de clase, y ya se sabe que todo el mundo se pone guapísimo para dar una buena impresión. Hagamos algo con tu pelo, he visto un peinado en una revista que te sentará fenomenal."/>
<node tag="startFreePlay" text="En el juego libre puedes utilizar el maquillaje que quieras. Diviértete y ponte guapa sin preocuparte por el tiempo o por los puntos."/>
<node tag="face_btn" text="Cara"/>
<node tag="hair_btn" text="Pelo"/>
<node tag="makeup_btn" text="Maquillaje"/>
<node tag="mainMenu_btn" text="Menú principal"/>
<node tag="done_btn" text="Continuar"/>
<node tag="memorize_txt" text="Memoriza la foto"/>
<node tag="timeLeft_txt" text="Tiempo restante:"/>
<node tag="score_txt" text="Puntuación:"/>
<node tag="peek_btn" text="Mirar"/>
<node tag="lostTitle_txt" text="Podría estar mejor"/>
<node tag="lostAccuracyTooLow_txt" text="La precisión es muy baja para salir."/>
<node tag="lostMainMenu_btn" text="Main Menu"/>
<node tag="lostTryAgain_btn" text="Inténtalo de nuevo"/>
<node tag="winLostAccuracy_txt" text="Precisión:"/>
<node tag="winPoints_txt" text="Puntos:"/>
<node tag="winTime_txt" text="Tiempo:"/>
<node tag="winBonus_txt" text="Bonus:"/>
<node tag="winProceed_btn" text="Continuar"/>
<node tag="winMessage_txt" text="Bien hecho"/>
<node tag="wrongHairAccesory" text="Los accesorios del pelo no están bien elegidos."/>
<node tag="wrongHairColor" text="El color de pelo es diferente."/>
<node tag="wrongHairLength" text="El largo del cabello está equivocado."/>
<node tag="wrongHairStyle" text="El estilo del peinado no es correcto."/>
<node tag="wrongMascaraAlpha" text="The mascara is not applied well enough"/>
<node tag="wrongMascaraColor" text=" El rimel es diferente."/>
<node tag="wrongLipstickAlpha" text="El pintalabios no está bien puesto"/>
<node tag="wrongLipstickColor" text="El color del pintalabios no es el mismo."/>
<node tag="wrongEyeShadowAlpha" text="The eye shadow is not applied well enough"/>
<node tag="wrongEyeShadowColor" text="La sombra de ojos está mal."/>
<node tag="wrongBlushAlpha" text="The blush is not applied well enough"/>
<node tag="wrongBlushColor" text="El color de sombra no es el adecuado."/>
<node tag="wrongStickers" text="Las pegatinas no están bien puestas."/>
<node tag="wrongHeadShape" text="La forma de la cara no es adecuada."/>
<node tag="wrongEyeColor" text="El color de ojos no es el mismo."/>
<node tag="wrongEyeShape" text="La forma del ojo no es correcta."/>
<node tag="wrongNoseShape" text="La forma de la nariz es diferente."/>
<node tag="wrongMouthShape" text="La forma de la boca está mal"/>
<node tag="wrongBrowShape" text="Las cejas no están bien."/>
<node tag="wrongBrowColor" text="The eyebrow color is wrong"/>
<node tag="packShot_txt" text="¡Si te ha gustado este juego online, prueba el juego Girls Life™ Crea tu look!"/>
<node tag="tryAgain_btn" text="Inténtalo de nuevo"/>
<node tag="buyNow_btn" text="Registrarse"/>
<node tag="submitScore" text="Submit Score"/>
<node tag="visitWeb" text="Más en portales Imagina ser"/>
<node tag="send" text="Enviar"/>
<node tag="WellDone1" text="¡Bien hecho! ¡Estás genial!"/>
<node tag="WellDone2" text="¡Buen trabajo! ¡Estás increíble!"/>
<node tag="WellDone3" text="¡Conseguido! ¡Estás guapísima!"/>
<node tag="WellDone4" text="¡Buen trabajo! ¡Estás increíble!"/>
<node tag="legal_txt" text="(C) 2009 Ubisoft Entertainment. All Rights Reserved. Style Lab, Ubisoft, Ubi.com, and the Ubisoft logo are trademarks of Ubisoft Entertainment in the U.S. and/or other countries."/>
<node tag="emailMessage_txt" text="¡Escribe el email de una buena amiga y le manderemos una foto!"/>
<node tag="send_btn" text="Enviar"/>
<node tag="close_btn" text="Cerrar"/>
<node tag="mailInvalidAddress" text="Email incorrecto"/>
<node tag="mailSending" text="Sending message..."/>
<node tag="mailSendError" text="Picture could not be sent :-("/>
<node tag="mailSent" text="Your picture has been sent!"/>
<node tag="levelName1" text="Fiesta Perfecta"/>
<node tag="levelName2" text="Efecto Perla"/>
<node tag="levelName3" text="Dorothy en Kansas"/>
<node tag="levelName4" text="Nueva Honda"/>
<node tag="levelName5" text="Belleza Natural"/>
<node tag="levelName6" text="Estilo de famosa"/>
<node tag="levelName7" text="Dorado Resplandeciente"/>
<node tag="levelName8" text="Deportivo Brillante"/>
<node tag="levelName9" text="Día en la playa"/>
<node tag="levelName10" text="Sueño de mariposa"/>
</translation>
<translation language="de">
<node tag="partnerURL" text="http://www.ubi.com"/>
<node tag="MochiTrackingCode" text="8c3a57a1"/>
<node tag="buyNowLinkMochiTracking" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="buyNowLink" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="visitOurSiteLink" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="visitOurSiteLinkMochiTracking" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="clickToContinue_btn" text="Klicken, um fortzufahren"/>
<node tag="welcome_txt" text="Willkommen!"/>
<node tag="ok_btn" text="Okay"/>
<node tag="enterYourNameIntro_txt" text="Bist du bereit für dein Styling? Wir sind hier, damit du so gut aussiehst wie nie zuvor. Halte dich an diese Regeln, dann kannst du das Optimum aus dieser Erfahrung rausholen. Also los!"/>
<node tag="freePlay_btn" text="Freies Spiel"/>
<node tag="makeOverFriends_btn" text="Freundinnen stylen"/>
<node tag="chooseGamePlay_txt" text="Worauf hast du heute Lust? Möchtest du frei spielen und ein paar Styles ausprobieren oder lieber deinen Freundinnen helfen gut auszusehen und dafür Punkte kassieren?"/>
<node tag="startGame1" text="Hallo, meine Hübsche! Soll ich mein Spezial-Make-up auftragen, damit du wie dein Lieblings-Filmstar aussiehst? Sehen wir uns doch mal das Foto an und dann probieren wir, dich so hübsch wie sie aussehen zu lassen."/>
<node tag="startGame2" text="Du hast ein Date mit dem niedlichen Jungen aus dem Mathekurs? Cool! Wir werden dich für diesen Anlass aufhübschen. Sieh dir mal das Foto an, das ich in einer Modezeitschrift gefunden habe. Wir werden dir jetzt das gleiche Make-up verpassen."/>
<node tag="startGame3" text="Heute ist dein erster Schultag! Das ist ein ganz besonderer Tag, an dem jeder toll aussehen sollte. Nehmen wir uns jetzt deine Haare vor. Ich habe in einer Modezeitschrift eine Frisur gesehen, die dir super stehen würde."/>
<node tag="startFreePlay" text="Im Modus 'Freies Spiel' kannst du das Make-up nach Belieben auftragen. Hab Spaß und mach dich hübsch, ohne dir über Zeit oder Punkte Gedanken zu machen."/>
<node tag="face_btn" text="Gesicht"/>
<node tag="hair_btn" text="Haare"/>
<node tag="makeup_btn" text="Make-up"/>
<node tag="mainMenu_btn" text="Hauptmenü"/>
<node tag="done_btn" text="Fertig"/>
<node tag="memorize_txt" text="Merke dir das Bild!"/>
<node tag="timeLeft_txt" text="Restliche Zeit:"/>
<node tag="score_txt" text="Punkte:"/>
<node tag="peek_btn" text="Vorschau"/>
<node tag="lostTitle_txt" text="Nicht so gut!"/>
<node tag="lostAccuracyTooLow_txt" text="Genauigkeit ist zu niedrig, um fortzufahren"/>
<node tag="lostMainMenu_btn" text="Main Menu"/>
<node tag="lostTryAgain_btn" text="Noch mal probieren"/>
<node tag="winLostAccuracy_txt" text="Genauigkeit:"/>
<node tag="winPoints_txt" text="Punkte:"/>
<node tag="winTime_txt" text="Zeit:"/>
<node tag="winBonus_txt" text="Bonus:"/>
<node tag="winProceed_btn" text="Fortfahren"/>
<node tag="winMessage_txt" text="Gut gemacht!"/>
<node tag="wrongHairAccesory" text="Die Accessoires fürs Haar sind nicht gut gewählt."/>
<node tag="wrongHairColor" text="Die Haare haben eine andere Farbe."/>
<node tag="wrongHairLength" text="Die Haarlänge stimmt nicht."/>
<node tag="wrongHairStyle" text="Die Frisur ist falsch."/>
<node tag="wrongMascaraAlpha" text="The mascara is not applied well enough"/>
<node tag="wrongMascaraColor" text="Die Mascara ist anders."/>
<node tag="wrongLipstickAlpha" text="Der Lippenstift wurde nicht gut genug aufgetragen"/>
<node tag="wrongLipstickColor" text="Der Lippenstift hat die falsche Farbe."/>
<node tag="wrongEyeShadowAlpha" text="The eye shadow is not applied well enough"/>
<node tag="wrongEyeShadowColor" text="Der Lidschatten ist falsch."/>
<node tag="wrongBlushAlpha" text="The blush is not applied well enough"/>
<node tag="wrongBlushColor" text="Die Rougefarbe stimmt nicht."/>
<node tag="wrongStickers" text="Die Sticker sind falsch gesetzt."/>
<node tag="wrongHeadShape" text="Die Gesichtsform stimmt nicht."/>
<node tag="wrongEyeColor" text="Die Augen haben unterschiedliche Farben."/>
<node tag="wrongEyeShape" text="Die Augenform ist nicht korrekt."/>
<node tag="wrongNoseShape" text="Die Nase hat eine andere Form."/>
<node tag="wrongMouthShape" text="Die Form des Mundes ist falsch."/>
<node tag="wrongBrowShape" text="Die Augenbrauen sehen nicht gut aus."/>
<node tag="wrongBrowColor" text="The eyebrow color is wrong"/>
<node tag="packShot_txt" text="Wenn dir dieses Onlinespiel Spaß gemacht hat, wird dir sicher auch das neue Spiel Girls Life Perfekt gestylt gefallen!"/>
<node tag="tryAgain_btn" text="Noch mal probieren"/>
<node tag="buyNow_btn" text="Anmelden"/>
<node tag="submitScore" text="Submit Score"/>
<node tag="visitWeb" text="Mehr auf dem Sophies Freunde-Portal"/>
<node tag="send" text="Senden"/>
<node tag="WellDone1" text="Gut gemacht! Du siehst toll aus!"/>
<node tag="WellDone2" text="Klasse! Du siehst richtig gut aus!"/>
<node tag="WellDone3" text="Bravo! Du siehst umwerfend aus!"/>
<node tag="WellDone4" text="Großartig! Du siehst fantastisch aus!"/>
<node tag="legal_txt" text="(C) 2009 Ubisoft Entertainment. All Rights Reserved. Style Lab, Ubisoft, Ubi.com, and the Ubisoft logo are trademarks of Ubisoft Entertainment in the U.S. and/or other countries."/>
<node tag="emailMessage_txt" text="Gib die E-Mail Adresse deiner besten Freundin ein und wir schicken ihr ein Bild."/>
<node tag="send_btn" text="Senden"/>
<node tag="close_btn" text="Schließen"/>
<node tag="mailInvalidAddress" text="Falsche E-Mail Adresse!"/>
<node tag="mailSending" text="Sending message..."/>
<node tag="mailSendError" text="Picture could not be sent :-("/>
<node tag="mailSent" text="Your picture has been sent!"/>
<node tag="levelName1" text="Party-Laune"/>
<node tag="levelName2" text="Perlenschimmer"/>
<node tag="levelName3" text="Mädchen vom Lande"/>
<node tag="levelName4" text="New Wave"/>
<node tag="levelName5" text="Kesse Schönheit"/>
<node tag="levelName6" text="Glamour-Star"/>
<node tag="levelName7" text="Goldener Glanz"/>
<node tag="levelName8" text="Sportlich frech"/>
<node tag="levelName9" text="Strandtag"/>
<node tag="levelName10" text="Strandtag"/>
</translation>
<translation language="it">
<node tag="partnerURL" text="http://www.ubi.com"/>
<node tag="MochiTrackingCode" text="101f53a9"/>
<node tag="buyNowLinkMochiTracking" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="buyNowLink" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="visitOurSiteLink" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="visitOurSiteLinkMochiTracking" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="clickToContinue_btn" text="Clicca per continuare"/>
<node tag="welcome_txt" text="Benvenuta!"/>
<node tag="ok_btn" text="OK"/>
<node tag="enterName_txt" text="Enter your name"/>
<node tag="enterYourNameIntro_txt" text="Sei pronta a truccarti? Siamo qui per aiutarti a farti bella! Segui le istruzioni e di certo ti divertirai un mondo. Avanti!"/>
<node tag="freePlay_btn" text="Gioco libero"/>
<node tag="makeOverFriends_btn" text="Amiche di Glamour Look"/>
<node tag="chooseGamePlay_txt" text="Cosa ti va di fare oggi? Vuoi essere libera di sperimentare nuovi stili o preferisci aiutare le tue amiche a farsi belle, guadagnando dei punti?"/>
<node tag="startGame1" text="Ciao splendore! Vuoi che usi un pizzico del mio Glamour Look per farti assomigliare alla tua star del cinema preferita? Bene, allora guardiamo attentamente la foto e poi proviamo a farti diventare bella come lei."/>
<node tag="startGame2" text="Hai un appuntamento con il ragazzo più carino della classe? Ma è fantastico! Allora bisogna farsi belle per l'occasione. Vieni a vedere la foto che ho trovato su una rivista di moda e proviamo a riprodurre questo trucco."/>
<node tag="startGame3" text="Oggi è il primo giorno di scuola! È un giorno speciale, e tutte vogliono sembrare carine. Pensiamo ad un'acconciatura adatta. Ne ho vista una su una rivista di moda che ti starebbe benissimo."/>
<node tag="startFreePlay" text="Nella modalità gioco libero puoi truccarti secondo il tuo gusto. Divertiti a farti bella, senza preoccuparti del tempo o dei punti."/>
<node tag="face_btn" text="Viso"/>
<node tag="hair_btn" text="Capelli"/>
<node tag="makeup_btn" text="Trucco"/>
<node tag="mainMenu_btn" text="Menu principale"/>
<node tag="done_btn" text="Fatto"/>
<node tag="memorize_txt" text="Memorizza l'immagine!"/>
<node tag="timeLeft_txt" text="Tempo rimasto:"/>
<node tag="score_txt" text="Punti:"/>
<node tag="peek_btn" text="Diamo un'occhiata"/>
<node tag="lostTitle_txt" text="Non va bene!"/>
<node tag="lostAccuracyTooLow_txt" text="Livello di accuratezza troppo basso per procedere"/>
<node tag="lostMainMenu_btn" text="Main Menu"/>
<node tag="lostTryAgain_btn" text="Riprova"/>
<node tag="winLostAccuracy_txt" text="Accuratezza:"/>
<node tag="winPoints_txt" text="Punti:"/>
<node tag="winTime_txt" text="Tempo:"/>
<node tag="winBonus_txt" text="Bonus:"/>
<node tag="winProceed_btn" text="Procedi"/>
<node tag="winMessage_txt" text="Ben fatto"/>
<node tag="wrongHairAccesory" text="Gli accessori per capelli non sono stati scelti correttamente."/>
<node tag="wrongHairColor" text="Il colore dei capelli è diverso."/>
<node tag="wrongHairLength" text="La lunghezza dei capelli è sbagliata."/>
<node tag="wrongHairStyle" text="L'acconciatura non è giusta."/>
<node tag="wrongMascaraAlpha" text="The mascara is not applied well enough"/>
<node tag="wrongMascaraColor" text="Il mascara è diverso."/>
<node tag="wrongLipstickAlpha" text="Il rossetto non è messo bene."/>
<node tag="wrongLipstickColor" text="Il colore del rossetto non è lo stesso."/>
<node tag="wrongEyeShadowAlpha" text="The eye shadow is not applied well enough"/>
<node tag="wrongEyeShadowColor" text="L'ombretto è sbagliato."/>
<node tag="wrongBlushAlpha" text="The blush is not applied well enough"/>
<node tag="wrongBlushColor" text="Il colore del fard non è giusto."/>
<node tag="wrongStickers" text="Gli adesivi non sono nel posto giusto."/>
<node tag="wrongHeadShape" text="La forma del viso non è giusta."/>
<node tag="wrongEyeColor" text="Il colore degli occhi non è lo stesso."/>
<node tag="wrongEyeShape" text="La forma dell'occhio è sbagliata."/>
<node tag="wrongNoseShape" text="La forma del naso è diversa."/>
<node tag="wrongMouthShape" text="La forma della bocca è sbagliata."/>
<node tag="wrongBrowShape" text="Le sopracciglia non vanno bene."/>
<node tag="wrongBrowColor" text="The eyebrow color is wrong"/>
<node tag="packShot_txt" text="Se questo gioco online ti è piaciuto, prova il nuovo videogioco Girls Life™ Glamour Look!"/>
<node tag="tryAgain_btn" text="Riprova"/>
<node tag="buyNow_btn" text="Iscriviti"/>
<node tag="submitScore" text="Submit Score"/>
<node tag="visitWeb" text="Visita il sito Internet"/>
<node tag="send" text="Invia"/>
<node tag="WellDone1" text="Ben fatto! Sei bellissima!"/>
<node tag="WellDone2" text="Gran lavoro! Il tuo look è favoloso!"/>
<node tag="WellDone3" text="Bel lavoro! Sei davvero carina!"/>
<node tag="WellDone4" text="Buon lavoro! Sei fantastica!"/>
<node tag="legal_txt" text="(C) 2009 Ubisoft Entertainment. All Rights Reserved. Style Lab, Ubisoft, Ubi.com, and the Ubisoft logo are trademarks of Ubisoft Entertainment in the U.S. and/or other countries."/>
<node tag="emailMessage_txt" text="Inserisci la mail di una tua cara e inviale una foto!"/>
<node tag="send_btn" text="Invia"/>
<node tag="close_btn" text="Chiudi"/>
<node tag="mailInvalidAddress" text="Indirizzo mail non valido!"/>
<node tag="mailSending" text="Sending message..."/>
<node tag="mailSendError" text="Picture could not be sent :-("/>
<node tag="mailSent" text="Your picture has been sent!"/>
<node tag="levelName1" text="Regina del Party"/>
<node tag="levelName2" text="Fragranza di Perla"/>
<node tag="levelName3" text="Dorothy in Kansas"/>
<node tag="levelName4" text="New Style"/>
<node tag="levelName5" text="Look Fresco"/>
<node tag="levelName6" text="Celebrity Style"/>
<node tag="levelName7" text="Riflessi d'oro"/>
<node tag="levelName8" text="Brio Sportivo"/>
<node tag="levelName9" text="Look Estivo"/>
<node tag="levelName10" text="Farfalla Incantevole"/>
</translation>
<translation language="nl">
<node tag="partnerURL" text="http://www.ubi.com"/>
<node tag="MochiTrackingCode" text="6f24257f"/>
<node tag="buyNowLinkMochiTracking" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="buyNowLink" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="visitOurSiteLink" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="visitOurSiteLinkMochiTracking" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="clickToContinue_btn" text="Doorgaan"/>
<node tag="welcome_txt" text="Welkom!"/>
<node tag="ok_btn" text="Oké"/>
<node tag="enterName_txt" text="Enter your name"/>
<node tag="enterYourNameIntro_txt" text="Klaar voor je make-over? We gaan je heel erg mooi maken. Volg deze regels, dan haal je alles eruit wat erin zit. We gaan aan de slag!"/>
<node tag="freePlay_btn" text="Vrij spelen"/>
<node tag="makeOverFriends_btn" text="Make-over geven"/>
<node tag="chooseGamePlay_txt" text="Wat wil je vandaag doen? Wil je wat stijlen uitproberen of wil je je vriendinnen een make-over geven en punten verdienen?"/>
<node tag="startGame1" text="Dag schoonheid! Heb je zin in mijn speciale make-over waardoor je eruit gaat zien als je favoriete filmster? Laten we eens goed naar de foto kijken. Daarna maken we je net zo mooi als zij."/>
<node tag="startGame2" text="Je hebt een date met de leukste jongen uit de klas! Wat tof! We gaan je helemaal mooi maken voor deze speciale gelegenheid. Kijk eens naar deze foto die ik heb gevonden in een modeblad! Jouw make-up gaat er net zo uitzien."/>
<node tag="startGame3" text="Je eerste schooldag staat voor de deur! Het is een speciale dag, dus iedereen wil er op zijn best uitzien. We gaan je een mooi kapsel geven. Ik heb iets gezien in een blad dat je vast heel goed staat."/>
<node tag="startFreePlay" text="In Vrij spelen kun je alle make-up uitproberen. Je hoeft je geen zorgen te maken over de tijd of punten en maakt gewoon relaxt plezier."/>
<node tag="face_btn" text="Gezicht"/>
<node tag="hair_btn" text="Haar"/>
<node tag="makeup_btn" text="Make-up"/>
<node tag="mainMenu_btn" text="Hoofdmenu"/>
<node tag="done_btn" text="Klaar"/>
<node tag="memorize_txt" text="Onthou de afbeelding!"/>
<node tag="timeLeft_txt" text="Resterende tijd:"/>
<node tag="score_txt" text="Score:"/>
<node tag="peek_btn" text="Voorproefje"/>
<node tag="lostTitle_txt" text="Niet zo goed!"/>
<node tag="lostAccuracyTooLow_txt" text="Niet nauwkeurig genoeg om door te gaan."/>
<node tag="lostMainMenu_btn" text="Main Menu"/>
<node tag="lostTryAgain_btn" text="Opnieuw"/>
<node tag="winLostAccuracy_txt" text="Nauwkeurigheid:"/>
<node tag="winPoints_txt" text="Punten:"/>
<node tag="winTime_txt" text="Tijd:"/>
<node tag="winBonus_txt" text="Bonus:"/>
<node tag="winProceed_btn" text="Doorgaan"/>
<node tag="winMessage_txt" text="Goed zo!"/>
<node tag="wrongHairAccesory" text="De haaraccessoires zijn niet goed gekozen."/>
<node tag="wrongHairColor" text="De haarkleur is anders."/>
<node tag="wrongHairLength" text="De haarlengte is verkeerd."/>
<node tag="wrongHairStyle" text="Het kapsel klopt niet."/>
<node tag="wrongMascaraAlpha" text="The mascara is not applied well enough"/>
<node tag="wrongMascaraColor" text="De mascara is anders."/>
<node tag="wrongLipstickAlpha" text="De lipstick is niet goed genoeg aangebracht."/>
<node tag="wrongLipstickColor" text="De lipkleur is niet hetzelfde."/>
<node tag="wrongEyeShadowAlpha" text="The eye shadow is not applied well enough"/>
<node tag="wrongEyeShadowColor" text="De oogschaduw is verkeerd."/>
<node tag="wrongBlushAlpha" text="The blush is not applied well enough"/>
<node tag="wrongBlushColor" text="De kleur van de rouge klopt niet."/>
<node tag="wrongStickers" text="De stickers zitten niet op de juiste plek."/>
<node tag="wrongHeadShape" text="De vorm van het gezicht klopt niet."/>
<node tag="wrongEyeColor" text="De oogkleur is niet hetzelfde."/>
<node tag="wrongEyeShape" text="De oogvorm verschilt."/>
<node tag="wrongNoseShape" text="De vorm van de neus is anders."/>
<node tag="wrongMouthShape" text="De vorm van de mond klopt niet."/>
<node tag="wrongBrowShape" text="De wenkbrauwen zien er niet goed uit."/>
<node tag="wrongBrowColor" text="The eyebrow color is wrong"/>
<node tag="packShot_txt" text="If you enjoyed this online game, be sure to check out the new Style Lab Makeover videogame!"/>
<node tag="tryAgain_btn" text="Opnieuw"/>
<node tag="buyNow_btn" text="Registreren"/>
<node tag="submitScore" text="Submit Score"/>
<node tag="visitWeb" text="Meer nieuws op de Laura's Passie website"/>
<node tag="send" text="Verzenden"/>
<node tag="WellDone1" text="Goed gedaan! Je ziet er fantastisch uit!"/>
<node tag="WellDone2" text="Mooi! Je ziet er geweldig uit!"/>
<node tag="WellDone3" text="Knap gedaan! Je bent oogverblindend!"/>
<node tag="WellDone4" text="Mooi hoor! Je ziet er waanzinnig uit!"/>
<node tag="legal_txt" text="(C) 2009 Ubisoft Entertainment. All Rights Reserved. Style Lab, Ubisoft, Ubi.com, and the Ubisoft logo are trademarks of Ubisoft Entertainment in the U.S. and/or other countries."/>
<node tag="emailMessage_txt" text="Vul het e-mailadres van een goede vriendin in en we sturen een foto naar haar op!"/>
<node tag="send_btn" text="Verzenden"/>
<node tag="close_btn" text="Afsluiten"/>
<node tag="mailInvalidAddress" text="Ongeldig e-mailadres!"/>
<node tag="mailSending" text="Sending message..."/>
<node tag="mailSendError" text="Picture could not be sent :-("/>
<node tag="mailSent" text="Your picture has been sent!"/>
<node tag="levelName1" text="Perfect voor een feestje"/>
<node tag="levelName2" text="Parelmoer"/>
<node tag="levelName3" text="Doortje in Kansas"/>
<node tag="levelName4" text="New Wave"/>
<node tag="levelName5" text="Frisse schoonheid"/>
<node tag="levelName6" text="Beroemdheid"/>
<node tag="levelName7" text="Gouden gloed"/>
<node tag="levelName8" text="Lekker sportief"/>
<node tag="levelName9" text="Dagje op 't strand"/>
<node tag="levelName10" text="Vlinderdroom"/>
</translation>
<translation language="fr">
<node tag="partnerURL" text="http://www.ubi.com"/>
<node tag="MochiTrackingCode" text="56a13d38"/>
<node tag="buyNowLinkMochiTracking" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="buyNowLink" text="http://imagine.ubi.com/makeoverbuynow?utm_source=partnersites&utm_medium=flashgamebuynow&utm_campaign=makeover"/>
<node tag="visitOurSiteLink" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="visitOurSiteLinkMochiTracking" text="http://imagine.ubi.com/makeover?utm_source=partnersites&utm_medium=flashgame&utm_campaign=makeover"/>
<node tag="clickToContinue_btn" text="Clique ici pour continuer."/>
<node tag="welcome_txt" text="Coucou!"/>
<node tag="ok_btn" text="OK"/>
<node tag="enterName_txt" text="Enter your name"/>
<node tag="enterYourNameIntro_txt" text="Tes cheveux, ton look te prennent la tête? Trouve ton style idéal et revèle la beauté qui est en toi! Suis les consignes pour profiter à fond de cette Beauty Experience. Allez, c'est parti! Saisis ton nom dans le champ ci-dessous."/>
<node tag="freePlay_btn" text="Jeu libre"/>
<node tag="makeOverFriends_btn" text="Amies Makeover"/>
<node tag="chooseGamePlay_txt" text="Qu'est-ce qui te tente, aujourd'hui? Tu veux essayer des styles en toute liberté ou aider tes amies en leur donnant des conseils de style et gagner des points?"/>
<node tag="startGame1" text="Salut ma belle! Tu veux un super relooking pour ressembler à ta star de ciné préférée? Alors regarde bien la photo. Ensuite, on va te faire aussi belle qu'elle."/>
<node tag="startGame2" text="Tu as rendez-vous avec le garçon le plus mignon de la classe? Super! Il faut te faire belle pour cette occasion. Regarde cette photo que j'ai découpée dans un magazine de mode. On va te faire le même maquillage."/>
<node tag="startGame3" text="C'est la rentrée! C'est une journée très spéciale, tout le monde va être sur son 31! On va te faire une coiffure tip top. J'en ai vu une qui t'irait trop bien dans un magazine."/>
<node tag="startFreePlay" text="En mode Jeu libre, tu peux te maquiller en toute liberté. Éclate-toi et fais-toi belle, sans te soucier du temps ou des points."/>
<node tag="face_btn" text="Visage"/>
<node tag="hair_btn" text="Cheveux"/>
<node tag="makeup_btn" text="Maquillage"/>
<node tag="mainMenu_btn" text="Menu principal"/>
<node tag="done_btn" text=" J'ai fini!"/>
<node tag="memorize_txt" text="Mémorise l'image!"/>
<node tag="timeLeft_txt" text="Temps restant:"/>
<node tag="score_txt" text="Score:"/>
<node tag="peek_btn" text="Aperçu"/>
<node tag="lostTitle_txt" text="Pas mal!"/>
<node tag="lostAccuracyTooLow_txt" text="Précision insuffisante pour continuer"/>
<node tag="lostMainMenu_btn" text="Main Menu"/>
<node tag="lostTryAgain_btn" text="Réessayer"/>
<node tag="winLostAccuracy_txt" text="Précision:"/>
<node tag="winPoints_txt" text="Points:"/>
<node tag="winTime_txt" text="Temps:"/>
<node tag="winBonus_txt" text="Bonus:"/>
<node tag="winProceed_btn" text="Continuer"/>
<node tag="winMessage_txt" text="Félicitations!"/>
<node tag="wrongHairAccesory" text="Les accessoires ne sont pas très bien choisis."/>
<node tag="wrongHairColor" text="ni la bonne couleur de cheveux."/>
<node tag="wrongHairLength" text="Ce n'est pas la bonne longueur"/>
<node tag="wrongHairStyle" text="La coiffure ne va pas."/>
<node tag="wrongMascaraAlpha" text="The mascara is not applied well enough"/>
<node tag="wrongMascaraColor" text="Tu n'as pas utilisé le même mascara."/>
<node tag="wrongLipstickAlpha" text="Le rouge à lèvres"/>
<node tag="wrongLipstickColor" text="Pareil pour le rouge à lèvres et l'ombre à paupières."/>
<node tag="wrongEyeShadowAlpha" text="The eye shadow is not applied well enough"/>
<node tag="wrongEyeShadowColor" text="The eye shadow color is wrong"/>
<node tag="wrongBlushAlpha" text="The blush is not applied well enough"/>
<node tag="wrongBlushColor" text="La couleur du blush ne va pas."/>
<node tag="wrongStickers" text="Les stickers ne sont pas bien placés."/>
<node tag="wrongHeadShape" text="La forme du visage n'est pas correcte."/>
<node tag="wrongEyeColor" text="La couleur des yeux n'est pas la bonne."/>
<node tag="wrongEyeShape" text="La forme des yeux non plus."/>
<node tag="wrongNoseShape" text="Même remarque pour le nez."/>
<node tag="wrongMouthShape" text="La forme de la bouche"/>
<node tag="wrongBrowShape" text="Les sourcils ne vont pas…"/>
<node tag="wrongBrowColor" text="The eyebrow color is wrong"/>
<node tag="packShot_txt" text="Si tu as aimé ce jeu en ligne, essaie vite le nouveau jeu vidéo Girls Life™ Beauty Experience!"/>
<node tag="tryAgain_btn" text="Réessayer"/>
<node tag="buyNow_btn" text="S'inscrire"/>
<node tag="submitScore" text="Submit Score"/>
<node tag="visitWeb" text="Pour en savoir plus sur les jeux vidéo Léa Passion"/>
<node tag="send" text="Envoyer"/>
<node tag="WellDone1" text="Bravo, c'est bien joué!"/>
<node tag="WellDone2" text="Tu as une excellente mémoire!"/>
<node tag="WellDone3" text="Féliciations!"/>
<node tag="WellDone4" text="Super! Tu es top!"/>
<node tag="legal_txt" text="(C) 2009 Ubisoft Entertainment. All Rights Reserved. Style Lab, Ubisoft, Ubi.com, and the Ubisoft logo are trademarks of Ubisoft Entertainment in the U.S. and/or other countries."/>
<node tag="emailMessage_txt" text="Inscris l'adresse e-mail d'une amies et envoie-lui ta création!"/>
<node tag="send_btn" text="Envoyer"/>
<node tag="close_btn" text="Fermer"/>
<node tag="mailInvalidAddress" text="Adresse e-mail invalide"/>
<node tag="mailSending" text="Sending message..."/>
<node tag="mailSendError" text="Picture could not be sent :-("/>
<node tag="mailSent" text="Your picture has been sent!"/>
<node tag="levelName1" text="Soirée de rêve"/>
<node tag="levelName2" text="Beauté de perle"/>
<node tag="levelName3" text="Dorothée au Kansas"/>
<node tag="levelName4" text="Nouvelle vague"/>
<node tag="levelName5" text="Fraicheur d'été"/>
<node tag="levelName6" text="En mode VIP"/>
<node tag="levelName7" text="Scintillements d'or"/>
<node tag="levelName8" text="Sport Attitude"/>
<node tag="levelName9" text="Journée à la plage"/>
<node tag="levelName10" text="Papillon de rêve"/>
</translation>
</ROOT>
;
}
}//package
Section 131
//Translator (Translator)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class Translator {
public static var language:String = "";
private static var _stage:Stage;
private static function onAdded(_arg1:Event):void{
translateIfPossible(DisplayObject(_arg1.target));
}
public static function stopTranslator():void{
_stage.removeEventListener(Event.ADDED, onAdded);
}
public static function get languageCode():String{
return ("Locale: “locale” [en-US, en-GB, de-DE, es-ES, fr-FR, it-IT, nl-NL]");
}
private static function translateIfPossible(_arg1:DisplayObject):void{
var doc:DisplayObjectContainer;
var i:int;
var a_displayObject = _arg1;
if (a_displayObject == null){
return;
};
if ((((a_displayObject is TextField)) && (!((a_displayObject.name == "caption_txt"))))){
if (translate(a_displayObject.name) != ""){
TextField(a_displayObject).text = translate(a_displayObject.name);
};
};
try {
doc = DisplayObjectContainer(a_displayObject);
i = 0;
while (i < doc.numChildren) {
translateIfPossible(doc.getChildAt(i));
i = (i + 1);
};
} catch(e:Error) {
return;
};
}
public static function startTranslator(_arg1:Stage):void{
_stage = _arg1;
_stage.addEventListener(Event.ADDED, onAdded, false, 0, true);
_stage.addEventListener(Event.ADDED, onAdded, true, 0, true);
}
public static function translate(_arg1:String, _arg2:String=""):String{
var translation:String;
var a_tag = _arg1;
var a_language = _arg2;
if (a_language == ""){
a_language = language;
};
if (a_language == "xx"){
translation = a_tag;
} else {
translation = Translation.data.translation.(@language == a_language).node.(@tag == a_tag).@text;
};
return (translation);
}
}
}//package
Section 132
//Tweener (Tweener)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import com.HazmiWeb.Paths.*;
import flash.utils.*;
import com.HazmiWeb.*;
public class Tweener {
private var _tick:int;// = 0
private var _path:DisplayObjectPath;
private var _timer:Timer;
private var _target:DisplayObject;
public function Tweener(_arg1:DisplayObject, _arg2:int=20, _arg3:int=0, _arg4:Point=null, _arg5:Point=null){
_path = new DisplayObjectPath();
super();
_target = _arg1;
if (_arg4 == null){
_arg4 = getCurrentPosPoint();
};
if (_arg5 == null){
_arg5 = getCurrentPosPoint();
};
_arg1.x = _arg4.x;
_arg1.y = _arg4.y;
_path.addWait(_arg3);
var _local6:DisplayObjectPathGenerator = new DisplayObjectPathGenerator();
_local6.startX = _arg4.x;
_local6.startY = _arg4.y;
_local6.endX = _arg5.x;
_local6.endY = _arg5.y;
_local6.easeTypePos = Ease.EaseElastic;
_local6.easeDirectionPos = Ease.EaseOut;
_local6.ticks = _arg2;
_local6.generatePathTo(_path);
_timer = new Timer(30);
_timer.addEventListener(TimerEvent.TIMER, onTick, false, 0, true);
_timer.start();
}
private function onComplete():void{
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, onTick);
_timer = null;
delete ??getglobalscope
[this];
}
private function onTick(_arg1:TimerEvent):void{
if (_target != null){
if (!_path.setPos(_target, _tick, false)){
_tick++;
} else {
onComplete();
};
} else {
onComplete();
};
}
private function getCurrentPosPoint():Point{
return (new Point(_target.x, _target.y));
}
}
}//package