Section 1
//BitString (com.adobe.images.BitString)
package com.adobe.images {
public class BitString {
public var val:int;// = 0
public var len:int;// = 0
public function BitString(){
len = 0;
val = 0;
super();
}
}
}//package com.adobe.images
Section 2
//JPGEncoder (com.adobe.images.JPGEncoder)
package com.adobe.images {
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class JPGEncoder {
private var fdtbl_UV:Array;
private var std_ac_chrominance_values:Array;
private var std_dc_chrominance_nrcodes:Array;
private var std_dc_chrominance_values:Array;
private var ZigZag:Array;
private var YDC_HT:Array;
private var bytenew:int;// = 0
private var fdtbl_Y:Array;
private var YAC_HT:Array;
private var std_ac_chrominance_nrcodes:Array;
private var DU:Array;
private var std_ac_luminance_values:Array;
private var UVTable:Array;
private var UDU:Array;
private var YDU: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){
var _local2:int;
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);
bytenew = 0;
bytepos = 7;
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;
};
_local2 = 0;
if (_arg1 < 50){
_local2 = int((5000 / _arg1));
} else {
_local2 = int((200 - (_arg1 * 2)));
};
initHuffmanTbl();
initCategoryNumber();
initQuantTables(_local2);
}
private function RGB2YUV(_arg1:BitmapData, _arg2:int, _arg3:int):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local4 = 0;
_local5 = 0;
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 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++;
};
}
private function writeBits(_arg1:BitString):void{
var _local2:int;
var _local3:int;
_local2 = _arg1.val;
_local3 = (_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 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);
}
public function encode(_arg1:BitmapData):ByteArray{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:int;
var _local7:BitString;
byteout = new ByteArray();
bytenew = 0;
bytepos = 7;
writeWord(65496);
writeAPP0();
writeDQT();
writeSOF0(_arg1.width, _arg1.height);
writeDHT();
writeSOS();
_local2 = 0;
_local3 = 0;
_local4 = 0;
bytenew = 0;
bytepos = 7;
_local5 = 0;
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 _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
_local1 = 1;
_local2 = 2;
_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 _local6:BitString;
var _local7:BitString;
var _local8:int;
var _local9:Array;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
_local6 = _arg5[0];
_local7 = _arg5[240];
_local9 = fDCTQuant(_arg1, _arg2);
_local8 = 0;
while (_local8 < 64) {
DU[ZigZag[_local8]] = _local9[_local8];
_local8++;
};
_local10 = (DU[0] - _arg3);
_arg3 = DU[0];
if (_local10 == 0){
writeBits(_arg4[0]);
} else {
writeBits(_arg4[category[(32767 + _local10)]]);
writeBits(bitcode[(32767 + _local10)]);
};
_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 _local4:Array;
var _local5:Array;
var _local6:Array;
var _local7:int;
var _local8:int;
_local4 = [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++;
};
_local5 = [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++;
};
_local6 = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379];
_local2 = 0;
_local7 = 0;
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 _local3:int;
var _local4:int;
var _local5:Array;
var _local6:int;
var _local7:int;
_local3 = 0;
_local4 = 0;
_local5 = new Array();
_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;
_local23 = 0;
_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 3
//PNGEncoder (com.adobe.images.PNGEncoder)
package com.adobe.images {
import flash.display.*;
import flash.utils.*;
public class PNGEncoder {
private static var crcTableComputed:Boolean = false;
private static var crcTable:Array;
private static function writeChunk(_arg1:ByteArray, _arg2:uint, _arg3:ByteArray):void{
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:int;
var _local8:uint;
var _local9:uint;
var _local10:uint;
if (!crcTableComputed){
crcTableComputed = true;
crcTable = [];
_local9 = 0;
while (_local9 < 0x0100) {
_local8 = _local9;
_local10 = 0;
while (_local10 < 8) {
if ((_local8 & 1)){
_local8 = uint((uint(3988292384) ^ uint((_local8 >>> 1))));
} else {
_local8 = uint((_local8 >>> 1));
};
_local10++;
};
crcTable[_local9] = _local8;
_local9++;
};
};
_local4 = 0;
if (_arg3 != null){
_local4 = _arg3.length;
};
_arg1.writeUnsignedInt(_local4);
_local5 = _arg1.position;
_arg1.writeUnsignedInt(_arg2);
if (_arg3 != null){
_arg1.writeBytes(_arg3);
};
_local6 = _arg1.position;
_arg1.position = _local5;
_local8 = 4294967295;
_local7 = 0;
while (_local7 < (_local6 - _local5)) {
_local8 = uint((crcTable[((_local8 ^ _arg1.readUnsignedByte()) & uint(0xFF))] ^ uint((_local8 >>> 8))));
_local7++;
};
_local8 = uint((_local8 ^ uint(4294967295)));
_arg1.position = _local6;
_arg1.writeUnsignedInt(_local8);
}
public static function encode(_arg1:BitmapData):ByteArray{
var _local2:ByteArray;
var _local3:ByteArray;
var _local4:ByteArray;
var _local5:int;
var _local6:uint;
var _local7:int;
_local2 = new ByteArray();
_local2.writeUnsignedInt(2303741511);
_local2.writeUnsignedInt(218765834);
_local3 = new ByteArray();
_local3.writeInt(_arg1.width);
_local3.writeInt(_arg1.height);
_local3.writeUnsignedInt(134610944);
_local3.writeByte(0);
writeChunk(_local2, 1229472850, _local3);
_local4 = new ByteArray();
_local5 = 0;
while (_local5 < _arg1.height) {
_local4.writeByte(0);
if (!_arg1.transparent){
_local7 = 0;
while (_local7 < _arg1.width) {
_local6 = _arg1.getPixel(_local7, _local5);
_local4.writeUnsignedInt(uint((((_local6 & 0xFFFFFF) << 8) | 0xFF)));
_local7++;
};
} else {
_local7 = 0;
while (_local7 < _arg1.width) {
_local6 = _arg1.getPixel32(_local7, _local5);
_local4.writeUnsignedInt(uint((((_local6 & 0xFFFFFF) << 8) | (_local6 >>> 24))));
_local7++;
};
};
_local5++;
};
_local4.compress();
writeChunk(_local2, 1229209940, _local4);
writeChunk(_local2, 1229278788, null);
return (_local2);
}
}
}//package com.adobe.images
Section 4
//ImageGen (com.cde.graphics.ImageGen)
package com.cde.graphics {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import com.adobe.images.*;
import flash.net.*;
import flash.geom.*;
public class ImageGen {
private var _loaderInfo:LoaderInfo;
private var _downloadURL:String;
private var fr:FileReference;
private var _imageName:String;
private var _inProgress:Boolean;
private var _sourceBitmapData:BitmapData;
private var encoder;
private var req:URLRequest;
private var _downloadMethod:String;
private var _ext:String;
private var _quality:Number;
private var _onComplete:Function;
private var _encoderType:String;
private var ld:URLLoader;
private var _newBitmapData:BitmapData;
private var _imageGenURL:String;
private var _transparency:Boolean;
public static const FLASH:String = "flash";
public static const PNG:String = "png";
public static const JS:String = "js";
public static const JPEG:String = "jpg";
public function ImageGen(_arg1:LoaderInfo, _arg2:String="image", _arg3:Number=50, _arg4:String=null, _arg5:String=null){
this._loaderInfo = _arg1;
this._imageName = _arg2;
fr = new FileReference();
ld = new URLLoader();
ld.addEventListener(Event.COMPLETE, onComplete);
encoder = new JPGEncoder(_arg3);
_ext = "jpg";
_encoderType = JPEG;
_imageGenURL = _arg4;
_downloadURL = _arg5;
_downloadMethod = FLASH;
_quality = _arg3;
initiateURLS();
}
public function set transparency(_arg1:Boolean):void{
_transparency = _arg1;
}
public function set downloadMethod(_arg1:String):void{
_downloadMethod = _arg1;
}
private function onComplete(_arg1:Event):void{
var _local2:String;
var _local3:String;
_local2 = _arg1.target.data.filePath;
_local3 = _arg1.target.data.imageURL;
if (_downloadMethod == FLASH){
fr.download(new URLRequest(_local3), ((_imageName + ".") + _ext));
} else {
if (_downloadMethod == JS){
navigateToURL(new URLRequest((((((((("javascript:window.open('" + _downloadURL) + "?filename=") + _imageName) + ".") + _ext) + "&file_path=") + _local2) + "', 'p', 'width=100,height=100'); void(0);")), "_self");
};
};
_inProgress = false;
}
public function encode(_arg1:DisplayObject, _arg2:Number, _arg3:Number, _arg4:Number=0, _arg5:Number=0, _arg6:Number=1):ByteArray{
var _local7:Number;
var _local8:Number;
var _local9:Matrix;
var _local10:ByteArray;
if (_arg4 > 2880){
throw (ArgumentError("Supplied width is too big. Must be less than or equal to 2880"));
};
if (_arg5 > 2880){
throw (ArgumentError("Supplied height is too big. Must be less than or equal to 2880"));
};
_local7 = ((_arg1.width)>2880) ? 2880 : _arg1.width;
_local8 = ((_arg1.height)>2880) ? 2880 : _arg1.height;
if (_arg4 == 0){
_arg4 = _local7;
};
if (_arg5 == 0){
_arg5 = _local8;
};
_local7 = (_local7 * _arg6);
_local8 = (_local8 * _arg6);
_arg4 = (_arg4 * _arg6);
_arg5 = (_arg5 * _arg6);
if (_transparency){
_sourceBitmapData = new BitmapData(_local7, _local8, true, 0);
} else {
_sourceBitmapData = new BitmapData(_local7, _local8);
};
_local9 = new Matrix();
_local9.scale(_arg6, _arg6);
_sourceBitmapData.draw(_arg1, _local9);
_newBitmapData = new BitmapData(_arg4, _arg5);
_newBitmapData.copyPixels(_sourceBitmapData, new Rectangle(_arg2, _arg3, _arg4, _arg5), new Point(0, 0));
_local10 = encoder.encode(_newBitmapData);
_sourceBitmapData.dispose();
_newBitmapData.dispose();
return (_local10);
}
public function initiateURLS():void{
var _local1:String;
var _local2:String;
var _local3:String;
var _local4:String;
_local1 = _loaderInfo.url;
_local2 = "cdeprofile/imagegen/";
_local3 = "jpeg.php";
_local4 = "download.php";
if (_imageGenURL != null){
} else {
if (_loaderInfo.parameters.hasOwnProperty("imageGenURL")){
this._imageGenURL = _loaderInfo.parameters["imageGenURL"];
} else {
if (URLInfo.isLocal(_local1)){
this._imageGenURL = (("http://www.cartoondollemporium.com/" + _local2) + _local3);
} else {
if (URLInfo.getRootURL(_local1).search("puppy52") > -1){
this._imageGenURL = (("http://dev.cartoondollemporium.com/~andres/" + _local2) + _local3);
} else {
if (URLInfo.getRootURL(_local1).search("cartoondollemporium") == -1){
this._imageGenURL = (("http://www.cartoondollemporium.com/" + _local2) + _local3);
} else {
if (URLInfo.getRootURL(_local1).search("cartoondollemporium") > -1){
this._imageGenURL = (((URLInfo.getRootURL(_local1) + "/") + _local2) + _local3);
};
};
};
};
};
};
if (_downloadURL != null){
} else {
if (_loaderInfo.parameters.hasOwnProperty("downloadURL")){
this._downloadURL = _loaderInfo.parameters["downloadURL"];
} else {
if (URLInfo.isLocal(_local1)){
_downloadURL = (("http://dev.cartoondollemporium.com/~andres/" + _local2) + _local4);
} else {
if (URLInfo.getRootURL(_local1).search("puppy52") > -1){
_downloadURL = (("http://dev.cartoondollemporium.com/~andres/" + _local2) + _local4);
} else {
if (URLInfo.getRootURL(_local1).search("cartoondollemporium") == -1){
_downloadURL = (("http://www.cartoondollemporium.com/" + _local2) + _local4);
} else {
if (URLInfo.getRootURL(_local1).search("cartoondollemporium") > -1){
_downloadURL = (((URLInfo.getRootURL(_local1) + "/") + _local2) + _local4);
};
};
};
};
};
};
req = new URLRequest(this._imageGenURL);
req.method = URLRequestMethod.POST;
req.contentType = "application/octet-stream";
}
public function set onCompleteHandler(_arg1:Function):void{
_onComplete = _arg1;
}
public function generateImageForDownload(_arg1:DisplayObject, _arg2:Number, _arg3:Number, _arg4:Number=0, _arg5:Number=0):void{
var _local6:Number;
var _local7:Number;
var _local8:ByteArray;
if (_inProgress){
return;
};
if (_arg4 > 2880){
throw (ArgumentError("Supplied width is too big. Must be less than or equal to 2880"));
};
if (_arg5 > 2880){
throw (ArgumentError("Supplied height is too big. Must be less than or equal to 2880"));
};
_local6 = ((_arg1.width)>2880) ? 2880 : _arg1.width;
_local7 = ((_arg1.height)>2880) ? 2880 : _arg1.height;
if (_arg4 == 0){
_arg4 = _local6;
};
if (_arg5 == 0){
_arg5 = _local7;
};
if (_transparency){
_sourceBitmapData = new BitmapData(_local6, _local7, true, 0);
_newBitmapData = new BitmapData(_arg4, _arg5, true, 0);
} else {
_sourceBitmapData = new BitmapData(_local6, _local7);
_newBitmapData = new BitmapData(_arg4, _arg5);
};
_sourceBitmapData.draw(_arg1);
_newBitmapData.copyPixels(_sourceBitmapData, new Rectangle(_arg2, _arg3, _arg4, _arg5), new Point(0, 0));
_local8 = encoder.encode(_newBitmapData);
req.data = _local8;
ld.dataFormat = URLLoaderDataFormat.VARIABLES;
ld.load(req);
_sourceBitmapData.dispose();
_newBitmapData.dispose();
_inProgress = true;
if (_onComplete != null){
_onComplete();
};
}
public function set encoderType(_arg1:String):void{
_encoderType = _arg1;
if (_arg1 == PNG){
encoder = PNGEncoder;
_ext = "png";
} else {
if (_arg1 == JPEG){
encoder = new JPGEncoder(_quality);
_ext = "jpg";
};
};
}
}
}//package com.cde.graphics
class URLInfo {
private function URLInfo(){
}
public static function getBaseURL(_arg1:String):String{
var _local2:int;
var _local3:int;
_local2 = _arg1.search(/\?/);
if (_local2 > -1){
_arg1 = _arg1.substr(0, _local2);
};
_local3 = _arg1.search(/\/[^\/]+$/);
_arg1 = _arg1.substr(0, (_local3 + 1));
return (_arg1);
}
public static function isLocal(_arg1:String):Boolean{
if (_arg1.search("file://") > -1){
return (true);
};
return (false);
}
public static function getRootURL(_arg1:String):String{
return (_arg1.substr(0, (_arg1.search(/\w\//) + 2)));
}
}
Section 5
//adddollbox_101 (wed_kin_7_fla.adddollbox_101)
package wed_kin_7_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class adddollbox_101 extends MovieClip {
public var frame:int;
public var tab_btn:SimpleButton;
public var dollcode:TextField;
public function adddollbox_101(){
addFrameScript(0, frame1, 14, frame15, 29, frame30);
}
function frame15(){
stop();
dollcode.text = MovieClip(this.root).dollUrlCode;
tab_btn.addEventListener(MouseEvent.MOUSE_DOWN, onTabBtnMouseDownHandler);
frame = 16;
}
function frame1(){
frame = 2;
tab_btn.addEventListener(MouseEvent.MOUSE_DOWN, onTabBtnMouseDownHandler);
stop();
}
function frame30(){
gotoAndStop(1);
}
public function onTabBtnMouseDownHandler(_arg1:MouseEvent):void{
gotoAndPlay(frame);
}
}
}//package wed_kin_7_fla
Section 6
//alertBoxWindow_72 (wed_kin_7_fla.alertBoxWindow_72)
package wed_kin_7_fla {
import flash.display.*;
import flash.text.*;
public dynamic class alertBoxWindow_72 extends MovieClip {
public var alertBox:TextField;
public var btn_close_alert:SimpleButton;
}
}//package wed_kin_7_fla
Section 7
//backhair10colors_56 (wed_kin_7_fla.backhair10colors_56)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class backhair10colors_56 extends MovieClip {
public function backhair10colors_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 8
//backhair12colors_57 (wed_kin_7_fla.backhair12colors_57)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class backhair12colors_57 extends MovieClip {
public function backhair12colors_57(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 9
//backhair3colors_52 (wed_kin_7_fla.backhair3colors_52)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class backhair3colors_52 extends MovieClip {
public function backhair3colors_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 10
//backhair4colors_53 (wed_kin_7_fla.backhair4colors_53)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class backhair4colors_53 extends MovieClip {
public function backhair4colors_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 11
//backhair5colors_54 (wed_kin_7_fla.backhair5colors_54)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class backhair5colors_54 extends MovieClip {
public function backhair5colors_54(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 12
//backhair7colors_55 (wed_kin_7_fla.backhair7colors_55)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class backhair7colors_55 extends MovieClip {
public function backhair7colors_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 13
//balloons_140 (wed_kin_7_fla.balloons_140)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class balloons_140 extends MovieClip {
public function balloons_140(){
addFrameScript(399, frame400);
}
function frame400(){
stop();
}
}
}//package wed_kin_7_fla
Section 14
//cert_txt_input_138 (wed_kin_7_fla.cert_txt_input_138)
package wed_kin_7_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cert_txt_input_138 extends MovieClip {
public var txt_bride_name:TextField;
public var txt_day:TextField;
public var txt_grm_name:TextField;
public var txt_month:TextField;
}
}//package wed_kin_7_fla
Section 15
//certificate_137 (wed_kin_7_fla.certificate_137)
package wed_kin_7_fla {
import flash.display.*;
import flash.text.*;
public dynamic class certificate_137 extends MovieClip {
public var alertBoxWindow:MovieClip;
public var display_day:TextField;
public var display_grm_name:TextField;
public var display_month:TextField;
public var cert_txt_input:MovieClip;
public var display_bride_name:TextField;
}
}//package wed_kin_7_fla
Section 16
//cloud123joinmycde_9 (wed_kin_7_fla.cloud123joinmycde_9)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class cloud123joinmycde_9 extends MovieClip {
public var joinCDEBtn:SimpleButton;
}
}//package wed_kin_7_fla
Section 17
//cloud123playgames_6 (wed_kin_7_fla.cloud123playgames_6)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class cloud123playgames_6 extends MovieClip {
public var moreGamesBtn:SimpleButton;
}
}//package wed_kin_7_fla
Section 18
//hair10colors_69 (wed_kin_7_fla.hair10colors_69)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair10colors_69 extends MovieClip {
public function hair10colors_69(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 19
//hair11colors_70 (wed_kin_7_fla.hair11colors_70)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair11colors_70 extends MovieClip {
public function hair11colors_70(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 20
//hair12colors_71 (wed_kin_7_fla.hair12colors_71)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair12colors_71 extends MovieClip {
public function hair12colors_71(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 21
//hair1colors_60 (wed_kin_7_fla.hair1colors_60)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair1colors_60 extends MovieClip {
public function hair1colors_60(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 22
//hair2colors_61 (wed_kin_7_fla.hair2colors_61)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair2colors_61 extends MovieClip {
public function hair2colors_61(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 23
//hair3colors_62 (wed_kin_7_fla.hair3colors_62)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair3colors_62 extends MovieClip {
public function hair3colors_62(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 24
//hair4colors_63 (wed_kin_7_fla.hair4colors_63)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair4colors_63 extends MovieClip {
public function hair4colors_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 25
//hair5colors_64 (wed_kin_7_fla.hair5colors_64)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair5colors_64 extends MovieClip {
public function hair5colors_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 26
//hair6colors_65 (wed_kin_7_fla.hair6colors_65)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair6colors_65 extends MovieClip {
public function hair6colors_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 27
//hair7colors_66 (wed_kin_7_fla.hair7colors_66)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair7colors_66 extends MovieClip {
public function hair7colors_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 28
//hair8colors_67 (wed_kin_7_fla.hair8colors_67)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair8colors_67 extends MovieClip {
public function hair8colors_67(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 29
//hair9colors_68 (wed_kin_7_fla.hair9colors_68)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class hair9colors_68 extends MovieClip {
public function hair9colors_68(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 30
//MainTimeline (wed_kin_7_fla.MainTimeline)
package wed_kin_7_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import com.cde.graphics.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
import fl.transitions.easing.*;
public dynamic class MainTimeline extends MovieClip {
public var chimeSoundClass:Class;
public var getPercent:Number;
public var MusicClass2:Class;
public var boys:MovieClip;
public var chimeSoundClassName:String;
public var greeting:String;
public var e:ReferenceError;
public var i:uint;
public var l:LoaderInfo;
public var e2:ReferenceError;
public var musicClassName2:String;
public var energySoundClassName:String;
public var mcDollMask:MovieClip;
public var btnDress11:SimpleButton;
public var stop_btn:SimpleButton;
public var btnDress10:SimpleButton;
public var btnDress12:SimpleButton;
public var wandSoundLoops:uint;
public var origDollX:int;
public var btn_bg_10:SimpleButton;
public var btnGroomNext:SimpleButton;
public var chimeSoundLoops:uint;
public var nextSoundClass:Class;
public var origBrideTxt;
public var origMonthTxt;
public var chimeSound:Sound;
public var dayTxt:String;
public var mcCertificateCopy:MovieClip;
public var loadBar:MovieClip;
public var joinCDEBtn:SimpleButton;
public var mydress2:MovieClip;
public var mydress3:MovieClip;
public var mydress4:MovieClip;
public var mydress5:MovieClip;
public var mydress6:MovieClip;
public var mydress9:MovieClip;
public var mcMessage:MovieClip;
public var mydress7:MovieClip;
public var mydress1:SimpleButton;
public var certificate:MovieClip;
public var makeupButton:SimpleButton;
public var mydress8:MovieClip;
public var nextSoundClassName:String;
public var currentGroomX:int;
public var currentGroomY:int;
public var hairButton:SimpleButton;
public var viewCertificate:Boolean;
public var groom:SimpleButton;
public var box:MovieClip;
public var wandAutoStart:Boolean;
public var nextSoundLoops:uint;
public var nextSound:Sound;
public var musicSound:Sound;
public var wandSoundClassName:String;
public var mcDoll:MovieClip;
public var brideName:String;
public var currentButton:SimpleButton;
public var chimeAutoStart:Boolean;
public var dollUrlCode:String;
public var mcDollTest:MovieClip;
public var glassSoundClass:Class;
public var musicLoops2:uint;
public var energyAutoStart:Boolean;
public var btnMakeup1:SimpleButton;
public var btnMakeup4:SimpleButton;
public var btnMakeup5:SimpleButton;
public var btnMakeup7:SimpleButton;
public var btnMakeup8:SimpleButton;
public var btnMakeup9:SimpleButton;
public var btnMakeup3:SimpleButton;
public var btnDress1:SimpleButton;
public var btnDress2:SimpleButton;
public var btnMakeup6:SimpleButton;
public var btnDress4:SimpleButton;
public var btnDress6:SimpleButton;
public var btnDress7:SimpleButton;
public var btnDress8:SimpleButton;
public var btnDress9:SimpleButton;
public var btnDress3:SimpleButton;
public var bytes_loaded:Number;
public var btnDress5:SimpleButton;
public var nextAutoStart:Boolean;
public var energySoundClass:Class;
public var ibg:uint;
public var btnMakeup2:SimpleButton;
public var bytes_total:Number;
public var currentGroomHeight:int;
public var MusicClass:Class;
public var ctrH:uint;
public var glassSoundClassName:String;
public var ctrM:uint;
public var musicAutoStart2:Boolean;
public var origGroomTxt;
public var itemBg:SimpleButton;
public var btn_bg_1:SimpleButton;
public var btn_bg_2:SimpleButton;
public var btn_bg_4:SimpleButton;
public var btn_bg_5:SimpleButton;
public var btn_bg_6:SimpleButton;
public var btn_bg_8:SimpleButton;
public var btn_bg_9:SimpleButton;
public var btn_bg_3:SimpleButton;
public var btn_bg_7:SimpleButton;
public var play_btn:SimpleButton;
public var origDayTxt;
public var wandSound:Sound;
public var glassSound:Sound;
public var btnHair10:SimpleButton;
public var btnHair11:SimpleButton;
public var btnHair12:SimpleButton;
public var item:SimpleButton;
public var greeting2:String;
public var igm:uint;
public var glassSoundLoops:uint;
public var musicLoops:uint;
public var loadText:TextField;
public var energySoundLoops:uint;
public var doll:Object;
public var musicAutoStart:Boolean;
public var btnMakeup10:SimpleButton;
public var energySound:Sound;
public var currentHairBtn:String;
public var mydress10:MovieClip;
public var mydress11:MovieClip;
public var groomName:String;
public var btnNext:SimpleButton;
public var mydress12:MovieClip;
public var currentGroomWidth:int;
public var btn_close_alert2:SimpleButton;
public var musicClassName:String;
public var musicSound2:Sound;
public var btnHair1:SimpleButton;
public var btnHair2:SimpleButton;
public var btnHair3:SimpleButton;
public var btnHair5:SimpleButton;
public var btnHair6:SimpleButton;
public var btnHair7:SimpleButton;
public var btnHair8:SimpleButton;
public var btnHair9:SimpleButton;
public var btnHair4:SimpleButton;
public var cde_btn:SimpleButton;
public var wandSoundClass:Class;
public var currentGroom:MovieClip;
public var glassAutoStart:Boolean;
public var monthTxt:String;
public var groomSelectCtr:Array;
public var replay:Boolean;
public var playNowBtn:SimpleButton;
public var imageGen:ImageGen;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 26, frame27, 89, frame90, 179, frame180, 180, frame181, 181, frame182, 182, frame183, 183, frame184, 184, frame185, 185, frame186);
}
public function goToCertificate(_arg1:MouseEvent):void{
nextSound.play();
certificate.alpha = 1;
certificate.cert_txt_input.alpha = 0;
certificate.cert_txt_input.txt_bride_name.visible = false;
certificate.cert_txt_input.txt_day.visible = false;
certificate.cert_txt_input.txt_month.visible = false;
certificate.cert_txt_input.txt_grm_name.visible = false;
certificate.display_bride_name.text = certificate.cert_txt_input.txt_bride_name.text;
certificate.display_day.text = certificate.cert_txt_input.txt_day.text;
certificate.display_month.text = certificate.cert_txt_input.txt_month.text;
certificate.display_grm_name.text = certificate.cert_txt_input.txt_grm_name.text;
certificate.display_bride_name.visible = true;
certificate.display_day.visible = true;
certificate.display_month.visible = true;
certificate.display_grm_name.visible = true;
btn_close_alert2.alpha = 1;
certificate.alertBoxWindow.alpha = 0;
btn_close_alert2.addEventListener(MouseEvent.CLICK, closeCert);
}
public function checkAndMove(_arg1:MouseEvent):void{
if (groomSelectCtr.length == 0){
glassSound.play(0);
showGroomAlert();
} else {
nextSound.play(0);
gotoAndStop(5);
};
}
public function btnDressEventHandler(_arg1:MouseEvent):void{
var _local2:Object;
var _local3:String;
var _local4:Array;
wandSound.play(0);
_local2 = _arg1;
_local3 = _arg1.currentTarget.name;
_local4 = _local3.split("btnDress");
mcDoll.mcMainDoll.gotoAndStop((Number(_local4[1]) + 1));
}
public function closeCert(_arg1:MouseEvent):void{
nextSound.play();
btn_close_alert2.removeEventListener(MouseEvent.CLICK, closeCert);
certificate.alpha = 0;
btn_close_alert2.alpha = 0;
}
function frame1(){
bytes_loaded = this.loaderInfo.bytesLoaded;
bytes_total = this.loaderInfo.bytesTotal;
getPercent = (Math.floor(((bytes_loaded / bytes_total) * 100)) / 100);
this.loadBar.width = (getPercent * 200);
this.loadText.text = (Math.round((getPercent * 100)) + "%");
if (bytes_loaded == bytes_total){
this.gotoAndPlay(3);
};
}
function frame2(){
this.gotoAndPlay(1);
}
public function playAgain(_arg1:MouseEvent):void{
gotoAndStop(1, "Scene 3");
SoundMixer.stopAll();
}
public function onJoinCDEBtn(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.cartoondollemporium.com/cdeprofile/profile_register/profile_register.html");
navigateToURL(_local2, "_blank");
}
function frame27(){
this.getChildAt(4).addEventListener(MouseEvent.MOUSE_DOWN, onPlayNowBtnMouseDownHandler);
this.getChildAt(6).addEventListener(MouseEvent.MOUSE_DOWN, onCdeBtnMouseDownHandler);
MovieClip(this.getChildAt(2)).moreGamesBtn.addEventListener(MouseEvent.MOUSE_DOWN, onMoreGames);
MovieClip(this.getChildAt(3)).joinCDEBtn.addEventListener(MouseEvent.MOUSE_DOWN, onJoinCDE);
}
public function onCDEBtnMouseDownHandler2(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.cartoondollemporium.com");
navigateToURL(_local2, "_blank");
}
function frame90(){
stop();
}
public function stopMusic2(_arg1:MouseEvent):void{
SoundMixer.stopAll();
}
public function onMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.cartoondollemporium.com/category_flashdolls.html"), "_blank");
}
public function nxtScene3(_arg1:MouseEvent):void{
nextSound.play(0);
gotoAndStop(3);
}
public function nxtScene6(_arg1:MouseEvent):void{
var _local2:Array;
var _local3:String;
_local2 = validateFields();
if (_local2.length != 0){
btnNext.visible = false;
glassSound.play(0);
certificate.alertBoxWindow.alpha = 1;
certificate.alertBoxWindow.btn_close_alert.alpha = 1;
for each (_local3 in _local2) {
certificate.alertBoxWindow.alertBox.appendText((_local3 + "\n"));
};
} else {
nextSound.play(0);
btnNext.visible = true;
this.brideName = certificate.cert_txt_input.txt_bride_name.text;
this.groomName = certificate.cert_txt_input.txt_grm_name.text;
this.dayTxt = certificate.cert_txt_input.txt_day.text;
this.monthTxt = certificate.cert_txt_input.txt_month.text;
mcCertificateCopy = certificate;
gotoAndStop(6);
};
}
public function btnBgEventHandler(_arg1:MouseEvent):void{
var _local2:Object;
var _local3:String;
var _local4:Array;
energySound.play(0);
_local2 = _arg1;
_local3 = _arg1.currentTarget.name;
_local4 = _local3.split("_");
mcDoll.mcBg.gotoAndStop((Number(_local4[2]) + 1));
}
public function nxtScene4(_arg1:MouseEvent):void{
nextSound.play(0);
gotoAndStop(4);
}
public function clearTxtField(_arg1:MouseEvent):void{
_arg1.currentTarget.text = "";
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK, clearTxtField);
}
function frame184(){
currentGroom = null;
origDollX = mcDoll.mcMainDoll.x;
groomSelectCtr = new Array();
mcDoll.mcGroomLayer.alpha = 1;
mcDoll.mcGroomLayer.mcBoys.alpha = 1;
mcDoll.mcMainDoll.x = (mcDoll.mcMainDoll.x - 50);
boys = mcDoll.mcGroomLayer.mcBoys;
igm = 0;
while (igm < boys.numChildren) {
if ((boys.getChildAt(igm) is SimpleButton)){
if (boys.getChildAt(igm).name.search("btn_groom") > -1){
groom = SimpleButton(boys.getChildAt(igm));
groom.addEventListener(MouseEvent.CLICK, btnGroomEventHandler);
};
};
igm++;
};
btnGroomNext.addEventListener(MouseEvent.CLICK, checkAndMove);
}
function frame180(){
stop();
musicClassName = "love";
musicLoops = 999;
musicAutoStart = true;
if (((!((musicClassName == null))) && (!((musicClassName == ""))))){
try {
MusicClass = (ApplicationDomain.currentDomain.getDefinition(musicClassName) as Class);
} catch(err:ReferenceError) {
err.message = (("Music '" + musicClassName) + "' does not exist in library. Please check that the 'musicClassName' variable is correct in Configuration layer.");
throw (err);
};
musicSound = (new MusicClass() as Sound);
if (musicAutoStart){
musicSound.play(0, musicLoops);
};
};
btnNext.addEventListener(MouseEvent.CLICK, gotoNextScene);
}
public function btnMakeupEventHandler(_arg1:MouseEvent):void{
var _local2:Object;
var _local3:String;
var _local4:Array;
wandSound.play(0);
_local2 = _arg1;
_local3 = _arg1.currentTarget.name;
_local4 = _local3.split("btnMakeup");
mcDoll.mcMainDoll.mcMakeup.gotoAndStop((Number(_local4[1]) + 1));
}
function frame182(){
doll = new Item(1, mcDoll.mcMainDoll);
doll.resize(2);
mcDoll.mask = mcDollMask;
currentHairBtn = "btnHair1";
ctrH = 0;
while (ctrH < this.numChildren) {
if ((this.getChildAt(ctrH) is SimpleButton)){
if (this.getChildAt(ctrH).name.search("btnHair") > -1){
hairButton = SimpleButton(this.getChildAt(ctrH));
hairButton.addEventListener(MouseEvent.CLICK, btnHairEventHandler);
};
};
ctrH++;
};
ctrM = 0;
while (ctrM < this.numChildren) {
if ((this.getChildAt(ctrM) is SimpleButton)){
if (this.getChildAt(ctrM).name.search("btnMakeup") > -1){
makeupButton = SimpleButton(this.getChildAt(ctrM));
makeupButton.addEventListener(MouseEvent.CLICK, btnMakeupEventHandler);
};
};
ctrM++;
};
btnNext.addEventListener(MouseEvent.CLICK, nxtScene3);
}
function frame186(){
certificate.alpha = 0;
btn_close_alert2.alpha = 0;
greeting = "Congratulations on your wedding,";
greeting2 = (((("\n " + brideName.toUpperCase()) + " and ") + groomName.toUpperCase()) + " !!!");
mcMessage.greetingBox.text = greeting;
mcMessage.greetingBox.appendText(greeting2);
mcDoll.alpha = 1;
mcDoll.mcGroomLayer.mcBoys.visible = false;
mcMessage.btn_certificate.addEventListener(MouseEvent.CLICK, goToCertificate);
mcMessage.btn_play_again.addEventListener(MouseEvent.CLICK, playAgain);
mcMessage.btn_save_doll.addEventListener(MouseEvent.MOUSE_DOWN, onMD);
imageGen = new ImageGen(this.loaderInfo, "wedding_booth_game_doll");
imageGen.onCompleteHandler = onCreateImageComplete;
stop_btn.addEventListener(MouseEvent.CLICK, stopMusic2);
play_btn.addEventListener(MouseEvent.CLICK, playMusic2);
joinCDEBtn.addEventListener(MouseEvent.MOUSE_DOWN, onJoinCDEBtn2);
SoundMixer.stopAll();
musicClassName2 = "wedding";
musicLoops2 = 999;
musicAutoStart2 = true;
if (((!((musicClassName2 == null))) && (!((musicClassName2 == ""))))){
try {
MusicClass2 = (ApplicationDomain.currentDomain.getDefinition(musicClassName2) as Class);
} catch(err:ReferenceError) {
err.message = (("Music '" + musicClassName2) + "' does not exist in library. Please check that the 'musicClassName' variable is correct in Configuration layer.");
throw (err);
};
musicSound2 = (new MusicClass2() as Sound);
if (musicAutoStart2){
musicSound2.play(0, musicLoops2);
};
};
}
function frame181(){
glassSoundClassName = "glass";
glassSoundLoops = 1;
glassAutoStart = true;
glassSoundClass = (ApplicationDomain.currentDomain.getDefinition(glassSoundClassName) as Class);
glassSound = (new glassSoundClass() as Sound);
wandSoundClassName = "MagicWand";
wandSoundLoops = 1;
wandAutoStart = true;
wandSoundClass = (ApplicationDomain.currentDomain.getDefinition(wandSoundClassName) as Class);
wandSound = (new wandSoundClass() as Sound);
chimeSoundClassName = "Chimes";
chimeSoundLoops = 1;
chimeAutoStart = true;
chimeSoundClass = (ApplicationDomain.currentDomain.getDefinition(chimeSoundClassName) as Class);
chimeSound = (new chimeSoundClass() as Sound);
energySoundClassName = "EnergyMystery";
energySoundLoops = 1;
energyAutoStart = true;
energySoundClass = (ApplicationDomain.currentDomain.getDefinition(energySoundClassName) as Class);
energySound = (new energySoundClass() as Sound);
nextSoundClassName = "NextClick";
nextSoundLoops = 1;
nextAutoStart = true;
nextSoundClass = (ApplicationDomain.currentDomain.getDefinition(nextSoundClassName) as Class);
nextSound = (new nextSoundClass() as Sound);
mcDoll.alertBoxWindowGroom.alpha = 0;
stop();
dollUrlCode = "<iframe src ='http://www.cartoondollemporium.com/cde_flashdolls_link.html?link=flashdolls_cdeweddingdollcarnival.html&name=cdeweddingdollcarnival' WIDTH='910' height='710' frameborder='0' scrolling='auto'></iframe>";
viewCertificate = false;
mcDoll.mcMainDoll.mcHair.gotoAndStop(2);
mcDoll.mcMainDoll.mcMakeup.gotoAndStop(2);
i = 0;
while (i < this.numChildren) {
if ((this.getChildAt(i) is SimpleButton)){
if (this.getChildAt(i).name.search("btnDress") > -1){
item = SimpleButton(this.getChildAt(i));
item.addEventListener(MouseEvent.CLICK, btnDressEventHandler);
};
};
i++;
};
btnNext.addEventListener(MouseEvent.CLICK, nxtScene);
joinCDEBtn.addEventListener(MouseEvent.MOUSE_DOWN, onJoinCDEBtn);
stop_btn.addEventListener(MouseEvent.CLICK, stopMusic);
play_btn.addEventListener(MouseEvent.CLICK, playMusic);
cde_btn.addEventListener(MouseEvent.MOUSE_DOWN, onCDEBtnMouseDownHandler);
if (replay == true){
musicSound.play(0, musicLoops);
};
}
function frame183(){
mcDoll.mask = null;
doll.resize();
mcDollTest = mcDoll;
ibg = 0;
while (ibg < this.numChildren) {
if ((this.getChildAt(ibg) is SimpleButton)){
if (this.getChildAt(ibg).name.search("btn_bg_") > -1){
itemBg = SimpleButton(this.getChildAt(ibg));
itemBg.addEventListener(MouseEvent.CLICK, btnBgEventHandler);
};
};
ibg++;
};
btnNext.addEventListener(MouseEvent.CLICK, nxtScene4);
}
function frame185(){
brideName = "";
groomName = "";
dayTxt = "";
monthTxt = "";
certificate.display_bride_name.visible = false;
certificate.display_day.visible = false;
certificate.display_month.visible = false;
certificate.display_grm_name.visible = false;
origBrideTxt = certificate.cert_txt_input.txt_bride_name.text;
origGroomTxt = certificate.cert_txt_input.txt_grm_name.text;
origDayTxt = certificate.cert_txt_input.txt_day.text;
origMonthTxt = certificate.cert_txt_input.txt_month.text;
mcDoll.alpha = 0;
certificate.alertBoxWindow.alpha = 0;
stage.focus = certificate.cert_txt_input.txt_bride_name;
certificate.cert_txt_input.txt_bride_name.addEventListener(MouseEvent.CLICK, clearTxtField);
certificate.cert_txt_input.txt_day.addEventListener(MouseEvent.CLICK, clearTxtField);
certificate.cert_txt_input.txt_month.addEventListener(MouseEvent.CLICK, clearTxtField);
certificate.cert_txt_input.txt_grm_name.addEventListener(MouseEvent.CLICK, clearTxtField);
btnNext.addEventListener(MouseEvent.CLICK, nxtScene6);
certificate.alertBoxWindow.btn_close_alert.addEventListener(MouseEvent.CLICK, closeErrorWindow);
cde_btn.addEventListener(MouseEvent.MOUSE_DOWN, onCDEBtnMouseDownHandler2);
}
public function nxtScene(_arg1:MouseEvent):void{
nextSound.play(0);
gotoAndStop(2);
}
public function btnHairEventHandler(_arg1:MouseEvent):void{
var _local2:Object;
var _local3:String;
var _local4:Array;
chimeSound.play(0);
_local2 = _arg1;
_local3 = _arg1.currentTarget.name;
_local4 = _local3.split("btnHair");
if (currentHairBtn != _local3){
currentHairBtn = _local3;
mcDoll.mcMainDoll.mcHair.gotoAndStop((Number(_local4[1]) + 1));
mcDoll.mcMainDoll.mcBackHair.gotoAndStop((Number(_local4[1]) + 1));
} else {
if (mcDoll.mcMainDoll.mcHair[("haircolor" + _local4[1])].currentFrame < mcDoll.mcMainDoll.mcHair[("haircolor" + _local4[1])].totalFrames){
mcDoll.mcMainDoll.mcHair[("haircolor" + _local4[1])].nextFrame();
if (mcDoll.mcMainDoll.mcBackHair[("backhaircolor" + _local4[1])]){
mcDoll.mcMainDoll.mcBackHair[("backhaircolor" + _local4[1])].nextFrame();
};
} else {
mcDoll.mcMainDoll.mcHair[("haircolor" + _local4[1])].gotoAndPlay(1);
if (mcDoll.mcMainDoll.mcBackHair[("backhaircolor" + _local4[1])]){
mcDoll.mcMainDoll.mcBackHair[("backhaircolor" + _local4[1])].gotoAndPlay(1);
};
};
};
}
public function onCdeBtnMouseDownHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.cdedolls.com/"), "_blank");
}
public function onCDEBtnMouseDownHandler(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.cartoondollemporium.com");
navigateToURL(_local2, "_blank");
}
public function playMusic2(_arg1:MouseEvent):void{
SoundMixer.stopAll();
if (musicSound2 != null){
musicSound2.play(0, musicLoops2);
};
}
public function closeErrorWindow(_arg1:MouseEvent):void{
nextSound.play(0);
btnNext.visible = true;
certificate.alertBoxWindow.alertBox.text = "";
certificate.alertBoxWindow.alpha = 0;
certificate.alertBoxWindow.btn_close_alert.alpha = 0;
}
public function gotoNextScene(_arg1:MouseEvent):void{
nextScene();
}
public function stopMusic(_arg1:MouseEvent):void{
SoundMixer.stopAll();
}
public function playMusic(_arg1:MouseEvent):void{
SoundMixer.stopAll();
if (musicSound != null){
musicSound.play(0, musicLoops);
};
}
public function closeGroomAlertWindow(_arg1:MouseEvent):void{
mcDoll.alertBoxWindowGroom.alpha = 0;
}
public function btnGroomEventHandler(_arg1:MouseEvent):void{
var _local2:String;
var _local3:Array;
chimeSound.play(0);
_local2 = _arg1.currentTarget.name;
_local3 = _local2.split("_");
mcDoll.mcGroomLayer.gotoAndStop((Number(_local3[2]) + 1));
this.groomSelectCtr.push(_local3);
}
public function validateFields():Array{
var _local1:Array;
_local1 = new Array();
if ((((certificate.cert_txt_input.txt_bride_name.text == "")) || ((certificate.cert_txt_input.txt_bride_name.text == origBrideTxt)))){
_local1.push("Bride name should be filled.");
};
if ((((certificate.cert_txt_input.txt_grm_name.text == "")) || ((certificate.cert_txt_input.txt_grm_name.text == origGroomTxt)))){
_local1.push("Groom name should be filled.");
};
if ((((certificate.cert_txt_input.txt_day.text == "")) || ((certificate.cert_txt_input.txt_day.text == origDayTxt)))){
_local1.push("Day should be filled.");
};
if ((((certificate.cert_txt_input.txt_month.text == "")) || ((certificate.cert_txt_input.txt_month.text == origMonthTxt)))){
_local1.push("Month should be filled.");
};
return (_local1);
}
public function reOrganizeGrooms():void{
var _local1:uint;
var _local2:MovieClip;
_local1 = 0;
while (_local1 < boys.numChildren) {
if ((boys.getChildAt(_local1) is MovieClip)){
if (boys.getChildAt(_local1).name.search("groom_") > -1){
if (MovieClip(boys.getChildAt(_local1))){
_local2 = MovieClip(boys.getChildAt(_local1));
};
if (_local2.name != currentGroom.name){
_local2.alpha = 1;
boys[("btn_" + _local2.name)].alpha = 1;
boys[("btn_" + _local2.name)].addEventListener(MouseEvent.CLICK, btnGroomEventHandler);
} else {
boys[("btn_" + _local2.name)].alpha = 1;
currentGroom.x = currentGroomX;
currentGroom.y = currentGroomY;
currentGroom.width = currentGroomWidth;
currentGroom.height = currentGroomHeight;
_local2.addEventListener(MouseEvent.CLICK, btnGroomEventHandler);
boys[("btn_" + _local2.name)].addEventListener(MouseEvent.CLICK, btnGroomEventHandler);
};
};
};
_local1++;
};
}
public function showGroomAlert():void{
mcDoll.alertBoxWindowGroom.alpha = 1;
mcDoll.alertBoxWindowGroom.alertBox.text = "You must select a groom.";
mcDoll.alertBoxWindowGroom.btn_close_alert.addEventListener(MouseEvent.CLICK, closeGroomAlertWindow);
}
public function onJoinCDEBtn2(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.cartoondollemporium.com/cdeprofile/profile_register/profile_register.html");
navigateToURL(_local2, "_blank");
}
public function onMD(_arg1:MouseEvent):void{
mcMessage.alpha = 0;
cde_btn.visible = false;
box.visible = false;
joinCDEBtn.visible = false;
play_btn.visible = false;
stop_btn.visible = false;
btn_close_alert2.visible = false;
imageGen.generateImageForDownload(this, 0, 0, 900, 700);
}
public function onCreateImageComplete():void{
mcMessage.alpha = 1;
cde_btn.visible = true;
box.visible = true;
joinCDEBtn.visible = true;
play_btn.visible = true;
stop_btn.visible = true;
btn_close_alert2.visible = true;
}
public function onJoinCDE(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.cartoondollemporium.com/cdeprofile/profile_register/profile_register.html"), "_blank");
}
public function onPlayNowBtnMouseDownHandler(_arg1:MouseEvent):void{
nextScene();
}
}
}//package wed_kin_7_fla
Section 31
//mcBackground_28 (wed_kin_7_fla.mcBackground_28)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class mcBackground_28 extends MovieClip {
public function mcBackground_28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 32
//mcBackHair_51 (wed_kin_7_fla.mcBackHair_51)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class mcBackHair_51 extends MovieClip {
public var backhaircolor12:MovieClip;
public var backhaircolor10:MovieClip;
public var backhaircolor4:MovieClip;
public var backhaircolor5:MovieClip;
public var backhaircolor7:MovieClip;
public var backhaircolor3:MovieClip;
public function mcBackHair_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 33
//mcBoys_36 (wed_kin_7_fla.mcBoys_36)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class mcBoys_36 extends MovieClip {
public var groom_2:MovieClip;
public var groom_4:MovieClip;
public var groom_7:MovieClip;
public var groom_9:MovieClip;
public var btn_groom_2:SimpleButton;
public var btn_groom_7:SimpleButton;
public var btn_groom_3:SimpleButton;
public var btn_groom_4:SimpleButton;
public var btn_groom_5:SimpleButton;
public var btn_groom_6:SimpleButton;
public var btn_groom_1:SimpleButton;
public var groom_1:MovieClip;
public var btn_groom_8:SimpleButton;
public var btn_groom_9:SimpleButton;
public var btn_groom_10:SimpleButton;
public var btn_groom_12:SimpleButton;
public var btn_groom_11:SimpleButton;
public var groom_8:MovieClip;
public var groom_11:MovieClip;
public var groom_12:MovieClip;
public var groom_10:MovieClip;
public var groom_6:MovieClip;
public var groom_3:MovieClip;
public var groom_5:MovieClip;
}
}//package wed_kin_7_fla
Section 34
//mcDoll_27 (wed_kin_7_fla.mcDoll_27)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class mcDoll_27 extends MovieClip {
public var alertBoxWindowGroom:MovieClip;
public var mcMainDoll:MovieClip;
public var mcBg:MovieClip;
public var mcGroomLayer:MovieClip;
public function mcDoll_27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 35
//mcGroomLayer_35 (wed_kin_7_fla.mcGroomLayer_35)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class mcGroomLayer_35 extends MovieClip {
public var mcBoys:MovieClip;
public function mcGroomLayer_35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcBoys.alpha = 0;
}
}
}//package wed_kin_7_fla
Section 36
//mcHair_59 (wed_kin_7_fla.mcHair_59)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class mcHair_59 extends MovieClip {
public var haircolor1:MovieClip;
public var haircolor2:MovieClip;
public var haircolor6:MovieClip;
public var haircolor8:MovieClip;
public var haircolor9:MovieClip;
public var haircolor3:MovieClip;
public var haircolor4:MovieClip;
public var haircolor7:MovieClip;
public var haircolor11:MovieClip;
public var haircolor10:MovieClip;
public var haircolor12:MovieClip;
public var haircolor5:MovieClip;
public function mcHair_59(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 37
//mcMainDoll_50 (wed_kin_7_fla.mcMainDoll_50)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class mcMainDoll_50 extends MovieClip {
public var mcBackHair:MovieClip;
public var mcMakeup:MovieClip;
public var mcHair:MovieClip;
public function mcMainDoll_50(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 38
//mcMakeup_58 (wed_kin_7_fla.mcMakeup_58)
package wed_kin_7_fla {
import flash.display.*;
public dynamic class mcMakeup_58 extends MovieClip {
public function mcMakeup_58(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package wed_kin_7_fla
Section 39
//mcMessage_144 (wed_kin_7_fla.mcMessage_144)
package wed_kin_7_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mcMessage_144 extends MovieClip {
public var btn_certificate:SimpleButton;
public var btn_play_again:SimpleButton;
public var btn_save_doll:SimpleButton;
public var greetingBox:TextField;
}
}//package wed_kin_7_fla
Section 40
//Chimes (Chimes)
package {
import flash.media.*;
public dynamic class Chimes extends Sound {
}
}//package
Section 41
//EnergyMystery (EnergyMystery)
package {
import flash.media.*;
public dynamic class EnergyMystery extends Sound {
}
}//package
Section 42
//glass (glass)
package {
import flash.media.*;
public dynamic class glass extends Sound {
}
}//package
Section 43
//Item (Item)
package {
import flash.display.*;
public class Item {
var origWidth:int;
var origHeight:int;
var showFrame:int;
var changeCtr:int;// = 1
var mc:MovieClip;
var itemNumber:int;
public function Item(_arg1:int, _arg2:MovieClip, _arg3:int=2){
changeCtr = 1;
super();
this.itemNumber = _arg1;
this.showFrame = _arg3;
this.mc = _arg2;
this.origWidth = _arg2.width;
this.origHeight = _arg2.height;
}
public function changeItem():void{
if (changeCtr <= itemNumber){
mc.gotoAndStop((changeCtr + 1));
changeCtr++;
} else {
mc.gotoAndStop((showFrame - 1));
changeCtr = 1;
};
}
public function get currentFrame():int{
return (changeCtr);
}
public function resize(_arg1:int=0, _arg2:Boolean=true):void{
if (_arg1 == 0){
this.mc.height = this.origHeight;
this.mc.width = this.origWidth;
return;
};
if (_arg2 == true){
this.mc.height = (this.origHeight * _arg1);
this.mc.width = (this.origWidth * _arg1);
} else {
this.mc.height = (this.origHeight / _arg1);
this.mc.width = (origWidth / _arg1);
};
}
public function removeItem(_arg1:MovieClip=null, _arg2:int=1):void{
if (_arg1 == null){
_arg1 = this.mc;
};
_arg1.gotoAndStop(_arg2);
}
}
}//package
Section 44
//love (love)
package {
import flash.media.*;
public dynamic class love extends Sound {
}
}//package
Section 45
//MagicWand (MagicWand)
package {
import flash.media.*;
public dynamic class MagicWand extends Sound {
}
}//package
Section 46
//NextClick (NextClick)
package {
import flash.media.*;
public dynamic class NextClick extends Sound {
}
}//package
Section 47
//SnowFlake (SnowFlake)
package {
import flash.display.*;
public dynamic class SnowFlake extends MovieClip {
}
}//package
Section 48
//wedding (wedding)
package {
import flash.media.*;
public dynamic class wedding extends Sound {
}
}//package