Section 1
//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 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_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 3
//ImageGen (com.cde.graphics.ImageGen)
package com.cde.graphics {
import flash.display.*;
import flash.events.*;
import com.adobe.images.*;
import flash.utils.*;
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:JPGEncoder;
private var req:URLRequest;
private var _downloadMethod:String;
private var ld:URLLoader;
private var _newBitmapData:BitmapData;
private var _imageGenURL:String;
public static const FLASH:String = "flash";
public static const JS:String = "js";
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);
_imageGenURL = _arg4;
_downloadURL = _arg5;
_downloadMethod = FLASH;
initiateURLS();
}
public function set downloadMethod(_arg1:String):void{
_downloadMethod = _arg1;
}
private function onComplete(_arg1:Event):void{
var _local2:String = _arg1.target.data.filePath;
var _local3:String = _arg1.target.data.imageURL;
if (_downloadMethod == FLASH){
fr.download(new URLRequest(_local3), (_imageName + ".jpg"));
} else {
if (_downloadMethod == JS){
navigateToURL(new URLRequest(((((((("javascript:window.open('" + _downloadURL) + "?filename=") + _imageName) + ".jpg") + "&file_path=") + _local2) + "', 'p', 'width=100,height=100'); void(0);")), "_self");
};
};
_inProgress = false;
}
public function generateImageForDownload(_arg1:DisplayObject, _arg2:Number, _arg3:Number, _arg4:Number=0, _arg5:Number=0):void{
if (_inProgress){
return;
};
if (_arg4 == 0){
_arg4 = _arg1.width;
};
if (_arg5 == 0){
_arg5 = _arg1.height;
};
_sourceBitmapData = new BitmapData(_arg1.width, _arg1.height);
_sourceBitmapData.draw(_arg1);
_newBitmapData = new BitmapData(_arg4, _arg5);
_newBitmapData.copyPixels(_sourceBitmapData, new Rectangle(_arg2, _arg3, _arg4, _arg5), new Point(0, 0));
var _local6:ByteArray = encoder.encode(_newBitmapData);
req.data = _local6;
ld.dataFormat = URLLoaderDataFormat.VARIABLES;
ld.load(req);
_sourceBitmapData.dispose();
_newBitmapData.dispose();
_inProgress = true;
}
public function initiateURLS():void{
var _local1:String = _loaderInfo.url;
var _local2 = "cdeprofile/imagegen/";
var _local3 = "jpeg.php";
var _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://dev.cartoondollemporium.com/~andres/" + _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";
}
}
}//package com.cde.graphics
class URLInfo {
private function URLInfo(){
}
public static function getBaseURL(_arg1:String):String{
var _local2:int = _arg1.search(/\?/);
if (_local2 > -1){
_arg1 = _arg1.substr(0, _local2);
};
var _local3:int = _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 4
//accessmc_180 (G2GFarmer_fla.accessmc_180)
package G2GFarmer_fla {
import flash.display.*;
public dynamic class accessmc_180 extends MovieClip {
public function accessmc_180(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package G2GFarmer_fla
Section 5
//adddollbox_213 (G2GFarmer_fla.adddollbox_213)
package G2GFarmer_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.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class adddollbox_213 extends MovieClip {
public var tab_btn:SimpleButton;
public var dollcode:TextField;
public var frame:int;
public function adddollbox_213(){
addFrameScript(0, frame1, 14, frame15, 29, frame30);
}
function frame15(){
stop();
dollcode.text = MovieClip(this.root).dollcode;
tab_btn.addEventListener(MouseEvent.MOUSE_DOWN, onTabBtnMouseDownHandler);
frame = 16;
}
public function onTabBtnMouseDownHandler(_arg1:MouseEvent):void{
gotoAndPlay(frame);
}
function frame1(){
frame = 2;
tab_btn.addEventListener(MouseEvent.MOUSE_DOWN, onTabBtnMouseDownHandler);
stop();
}
function frame30(){
gotoAndStop(1);
}
}
}//package G2GFarmer_fla
Section 6
//bgmc_12 (G2GFarmer_fla.bgmc_12)
package G2GFarmer_fla {
import flash.display.*;
import flash.events.*;
public dynamic class bgmc_12 extends MovieClip {
public var scarecrow:MovieClip;
public function bgmc_12(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
scarecrow.buttonMode = true;
scarecrow.addEventListener(MouseEvent.MOUSE_OVER, scare);
}
public function scare(_arg1:MouseEvent):void{
scarecrow.play();
}
}
}//package G2GFarmer_fla
Section 7
//bottommc_42 (G2GFarmer_fla.bottommc_42)
package G2GFarmer_fla {
import flash.display.*;
public dynamic class bottommc_42 extends MovieClip {
public function bottommc_42(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package G2GFarmer_fla
Section 8
//dressmc_167 (G2GFarmer_fla.dressmc_167)
package G2GFarmer_fla {
import flash.display.*;
public dynamic class dressmc_167 extends MovieClip {
public function dressmc_167(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package G2GFarmer_fla
Section 9
//eyes_color_195 (G2GFarmer_fla.eyes_color_195)
package G2GFarmer_fla {
import flash.display.*;
public dynamic class eyes_color_195 extends MovieClip {
public function eyes_color_195(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package G2GFarmer_fla
Section 10
//hair_mc_192 (G2GFarmer_fla.hair_mc_192)
package G2GFarmer_fla {
import flash.display.*;
public dynamic class hair_mc_192 extends MovieClip {
public function hair_mc_192(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package G2GFarmer_fla
Section 11
//hair_up_mc_186 (G2GFarmer_fla.hair_up_mc_186)
package G2GFarmer_fla {
import flash.display.*;
public dynamic class hair_up_mc_186 extends MovieClip {
public function hair_up_mc_186(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package G2GFarmer_fla
Section 12
//hatmc_202 (G2GFarmer_fla.hatmc_202)
package G2GFarmer_fla {
import flash.display.*;
public dynamic class hatmc_202 extends MovieClip {
public function hatmc_202(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package G2GFarmer_fla
Section 13
//MainTimeline (G2GFarmer_fla.MainTimeline)
package G2GFarmer_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.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var getPercent:Number;
public var generated_image_filename:String;
public var stop_btn:SimpleButton;
public var body:MovieClip;
public var musicLoops:uint;
public var loadText:TextField;
public var dollcode:String;
public var cde_btn:SimpleButton;
public var bg:MovieClip;
public var box:MovieClip;
public var loadBar:MovieClip;
public var musicAutoStart:Boolean;
public var affiliateBtn:SimpleButton;
public var play_btn:SimpleButton;
public var bytes_loaded:Number;
public var saveDollBtn:SimpleButton;
public var e:ReferenceError;
public var musicSound:Sound;
public var l:LoaderInfo;
public var bytes_total:Number;
public var MusicClass:Class;
public var imageGen;
public var domain_id:String;
public var musicClassName:String;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 26, frame27, 89, frame90, 90, frame91);
}
public function onSaveDollBtn(_arg1:MouseEvent):void{
imageGen.generateImageForDownload(this, 0, 0, 900, 700);
}
public function onPlayBtnMouseDownHandler(_arg1:MouseEvent):void{
SoundMixer.stopAll();
if (musicSound != null){
musicSound.play(0, musicLoops);
};
}
public function onStopBtnMouseDownHandler(_arg1:MouseEvent):void{
SoundMixer.stopAll();
}
public function onAffiliate(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.games2girls.com/");
navigateToURL(_local2, "_blank");
}
public function onPlayNowBtnMouseDownHandler(_arg1:MouseEvent):void{
gotoAndStop(1, "Scene 2");
}
public function onAffiliateMD(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.games2girls.com/");
navigateToURL(_local2, "_blank");
}
function frame90(){
stop();
}
public function onCdeBtnMouseDownHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.cdedolls.com/"), "_blank");
}
function frame91(){
dollcode = "<iframe src ='http://www.cartoondollemporium.com/cde_flashdolls_link.html?link=flashdolls_elly_may.html&name=elly_may' WIDTH='910' height='710' frameborder='0' scrolling='auto'></iframe>";
musicClassName = "sound";
musicLoops = 9999;
musicAutoStart = true;
generated_image_filename = "CDE Elly May";
domain_id = "@@CDE@@@";
domain_id = "00001176";
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);
};
};
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, onPlayBtnMouseDownHandler);
stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, onStopBtnMouseDownHandler);
cde_btn.addEventListener(MouseEvent.MOUSE_DOWN, onCDEBtnMouseDownHandler);
affiliateBtn.addEventListener(MouseEvent.MOUSE_DOWN, onAffiliate);
saveDollBtn.addEventListener(MouseEvent.MOUSE_DOWN, onSaveDollBtn);
imageGen = new ImageGen(this.loaderInfo, generated_image_filename);
stop();
body.dress.visible = false;
body.top.visible = true;
body.bottom.visible = true;
}
public function onCDEBtnMouseDownHandler(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.cartoondollemporium.com");
var _local3:URLVariables = new URLVariables();
_local3.domain_id = domain_id;
_local2.data = _local3;
_local2.method = URLRequestMethod.POST;
navigateToURL(_local2, "_blank");
}
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 frame27(){
this.getChildAt(2).addEventListener(MouseEvent.MOUSE_DOWN, onPlayNowBtnMouseDownHandler);
this.getChildAt(4).addEventListener(MouseEvent.MOUSE_DOWN, onCdeBtnMouseDownHandler);
this.getChildAt(5).addEventListener(MouseEvent.MOUSE_DOWN, onAffiliateMD);
}
function frame2(){
this.gotoAndPlay(1);
}
}
}//package G2GFarmer_fla
Section 14
//menu_206 (G2GFarmer_fla.menu_206)
package G2GFarmer_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.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class menu_206 extends MovieClip {
public var eyes_prev_bt:SimpleButton;
public var shoes_prev_bt:SimpleButton;
public var hair_prev_bt:SimpleButton;
public var bottom_next_bt:SimpleButton;
public var dress_next_bt:SimpleButton;
public var bg_next_bt:SimpleButton;
public var top_next_bt:SimpleButton;
public var tool_prev_bt:SimpleButton;
public var hat_prev_bt:SimpleButton;
public var open_menu_bt:SimpleButton;
public var eyes_next_bt:SimpleButton;
public var reset_bt:SimpleButton;
public var shoes_next_bt:SimpleButton;
public var bottom_prev_bt:SimpleButton;
public var hair_next_bt:SimpleButton;
public var dress_prev_bt:SimpleButton;
public var bg_prev_bt:SimpleButton;
public var close_menu_bt:SimpleButton;
public var hat_next_bt:SimpleButton;
public var top_prev_bt:SimpleButton;
public var tool_next_bt:SimpleButton;
public function menu_206(){
addFrameScript(0, frame1, 1, frame2);
}
public function b14(_arg1:MouseEvent):void{
if (MovieClip(parent).body.shoes.currentFrame < MovieClip(parent).body.shoes.totalFrames){
MovieClip(parent).body.shoes.nextFrame();
} else {
MovieClip(parent).body.shoes.gotoAndPlay(1);
};
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b15(_arg1:MouseEvent):void{
if (MovieClip(parent).body.tool.currentFrame == 1){
MovieClip(parent).body.tool.gotoAndStop(MovieClip(parent).body.tool.totalFrames);
} else {
MovieClip(parent).body.tool.prevFrame();
};
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b13(_arg1:MouseEvent):void{
if (MovieClip(parent).body.shoes.currentFrame == 1){
MovieClip(parent).body.shoes.gotoAndStop(MovieClip(parent).body.shoes.totalFrames);
} else {
MovieClip(parent).body.shoes.prevFrame();
};
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b1(_arg1:MouseEvent):void{
if (MovieClip(parent).body.hair.currentFrame == 1){
MovieClip(parent).body.hair.gotoAndStop(MovieClip(parent).body.hair.totalFrames);
} else {
MovieClip(parent).body.hair.prevFrame();
};
if (MovieClip(parent).body.hair_up.currentFrame == 1){
MovieClip(parent).body.hair_up.gotoAndStop(MovieClip(parent).body.hair_up.totalFrames);
} else {
MovieClip(parent).body.hair_up.prevFrame();
};
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b2(_arg1:MouseEvent):void{
if (MovieClip(parent).body.hair.currentFrame < MovieClip(parent).body.hair.totalFrames){
MovieClip(parent).body.hair.nextFrame();
} else {
MovieClip(parent).body.hair.gotoAndPlay(1);
};
if (MovieClip(parent).body.hair_up.currentFrame < MovieClip(parent).body.hair_up.totalFrames){
MovieClip(parent).body.hair_up.nextFrame();
} else {
MovieClip(parent).body.hair_up.gotoAndPlay(1);
};
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b17(_arg1:MouseEvent):void{
if (MovieClip(parent).bg.currentFrame == 1){
MovieClip(parent).bg.gotoAndStop(MovieClip(parent).bg.totalFrames);
} else {
MovieClip(parent).bg.prevFrame();
};
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b18(_arg1:MouseEvent):void{
if (MovieClip(parent).bg.currentFrame < MovieClip(parent).bg.totalFrames){
MovieClip(parent).bg.nextFrame();
} else {
MovieClip(parent).bg.gotoAndPlay(1);
};
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b10(_arg1:MouseEvent):void{
if (MovieClip(parent).body.dress.currentFrame < MovieClip(parent).body.dress.totalFrames){
MovieClip(parent).body.dress.nextFrame();
} else {
MovieClip(parent).body.dress.gotoAndPlay(1);
};
MovieClip(parent).body.bottom.visible = false;
MovieClip(parent).body.top.visible = false;
MovieClip(parent).body.dress.visible = true;
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b16(_arg1:MouseEvent):void{
if (MovieClip(parent).body.tool.currentFrame < MovieClip(parent).body.tool.totalFrames){
MovieClip(parent).body.tool.nextFrame();
} else {
MovieClip(parent).body.tool.gotoAndPlay(1);
};
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b12(_arg1:MouseEvent):void{
if (MovieClip(parent).body.hat.currentFrame < MovieClip(parent).body.hat.totalFrames){
MovieClip(parent).body.hat.nextFrame();
} else {
MovieClip(parent).body.hat.gotoAndPlay(1);
};
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function showmenubt(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
public function b11(_arg1:MouseEvent):void{
if (MovieClip(parent).body.hat.currentFrame == 1){
MovieClip(parent).body.hat.gotoAndStop(MovieClip(parent).body.hat.totalFrames);
} else {
MovieClip(parent).body.hat.prevFrame();
};
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function reset(_arg1:MouseEvent):void{
MovieClip(parent).body.hair.gotoAndStop(1);
MovieClip(parent).body.hair_up.gotoAndStop(1);
MovieClip(parent).body.top.gotoAndStop(1);
MovieClip(parent).body.top.visible = true;
MovieClip(parent).body.bottom.gotoAndStop(1);
MovieClip(parent).body.bottom.visible = true;
MovieClip(parent).body.dress.gotoAndStop(1);
MovieClip(parent).body.dress.visible = false;
MovieClip(parent).body.hat.gotoAndStop(1);
MovieClip(parent).body.shoes.gotoAndStop(1);
MovieClip(parent).bg.gotoAndStop(1);
MovieClip(parent).body.eyes.gotoAndStop(1);
MovieClip(parent).body.tool.gotoAndStop(1);
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b03(_arg1:MouseEvent):void{
if (MovieClip(parent).body.eyes.currentFrame == 1){
MovieClip(parent).body.eyes.gotoAndStop(MovieClip(parent).body.eyes.totalFrames);
} else {
MovieClip(parent).body.eyes.prevFrame();
};
MovieClip(parent).body.scaleX = 4;
MovieClip(parent).body.scaleY = 4;
}
public function b04(_arg1:MouseEvent):void{
if (MovieClip(parent).body.eyes.currentFrame < MovieClip(parent).body.eyes.totalFrames){
MovieClip(parent).body.eyes.nextFrame();
} else {
MovieClip(parent).body.eyes.gotoAndPlay(1);
};
MovieClip(parent).body.scaleX = 4;
MovieClip(parent).body.scaleY = 4;
}
public function b05(_arg1:MouseEvent):void{
if (MovieClip(parent).body.top.currentFrame == 1){
MovieClip(parent).body.top.gotoAndStop(MovieClip(parent).body.top.totalFrames);
} else {
MovieClip(parent).body.top.prevFrame();
};
MovieClip(parent).body.dress.visible = false;
MovieClip(parent).body.bottom.visible = true;
MovieClip(parent).body.top.visible = true;
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function closemenubt(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
public function b08(_arg1:MouseEvent):void{
if (MovieClip(parent).body.bottom.currentFrame < MovieClip(parent).body.bottom.totalFrames){
MovieClip(parent).body.bottom.nextFrame();
} else {
MovieClip(parent).body.bottom.gotoAndPlay(1);
};
MovieClip(parent).body.dress.visible = false;
MovieClip(parent).body.top.visible = true;
MovieClip(parent).body.bottom.visible = true;
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
function frame2(){
open_menu_bt.addEventListener(MouseEvent.MOUSE_DOWN, showmenubt);
}
public function b06(_arg1:MouseEvent):void{
if (MovieClip(parent).body.top.currentFrame < MovieClip(parent).body.top.totalFrames){
MovieClip(parent).body.top.nextFrame();
} else {
MovieClip(parent).body.top.gotoAndPlay(1);
};
MovieClip(parent).body.dress.visible = false;
MovieClip(parent).body.bottom.visible = true;
MovieClip(parent).body.top.visible = true;
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b07(_arg1:MouseEvent):void{
if (MovieClip(parent).body.bottom.currentFrame == 1){
MovieClip(parent).body.bottom.gotoAndStop(MovieClip(parent).body.bottom.totalFrames);
} else {
MovieClip(parent).body.bottom.prevFrame();
};
MovieClip(parent).body.dress.visible = false;
MovieClip(parent).body.top.visible = true;
MovieClip(parent).body.bottom.visible = true;
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
public function b09(_arg1:MouseEvent):void{
if (MovieClip(parent).body.dress.currentFrame == 1){
MovieClip(parent).body.dress.gotoAndStop(MovieClip(parent).body.dress.totalFrames);
} else {
MovieClip(parent).body.dress.prevFrame();
};
MovieClip(parent).body.bottom.visible = false;
MovieClip(parent).body.top.visible = false;
MovieClip(parent).body.dress.visible = true;
MovieClip(parent).body.scaleX = 1;
MovieClip(parent).body.scaleY = 1;
}
function frame1(){
stop();
close_menu_bt.addEventListener(MouseEvent.MOUSE_DOWN, closemenubt);
hair_prev_bt.addEventListener(MouseEvent.MOUSE_DOWN, b1);
hair_next_bt.addEventListener(MouseEvent.MOUSE_DOWN, b2);
eyes_prev_bt.addEventListener(MouseEvent.MOUSE_DOWN, b03);
eyes_next_bt.addEventListener(MouseEvent.MOUSE_DOWN, b04);
top_prev_bt.addEventListener(MouseEvent.MOUSE_DOWN, b05);
top_next_bt.addEventListener(MouseEvent.MOUSE_DOWN, b06);
bottom_prev_bt.addEventListener(MouseEvent.MOUSE_DOWN, b07);
bottom_next_bt.addEventListener(MouseEvent.MOUSE_DOWN, b08);
dress_prev_bt.addEventListener(MouseEvent.MOUSE_DOWN, b09);
dress_next_bt.addEventListener(MouseEvent.MOUSE_DOWN, b10);
shoes_prev_bt.addEventListener(MouseEvent.MOUSE_DOWN, b13);
shoes_next_bt.addEventListener(MouseEvent.MOUSE_DOWN, b14);
tool_prev_bt.addEventListener(MouseEvent.MOUSE_DOWN, b15);
tool_next_bt.addEventListener(MouseEvent.MOUSE_DOWN, b16);
hat_prev_bt.addEventListener(MouseEvent.MOUSE_DOWN, b11);
hat_next_bt.addEventListener(MouseEvent.MOUSE_DOWN, b12);
bg_prev_bt.addEventListener(MouseEvent.MOUSE_DOWN, b17);
bg_next_bt.addEventListener(MouseEvent.MOUSE_DOWN, b18);
reset_bt.addEventListener(MouseEvent.MOUSE_DOWN, reset);
}
}
}//package G2GFarmer_fla
Section 15
//scarecrowmc_18 (G2GFarmer_fla.scarecrowmc_18)
package G2GFarmer_fla {
import flash.display.*;
public dynamic class scarecrowmc_18 extends MovieClip {
public function scarecrowmc_18(){
addFrameScript(0, frame1, 159, frame160);
}
function frame1(){
stop();
}
function frame160(){
this.gotoAndStop(1);
}
}
}//package G2GFarmer_fla
Section 16
//shoesmc_31 (G2GFarmer_fla.shoesmc_31)
package G2GFarmer_fla {
import flash.display.*;
public dynamic class shoesmc_31 extends MovieClip {
public function shoesmc_31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package G2GFarmer_fla
Section 17
//topmc_54 (G2GFarmer_fla.topmc_54)
package G2GFarmer_fla {
import flash.display.*;
public dynamic class topmc_54 extends MovieClip {
public function topmc_54(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package G2GFarmer_fla
Section 18
//sound (sound)
package {
import flash.media.*;
public dynamic class sound extends Sound {
}
}//package