Section 1
//JPEGEncoder (images.JPEGEncoder)
package images {
import flash.utils.*;
import flash.display.*;
public class JPEGEncoder {
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 YAC_HT:Array;
private var bytenew:int;// = 0
private var fdtbl_Y:Array;
private var std_ac_chrominance_nrcodes:Array;
private var YDC_HT: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 static const CONTENT_TYPE:String = "image/jpeg";
public function JPEGEncoder(_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:Object, _arg2:int, _arg3:int, _arg4:int=0, _arg5:int=0):void{
var _local8:int;
var _local9:uint;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local6:int;
var _local7:int;
while (_local7 < 8) {
_local8 = 0;
while (_local8 < 8) {
_local9 = getPixel32(_arg1, (_arg2 + _local8), (_arg3 + _local7), _arg4, _arg5);
_local10 = Number(((_local9 >> 16) & 0xFF));
_local11 = Number(((_local9 >> 8) & 0xFF));
_local12 = Number((_local9 & 0xFF));
YDU[_local6] = ((((0.299 * _local10) + (0.587 * _local11)) + (0.114 * _local12)) - 128);
UDU[_local6] = (((-0.16874 * _local10) + (-0.33126 * _local11)) + (0.5 * _local12));
VDU[_local6] = (((0.5 * _local10) + (-0.41869 * _local11)) + (-0.08131 * _local12));
_local6++;
_local8++;
};
_local7++;
};
}
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 = _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;
};
};
}
public function encode(_arg1:BitmapData):ByteArray{
return (internalEncode(_arg1, _arg1.width, _arg1.height, _arg1.transparent));
}
private function initCategoryNumber():void{
var _local1:int;
var _local2 = 1;
var _local3 = 2;
var _local4 = 1;
while (_local4 <= 15) {
_local1 = _local2;
while (_local1 < _local3) {
category[(32767 + _local1)] = _local4;
bitcode[(32767 + _local1)] = new BitString();
bitcode[(32767 + _local1)].len = _local4;
bitcode[(32767 + _local1)].val = _local1;
_local1++;
};
_local1 = -((_local3 - 1));
while (_local1 <= -(_local2)) {
category[(32767 + _local1)] = _local4;
bitcode[(32767 + _local1)] = new BitString();
bitcode[(32767 + _local1)].len = _local4;
bitcode[(32767 + _local1)].val = ((_local3 - 1) + _local1);
_local1++;
};
_local2 = (_local2 << 1);
_local3 = (_local3 << 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 getPixel32(_arg1:Object, _arg2:int, _arg3:int, _arg4:int=0, _arg5:int=0):uint{
var _local6:BitmapData;
var _local7:ByteArray;
if ((_arg1 is BitmapData)){
_local6 = (_arg1 as BitmapData);
return (_local6.getPixel32(_arg2, _arg3));
};
if ((_arg1 is ByteArray)){
_local7 = (_arg1 as ByteArray);
_local7.position = (((_arg3 * _arg4) * 4) + (_arg2 * 4));
return (_local7.readUnsignedInt());
};
throw (new ArgumentError("The source argument must be an instance of flash.display.BitmapData or flash.utils.ByteArray."));
}
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 internalEncode(_arg1:Object, _arg2:int, _arg3:int, _arg4:Boolean=true):ByteArray{
var _local9:int;
var _local10:BitString;
byteout = new ByteArray();
bytenew = 0;
bytepos = 7;
writeWord(65496);
writeAPP0();
writeDQT();
writeSOF0(_arg2, _arg3);
writeDHT();
writeSOS();
var _local5:Number = 0;
var _local6:Number = 0;
var _local7:Number = 0;
bytenew = 0;
bytepos = 7;
var _local8:int;
while (_local8 < _arg3) {
_local9 = 0;
while (_local9 < _arg2) {
RGB2YUV(_arg1, _local9, _local8, _arg2, _arg3);
_local5 = processDU(YDU, fdtbl_Y, _local5, YDC_HT, YAC_HT);
_local6 = processDU(UDU, fdtbl_UV, _local6, UVDC_HT, UVAC_HT);
_local7 = processDU(VDU, fdtbl_UV, _local7, UVDC_HT, UVAC_HT);
_local9 = (_local9 + 8);
};
_local8 = (_local8 + 8);
};
if (bytepos >= 0){
_local10 = new BitString();
_local10.len = (bytepos + 1);
_local10.val = ((1 << (bytepos + 1)) - 1);
writeBits(_local10);
};
writeWord(65497);
return (byteout);
}
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);
}
public function encodeByteArray(_arg1:ByteArray, _arg2:int, _arg3:int, _arg4:Boolean=true):ByteArray{
return (internalEncode(_arg1, _arg2, _arg3, _arg4));
}
public function get contentType():String{
return (CONTENT_TYPE);
}
private function initQuantTables(_arg1:int):void{
var _local3:Number;
var _local8:int;
var _local2: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 _local4:int;
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:Number;
var _local23:Number;
var _local3:int;
_local4 = 0;
while (_local4 < 8) {
_local5 = (_arg1[(_local3 + 0)] + _arg1[(_local3 + 7)]);
_local6 = (_arg1[(_local3 + 0)] - _arg1[(_local3 + 7)]);
_local7 = (_arg1[(_local3 + 1)] + _arg1[(_local3 + 6)]);
_local8 = (_arg1[(_local3 + 1)] - _arg1[(_local3 + 6)]);
_local9 = (_arg1[(_local3 + 2)] + _arg1[(_local3 + 5)]);
_local10 = (_arg1[(_local3 + 2)] - _arg1[(_local3 + 5)]);
_local11 = (_arg1[(_local3 + 3)] + _arg1[(_local3 + 4)]);
_local12 = (_arg1[(_local3 + 3)] - _arg1[(_local3 + 4)]);
_local13 = (_local5 + _local11);
_local14 = (_local5 - _local11);
_local15 = (_local7 + _local9);
_local16 = (_local7 - _local9);
_arg1[(_local3 + 0)] = (_local13 + _local15);
_arg1[(_local3 + 4)] = (_local13 - _local15);
_local17 = ((_local16 + _local14) * 0.707106781);
_arg1[(_local3 + 2)] = (_local14 + _local17);
_arg1[(_local3 + 6)] = (_local14 - _local17);
_local13 = (_local12 + _local10);
_local15 = (_local10 + _local8);
_local16 = (_local8 + _local6);
_local18 = ((_local13 - _local16) * 0.382683433);
_local19 = ((0.5411961 * _local13) + _local18);
_local20 = ((1.306562965 * _local16) + _local18);
_local21 = (_local15 * 0.707106781);
_local22 = (_local6 + _local21);
_local23 = (_local6 - _local21);
_arg1[(_local3 + 5)] = (_local23 + _local19);
_arg1[(_local3 + 3)] = (_local23 - _local19);
_arg1[(_local3 + 1)] = (_local22 + _local20);
_arg1[(_local3 + 7)] = (_local22 - _local20);
_local3 = (_local3 + 8);
_local4++;
};
_local3 = 0;
_local4 = 0;
while (_local4 < 8) {
_local5 = (_arg1[(_local3 + 0)] + _arg1[(_local3 + 56)]);
_local6 = (_arg1[(_local3 + 0)] - _arg1[(_local3 + 56)]);
_local7 = (_arg1[(_local3 + 8)] + _arg1[(_local3 + 48)]);
_local8 = (_arg1[(_local3 + 8)] - _arg1[(_local3 + 48)]);
_local9 = (_arg1[(_local3 + 16)] + _arg1[(_local3 + 40)]);
_local10 = (_arg1[(_local3 + 16)] - _arg1[(_local3 + 40)]);
_local11 = (_arg1[(_local3 + 24)] + _arg1[(_local3 + 32)]);
_local12 = (_arg1[(_local3 + 24)] - _arg1[(_local3 + 32)]);
_local13 = (_local5 + _local11);
_local14 = (_local5 - _local11);
_local15 = (_local7 + _local9);
_local16 = (_local7 - _local9);
_arg1[(_local3 + 0)] = (_local13 + _local15);
_arg1[(_local3 + 32)] = (_local13 - _local15);
_local17 = ((_local16 + _local14) * 0.707106781);
_arg1[(_local3 + 16)] = (_local14 + _local17);
_arg1[(_local3 + 48)] = (_local14 - _local17);
_local13 = (_local12 + _local10);
_local15 = (_local10 + _local8);
_local16 = (_local8 + _local6);
_local18 = ((_local13 - _local16) * 0.382683433);
_local19 = ((0.5411961 * _local13) + _local18);
_local20 = ((1.306562965 * _local16) + _local18);
_local21 = (_local15 * 0.707106781);
_local22 = (_local6 + _local21);
_local23 = (_local6 - _local21);
_arg1[(_local3 + 40)] = (_local23 + _local19);
_arg1[(_local3 + 24)] = (_local23 - _local19);
_arg1[(_local3 + 8)] = (_local22 + _local20);
_arg1[(_local3 + 56)] = (_local22 - _local20);
_local3++;
_local4++;
};
_local4 = 0;
while (_local4 < 64) {
_arg1[_local4] = Math.round((_arg1[_local4] * _arg2[_local4]));
_local4++;
};
return (_arg1);
}
}
}//package images
class BitString {
public var val:int;// = 0
public var len:int;// = 0
private function BitString(){
}
}
Section 2
//8_26 (N2_fla.8_26)
package N2_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.ui.*;
public dynamic class 8_26 extends MovieClip {
public var Goto:String;
public var Url:String;
public var Logo:MovieClip;
public var Type:String;
public function 8_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
Url = "http://www.jetztmalen.de";
Goto = "jetztmalenDE";
stop();
Logo.buttonMode = true;
Logo.mouseChildren = false;
Logo.addEventListener(MouseEvent.CLICK, NewLogo);
Logo.addEventListener(MouseEvent.MOUSE_OVER, Over);
Logo.addEventListener(MouseEvent.MOUSE_OUT, Out);
}
public function NewLogo(_arg1){
if ((MovieClip(root).LogoMoreGame as Function)){
MovieClip(root).LogoMoreGame(Type);
} else {
trace(Type);
trace("loading...Error!");
};
}
public function NewGotoURL(){
var _local1:String = root.loaderInfo.url;
var _local2:* = _local1.indexOf("jetztmalen.de");
var _local3:* = _local1.indexOf("jakoloruje.pl");
var _local4:* = _local1.indexOf("dibujose.org");
var _local5:* = _local1.indexOf("desenhos.kids.sapo.pt");
var _local6:* = _local1.indexOf("funnycoloring.com");
var _local7:* = _local1.indexOf("colorare.it");
var _local8:* = _local1.indexOf("coloriage.org");
var _local9:* = _local1.indexOf("nukleuren.nl");
if (_local2 != -1){
Goto = "jetztmalenDE";
Url = "http://www.jetztmalen.de";
} else {
if (_local3 != -1){
Goto = "jakolorujePL";
Url = "http://www.jakoloruje.pl";
} else {
if (_local4 != -1){
Goto = "dibujoseORG";
Url = "http://www.dibujose.org";
} else {
if (_local5 != -1){
Goto = "sapoPT";
Url = "http://www.desenhos.kids.sapo.pt";
} else {
if (_local6 != -1){
Goto = "funnycoloringCOM";
Url = "http://www.funnycoloring.com";
} else {
if (_local7 != -1){
Goto = "colorareIT";
Url = "http://www.colorare.it";
} else {
if (_local8 != -1){
Goto = "coloriageORG";
Url = "http://www.coloriage.org";
} else {
if (_local9 != -1){
Goto = "nukleurenNL";
Url = "http://www.nukleuren.nl";
};
};
};
};
};
};
};
};
return (Goto);
}
public function Out(_arg1){
gotoAndStop(1);
}
public function IndexUrlOK(_arg1){
var _local2:URLRequest = new URLRequest(Url);
navigateToURL(_local2, "_blank");
}
public function Over(_arg1){
gotoAndStop(2);
}
}
}//package N2_fla
Section 3
//Intro_1 (N2_fla.Intro_1)
package N2_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.ui.*;
public dynamic class Intro_1 extends MovieClip {
public var Txt:TextField;
public var loadingLogo:MovieClip;
public function Intro_1(){
addFrameScript(115, frame116);
}
function frame116(){
MovieClip(root).Load100GameStart();
}
}
}//package N2_fla
Section 4
//loadingLogo_2 (N2_fla.loadingLogo_2)
package N2_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.ui.*;
public dynamic class loadingLogo_2 extends MovieClip {
public function loadingLogo_2(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame1(){
gotoAndStop(String(MovieClip(root).Goto));
stop();
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
}
}//package N2_fla
Section 5
//MainTimeline (N2_fla.MainTimeline)
package N2_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.ui.*;
public dynamic class MainTimeline extends MovieClip {
public var RGBClub:MovieClip;
public var Lang:String;
public var Game:MovieClip;
public var loader:URLLoader;
public var CountryUrl:String;
public var NameError:String;
public var FriendNameError:String;
public var SeedOK:String;
public var sender:LocalConnection;
public var PicClub:MovieClip;
public var PrintOn:SimpleButton;
public var Url:String;
public var Intro:MovieClip;
public var taal:String;
public var MochiBotKey:String;
public var portal:String;
public var url:String;
public var MessageError:String;
public var EmaiPic:MovieClip;
public var EmailOn:SimpleButton;
public var YourMailError:String;
public var Goto:String;
public var ServerFps;
public var Hand:MovieClip;
public var TitleError:String;
public var GameName:String;
public var MusicOn:MovieClip;
public var MousePic:MovieClip;
public var Continue:SimpleButton;
public var domain:String;
public var EmalError:String;
public var TempS:Number;
public var utm_content:String;
public var SaveRGB:uint;
public var SeedError:String;
public var branding:String;
public function MainTimeline(){
addFrameScript(0, frame1, 4, frame5, 17, frame18);
}
public function GameUrl(){
var _local2:String;
var _local1:String = ((((((("?utm_campaign=" + GameName) + "&utm_content=") + utm_content) + "&utm_medium=") + branding) + "&utm_source=") + _local2);
_local2 = ("http://www..com/tessa.html" + _local1);
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3);
}
public function MouseRGB(_arg1:uint){
var _local2:ColorTransform = new ColorTransform();
_local2.color = _arg1;
MousePic.Rgb.transform.colorTransform = _local2;
RGBClub.MyRGB.transform.colorTransform = _local2;
}
public function PrintReady(_arg1:Event){
StartPrint();
}
public function MouseAction(_arg1){
_arg1.addEventListener(MouseEvent.MOUSE_OVER, HandAction);
_arg1.addEventListener(MouseEvent.MOUSE_OUT, HandAction);
}
public function HomePage(){
gotoAndStop("HomeFrame");
}
public function PicClubReady(){
var YMax:Number;
var YLength:Number;
var PicNext:*;
var Mc:MovieClip;
PicNext = function (_arg1:Event){
if (_arg1.target.name == "Up"){
if (YMax > 1){
YMax--;
PicClub.a.y = (PicClub.a.y + YLength);
};
};
if (_arg1.target.name == "Down"){
if (YMax < 3){
YMax++;
PicClub.a.y = (PicClub.a.y - YLength);
};
};
};
var i:* = 0;
while (i < 17) {
Mc = new IocID();
PicClub.a.addChild(Mc);
Mc.y = (int((70 * i)) + 70);
Mc.s = (i + 1);
Mc.mouseChildren = false;
Mc.gotoAndStop(Mc.s);
Mc.addEventListener(MouseEvent.MOUSE_DOWN, PicDragReady);
i = (i + 1);
};
Game.Up.addEventListener(MouseEvent.CLICK, PicNext);
Game.Down.addEventListener(MouseEvent.CLICK, PicNext);
YMax = 1;
YLength = 400;
}
public function MouseXY(_arg1:Event){
var _local2:MovieClip = _arg1.target;
_local2.x = mouseX;
_local2.y = mouseY;
}
function frame18(){
GameInitReady();
}
public function IntroMoreGame(_arg1:Event){
if (Intro.currentFrame == 1){
LogoMoreGame("preloader");
} else {
LogoMoreGame("intro");
};
}
function frame1(){
taal = "pl";
Intro.loadingLogo.gotoAndStop(taal.toLowerCase());
GameName = "online-kleuren-hamburger";
MochiBotKey = "1fa7f534";
branding = "original";
Intro.gotoAndStop(1);
Continue.visible = false;
Continue.addEventListener(MouseEvent.CLICK, LoadGamePlay);
Intro.addEventListener(MouseEvent.CLICK, IntroMoreGame);
Intro.buttonMode = true;
ServerFps = stage.frameRate;
stage.frameRate = 30;
MochiBot.track(this, MochiBotKey);
sender = new LocalConnection();
url = root.loaderInfo.url;
domain = sender.domain;
utm_content = "intro";
Url = "http://www.jetztmalen.de";
Goto = "jetztmalenDE";
if (domain != "localhost"){
loader = new URLLoader(new URLRequest("http://api.jaludo.com/geoip/index.php?return=domain&type=gameshell&portal=nukleuren"));
loader.addEventListener(Event.COMPLETE, com);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
} else {
UrlReady("nukleuren.nl");
};
stop();
}
public function PictureReady(_arg1:MovieClip){
var _local3:*;
var _local2:* = 0;
while (_local2 < _arg1.numChildren) {
_local3 = _arg1.getChildAt(_local2);
_local3.addEventListener(MouseEvent.CLICK, RoleReady);
_local2++;
};
}
public function ioErrorHandler(_arg1){
UrlReady("nukleuren.nl");
}
public function LoadGamePlay(_arg1){
Continue.visible = false;
Intro.gotoAndPlay(2);
}
public function preloader(_arg1){
utm_content = "preloader";
MoreGameURL();
}
function frame5(){
stop();
GameMask.GameMaskReady(700, 500, MovieClip(root));
Lang = "de";
NewGame();
TempS = 1;
}
public function CountryLoad(_arg1:MovieClip, _arg2:String){
var _local3:String;
var _local4:String;
var _local5:String;
var _local6:String;
var _local7:String;
var _local8:String;
if (_arg2 == "jetztmalen.de"){
_local3 = "An Ihre Freunde senden.";
_local4 = "Naam";
_local5 = "Ihre Mailadresse";
_local6 = "Name Ihres Freundes";
_local7 = "Mailadresse";
_local8 = "Nachricht";
SeedOK = "Ihre Mail wurde gesendet.";
SeedError = "Das Senden Ihrer Mail ist fehlgeschlagen.";
NameError = "Geben Sie Ihren Namen an.";
YourMailError = "Geben Sie Ihre Mailadresse an.";
FriendNameError = "Geben Sie den Namen Ihres Freundes/Ihrer Freundin an.";
EmalError = "Geben Sie die Mailadresse Ihres Freundes/Ihrer Freundin an.";
MessageError = "";
} else {
if (_arg2 == "jakoloruje.pl"){
_local3 = "Wyślij do przyjaciół.";
_local4 = "Imię";
_local5 = "Twój adres e-mail";
_local6 = "Imię przyjaciela";
_local7 = "E-mail adres";
_local8 = "Wiadomość";
SeedOK = "Twój mail zostal wyslany";
SeedError = "Wyslanie maila sie nie powiodlo";
NameError = "Wpisz swoje imie/nazwisko";
YourMailError = "Wpisz swój adres e-mailowy";
FriendNameError = "Wpisz imiona Twoich znajomych";
EmalError = "Wpisz adres e-mail Twoich znajomych";
MessageError = "";
} else {
if (_arg2 == "dibujos.org"){
_local3 = "Envía a tus amig@s";
_local4 = "Nombre";
_local5 = "Tu e-mail";
_local6 = "Nombre de tu amig@";
_local7 = "E-mail";
_local8 = "Mensaje";
SeedOK = "Tu e-mail ha sido enviado.";
SeedError = "Ha habido un error al enviar el correo electrónico";
NameError = "Escribe tu nombre.";
YourMailError = "Escribe tu dirección";
FriendNameError = "Escribe el nombre de tu amig@";
EmalError = "Escribe el e-mail de tu amig@";
MessageError = "";
} else {
if (_arg2 == "desenhos.pt"){
_local3 = "Envia para os teus amigos.";
_local4 = "Nome";
_local5 = "O teu endereço de e-mail";
_local6 = "Nome do amigo";
_local7 = "Endereço de e-mail";
_local8 = "Mensagem";
SeedOK = "O teu e-mail foi enviado.";
SeedError = "O envio do e-mail falhou.";
NameError = "Preenche o teu nome";
YourMailError = "Preenche o teu endereço de e-mail.";
FriendNameError = "Preenche o nome da(o) tua(teu) namorada(o)";
EmalError = "o endereço e-mail da(o) tua(teu) namorada(o)";
MessageError = "";
} else {
if (_arg2 == "funnycoloring.com"){
_local3 = "Send to your friends.";
_local4 = "Name";
_local5 = "Your e-mail address";
_local6 = "Name of friend";
_local7 = "E-mail address";
_local8 = "Message";
SeedOK = "Your email has been sent.";
SeedError = "Sending of the email has failed.";
NameError = "Fill in your own name";
YourMailError = "Fill in your own e-mail address.";
FriendNameError = "Fill in the name of your (girl)friend.";
EmalError = "Fill in the e-mail address of your (girl)friend.";
MessageError = "";
} else {
if (_arg2 == "colorare.it"){
_local3 = "Inviare ai tuoi amici.";
_local4 = "Nome";
_local5 = "Il tuo indirizzo e-mail";
_local6 = "Il nome del tuo amico";
_local7 = "Indirizzo e-mail";
_local8 = "Messaggio";
SeedOK = "La tua e-mail è stata inviata";
SeedError = "La tua e-mail non è stata inviata";
NameError = "Inserisci il tuo nome";
YourMailError = "Inserisci il tuo indirizzo e-mail";
FriendNameError = "Inserisci il nome del tuo amico / della tua amica";
EmalError = "Inserisci l'indirizzo e-mail del tuo amico / della tua amica";
MessageError = "";
} else {
if (_arg2 == "coloriage.org"){
_local3 = "Envoie-le à tes amis";
_local4 = "Nom";
_local5 = "Ton adresse e-mail";
_local6 = "Le nom de ton ami";
_local7 = "Adresse e-mail";
_local8 = "Message";
SeedOK = "Ton e-mail a été envoyé";
SeedError = "Ton e-mail n'a pas été envoyé";
NameError = "Saisis ton nom.";
YourMailError = "Saisis ton adresse e-mail.";
FriendNameError = "Saisis le nom de ton ami(e).";
EmalError = "Saisis l'adresse e-mail de ton ami(e).";
MessageError = "";
} else {
if (_arg2 == "nukleuren.nl"){
_local3 = "Stuur door naar je vrienden.";
_local4 = "Naam";
_local5 = "Jouw e-mail adres";
_local6 = "Naam van vriend";
_local7 = "E-mail adres";
_local8 = "Bericht";
SeedOK = "Je email is verstuurd";
SeedError = "Versturen van de email is mislukt";
NameError = "Vul je eigen naam in";
YourMailError = "Vul je eigen email adres in.";
FriendNameError = "Vul de naam van je vriend(in) in.";
EmalError = "Vul het email adres van je vriend(in) in.";
MessageError = "";
} else {
_local3 = "Send to your friends.";
_local4 = "Name";
_local5 = "Your e-mail address";
_local6 = "Name of friend";
_local7 = "E-mail address";
_local8 = "Message";
SeedOK = "Your email has been sent.";
SeedError = "Sending of the email has failed.";
NameError = "Fill in your own name";
YourMailError = "Fill in your own e-mail address.";
FriendNameError = "Fill in the name of your (girl)friend.";
EmalError = "Fill in the e-mail address of your (girl)friend.";
MessageError = "";
};
};
};
};
};
};
};
};
_arg1.Title.text = _local3;
_arg1.Name.text = _local4;
_arg1.YourMail.text = _local5;
_arg1.FriendName.text = _local6;
_arg1.Emal.text = _local7;
_arg1.Message.text = _local8;
}
public function StopDrag(_arg1:Event){
var _local2:MovieClip = _arg1.target;
_local2.stopDrag();
trace(_local2.x);
if (_local2.x > 560){
Game.removeChild(_local2);
};
}
public function com(_arg1){
var _local2:String;
_local2 = _arg1.target.data.toLowerCase();
trace(("读取到:" + _local2));
UrlReady(_local2);
}
public function intro(_arg1){
utm_content = "intro";
MoreGameURL();
}
public function PicDragReady(_arg1:Event){
var _local2:MovieClip = new IocID();
_local2.gotoAndStop(_arg1.target.s);
Game.addChild(_local2);
_local2.startDrag(true);
_local2.mouseChildren = false;
_local2.addEventListener(MouseEvent.MOUSE_UP, StopDrag);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, DragReady);
}
public function EmailReady(_arg1:Event){
var Pic:*;
var ExitEmail:*;
var ScrollV:*;
var SendOK:*;
var event = _arg1;
ExitEmail = function (_arg1:Event){
Mouse.hide();
EmaiPic.visible = false;
};
ScrollV = function (_arg1:Event){
if (_arg1.target.name == "Up"){
EmaiPic.Message.scrollV--;
} else {
EmaiPic.Message.scrollV++;
};
};
SendOK = function (_arg1:Event){
var _local2:* = EmaiPic.Name.text;
var _local3:* = EmaiPic.YourMail.text;
var _local4:* = EmaiPic.FriendName.text;
var _local5:* = EmaiPic.Emal.text;
var _local6:* = EmaiPic.Message.text;
if ((((_local2.charAt(0) == " ")) || ((_local2.length < 2)))){
EmaiPic.ErrorMsg.text = NameError;
return (false);
};
if ((((_local3.charAt(0) == " ")) || ((_local3.indexOf("@") == -1)))){
EmaiPic.ErrorMsg.text = YourMailError;
return (false);
};
if ((((_local4.charAt(0) == " ")) || ((_local4.length < 2)))){
EmaiPic.ErrorMsg.text = FriendNameError;
return (false);
};
if ((((_local5.charAt(0) == " ")) || ((_local5.indexOf("@") == -1)))){
EmaiPic.ErrorMsg.text = EmalError;
return (false);
};
if ((((_local6.charAt(0) == " ")) || ((_local6.length < 2)))){
};
var _local7:Object = new Object();
_local7.Name = _local2;
_local7.YourMail = _local3;
_local7.FriendName = _local4;
_local7.Emal = _local5;
_local7.Message = _local6;
_local7.Lang = taal;
_local7.ErrorMsg = EmaiPic.ErrorMsg;
_local7.SeedOK = SeedOK;
_local7.SeedError = SeedError;
_local7.OK = EmaiPic.OK;
SendData(_local7);
};
var SendData:* = function (_arg1:Object){
trace("SendOK:");
EmaiPic.OK.visible = false;
SaveJpg.Ready(Pic, _arg1);
};
CountryLoad(EmaiPic.Body, CountryUrl);
Pic = DrawJPG(root);
EmaiPic.visible = true;
Mouse.show();
EmaiPic.OK.visible = true;
EmaiPic.OK.addEventListener(MouseEvent.CLICK, SendOK);
EmaiPic.Exit.addEventListener(MouseEvent.CLICK, ExitEmail);
EmaiPic.Up.addEventListener(MouseEvent.CLICK, ScrollV);
EmaiPic.Down.addEventListener(MouseEvent.CLICK, ScrollV);
}
public function StartPrint(){
var _local1:BitmapData = new BitmapData(700, 440, true, 0);
_local1.draw(root);
var _local2:Rectangle = new Rectangle(150, 50, 450, 440);
var _local3:Point = new Point(0, 0);
var _local4:BitmapData = new BitmapData(500, 500, true, 0);
_local4.copyPixels(_local1, _local2, _local3);
var _local5:Bitmap = new Bitmap(_local4);
var _local6:PrintJob = new PrintJob();
var _local7:Sprite = new Sprite();
_local7.addChild(_local5);
_local6.start();
_local6.addPage(_local7);
_local6.send();
}
public function GameInitReady(){
MousePic.addEventListener(Event.ENTER_FRAME, MouseXY);
MousePic.mouseChildren = false;
MousePic.mouseEnabled = false;
RGBClubInit(RGBClub.RGBPic);
PictureReady(Game.Picture.Pic);
PicClubReady();
Mouse.hide();
EmaiPic.visible = false;
Hand.mouseEnabled = false;
PrintOn.addEventListener(MouseEvent.CLICK, PrintReady);
EmailOn.addEventListener(MouseEvent.CLICK, EmailReady);
MouseAction(PrintOn);
MouseAction(MusicOn);
MouseAction(EmailOn);
}
public function NewGame(){
gotoAndStop("GameFrame");
}
public function UrlReady(_arg1){
if (_arg1 == "jetztmalen.de"){
Goto = "jetztmalenDE";
Url = "http://www.jetztmalen.de";
taal = "de";
} else {
if (_arg1 == "jakoloruje.pl"){
Goto = "jakolorujePL";
Url = "http://www.jakoloruje.pl";
taal = "pl";
} else {
if (_arg1 == "dibujos.org"){
Goto = "dibujosORG";
Url = "http://www.dibujos.org";
taal = "org";
} else {
if (_arg1 == "desenhos.pt"){
Goto = "sapoPT";
Url = "http://www.desenhos.kids.sapo.pt";
taal = "pt";
} else {
if (_arg1 == "funnycoloring.com"){
Goto = "funnycoloringCOM";
Url = "http://www.funnycoloring.com";
taal = "com";
} else {
if (_arg1 == "colorare.it"){
Goto = "colorareIT";
Url = "http://www.colorare.it";
taal = "it";
} else {
if (_arg1 == "coloriage.org"){
Goto = "coloriageORG";
Url = "http://www.coloriage.org";
taal = "org";
} else {
if (_arg1 == "nukleuren.nl"){
Goto = "nukleurenNL";
Url = "http://www.nukleuren.nl";
taal = "nl";
} else {
Goto = "nukleurenNL";
Url = "http://www.nukleuren.nl";
taal = "nl";
};
};
};
};
};
};
};
};
CountryUrl = _arg1;
trace(("Type:" + _arg1));
trace(("Url:" + Url));
trace(("Goto:" + Goto));
Intro.loadingLogo.gotoAndStop(Goto);
trace(("taal: " + taal));
LoadingReady();
}
public function Load100GameStart(){
trace("游戏开始!");
SoundMixer.stopAll();
stage.frameRate = ServerFps;
gotoAndStop(5);
}
public function HandAction(_arg1:Event){
if (_arg1.type == "mouseOver"){
Hand.gotoAndStop(_arg1.target.name);
} else {
Hand.gotoAndStop(1);
};
}
public function RoleReady(_arg1:Event){
var _local2:MovieClip = _arg1.target;
var _local3:ColorTransform = new ColorTransform();
_local3.color = SaveRGB;
_local2.transform.colorTransform = _local3;
}
public function DragReady(_arg1:Event){
var _local2:MovieClip = _arg1.target;
_local2.startDrag();
}
public function RGBClubInit(_arg1:MovieClip){
var XMax:Number;
var Length:Number;
var RGBNext:*;
var Obj:*;
var Mc = _arg1;
RGBNext = function (_arg1:Event){
if (_arg1.target.name == "Up"){
if (XMax > 1){
XMax--;
Mc.x = (Mc.x + Length);
};
};
if (_arg1.target.name == "Down"){
if (XMax < 4){
XMax++;
Mc.x = (Mc.x - Length);
};
};
};
var i:* = 0;
while (i < Mc.numChildren) {
Obj = Mc.getChildAt(i);
Obj.addEventListener(MouseEvent.CLICK, RGBReady);
Obj.buttonMode = true;
i = (i + 1);
};
RGBClub.Up.addEventListener(MouseEvent.CLICK, RGBNext);
RGBClub.Down.addEventListener(MouseEvent.CLICK, RGBNext);
XMax = 1;
Length = 635;
}
public function LogoMoreGame(_arg1:String){
utm_content = _arg1;
MoreGameURL();
}
public function DrawJPG(_arg1){
var _local2:BitmapData = new BitmapData(700, 440, true, 0);
_local2.draw(_arg1);
var _local3:Rectangle = new Rectangle(150, 50, 450, 440);
var _local4:Point = new Point(0, 0);
var _local5:BitmapData = new BitmapData(500, 500, true, 0);
_local5.copyPixels(_local2, _local3, _local4);
var _local6:Bitmap = new Bitmap(_local5);
var _local7:Sprite = new Sprite();
_local7.addChild(_local6);
return (_local7);
}
public function LoadingReady(){
var onEnterFramee:*;
onEnterFramee = function (_arg1:Event){
var _local2:Number;
var _local3:Number;
if (framesLoaded == totalFrames){
stage.removeEventListener(Event.ENTER_FRAME, onEnterFramee);
Continue.visible = true;
} else {
_local2 = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal);
_local3 = Math.round((_local2 * 100));
Intro.Txt.text = (_local3 + "%");
};
};
stage.addEventListener(Event.ENTER_FRAME, onEnterFramee);
}
public function MoreGameURL(){
var _local1:String = ((((((("?utm_campaign=" + GameName) + "&utm_content=") + utm_content) + "&utm_medium=") + branding) + "&utm_source=") + url);
var _local2:String = (Url + _local1);
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3);
}
public function RGBReady(_arg1:Event){
var _local2:MovieClip = _arg1.target;
var _local3:ColorTransform = new ColorTransform();
var _local4:uint = _local2.transform.colorTransform.color;
SaveRGB = _local4;
MouseRGB(_local4);
}
}
}//package N2_fla
Section 6
//Timeline_139 (N2_fla.Timeline_139)
package N2_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.ui.*;
public dynamic class Timeline_139 extends MovieClip {
public var a:MovieClip;
public var Max:uint;
public var TempRGB:uint;
public function Timeline_139(){
addFrameScript(0, frame1);
}
public function DragMove(_arg1){
var _local2:* = _arg1.target.x;
var _local3:* = (MovieClip(root).SaveRGB + (_local2 * 2));
TempRGB = _local3;
MovieClip(root).MouseRGB(_local3);
}
public function StartDrag(_arg1:MouseEvent){
var _local2:Rectangle;
if (_arg1.type == "mouseDown"){
_local2 = new Rectangle(0, 0, 100, 0);
_arg1.target.startDrag(false, _local2);
stage.addEventListener(MouseEvent.MOUSE_UP, StartDrag);
a.addEventListener(Event.ENTER_FRAME, DragMove);
} else {
MovieClip(root).SaveRGB = TempRGB;
stopDrag();
stage.removeEventListener(MouseEvent.MOUSE_UP, StartDrag);
a.removeEventListener(Event.ENTER_FRAME, DragMove);
};
}
function frame1(){
a.addEventListener(MouseEvent.MOUSE_DOWN, StartDrag);
Max = 1;
}
}
}//package N2_fla
Section 7
//Timeline_145 (N2_fla.Timeline_145)
package N2_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.ui.*;
public dynamic class Timeline_145 extends MovieClip {
public function Timeline_145(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package N2_fla
Section 8
//Timeline_168 (N2_fla.Timeline_168)
package N2_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.ui.*;
public dynamic class Timeline_168 extends MovieClip {
public var Down:SimpleButton;
public var FriendName:TextField;
public var YourMail:TextField;
public var Name:TextField;
public var Message:TextField;
public var Body:MovieClip;
public var Emal:TextField;
public var ErrorMsg:TextField;
public var Up:SimpleButton;
public var OK:SimpleButton;
public var Exit:SimpleButton;
public function Timeline_168(){
addFrameScript(0, frame1);
}
function frame1(){
Up.tabEnabled = false;
Exit.tabEnabled = false;
Down.tabEnabled = false;
OK.tabEnabled = false;
}
}
}//package N2_fla
Section 9
//Timeline_27 (N2_fla.Timeline_27)
package N2_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.ui.*;
public dynamic class Timeline_27 extends MovieClip {
public function Timeline_27(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(String(MovieClip(root).Goto));
stop();
}
}
}//package N2_fla
Section 10
//Timeline_5 (N2_fla.Timeline_5)
package N2_fla {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.ui.*;
public dynamic class Timeline_5 extends MovieClip {
public var Down:SimpleButton;
public var __id0_:MovieClip;
public var Up:SimpleButton;
public var Picture:MovieClip;
public function Timeline_5(){
__setProp___id0__();
}
function __setProp___id0__(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.Type = "logo-menu";
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package N2_fla
Section 11
//GameMask (GameMask)
package {
import flash.display.*;
public class GameMask extends MovieClip {
public static function GameMaskReady(_arg1:Number, _arg2:Number, _arg3:MovieClip){
var _local4:Sprite = new Sprite();
_local4.graphics.beginFill(0);
_local4.graphics.drawRect(0, 0, _arg1, _arg2);
_local4.graphics.endFill();
_arg3.addChild(_local4);
_arg3.mask = _local4;
}
}
}//package
Section 12
//IocID (IocID)
package {
import flash.display.*;
public dynamic class IocID extends MovieClip {
}
}//package
Section 13
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 14
//SaveJpg (SaveJpg)
package {
import flash.utils.*;
import flash.display.*;
import flash.events.*;
import images.*;
import flash.net.*;
public class SaveJpg extends Sprite {
public static function Ready(_arg1, _arg2){
var loaded:*;
var LoadError:*;
var PicURL = _arg1;
var Data = _arg2;
loaded = function (_arg1:Event){
Data.ErrorMsg.text = Data.SeedOK;
};
LoadError = function (_arg1:Event){
Data.ErrorMsg.text = Data.SeedError;
Data.OK.visible = true;
};
var msg:String = ((((((((((("lang=" + Data.Lang) + "&name=") + Data.FriendName) + "&email=") + Data.Emal) + "&yourname=") + Data.Name) + "&youremail=") + Data.YourMail) + "&bodytext=") + Data.Message);
var jpgSource:BitmapData = new BitmapData(PicURL.width, PicURL.height);
jpgSource.draw(PicURL);
var jpgEncoder:JPEGEncoder = new JPEGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
var jpgURLRequest:URLRequest = new URLRequest(("http://imgstorage.funnygames.co.uk/coloring_book/pic.php?" + msg));
jpgURLRequest.requestHeaders.push(header);
jpgURLRequest.method = URLRequestMethod.POST;
jpgURLRequest.data = jpgStream;
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, loaded);
loader.addEventListener(IOErrorEvent.IO_ERROR, LoadError);
loader.load(jpgURLRequest);
}
}
}//package