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.geom.*;
import flash.utils.*;
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
//ColorManager (Engines.ColorManager)
package Engines {
import flash.net.*;
public class ColorManager {
public static const defaultColors:Array = [new uint("0x444444"), new uint("0x666666"), new uint("0x999999"), new uint("0xCCCCCC"), new uint("0xE1E1E1"), new uint("0xFFFFFF"), new uint("0xAC9C7B"), new uint("0x767964"), new uint("0xA5A291"), new uint("0x918382"), new uint("0xB68157"), new uint("0x9C5E37"), new uint("0xFF5959"), new uint("0x59FF59")];
public static var userColors:Array = new Array();
private static var colorSO:SharedObject;
public static function RemoveUserColor(_arg1:uint):void{
var _local2:Number;
_local2 = userColors.indexOf(_arg1);
if (_local2 != -1){
userColors.splice(_local2, 1);
colorSO.data.userColors = userColors;
colorSO.flush();
};
}
public static function AddUserColor(_arg1:uint):void{
if (userColors.indexOf(_arg1) == -1){
userColors.push(_arg1);
colorSO.data.userColors = userColors;
colorSO.flush();
};
}
function ():void{
colorSO = SharedObject.getLocal("PMG");
if (colorSO.data.userColors == null){
colorSO.data.userColors = new Array();
};
userColors = colorSO.data.userColors;
}();
}
}//package Engines
Section 4
//Editor (Engines.Editor)
package Engines {
public class Editor {
public static var tool:String;
public static var category:String;
}
}//package Engines
Section 5
//GroupManager (Engines.GroupManager)
package Engines {
import flash.geom.*;
public class GroupManager {
public static function GroupItems(_arg1:Array, _arg2:Rectangle):GroupItem{
var _local3:Point;
var _local4:GroupItem;
var _local5:*;
var _local6:Number;
var _local7:Number;
_local3 = new Point((_arg2.x + (_arg2.width / 2)), (_arg2.y + (_arg2.height / 2)));
_local4 = new GroupItem();
_local4.x = _local3.x;
_local4.y = _local3.y;
for each (_local5 in _arg1) {
_local6 = (_local5.x - _local3.x);
_local7 = (_local5.y - _local3.y);
_local5.x = _local6;
_local5.y = _local7;
_local4.AddItem(_local5);
};
return (_local4);
}
public static function UngroupItems(_arg1:GroupItem, _arg2):Array{
var _local3:Array;
var _local4:Number;
var _local5:*;
var _local6:Rectangle;
var _local7:Point;
_local3 = new Array();
_local4 = (_arg1.numChildren - 1);
while (_local4 >= 0) {
_local5 = _arg1.getChildAt(_local4);
_local6 = _local5.getRect(_arg2);
_local7 = new Point((_local6.x + (_local6.width / 2)), (_local6.y + (_local6.height / 2)));
_local5.x = _local7.x;
_local5.y = _local7.y;
_local5.rotation = (_local5.rotation + _arg1.rotation);
_local5.scaleX = (_local5.scaleX * _arg1.scaleX);
_local5.scaleY = (_local5.scaleY * _arg1.scaleY);
_local3.push(_local5);
_local4--;
};
return (_local3);
}
}
}//package Engines
Section 6
//PartFactory (Engines.PartFactory)
package Engines {
import flash.display.*;
import flash.utils.*;
public class PartFactory {
public static function GetItemName(_arg1:Object):String{
return (getQualifiedClassName(_arg1));
}
public static function CreateItem(_arg1:String):MovieClip{
var _local2:Class;
var _local3:MovieClip;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
if (_local3 == null){
throw (new Error(("Error is Weapon Factory - Could not create an instance of " + _arg1)));
};
return (_local3);
}
}
}//package Engines
Section 7
//PhotoMaker (Engines.PhotoMaker)
package Engines {
import flash.display.*;
import flash.geom.*;
import com.adobe.images.*;
import flash.utils.*;
import flash.net.*;
public class PhotoMaker {
private static function AddWatermark(_arg1:MovieClip):void{
var _local2:WaterMark;
_local2 = new WaterMark();
if (_arg1.width < _local2.width){
_local2.gotoAndStop(2);
};
_local2.x = (_arg1.width + 19);
_local2.y = (_arg1.height + 19);
_arg1.addChild(_local2);
}
public static function SaveJPG(_arg1:Array, _arg2:Rectangle):void{
var _local3:MovieClip;
var _local4:Number;
var _local5:BitmapData;
var _local6:JPGEncoder;
var _local7:ByteArray;
var _local8:URLRequestHeader;
var _local9:URLRequest;
var _local10:MovieClip;
_local3 = new MovieClip();
_local4 = (_arg1.length - 1);
while (_local4 >= 0) {
_local10 = _arg1[_local4].Clone();
_arg1[_local4].Clone().x = (_local10.x - (_arg2.x - 10));
_local10.y = (_local10.y - (_arg2.y - 10));
_local3.addChild(_local10);
_local4--;
};
AddWatermark(_local3);
_local5 = new BitmapData((_local3.width + 10), (_local3.height + 10));
_local5.draw(_local3);
_local6 = new JPGEncoder(100);
_local7 = _local6.encode(_local5);
_local8 = new URLRequestHeader("Content-type", "application/octet-stream");
_local9 = new URLRequest("http://pimpmygun.doctornoob.com/download.php");
_local9.requestHeaders.push(_local8);
_local9.method = URLRequestMethod.POST;
_local9.data = _local7;
navigateToURL(_local9, "_blank");
}
}
}//package Engines
Section 8
//BaseScrollPane (fl.containers.BaseScrollPane)
package fl.containers {
import fl.core.*;
import fl.controls.*;
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import fl.events.*;
public class BaseScrollPane extends UIComponent {
protected var defaultLineScrollSize:Number;// = 4
protected var _maxHorizontalScrollPosition:Number;// = 0
protected var vScrollBar:Boolean;
protected var disabledOverlay:Shape;
protected var hScrollBar:Boolean;
protected var availableWidth:Number;
protected var _verticalPageScrollSize:Number;// = 0
protected var vOffset:Number;// = 0
protected var _verticalScrollBar:ScrollBar;
protected var useFixedHorizontalScrolling:Boolean;// = false
protected var contentWidth:Number;// = 0
protected var contentHeight:Number;// = 0
protected var _horizontalPageScrollSize:Number;// = 0
protected var background:DisplayObject;
protected var _useBitmpScrolling:Boolean;// = false
protected var contentPadding:Number;// = 0
protected var availableHeight:Number;
protected var _horizontalScrollBar:ScrollBar;
protected var contentScrollRect:Rectangle;
protected var _horizontalScrollPolicy:String;
protected var _verticalScrollPolicy:String;
protected static const SCROLL_BAR_STYLES:Object = {upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {repeatDelay:500, repeatInterval:35, skin:"ScrollPane_upSkin", contentPadding:0, disabledAlpha:0.5};
public function BaseScrollPane(){
contentWidth = 0;
contentHeight = 0;
contentPadding = 0;
vOffset = 0;
_maxHorizontalScrollPosition = 0;
_horizontalPageScrollSize = 0;
_verticalPageScrollSize = 0;
defaultLineScrollSize = 4;
useFixedHorizontalScrolling = false;
_useBitmpScrolling = false;
super();
}
protected function handleWheel(_arg1:MouseEvent):void{
if (((((!(enabled)) || (!(_verticalScrollBar.visible)))) || ((contentHeight <= availableHeight)))){
return;
};
_verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * verticalLineScrollSize));
setVerticalScrollPosition(_verticalScrollBar.scrollPosition);
dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _arg1.delta, horizontalScrollPosition));
}
public function get verticalScrollPosition():Number{
return (_verticalScrollBar.scrollPosition);
}
protected function drawDisabledOverlay():void{
if (enabled){
if (contains(disabledOverlay)){
removeChild(disabledOverlay);
};
} else {
disabledOverlay.x = (disabledOverlay.y = contentPadding);
disabledOverlay.width = availableWidth;
disabledOverlay.height = availableHeight;
disabledOverlay.alpha = (getStyleValue("disabledAlpha") as Number);
addChild(disabledOverlay);
};
}
public function set verticalScrollPosition(_arg1:Number):void{
drawNow();
_verticalScrollBar.scrollPosition = _arg1;
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false);
}
protected function setContentSize(_arg1:Number, _arg2:Number):void{
if ((((((contentWidth == _arg1)) || (useFixedHorizontalScrolling))) && ((contentHeight == _arg2)))){
return;
};
contentWidth = _arg1;
contentHeight = _arg2;
invalidate(InvalidationType.SIZE);
}
public function get horizontalScrollPosition():Number{
return (_horizontalScrollBar.scrollPosition);
}
public function get horizontalScrollBar():ScrollBar{
return (_horizontalScrollBar);
}
override public function set enabled(_arg1:Boolean):void{
if (enabled == _arg1){
return;
};
_verticalScrollBar.enabled = _arg1;
_horizontalScrollBar.enabled = _arg1;
super.enabled = _arg1;
}
public function get verticalLineScrollSize():Number{
return (_verticalScrollBar.lineScrollSize);
}
public function get horizontalScrollPolicy():String{
return (_horizontalScrollPolicy);
}
protected function calculateAvailableSize():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local1 = ScrollBar.WIDTH;
_local2 = (contentPadding = Number(getStyleValue("contentPadding")));
_local3 = ((height - (2 * _local2)) - vOffset);
vScrollBar = (((_verticalScrollPolicy == ScrollPolicy.ON)) || ((((_verticalScrollPolicy == ScrollPolicy.AUTO)) && ((contentHeight > _local3)))));
_local4 = ((width - (vScrollBar) ? _local1 : 0) - (2 * _local2));
_local5 = (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - _local4);
hScrollBar = (((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_local5 > 0)))));
if (hScrollBar){
_local3 = (_local3 - _local1);
};
if (((((((hScrollBar) && (!(vScrollBar)))) && ((_verticalScrollPolicy == ScrollPolicy.AUTO)))) && ((contentHeight > _local3)))){
vScrollBar = true;
_local4 = (_local4 - _local1);
};
availableHeight = (_local3 + vOffset);
availableWidth = _local4;
}
public function get maxVerticalScrollPosition():Number{
drawNow();
return (Math.max(0, (contentHeight - availableHeight)));
}
public function set horizontalScrollPosition(_arg1:Number):void{
drawNow();
_horizontalScrollBar.scrollPosition = _arg1;
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false);
}
public function get horizontalLineScrollSize():Number{
return (_horizontalScrollBar.lineScrollSize);
}
public function set verticalPageScrollSize(_arg1:Number):void{
_verticalPageScrollSize = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get verticalScrollPolicy():String{
return (_verticalScrollPolicy);
}
protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
}
public function get useBitmapScrolling():Boolean{
return (_useBitmpScrolling);
}
protected function handleScroll(_arg1:ScrollEvent):void{
if (_arg1.target == _verticalScrollBar){
setVerticalScrollPosition(_arg1.position);
} else {
setHorizontalScrollPosition(_arg1.position);
};
}
public function set verticalLineScrollSize(_arg1:Number):void{
_verticalScrollBar.lineScrollSize = _arg1;
}
public function get verticalScrollBar():ScrollBar{
return (_verticalScrollBar);
}
protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
}
public function set horizontalPageScrollSize(_arg1:Number):void{
_horizontalPageScrollSize = _arg1;
invalidate(InvalidationType.SIZE);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES)){
setStyles();
drawBackground();
if (contentPadding != getStyleValue("contentPadding")){
invalidate(InvalidationType.SIZE, false);
};
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STATE)){
drawLayout();
};
updateChildren();
super.draw();
}
public function set horizontalScrollPolicy(_arg1:String):void{
_horizontalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
override protected function configUI():void{
var _local1:Graphics;
super.configUI();
contentScrollRect = new Rectangle(0, 0, 85, 85);
_verticalScrollBar = new ScrollBar();
_verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
_verticalScrollBar.visible = false;
_verticalScrollBar.lineScrollSize = defaultLineScrollSize;
addChild(_verticalScrollBar);
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
_horizontalScrollBar = new ScrollBar();
_horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL;
_horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
_horizontalScrollBar.visible = false;
_horizontalScrollBar.lineScrollSize = defaultLineScrollSize;
addChild(_horizontalScrollBar);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
disabledOverlay = new Shape();
_local1 = disabledOverlay.graphics;
_local1.beginFill(0xFFFFFF);
_local1.drawRect(0, 0, width, height);
_local1.endFill();
addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true);
}
protected function calculateContentWidth():void{
}
public function get verticalPageScrollSize():Number{
if (isNaN(availableHeight)){
drawNow();
};
return (((((_verticalPageScrollSize == 0)) && (!(isNaN(availableHeight))))) ? availableHeight : _verticalPageScrollSize);
}
protected function drawLayout():void{
calculateAvailableSize();
calculateContentWidth();
background.width = width;
background.height = height;
if (vScrollBar){
_verticalScrollBar.visible = true;
_verticalScrollBar.x = ((width - ScrollBar.WIDTH) - contentPadding);
_verticalScrollBar.y = contentPadding;
_verticalScrollBar.height = availableHeight;
} else {
_verticalScrollBar.visible = false;
};
_verticalScrollBar.setScrollProperties(availableHeight, 0, (contentHeight - availableHeight), verticalPageScrollSize);
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false);
if (hScrollBar){
_horizontalScrollBar.visible = true;
_horizontalScrollBar.x = contentPadding;
_horizontalScrollBar.y = ((height - ScrollBar.WIDTH) - contentPadding);
_horizontalScrollBar.width = availableWidth;
} else {
_horizontalScrollBar.visible = false;
};
_horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), horizontalPageScrollSize);
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false);
drawDisabledOverlay();
}
protected function drawBackground():void{
var _local1:DisplayObject;
_local1 = background;
background = getDisplayObjectInstance(getStyleValue("skin"));
background.width = width;
background.height = height;
addChildAt(background, 0);
if (((!((_local1 == null))) && (!((_local1 == background))))){
removeChild(_local1);
};
}
public function set horizontalLineScrollSize(_arg1:Number):void{
_horizontalScrollBar.lineScrollSize = _arg1;
}
public function get horizontalPageScrollSize():Number{
if (isNaN(availableWidth)){
drawNow();
};
return (((((_horizontalPageScrollSize == 0)) && (!(isNaN(availableWidth))))) ? availableWidth : _horizontalPageScrollSize);
}
public function get maxHorizontalScrollPosition():Number{
drawNow();
return (Math.max(0, (contentWidth - availableWidth)));
}
protected function setStyles():void{
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
}
protected function updateChildren():void{
_verticalScrollBar.enabled = (_horizontalScrollBar.enabled = enabled);
_verticalScrollBar.drawNow();
_horizontalScrollBar.drawNow();
}
public function set verticalScrollPolicy(_arg1:String):void{
_verticalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
public function set useBitmapScrolling(_arg1:Boolean):void{
_useBitmpScrolling = _arg1;
invalidate(InvalidationType.STATE);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, ScrollBar.getStyleDefinition()));
}
}
}//package fl.containers
Section 9
//CellRenderer (fl.controls.listClasses.CellRenderer)
package fl.controls.listClasses {
import fl.controls.*;
import flash.events.*;
public class CellRenderer extends LabelButton implements ICellRenderer {
protected var _data:Object;
protected var _listData:ListData;
private static var defaultStyles:Object = {upSkin:"CellRenderer_upSkin", downSkin:"CellRenderer_downSkin", overSkin:"CellRenderer_overSkin", disabledSkin:"CellRenderer_disabledSkin", selectedDisabledSkin:"CellRenderer_selectedDisabledSkin", selectedUpSkin:"CellRenderer_selectedUpSkin", selectedDownSkin:"CellRenderer_selectedDownSkin", selectedOverSkin:"CellRenderer_selectedOverSkin", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5};
public function CellRenderer():void{
toggle = true;
focusEnabled = false;
}
override protected function toggleSelected(_arg1:MouseEvent):void{
}
override public function get selected():Boolean{
return (super.selected);
}
public function set listData(_arg1:ListData):void{
_listData = _arg1;
label = _listData.label;
setStyle("icon", _listData.icon);
}
override public function set selected(_arg1:Boolean):void{
super.selected = _arg1;
}
public function set data(_arg1:Object):void{
_data = _arg1;
}
public function get listData():ListData{
return (_listData);
}
override public function setSize(_arg1:Number, _arg2:Number):void{
super.setSize(_arg1, _arg2);
}
override protected function drawLayout():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
_local1 = Number(getStyleValue("textPadding"));
_local2 = 0;
if (icon != null){
icon.x = _local1;
icon.y = Math.round(((height - icon.height) >> 1));
_local2 = (icon.width + _local1);
};
if (label.length > 0){
textField.visible = true;
_local3 = Math.max(0, ((width - _local2) - (_local1 * 2)));
textField.width = _local3;
textField.height = (textField.textHeight + 4);
textField.x = (_local2 + _local1);
textField.y = Math.round(((height - textField.height) >> 1));
} else {
textField.visible = false;
};
background.width = width;
background.height = height;
}
public function get data():Object{
return (_data);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls.listClasses
Section 10
//ICellRenderer (fl.controls.listClasses.ICellRenderer)
package fl.controls.listClasses {
public interface ICellRenderer {
function setSize(_arg1:Number, _arg2:Number):void;
function get listData():ListData;
function get data():Object;
function setMouseState(_arg1:String):void;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function set data(_arg1:Object):void;
function set selected(_arg1:Boolean):void;
function set listData(_arg1:ListData):void;
function get selected():Boolean;
}
}//package fl.controls.listClasses
Section 11
//ListData (fl.controls.listClasses.ListData)
package fl.controls.listClasses {
import fl.core.*;
public class ListData {
protected var _index:uint;
protected var _owner:UIComponent;
protected var _label:String;
protected var _icon:Object;// = null
protected var _row:uint;
protected var _column:uint;
public function ListData(_arg1:String, _arg2:Object, _arg3:UIComponent, _arg4:uint, _arg5:uint, _arg6:uint=0){
_icon = null;
super();
_label = _arg1;
_icon = _arg2;
_owner = _arg3;
_index = _arg4;
_row = _arg5;
_column = _arg6;
}
public function get owner():UIComponent{
return (_owner);
}
public function get label():String{
return (_label);
}
public function get row():uint{
return (_row);
}
public function get index():uint{
return (_index);
}
public function get icon():Object{
return (_icon);
}
public function get column():uint{
return (_column);
}
}
}//package fl.controls.listClasses
Section 12
//BaseButton (fl.controls.BaseButton)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import fl.events.*;
public class BaseButton extends UIComponent {
protected var _selected:Boolean;// = false
private var unlockedMouseState:String;
protected var pressTimer:Timer;
protected var mouseState:String;
protected var background:DisplayObject;
private var _mouseStateLocked:Boolean;// = false
protected var _autoRepeat:Boolean;// = false
private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35};
public function BaseButton(){
_selected = false;
_autoRepeat = false;
_mouseStateLocked = false;
super();
buttonMode = true;
mouseChildren = false;
useHandCursor = false;
setupMouseEvents();
setMouseState("up");
pressTimer = new Timer(1, 0);
pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true);
}
protected function endPress():void{
pressTimer.reset();
}
public function set mouseStateLocked(_arg1:Boolean):void{
_mouseStateLocked = _arg1;
if (_arg1 == false){
setMouseState(unlockedMouseState);
} else {
unlockedMouseState = mouseState;
};
}
public function get autoRepeat():Boolean{
return (_autoRepeat);
}
public function set autoRepeat(_arg1:Boolean):void{
_autoRepeat = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseEnabled = _arg1;
}
public function get selected():Boolean{
return (_selected);
}
protected function mouseEventHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_DOWN){
setMouseState("down");
startPress();
} else {
if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){
setMouseState("over");
endPress();
} else {
if (_arg1.type == MouseEvent.ROLL_OUT){
setMouseState("up");
endPress();
};
};
};
}
public function setMouseState(_arg1:String):void{
if (_mouseStateLocked){
unlockedMouseState = _arg1;
return;
};
if (mouseState == _arg1){
return;
};
mouseState = _arg1;
invalidate(InvalidationType.STATE);
}
protected function startPress():void{
if (_autoRepeat){
pressTimer.delay = Number(getStyleValue("repeatDelay"));
pressTimer.start();
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
protected function buttonDown(_arg1:TimerEvent):void{
if (!_autoRepeat){
endPress();
return;
};
if (pressTimer.currentCount == 1){
pressTimer.delay = Number(getStyleValue("repeatInterval"));
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
public function set selected(_arg1:Boolean):void{
if (_selected == _arg1){
return;
};
_selected = _arg1;
invalidate(InvalidationType.STATE);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function setupMouseEvents():void{
addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true);
}
protected function drawLayout():void{
background.width = width;
background.height = height;
}
protected function drawBackground():void{
var _local1:String;
var _local2:DisplayObject;
_local1 = (enabled) ? mouseState : "disabled";
if (selected){
_local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1));
};
_local1 = (_local1 + "Skin");
_local2 = background;
background = getDisplayObjectInstance(getStyleValue(_local1));
addChildAt(background, 0);
if (((!((_local2 == null))) && (!((_local2 == background))))){
removeChild(_local2);
};
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 13
//Button (fl.controls.Button)
package fl.controls {
import fl.core.*;
import flash.display.*;
import fl.managers.*;
public class Button extends LabelButton implements IFocusManagerComponent {
protected var emphasizedBorder:DisplayObject;
protected var _emphasized:Boolean;// = false
private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2};
public static var createAccessibilityImplementation:Function;
public function Button(){
_emphasized = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
var _local3:*;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("emphasizedPadding"));
if ((((_local2 < 0)) || (!(_emphasized)))){
_local2 = 0;
};
_local3 = getStyleValue("focusRectPadding");
_local3 = ((_local3)==null) ? 2 : _local3;
_local3 = (_local3 + _local2);
uiFocusRect.x = -(_local3);
uiFocusRect.y = -(_local3);
uiFocusRect.width = (width + (_local3 * 2));
uiFocusRect.height = (height + (_local3 * 2));
};
}
public function set emphasized(_arg1:Boolean):void{
_emphasized = _arg1;
invalidate(InvalidationType.STYLES);
}
override protected function draw():void{
if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){
drawEmphasized();
};
super.draw();
if (emphasizedBorder != null){
setChildIndex(emphasizedBorder, (numChildren - 1));
};
}
public function get emphasized():Boolean{
return (_emphasized);
}
override protected function initializeAccessibility():void{
if (Button.createAccessibilityImplementation != null){
Button.createAccessibilityImplementation(this);
};
}
protected function drawEmphasized():void{
var _local1:Object;
var _local2:Number;
if (emphasizedBorder != null){
removeChild(emphasizedBorder);
};
emphasizedBorder = null;
if (!_emphasized){
return;
};
_local1 = getStyleValue("emphasizedSkin");
if (_local1 != null){
emphasizedBorder = getDisplayObjectInstance(_local1);
};
if (emphasizedBorder != null){
addChildAt(emphasizedBorder, 0);
_local2 = Number(getStyleValue("emphasizedPadding"));
emphasizedBorder.x = (emphasizedBorder.y = -(_local2));
emphasizedBorder.width = (width + (_local2 * 2));
emphasizedBorder.height = (height + (_local2 * 2));
};
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles));
}
}
}//package fl.controls
Section 14
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement)
package fl.controls {
public class ButtonLabelPlacement {
public static const TOP:String = "top";
public static const LEFT:String = "left";
public static const BOTTOM:String = "bottom";
public static const RIGHT:String = "right";
}
}//package fl.controls
Section 15
//CheckBox (fl.controls.CheckBox)
package fl.controls {
import flash.display.*;
public class CheckBox extends LabelButton {
private static var defaultStyles:Object = {icon:null, upIcon:"CheckBox_upIcon", downIcon:"CheckBox_downIcon", overIcon:"CheckBox_overIcon", disabledIcon:"CheckBox_disabledIcon", selectedDisabledIcon:"CheckBox_selectedDisabledIcon", focusRectSkin:null, focusRectPadding:null, selectedUpIcon:"CheckBox_selectedUpIcon", selectedDownIcon:"CheckBox_selectedDownIcon", selectedOverIcon:"CheckBox_selectedOverIcon", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5};
public static var createAccessibilityImplementation:Function;
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = (background.x - _local2);
uiFocusRect.y = (background.y - _local2);
uiFocusRect.width = (background.width + (_local2 << 1));
uiFocusRect.height = (background.height + (_local2 << 1));
};
}
override public function get autoRepeat():Boolean{
return (false);
}
override public function set autoRepeat(_arg1:Boolean):void{
}
override public function set toggle(_arg1:Boolean):void{
throw (new Error("Warning: You cannot change a CheckBox's toggle."));
}
override public function get toggle():Boolean{
return (true);
}
override protected function configUI():void{
var _local1:Shape;
var _local2:Graphics;
super.configUI();
super.toggle = true;
_local1 = new Shape();
_local2 = _local1.graphics;
_local2.beginFill(0, 0);
_local2.drawRect(0, 0, 100, 100);
_local2.endFill();
background = (_local1 as DisplayObject);
addChildAt(background, 0);
}
override protected function drawLayout():void{
var _local1:Number;
super.drawLayout();
_local1 = Number(getStyleValue("textPadding"));
switch (_labelPlacement){
case ButtonLabelPlacement.RIGHT:
icon.x = _local1;
textField.x = (icon.x + (icon.width + _local1));
background.width = ((textField.x + textField.width) + _local1);
background.height = (Math.max(textField.height, icon.height) + (_local1 * 2));
break;
case ButtonLabelPlacement.LEFT:
icon.x = ((width - icon.width) - _local1);
textField.x = (((width - icon.width) - (_local1 * 2)) - textField.width);
background.width = ((textField.width + icon.width) + (_local1 * 3));
background.height = (Math.max(textField.height, icon.height) + (_local1 * 2));
break;
case ButtonLabelPlacement.TOP:
case ButtonLabelPlacement.BOTTOM:
background.width = (Math.max(textField.width, icon.width) + (_local1 * 2));
background.height = ((textField.height + icon.height) + (_local1 * 3));
break;
};
background.x = Math.min((icon.x - _local1), (textField.x - _local1));
background.y = Math.min((icon.y - _local1), (textField.y - _local1));
}
override protected function drawBackground():void{
}
override protected function initializeAccessibility():void{
if (CheckBox.createAccessibilityImplementation != null){
CheckBox.createAccessibilityImplementation(this);
};
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 16
//ComboBox (fl.controls.ComboBox)
package fl.controls {
import fl.controls.listClasses.*;
import fl.core.*;
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import fl.data.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class ComboBox extends UIComponent implements IFocusManagerComponent {
protected var _dropdownWidth:Number;
protected var highlightedCell:int;// = -1
protected var _prompt:String;
protected var isOpen:Boolean;// = false
protected var list:List;
protected var _rowCount:uint;// = 5
protected var currentIndex:int;
protected var isKeyDown:Boolean;// = false
protected var _labels:Array;
protected var background:BaseButton;
protected var inputField:TextInput;
protected var listOverIndex:uint;
protected var editableValue:String;
protected var _editable:Boolean;// = false
private var collectionItemImport:SimpleCollectionItem;
protected static const BACKGROUND_STYLES:Object = {overSkin:"overSkin", downSkin:"downSkin", upSkin:"upSkin", disabledSkin:"disabledSkin", repeatInterval:"repeatInterval"};
protected static const LIST_STYLES:Object = {upSkin:"comboListUpSkin", overSkin:"comboListOverSkin", downSkin:"comobListDownSkin", disabledSkin:"comboListDisabledSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval", textFormat:"textFormat", disabledAlpha:"disabledAlpha", skin:"listSkin"};
private static var defaultStyles:Object = {upSkin:"ComboBox_upSkin", downSkin:"ComboBox_downSkin", overSkin:"ComboBox_overSkin", disabledSkin:"ComboBox_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:3, buttonWidth:24, disabledAlpha:null, listSkin:null};
public static var createAccessibilityImplementation:Function;
public function ComboBox(){
_rowCount = 5;
_editable = false;
isOpen = false;
highlightedCell = -1;
isKeyDown = false;
super();
}
protected function drawList():void{
list.rowCount = Math.max(0, Math.min(_rowCount, list.dataProvider.length));
}
public function set imeMode(_arg1:String):void{
inputField.imeMode = _arg1;
}
public function get dropdown():List{
return (list);
}
public function get dropdownWidth():Number{
return (list.width);
}
public function sortItemsOn(_arg1:String, _arg2:Object=null){
return (list.sortItemsOn(_arg1, _arg2));
}
protected function onEnter(_arg1:ComponentEvent):void{
_arg1.stopPropagation();
}
public function removeItemAt(_arg1:uint):void{
list.removeItemAt(_arg1);
invalidate(InvalidationType.DATA);
}
public function open():void{
currentIndex = selectedIndex;
if (((isOpen) || ((length == 0)))){
return;
};
dispatchEvent(new Event(Event.OPEN));
isOpen = true;
addEventListener(Event.ENTER_FRAME, addCloseListener, false, 0, true);
positionList();
list.scrollToSelected();
stage.addChild(list);
}
public function get selectedItem():Object{
return (list.selectedItem);
}
public function set text(_arg1:String):void{
if (!editable){
return;
};
inputField.text = _arg1;
}
public function get labelField():String{
return (list.labelField);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
var _local2:int;
var _local3:uint;
var _local4:Number;
var _local5:int;
isKeyDown = true;
if (_arg1.ctrlKey){
switch (_arg1.keyCode){
case Keyboard.UP:
if (highlightedCell > -1){
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
close();
break;
case Keyboard.DOWN:
open();
break;
};
return;
};
_arg1.stopPropagation();
_local2 = Math.max(((calculateAvailableHeight() / list.rowHeight) << 0), 1);
_local3 = selectedIndex;
_local4 = ((highlightedCell)==-1) ? selectedIndex : highlightedCell;
_local5 = -1;
switch (_arg1.keyCode){
case Keyboard.SPACE:
if (isOpen){
close();
} else {
open();
};
return;
case Keyboard.ESCAPE:
if (isOpen){
if (highlightedCell > -1){
selectedIndex = selectedIndex;
};
close();
};
return;
case Keyboard.UP:
_local5 = Math.max(0, (_local4 - 1));
break;
case Keyboard.DOWN:
_local5 = Math.min((length - 1), (_local4 + 1));
break;
case Keyboard.PAGE_UP:
_local5 = Math.max((_local4 - _local2), 0);
break;
case Keyboard.PAGE_DOWN:
_local5 = Math.min((_local4 + _local2), (length - 1));
break;
case Keyboard.HOME:
_local5 = 0;
break;
case Keyboard.END:
_local5 = (length - 1);
break;
case Keyboard.ENTER:
if (((_editable) && ((highlightedCell == -1)))){
editableValue = inputField.text;
selectedIndex = -1;
} else {
if (((isOpen) && ((highlightedCell > -1)))){
editableValue = null;
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
};
dispatchEvent(new ComponentEvent(ComponentEvent.ENTER));
close();
return;
default:
if (editable){
break;
};
_local5 = list.getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), _local4);
break;
};
if (_local5 > -1){
if (isOpen){
highlightCell(_local5);
inputField.text = list.itemToLabel(getItemAt(_local5));
} else {
highlightCell();
selectedIndex = _local5;
dispatchEvent(new Event(Event.CHANGE));
};
};
}
public function set dropdownWidth(_arg1:Number):void{
_dropdownWidth = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get editable():Boolean{
return (_editable);
}
override protected function focusInHandler(_arg1:FocusEvent):void{
super.focusInHandler(_arg1);
if (editable){
stage.focus = inputField.textField;
};
}
protected function onStageClick(_arg1:MouseEvent):void{
if (!isOpen){
return;
};
if (((!(contains((_arg1.target as DisplayObject)))) && (!(list.contains((_arg1.target as DisplayObject)))))){
if (highlightedCell != -1){
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
close();
};
}
protected function handleDataChange(_arg1:DataChangeEvent):void{
invalidate(InvalidationType.DATA);
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
isKeyDown = false;
}
protected function onListItemUp(_arg1:MouseEvent):void{
var _local2:*;
stage.removeEventListener(MouseEvent.MOUSE_UP, onListItemUp);
if (((!((_arg1.target is ICellRenderer))) || (!(list.contains((_arg1.target as DisplayObject)))))){
return;
};
editableValue = null;
_local2 = selectedIndex;
selectedIndex = _arg1.target.listData.index;
if (_local2 != selectedIndex){
dispatchEvent(new Event(Event.CHANGE));
};
close();
}
public function removeAll():void{
list.removeAll();
inputField.text = "";
invalidate(InvalidationType.DATA);
}
public function set selectedItem(_arg1:Object):void{
list.selectedItem = _arg1;
invalidate(InvalidationType.SELECTED);
}
protected function highlightCell(_arg1:int=-1):void{
var _local2:ICellRenderer;
if (highlightedCell > -1){
_local2 = list.itemToCellRenderer(getItemAt(highlightedCell));
if (_local2 != null){
_local2.setMouseState("up");
};
};
if (_arg1 == -1){
return;
};
list.scrollToIndex(_arg1);
list.drawNow();
_local2 = list.itemToCellRenderer(getItemAt(_arg1));
if (_local2 != null){
_local2.setMouseState("over");
highlightedCell = _arg1;
};
}
public function itemToLabel(_arg1:Object):String{
if (_arg1 == null){
return ("");
};
return (list.itemToLabel(_arg1));
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
list.addItemAt(_arg1, _arg2);
invalidate(InvalidationType.DATA);
}
public function replaceItemAt(_arg1:Object, _arg2:uint):Object{
return (list.replaceItemAt(_arg1, _arg2));
}
protected function showPrompt():void{
inputField.text = _prompt;
}
public function set rowCount(_arg1:uint):void{
_rowCount = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get restrict():String{
return (inputField.restrict);
}
protected function setEmbedFonts():void{
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
inputField.textField.embedFonts = _local1;
};
}
public function sortItems(... _args){
return (list.sortItems.apply(list, _args));
}
public function set labelField(_arg1:String):void{
list.labelField = _arg1;
invalidate(InvalidationType.DATA);
}
public function set editable(_arg1:Boolean):void{
_editable = _arg1;
drawTextField();
}
public function set prompt(_arg1:String):void{
if (_arg1 == ""){
_prompt = null;
} else {
_prompt = _arg1;
};
invalidate(InvalidationType.STATE);
}
public function get length():int{
return (list.length);
}
protected function drawTextField():void{
inputField.setStyle("upSkin", "");
inputField.setStyle("disabledSkin", "");
inputField.enabled = enabled;
inputField.editable = _editable;
inputField.textField.selectable = ((enabled) && (_editable));
inputField.mouseEnabled = (inputField.mouseChildren = ((enabled) && (_editable)));
inputField.focusEnabled = false;
if (_editable){
inputField.addEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus, false, 0, true);
inputField.addEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut, false, 0, true);
} else {
inputField.removeEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus);
inputField.removeEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut);
};
}
protected function onInputFieldFocusOut(_arg1:FocusEvent):void{
inputField.removeEventListener(ComponentEvent.ENTER, onEnter);
selectedIndex = selectedIndex;
}
protected function passEvent(_arg1:Event):void{
dispatchEvent(_arg1);
}
public function get imeMode():String{
return (inputField.imeMode);
}
public function get labelFunction():Function{
return (list.labelFunction);
}
protected function calculateAvailableHeight():Number{
var _local1:Number;
_local1 = Number(getStyleValue("contentPadding"));
return ((list.height - (_local1 * 2)));
}
public function get selectedIndex():int{
return (list.selectedIndex);
}
override protected function focusOutHandler(_arg1:FocusEvent):void{
isKeyDown = false;
if (isOpen){
if (((!(_arg1.relatedObject)) || (!(list.contains(_arg1.relatedObject))))){
if (((!((highlightedCell == -1))) && (!((highlightedCell == selectedIndex))))){
selectedIndex = highlightedCell;
dispatchEvent(new Event(Event.CHANGE));
};
close();
};
};
super.focusOutHandler(_arg1);
}
public function get selectedLabel():String{
if (editableValue != null){
return (editableValue);
};
if (selectedIndex == -1){
return (null);
};
return (itemToLabel(selectedItem));
}
public function get text():String{
return (inputField.text);
}
protected function onListChange(_arg1:Event):void{
editableValue = null;
dispatchEvent(_arg1);
invalidate(InvalidationType.SELECTED);
if (isKeyDown){
return;
};
close();
}
protected function onToggleListVisibility(_arg1:MouseEvent):void{
_arg1.stopPropagation();
dispatchEvent(_arg1);
if (isOpen){
close();
} else {
open();
stage.addEventListener(MouseEvent.MOUSE_UP, onListItemUp, false, 0, true);
};
}
override protected function draw():void{
var _local1:*;
_local1 = selectedIndex;
if ((((_local1 == -1)) && (((((!((prompt == null))) || (editable))) || ((length == 0)))))){
_local1 = Math.max(-1, Math.min(_local1, (length - 1)));
} else {
editableValue = null;
_local1 = Math.max(0, Math.min(_local1, (length - 1)));
};
if (list.selectedIndex != _local1){
list.selectedIndex = _local1;
invalidate(InvalidationType.SELECTED, false);
};
if (isInvalid(InvalidationType.STYLES)){
setStyles();
setEmbedFonts();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.STATE)){
drawTextFormat();
drawLayout();
invalidate(InvalidationType.DATA);
};
if (isInvalid(InvalidationType.DATA)){
drawList();
invalidate(InvalidationType.SELECTED, true);
};
if (isInvalid(InvalidationType.SELECTED)){
if ((((_local1 == -1)) && (!((editableValue == null))))){
inputField.text = editableValue;
} else {
if (_local1 > -1){
if (length > 0){
inputField.horizontalScrollPosition = 0;
inputField.text = itemToLabel(list.selectedItem);
};
} else {
if ((((_local1 == -1)) && (!((_prompt == null))))){
showPrompt();
} else {
inputField.text = "";
};
};
};
if (((((editable) && ((selectedIndex > -1)))) && ((stage.focus == inputField.textField)))){
inputField.setSelection(0, inputField.length);
};
};
drawTextField();
super.draw();
}
public function addItem(_arg1:Object):void{
list.addItem(_arg1);
invalidate(InvalidationType.DATA);
}
public function get rowCount():uint{
return (_rowCount);
}
override protected function configUI():void{
super.configUI();
background = new BaseButton();
background.focusEnabled = false;
copyStylesToChild(background, BACKGROUND_STYLES);
background.addEventListener(MouseEvent.MOUSE_DOWN, onToggleListVisibility, false, 0, true);
addChild(background);
inputField = new TextInput();
inputField.focusTarget = (this as IFocusManagerComponent);
inputField.focusEnabled = false;
inputField.addEventListener(Event.CHANGE, onTextInput, false, 0, true);
addChild(inputField);
list = new List();
list.focusEnabled = false;
copyStylesToChild(list, LIST_STYLES);
list.addEventListener(Event.CHANGE, onListChange, false, 0, true);
list.addEventListener(ListEvent.ITEM_CLICK, onListChange, false, 0, true);
list.addEventListener(ListEvent.ITEM_ROLL_OUT, passEvent, false, 0, true);
list.addEventListener(ListEvent.ITEM_ROLL_OVER, passEvent, false, 0, true);
list.verticalScrollBar.addEventListener(Event.SCROLL, passEvent, false, 0, true);
}
protected function positionList():void{
var _local1:Point;
_local1 = localToGlobal(new Point(0, 0));
list.x = _local1.x;
if (((_local1.y + height) + list.height) > stage.stageHeight){
list.y = (_local1.y - list.height);
} else {
list.y = (_local1.y + height);
};
}
public function get value():String{
var _local1:Object;
if (editableValue != null){
return (editableValue);
};
_local1 = selectedItem;
if (((!(_editable)) && (!((_local1.data == null))))){
return (_local1.data);
};
return (itemToLabel(_local1));
}
public function get prompt():String{
return (_prompt);
}
public function set dataProvider(_arg1:DataProvider):void{
_arg1.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true);
list.dataProvider = _arg1;
invalidate(InvalidationType.DATA);
}
public function set restrict(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
_arg1 = null;
};
if (!_editable){
return;
};
inputField.restrict = _arg1;
}
protected function onTextInput(_arg1:Event):void{
_arg1.stopPropagation();
if (!_editable){
return;
};
editableValue = inputField.text;
selectedIndex = -1;
dispatchEvent(new Event(Event.CHANGE));
}
protected function onInputFieldFocus(_arg1:FocusEvent):void{
inputField.addEventListener(ComponentEvent.ENTER, onEnter, false, 0, true);
close();
}
public function getItemAt(_arg1:uint):Object{
return (list.getItemAt(_arg1));
}
override protected function initializeAccessibility():void{
if (ComboBox.createAccessibilityImplementation != null){
ComboBox.createAccessibilityImplementation(this);
};
}
protected function drawLayout():void{
var _local1:Number;
var _local2:Number;
_local1 = (getStyleValue("buttonWidth") as Number);
_local2 = (getStyleValue("textPadding") as Number);
background.setSize(width, height);
inputField.x = (inputField.y = _local2);
inputField.setSize(((width - _local1) - _local2), (height - _local2));
list.width = (isNaN(_dropdownWidth)) ? width : _dropdownWidth;
background.enabled = enabled;
background.drawNow();
}
public function removeItem(_arg1:Object):Object{
return (list.removeItem(_arg1));
}
private function addCloseListener(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, addCloseListener);
if (!isOpen){
return;
};
stage.addEventListener(MouseEvent.MOUSE_DOWN, onStageClick, false, 0, true);
}
public function get dataProvider():DataProvider{
return (list.dataProvider);
}
public function get textField():TextInput{
return (inputField);
}
protected function setStyles():void{
copyStylesToChild(background, BACKGROUND_STYLES);
copyStylesToChild(list, LIST_STYLES);
}
public function set labelFunction(_arg1:Function):void{
list.labelFunction = _arg1;
invalidate(InvalidationType.DATA);
}
protected function drawTextFormat():void{
var _local1:TextFormat;
_local1 = (getStyleValue((_enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local1 == null){
_local1 = new TextFormat();
};
inputField.textField.defaultTextFormat = _local1;
inputField.textField.setTextFormat(_local1);
setEmbedFonts();
}
public function set selectedIndex(_arg1:int):void{
list.selectedIndex = _arg1;
highlightCell();
invalidate(InvalidationType.SELECTED);
}
public function close():void{
highlightCell();
highlightedCell = -1;
if (!isOpen){
return;
};
dispatchEvent(new Event(Event.CLOSE));
stage.removeEventListener(MouseEvent.MOUSE_DOWN, onStageClick);
isOpen = false;
stage.removeChild(list);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, List.getStyleDefinition()));
}
}
}//package fl.controls
Section 17
//LabelButton (fl.controls.LabelButton)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class LabelButton extends BaseButton implements IFocusManagerComponent {
protected var _labelPlacement:String;// = "right"
protected var _toggle:Boolean;// = false
protected var icon:DisplayObject;
protected var oldMouseState:String;
protected var mode:String;// = "center"
public var textField:TextField;
protected var _label:String;// = "Label"
private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function LabelButton(){
_labelPlacement = ButtonLabelPlacement.RIGHT;
_toggle = false;
_label = "Label";
mode = "center";
super();
}
protected function toggleSelected(_arg1:MouseEvent):void{
selected = !(selected);
dispatchEvent(new Event(Event.CHANGE, true));
}
public function get labelPlacement():String{
return (_labelPlacement);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (oldMouseState == null){
oldMouseState = mouseState;
};
setMouseState("down");
startPress();
};
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
setMouseState(oldMouseState);
oldMouseState = null;
endPress();
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
override public function get selected():Boolean{
return ((_toggle) ? _selected : false);
}
public function set labelPlacement(_arg1:String):void{
_labelPlacement = _arg1;
invalidate(InvalidationType.SIZE);
}
public function set toggle(_arg1:Boolean):void{
if (((!(_arg1)) && (super.selected))){
selected = false;
};
_toggle = _arg1;
if (_toggle){
addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true);
} else {
removeEventListener(MouseEvent.CLICK, toggleSelected);
};
invalidate(InvalidationType.STATE);
}
public function get label():String{
return (_label);
}
override public function set selected(_arg1:Boolean):void{
_selected = _arg1;
if (_toggle){
invalidate(InvalidationType.STATE);
};
}
override protected function draw():void{
if (textField.text != _label){
label = _label;
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
drawIcon();
drawTextFormat();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
public function get toggle():Boolean{
return (_toggle);
}
override protected function configUI():void{
super.configUI();
textField = new TextField();
textField.type = TextFieldType.DYNAMIC;
textField.selectable = false;
addChild(textField);
}
override protected function drawLayout():void{
var _local1:Number;
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local1 = Number(getStyleValue("textPadding"));
_local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement;
textField.height = (textField.textHeight + 4);
_local3 = (textField.textWidth + 4);
_local4 = (textField.textHeight + 4);
_local5 = ((icon)==null) ? 0 : (icon.width + _local1);
_local6 = ((icon)==null) ? 0 : (icon.height + _local1);
textField.visible = (label.length > 0);
if (icon != null){
icon.x = Math.round(((width - icon.width) / 2));
icon.y = Math.round(((height - icon.height) / 2));
};
if (textField.visible == false){
textField.width = 0;
textField.height = 0;
} else {
if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){
_local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1))));
if ((height - 2) > _local4){
_local8 = _local4;
} else {
_local8 = (height - 2);
};
_local3 = _local7;
textField.width = _local3;
_local4 = _local8;
textField.height = _local4;
textField.x = Math.round(((width - _local3) / 2));
textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0));
if (icon != null){
icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1));
};
} else {
_local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1))));
_local3 = _local7;
textField.width = _local3;
textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0));
textField.y = Math.round(((height - textField.height) / 2));
if (icon != null){
icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1));
};
};
};
super.drawLayout();
}
override protected function initializeAccessibility():void{
if (LabelButton.createAccessibilityImplementation != null){
LabelButton.createAccessibilityImplementation(this);
};
}
protected function drawIcon():void{
var _local1:DisplayObject;
var _local2:String;
var _local3:Object;
_local1 = icon;
_local2 = (enabled) ? mouseState : "disabled";
if (selected){
_local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1));
};
_local2 = (_local2 + "Icon");
_local3 = getStyleValue(_local2);
if (_local3 == null){
_local3 = getStyleValue("icon");
};
if (_local3 != null){
icon = getDisplayObjectInstance(_local3);
};
if (icon != null){
addChildAt(icon, 1);
};
if (((!((_local1 == null))) && (!((_local1 == icon))))){
removeChild(_local1);
};
}
public function set label(_arg1:String):void{
_label = _arg1;
if (textField.text != _label){
textField.text = _label;
dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE));
};
invalidate(InvalidationType.SIZE);
invalidate(InvalidationType.STYLES);
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition()));
}
}
}//package fl.controls
Section 18
//List (fl.controls.List)
package fl.controls {
import fl.controls.listClasses.*;
import fl.core.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import fl.managers.*;
import flash.ui.*;
public class List extends SelectableList implements IFocusManagerComponent {
protected var _labelField:String;// = "label"
protected var _rowHeight:Number;// = 20
protected var _cellRenderer:Object;
protected var _iconField:String;// = "icon"
protected var _labelFunction:Function;
protected var _iconFunction:Function;
private static var defaultStyles:Object = {focusRectSkin:null, focusRectPadding:null};
public static var createAccessibilityImplementation:Function;
public function List(){
_rowHeight = 20;
_labelField = "label";
_iconField = "icon";
super();
}
public function get iconField():String{
return (_iconField);
}
protected function doKeySelection(_arg1:int, _arg2:Boolean, _arg3:Boolean):void{
var _local4:Boolean;
var _local5:int;
var _local6:Array;
var _local7:int;
var _local8:int;
_local4 = false;
if (_arg2){
_local6 = [];
_local7 = lastCaretIndex;
_local8 = _arg1;
if (_local7 == -1){
_local7 = ((caretIndex)!=-1) ? caretIndex : _arg1;
};
if (_local7 > _local8){
_local8 = _local7;
_local7 = _arg1;
};
_local5 = _local7;
while (_local5 <= _local8) {
_local6.push(_local5);
_local5++;
};
selectedIndices = _local6;
caretIndex = _arg1;
_local4 = true;
} else {
selectedIndex = _arg1;
caretIndex = (lastCaretIndex = _arg1);
_local4 = true;
};
if (_local4){
dispatchEvent(new Event(Event.CHANGE));
};
invalidate(InvalidationType.DATA);
}
override protected function drawList():void{
var _local1:Rectangle;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:Object;
var _local6:ICellRenderer;
var _local7:Dictionary;
var _local8:Dictionary;
var _local9:Boolean;
var _local10:String;
var _local11:Object;
var _local12:Sprite;
var _local13:String;
listHolder.x = (listHolder.y = contentPadding);
_local1 = listHolder.scrollRect;
_local1.x = _horizontalScrollPosition;
_local1.y = (Math.floor(_verticalScrollPosition) % rowHeight);
listHolder.scrollRect = _local1;
listHolder.cacheAsBitmap = useBitmapScrolling;
_local2 = Math.floor((_verticalScrollPosition / rowHeight));
_local3 = Math.min(length, ((_local2 + rowCount) + 1));
_local7 = (renderedItems = new Dictionary(true));
_local4 = _local2;
while (_local4 < _local3) {
_local7[_dataProvider.getItemAt(_local4)] = true;
_local4++;
};
_local8 = new Dictionary(true);
while (activeCellRenderers.length > 0) {
_local6 = (activeCellRenderers.pop() as ICellRenderer);
_local5 = _local6.data;
if ((((_local7[_local5] == null)) || ((invalidItems[_local5] == true)))){
availableCellRenderers.push(_local6);
} else {
_local8[_local5] = _local6;
invalidItems[_local5] = true;
};
list.removeChild((_local6 as DisplayObject));
};
invalidItems = new Dictionary(true);
_local4 = _local2;
while (_local4 < _local3) {
_local9 = false;
_local5 = _dataProvider.getItemAt(_local4);
if (_local8[_local5] != null){
_local9 = true;
_local6 = _local8[_local5];
delete _local8[_local5];
} else {
if (availableCellRenderers.length > 0){
_local6 = (availableCellRenderers.pop() as ICellRenderer);
} else {
_local6 = (getDisplayObjectInstance(getStyleValue("cellRenderer")) as ICellRenderer);
_local12 = (_local6 as Sprite);
if (_local12 != null){
_local12.addEventListener(MouseEvent.CLICK, handleCellRendererClick, false, 0, true);
_local12.addEventListener(MouseEvent.ROLL_OVER, handleCellRendererMouseEvent, false, 0, true);
_local12.addEventListener(MouseEvent.ROLL_OUT, handleCellRendererMouseEvent, false, 0, true);
_local12.addEventListener(Event.CHANGE, handleCellRendererChange, false, 0, true);
_local12.doubleClickEnabled = true;
_local12.addEventListener(MouseEvent.DOUBLE_CLICK, handleCellRendererDoubleClick, false, 0, true);
if (_local12["setStyle"] != null){
for (_local13 in rendererStyles) {
var _local16 = _local12;
_local16["setStyle"](_local13, rendererStyles[_local13]);
};
};
};
};
};
list.addChild((_local6 as Sprite));
activeCellRenderers.push(_local6);
_local6.y = (rowHeight * (_local4 - _local2));
_local6.setSize((availableWidth + _maxHorizontalScrollPosition), rowHeight);
_local10 = itemToLabel(_local5);
_local11 = null;
if (_iconFunction != null){
_local11 = _iconFunction(_local5);
} else {
if (_iconField != null){
_local11 = _local5[_iconField];
};
};
if (!_local9){
_local6.data = _local5;
};
_local6.listData = new ListData(_local10, _local11, this, _local4, _local4, 0);
_local6.selected = !((_selectedIndices.indexOf(_local4) == -1));
if ((_local6 is UIComponent)){
(_local6 as UIComponent).drawNow();
};
_local4++;
};
}
public function get iconFunction():Function{
return (_iconFunction);
}
public function set iconField(_arg1:String):void{
if (_arg1 == _iconField){
return;
};
_iconField = _arg1;
invalidate(InvalidationType.DATA);
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
var _local2:int;
if (!selectable){
return;
};
switch (_arg1.keyCode){
case Keyboard.UP:
case Keyboard.DOWN:
case Keyboard.END:
case Keyboard.HOME:
case Keyboard.PAGE_UP:
case Keyboard.PAGE_DOWN:
moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
break;
case Keyboard.LEFT:
case Keyboard.RIGHT:
moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
break;
case Keyboard.SPACE:
if (caretIndex == -1){
caretIndex = 0;
};
doKeySelection(caretIndex, _arg1.shiftKey, _arg1.ctrlKey);
scrollToSelected();
break;
default:
_local2 = getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), selectedIndex);
if (_local2 > -1){
selectedIndex = _local2;
scrollToSelected();
};
break;
};
_arg1.stopPropagation();
}
override public function itemToLabel(_arg1:Object):String{
if (_labelFunction != null){
return (String(_labelFunction(_arg1)));
};
return (((_arg1[_labelField])!=null) ? String(_arg1[_labelField]) : "");
}
public function get labelField():String{
return (_labelField);
}
override protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
var _local4:int;
var _local5:int;
var _local6:int;
_local4 = Math.max(Math.floor((calculateAvailableHeight() / rowHeight)), 1);
_local5 = -1;
_local6 = 0;
switch (_arg1){
case Keyboard.UP:
if (caretIndex > 0){
_local5 = (caretIndex - 1);
};
break;
case Keyboard.DOWN:
if (caretIndex < (length - 1)){
_local5 = (caretIndex + 1);
};
break;
case Keyboard.PAGE_UP:
if (caretIndex > 0){
_local5 = Math.max((caretIndex - _local4), 0);
};
break;
case Keyboard.PAGE_DOWN:
if (caretIndex < (length - 1)){
_local5 = Math.min((caretIndex + _local4), (length - 1));
};
break;
case Keyboard.HOME:
if (caretIndex > 0){
_local5 = 0;
};
break;
case Keyboard.END:
if (caretIndex < (length - 1)){
_local5 = (length - 1);
};
break;
};
if (_local5 >= 0){
doKeySelection(_local5, _arg2, _arg3);
scrollToSelected();
};
}
public function set labelField(_arg1:String):void{
if (_arg1 == _labelField){
return;
};
_labelField = _arg1;
invalidate(InvalidationType.DATA);
}
public function set rowCount(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
_local2 = Number(getStyleValue("contentPadding"));
_local3 = ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0;
height = (((rowHeight * _arg1) + (2 * _local2)) + _local3);
}
override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
list.x = -(_arg1);
super.setHorizontalScrollPosition(_arg1, true);
}
public function set iconFunction(_arg1:Function):void{
if (_iconFunction == _arg1){
return;
};
_iconFunction = _arg1;
invalidate(InvalidationType.DATA);
}
public function get labelFunction():Function{
return (_labelFunction);
}
override protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
}
override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
invalidate(InvalidationType.SCROLL);
super.setVerticalScrollPosition(_arg1, true);
}
protected function calculateAvailableHeight():Number{
var _local1:Number;
_local1 = Number(getStyleValue("contentPadding"));
return (((height - (_local1 * 2)) - ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0));
}
override protected function draw():void{
var _local1:Boolean;
_local1 = !((contentHeight == (rowHeight * length)));
contentHeight = (rowHeight * length);
if (isInvalid(InvalidationType.STYLES)){
setStyles();
drawBackground();
if (contentPadding != getStyleValue("contentPadding")){
invalidate(InvalidationType.SIZE, false);
};
if (_cellRenderer != getStyleValue("cellRenderer")){
_invalidateList();
_cellRenderer = getStyleValue("cellRenderer");
};
};
if (((isInvalid(InvalidationType.SIZE, InvalidationType.STATE)) || (_local1))){
drawLayout();
};
if (isInvalid(InvalidationType.RENDERER_STYLES)){
updateRendererStyles();
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.SCROLL, InvalidationType.SELECTED)){
drawList();
};
updateChildren();
validate();
}
override protected function configUI():void{
useFixedHorizontalScrolling = true;
_horizontalScrollPolicy = ScrollPolicy.AUTO;
_verticalScrollPolicy = ScrollPolicy.AUTO;
super.configUI();
}
override public function get rowCount():uint{
return (Math.ceil((calculateAvailableHeight() / rowHeight)));
}
override protected function initializeAccessibility():void{
if (List.createAccessibilityImplementation != null){
List.createAccessibilityImplementation(this);
};
}
override public function scrollToIndex(_arg1:int):void{
var _local2:uint;
var _local3:uint;
drawNow();
_local2 = (Math.floor(((_verticalScrollPosition + availableHeight) / rowHeight)) - 1);
_local3 = Math.ceil((_verticalScrollPosition / rowHeight));
if (_arg1 < _local3){
verticalScrollPosition = (_arg1 * rowHeight);
} else {
if (_arg1 > _local2){
verticalScrollPosition = (((_arg1 + 1) * rowHeight) - availableHeight);
};
};
}
public function get rowHeight():Number{
return (_rowHeight);
}
public function set labelFunction(_arg1:Function):void{
if (_labelFunction == _arg1){
return;
};
_labelFunction = _arg1;
invalidate(InvalidationType.DATA);
}
public function set rowHeight(_arg1:Number):void{
_rowHeight = _arg1;
invalidate(InvalidationType.SIZE);
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, SelectableList.getStyleDefinition()));
}
}
}//package fl.controls
Section 19
//ScrollBar (fl.controls.ScrollBar)
package fl.controls {
import fl.core.*;
import flash.events.*;
import fl.events.*;
public class ScrollBar extends UIComponent {
private var _direction:String;// = "vertical"
protected var inDrag:Boolean;// = false
protected var upArrow:BaseButton;
private var _pageScrollSize:Number;// = 0
protected var downArrow:BaseButton;
private var _pageSize:Number;// = 10
private var thumbScrollOffset:Number;
private var _maxScrollPosition:Number;// = 0
private var _scrollPosition:Number;// = 0
protected var track:BaseButton;
private var _minScrollPosition:Number;// = 0
private var _lineScrollSize:Number;// = 1
protected var thumb:LabelButton;
protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0};
public static const WIDTH:Number = 15;
protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35};
public function ScrollBar(){
_pageSize = 10;
_pageScrollSize = 0;
_lineScrollSize = 1;
_minScrollPosition = 0;
_maxScrollPosition = 0;
_scrollPosition = 0;
_direction = ScrollBarDirection.VERTICAL;
inDrag = false;
super();
setStyles();
focusEnabled = false;
}
public function get minScrollPosition():Number{
return (_minScrollPosition);
}
public function set minScrollPosition(_arg1:Number):void{
setScrollProperties(_pageSize, _arg1, _maxScrollPosition);
}
public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{
var _local3:Number;
_local3 = scrollPosition;
_scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1));
if (_local3 == _scrollPosition){
return;
};
if (_arg2){
dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition));
};
updateThumb();
}
public function set scrollPosition(_arg1:Number):void{
setScrollPosition(_arg1, true);
}
public function get pageScrollSize():Number{
return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize);
}
public function set pageSize(_arg1:Number):void{
if (_arg1 > 0){
_pageSize = _arg1;
};
}
public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{
this.pageSize = _arg1;
_minScrollPosition = _arg2;
_maxScrollPosition = _arg3;
if (_arg4 >= 0){
_pageScrollSize = _arg4;
};
enabled = (_maxScrollPosition > _minScrollPosition);
setScrollPosition(_scrollPosition, false);
updateThumb();
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition))))));
updateThumb();
}
protected function updateThumb():void{
var _local1:Number;
_local1 = ((_maxScrollPosition - _minScrollPosition) + _pageSize);
if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){
thumb.height = 12;
thumb.visible = false;
} else {
thumb.height = Math.max(13, ((_pageSize / _local1) * track.height));
thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition))));
thumb.visible = enabled;
};
}
protected function thumbPressHandler(_arg1:MouseEvent):void{
inDrag = true;
thumbScrollOffset = (mouseY - thumb.y);
thumb.mouseStateLocked = true;
mouseChildren = false;
stage.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true);
}
protected function thumbReleaseHandler(_arg1:MouseEvent):void{
inDrag = false;
mouseChildren = true;
thumb.mouseStateLocked = false;
stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag);
stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler);
}
public function set pageScrollSize(_arg1:Number):void{
if (_arg1 >= 0){
_pageScrollSize = _arg1;
};
}
protected function handleThumbDrag(_arg1:MouseEvent):void{
var _local2:Number;
_local2 = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset)));
setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition));
}
public function set direction(_arg1:String):void{
var _local2:Boolean;
if (_direction == _arg1){
return;
};
_direction = _arg1;
if (isLivePreview){
return;
};
setScaleY(1);
_local2 = (_direction == ScrollBarDirection.HORIZONTAL);
if (((_local2) && (componentInspectorSetting))){
if (rotation == 90){
return;
};
setScaleX(-1);
rotation = -90;
};
if (!componentInspectorSetting){
if (((_local2) && ((rotation == 0)))){
rotation = -90;
setScaleX(-1);
} else {
if (((!(_local2)) && ((rotation == -90)))){
rotation = 0;
setScaleX(1);
};
};
};
invalidate(InvalidationType.SIZE);
}
public function set lineScrollSize(_arg1:Number):void{
if (_arg1 > 0){
_lineScrollSize = _arg1;
};
}
override public function get height():Number{
return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height);
}
protected function scrollPressHandler(_arg1:ComponentEvent):void{
var _local2:Number;
var _local3:Number;
_arg1.stopImmediatePropagation();
if (_arg1.currentTarget == upArrow){
setScrollPosition((_scrollPosition - _lineScrollSize));
} else {
if (_arg1.currentTarget == downArrow){
setScrollPosition((_scrollPosition + _lineScrollSize));
} else {
_local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition);
_local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize;
if (_scrollPosition < _local2){
setScrollPosition(Math.min(_local2, (_scrollPosition + _local3)));
} else {
if (_scrollPosition > _local2){
setScrollPosition(Math.max(_local2, (_scrollPosition - _local3)));
};
};
};
};
}
public function get pageSize():Number{
return (_pageSize);
}
public function set maxScrollPosition(_arg1:Number):void{
setScrollProperties(_pageSize, _minScrollPosition, _arg1);
}
public function get scrollPosition():Number{
return (_scrollPosition);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override protected function draw():void{
var _local1:Number;
if (isInvalid(InvalidationType.SIZE)){
_local1 = super.height;
downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height)));
track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height))));
updateThumb();
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
setStyles();
};
downArrow.drawNow();
upArrow.drawNow();
track.drawNow();
thumb.drawNow();
validate();
}
override protected function configUI():void{
super.configUI();
track = new BaseButton();
track.move(0, 14);
track.useHandCursor = false;
track.autoRepeat = true;
track.focusEnabled = false;
addChild(track);
thumb = new LabelButton();
thumb.label = "";
thumb.setSize(WIDTH, 15);
thumb.move(0, 15);
thumb.focusEnabled = false;
addChild(thumb);
downArrow = new BaseButton();
downArrow.setSize(WIDTH, 14);
downArrow.autoRepeat = true;
downArrow.focusEnabled = false;
addChild(downArrow);
upArrow = new BaseButton();
upArrow.setSize(WIDTH, 14);
upArrow.move(0, 0);
upArrow.autoRepeat = true;
upArrow.focusEnabled = false;
addChild(upArrow);
upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true);
enabled = false;
}
public function get direction():String{
return (_direction);
}
public function get lineScrollSize():Number{
return (_lineScrollSize);
}
override public function setSize(_arg1:Number, _arg2:Number):void{
if (_direction == ScrollBarDirection.HORIZONTAL){
super.setSize(_arg2, _arg1);
} else {
super.setSize(_arg1, _arg2);
};
}
public function get maxScrollPosition():Number{
return (_maxScrollPosition);
}
override public function get width():Number{
return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width);
}
protected function setStyles():void{
copyStylesToChild(downArrow, DOWN_ARROW_STYLES);
copyStylesToChild(thumb, THUMB_STYLES);
copyStylesToChild(track, TRACK_STYLES);
copyStylesToChild(upArrow, UP_ARROW_STYLES);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 20
//ScrollBarDirection (fl.controls.ScrollBarDirection)
package fl.controls {
public class ScrollBarDirection {
public static const HORIZONTAL:String = "horizontal";
public static const VERTICAL:String = "vertical";
}
}//package fl.controls
Section 21
//ScrollPolicy (fl.controls.ScrollPolicy)
package fl.controls {
public class ScrollPolicy {
public static const OFF:String = "off";
public static const ON:String = "on";
public static const AUTO:String = "auto";
}
}//package fl.controls
Section 22
//SelectableList (fl.controls.SelectableList)
package fl.controls {
import fl.controls.listClasses.*;
import fl.core.*;
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import fl.data.*;
import fl.managers.*;
import fl.events.*;
import fl.containers.*;
import flash.ui.*;
public class SelectableList extends BaseScrollPane implements IFocusManagerComponent {
protected var invalidItems:Dictionary;
protected var renderedItems:Dictionary;
protected var listHolder:Sprite;
protected var _allowMultipleSelection:Boolean;// = false
protected var lastCaretIndex:int;// = -1
protected var _selectedIndices:Array;
protected var availableCellRenderers:Array;
protected var list:Sprite;
protected var caretIndex:int;// = -1
protected var updatedRendererStyles:Object;
protected var preChangeItems:Array;
protected var activeCellRenderers:Array;
protected var rendererStyles:Object;
protected var _verticalScrollPosition:Number;
protected var _dataProvider:DataProvider;
protected var _horizontalScrollPosition:Number;
private var collectionItemImport:SimpleCollectionItem;
protected var _selectable:Boolean;// = true
private static var defaultStyles:Object = {skin:"List_skin", cellRenderer:CellRenderer, contentPadding:null, disabledAlpha:null};
public static var createAccessibilityImplementation:Function;
public function SelectableList(){
_allowMultipleSelection = false;
_selectable = true;
caretIndex = -1;
lastCaretIndex = -1;
super();
activeCellRenderers = [];
availableCellRenderers = [];
invalidItems = new Dictionary(true);
renderedItems = new Dictionary(true);
_selectedIndices = [];
if (dataProvider == null){
dataProvider = new DataProvider();
};
verticalScrollPolicy = ScrollPolicy.AUTO;
rendererStyles = {};
updatedRendererStyles = {};
}
protected function drawList():void{
}
public function set allowMultipleSelection(_arg1:Boolean):void{
if (_arg1 == _allowMultipleSelection){
return;
};
_allowMultipleSelection = _arg1;
if (((!(_arg1)) && ((_selectedIndices.length > 1)))){
_selectedIndices = [_selectedIndices.pop()];
invalidate(InvalidationType.DATA);
};
}
public function sortItemsOn(_arg1:String, _arg2:Object=null){
return (_dataProvider.sortOn(_arg1, _arg2));
}
public function removeItemAt(_arg1:uint):Object{
return (_dataProvider.removeItemAt(_arg1));
}
public function get selectedItem():Object{
return (((_selectedIndices.length)==0) ? null : _dataProvider.getItemAt(selectedIndex));
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!selectable){
return;
};
switch (_arg1.keyCode){
case Keyboard.UP:
case Keyboard.DOWN:
case Keyboard.END:
case Keyboard.HOME:
case Keyboard.PAGE_UP:
case Keyboard.PAGE_DOWN:
moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
_arg1.stopPropagation();
break;
case Keyboard.LEFT:
case Keyboard.RIGHT:
moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection)));
_arg1.stopPropagation();
break;
};
}
public function get selectable():Boolean{
return (_selectable);
}
public function itemToCellRenderer(_arg1:Object):ICellRenderer{
var _local2:*;
var _local3:ICellRenderer;
if (_arg1 != null){
for (_local2 in activeCellRenderers) {
_local3 = (activeCellRenderers[_local2] as ICellRenderer);
if (_local3.data == _arg1){
return (_local3);
};
};
};
return (null);
}
public function getNextIndexAtLetter(_arg1:String, _arg2:int=-1):int{
var _local3:int;
var _local4:Number;
var _local5:Number;
var _local6:Object;
var _local7:String;
if (length == 0){
return (-1);
};
_arg1 = _arg1.toUpperCase();
_local3 = (length - 1);
_local4 = 0;
while (_local4 < _local3) {
_local5 = ((_arg2 + 1) + _local4);
if (_local5 > (length - 1)){
_local5 = (_local5 - length);
};
_local6 = getItemAt(_local5);
if (_local6 == null){
break;
};
_local7 = itemToLabel(_local6);
if (_local7 == null){
} else {
if (_local7.charAt(0).toUpperCase() == _arg1){
return (_local5);
};
};
_local4++;
};
return (-1);
}
public function invalidateList():void{
_invalidateList();
invalidate(InvalidationType.DATA);
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
list.mouseChildren = _enabled;
}
public function get selectedIndices():Array{
return (_selectedIndices.concat());
}
public function set selectable(_arg1:Boolean):void{
if (_arg1 == _selectable){
return;
};
if (!_arg1){
selectedIndices = [];
};
_selectable = _arg1;
}
public function itemToLabel(_arg1:Object):String{
return (_arg1["label"]);
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
_dataProvider.addItemAt(_arg1, _arg2);
invalidateList();
}
public function replaceItemAt(_arg1:Object, _arg2:uint):Object{
return (_dataProvider.replaceItemAt(_arg1, _arg2));
}
protected function handleDataChange(_arg1:DataChangeEvent):void{
var _local2:int;
var _local3:int;
var _local4:String;
var _local5:uint;
_local2 = _arg1.startIndex;
_local3 = _arg1.endIndex;
_local4 = _arg1.changeType;
if (_local4 == DataChangeType.INVALIDATE_ALL){
clearSelection();
invalidateList();
} else {
if (_local4 == DataChangeType.INVALIDATE){
_local5 = 0;
while (_local5 < _arg1.items.length) {
invalidateItem(_arg1.items[_local5]);
_local5++;
};
} else {
if (_local4 == DataChangeType.ADD){
_local5 = 0;
while (_local5 < _selectedIndices.length) {
if (_selectedIndices[_local5] >= _local2){
_selectedIndices[_local5] = (_selectedIndices[_local5] + (_local2 - _local3));
};
_local5++;
};
} else {
if (_local4 == DataChangeType.REMOVE){
_local5 = 0;
while (_local5 < _selectedIndices.length) {
if (_selectedIndices[_local5] >= _local2){
if (_selectedIndices[_local5] <= _local3){
delete _selectedIndices[_local5];
} else {
_selectedIndices[_local5] = (_selectedIndices[_local5] - ((_local2 - _local3) + 1));
};
};
_local5++;
};
} else {
if (_local4 == DataChangeType.REMOVE_ALL){
clearSelection();
} else {
if (_local4 == DataChangeType.REPLACE){
} else {
selectedItems = preChangeItems;
preChangeItems = null;
};
};
};
};
};
};
invalidate(InvalidationType.DATA);
}
protected function _invalidateList():void{
availableCellRenderers = [];
while (activeCellRenderers.length > 0) {
list.removeChild((activeCellRenderers.pop() as DisplayObject));
};
}
protected function updateRendererStyles():void{
var _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:String;
_local1 = availableCellRenderers.concat(activeCellRenderers);
_local2 = _local1.length;
_local3 = 0;
while (_local3 < _local2) {
if (_local1[_local3].setStyle == null){
} else {
for (_local4 in updatedRendererStyles) {
_local1[_local3].setStyle(_local4, updatedRendererStyles[_local4]);
};
_local1[_local3].drawNow();
};
_local3++;
};
updatedRendererStyles = {};
}
public function set selectedItem(_arg1:Object):void{
var _local2:int;
_local2 = _dataProvider.getItemIndex(_arg1);
selectedIndex = _local2;
}
public function sortItems(... _args){
return (_dataProvider.sort.apply(_dataProvider, _args));
}
public function removeAll():void{
_dataProvider.removeAll();
}
protected function handleCellRendererChange(_arg1:Event):void{
var _local2:ICellRenderer;
var _local3:uint;
_local2 = (_arg1.currentTarget as ICellRenderer);
_local3 = _local2.listData.index;
_dataProvider.invalidateItemAt(_local3);
}
protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
}
override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
if (_arg1 == _horizontalScrollPosition){
return;
};
_local3 = (_arg1 - _horizontalScrollPosition);
_horizontalScrollPosition = _arg1;
if (_arg2){
dispatchEvent(new ScrollEvent(ScrollBarDirection.HORIZONTAL, _local3, _arg1));
};
}
public function scrollToSelected():void{
scrollToIndex(selectedIndex);
}
public function invalidateItem(_arg1:Object):void{
if (renderedItems[_arg1] == null){
return;
};
invalidItems[_arg1] = true;
invalidate(InvalidationType.DATA);
}
protected function handleCellRendererClick(_arg1:MouseEvent):void{
var _local2:ICellRenderer;
var _local3:uint;
var _local4:int;
var _local5:int;
var _local6:uint;
if (!_enabled){
return;
};
_local2 = (_arg1.currentTarget as ICellRenderer);
_local3 = _local2.listData.index;
if (((!(dispatchEvent(new ListEvent(ListEvent.ITEM_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)))) || (!(_selectable)))){
return;
};
_local4 = selectedIndices.indexOf(_local3);
if (!_allowMultipleSelection){
if (_local4 != -1){
return;
};
_local2.selected = true;
_selectedIndices = [_local3];
lastCaretIndex = (caretIndex = _local3);
} else {
if (_arg1.shiftKey){
_local6 = ((_selectedIndices.length)>0) ? _selectedIndices[0] : _local3;
_selectedIndices = [];
if (_local6 > _local3){
_local5 = _local6;
while (_local5 >= _local3) {
_selectedIndices.push(_local5);
_local5--;
};
} else {
_local5 = _local6;
while (_local5 <= _local3) {
_selectedIndices.push(_local5);
_local5++;
};
};
caretIndex = _local3;
} else {
if (_arg1.ctrlKey){
if (_local4 != -1){
_local2.selected = false;
_selectedIndices.splice(_local4, 1);
} else {
_local2.selected = true;
_selectedIndices.push(_local3);
};
caretIndex = _local3;
} else {
_selectedIndices = [_local3];
lastCaretIndex = (caretIndex = _local3);
};
};
};
dispatchEvent(new Event(Event.CHANGE));
invalidate(InvalidationType.DATA);
}
public function get length():uint{
return (_dataProvider.length);
}
public function get allowMultipleSelection():Boolean{
return (_allowMultipleSelection);
}
protected function onPreChange(_arg1:DataChangeEvent):void{
switch (_arg1.changeType){
case DataChangeType.REMOVE:
case DataChangeType.ADD:
case DataChangeType.INVALIDATE:
case DataChangeType.REMOVE_ALL:
case DataChangeType.REPLACE:
case DataChangeType.INVALIDATE_ALL:
break;
default:
preChangeItems = selectedItems;
break;
};
}
public function getRendererStyle(_arg1:String, _arg2:int=-1):Object{
return (rendererStyles[_arg1]);
}
override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
if (_arg1 == _verticalScrollPosition){
return;
};
_local3 = (_arg1 - _verticalScrollPosition);
_verticalScrollPosition = _arg1;
if (_arg2){
dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _local3, _arg1));
};
}
protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{
}
public function set selectedIndices(_arg1:Array):void{
if (!_selectable){
return;
};
_selectedIndices = ((_arg1)==null) ? [] : _arg1.concat();
invalidate(InvalidationType.SELECTED);
}
public function get selectedIndex():int{
return (((_selectedIndices.length)==0) ? -1 : _selectedIndices[(_selectedIndices.length - 1)]);
}
override protected function draw():void{
super.draw();
}
override protected function configUI():void{
super.configUI();
listHolder = new Sprite();
addChild(listHolder);
listHolder.scrollRect = contentScrollRect;
list = new Sprite();
listHolder.addChild(list);
}
public function addItem(_arg1:Object):void{
_dataProvider.addItem(_arg1);
invalidateList();
}
protected function handleCellRendererMouseEvent(_arg1:MouseEvent):void{
var _local2:ICellRenderer;
var _local3:String;
_local2 = (_arg1.target as ICellRenderer);
_local3 = ((_arg1.type)==MouseEvent.ROLL_OVER) ? ListEvent.ITEM_ROLL_OVER : ListEvent.ITEM_ROLL_OUT;
dispatchEvent(new ListEvent(_local3, false, false, _local2.listData.column, _local2.listData.row, _local2.listData.index, _local2.data));
}
public function clearRendererStyle(_arg1:String, _arg2:int=-1):void{
delete rendererStyles[_arg1];
updatedRendererStyles[_arg1] = null;
invalidate(InvalidationType.RENDERER_STYLES);
}
protected function handleCellRendererDoubleClick(_arg1:MouseEvent):void{
var _local2:ICellRenderer;
var _local3:uint;
if (!_enabled){
return;
};
_local2 = (_arg1.currentTarget as ICellRenderer);
_local3 = _local2.listData.index;
dispatchEvent(new ListEvent(ListEvent.ITEM_DOUBLE_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data));
}
public function get rowCount():uint{
return (0);
}
public function isItemSelected(_arg1:Object):Boolean{
return ((selectedItems.indexOf(_arg1) > -1));
}
public function set dataProvider(_arg1:DataProvider):void{
if (_dataProvider != null){
_dataProvider.removeEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange);
_dataProvider.removeEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange);
};
_dataProvider = _arg1;
_dataProvider.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true);
_dataProvider.addEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange, false, 0, true);
clearSelection();
invalidateList();
}
override protected function drawLayout():void{
super.drawLayout();
contentScrollRect = listHolder.scrollRect;
contentScrollRect.width = availableWidth;
contentScrollRect.height = availableHeight;
listHolder.scrollRect = contentScrollRect;
}
public function getItemAt(_arg1:uint):Object{
return (_dataProvider.getItemAt(_arg1));
}
override protected function initializeAccessibility():void{
if (SelectableList.createAccessibilityImplementation != null){
SelectableList.createAccessibilityImplementation(this);
};
}
public function scrollToIndex(_arg1:int):void{
}
public function removeItem(_arg1:Object):Object{
return (_dataProvider.removeItem(_arg1));
}
public function get dataProvider():DataProvider{
return (_dataProvider);
}
public function set maxHorizontalScrollPosition(_arg1:Number):void{
_maxHorizontalScrollPosition = _arg1;
invalidate(InvalidationType.SIZE);
}
public function setRendererStyle(_arg1:String, _arg2:Object, _arg3:uint=0):void{
if (rendererStyles[_arg1] == _arg2){
return;
};
updatedRendererStyles[_arg1] = _arg2;
rendererStyles[_arg1] = _arg2;
invalidate(InvalidationType.RENDERER_STYLES);
}
public function invalidateItemAt(_arg1:uint):void{
var _local2:Object;
_local2 = _dataProvider.getItemAt(_arg1);
if (_local2 != null){
invalidateItem(_local2);
};
}
public function set selectedItems(_arg1:Array):void{
var _local2:Array;
var _local3:uint;
var _local4:int;
if (_arg1 == null){
selectedIndices = null;
return;
};
_local2 = [];
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _dataProvider.getItemIndex(_arg1[_local3]);
if (_local4 != -1){
_local2.push(_local4);
};
_local3++;
};
selectedIndices = _local2;
}
public function clearSelection():void{
selectedIndex = -1;
}
override public function get maxHorizontalScrollPosition():Number{
return (_maxHorizontalScrollPosition);
}
public function get selectedItems():Array{
var _local1:Array;
var _local2:uint;
_local1 = [];
_local2 = 0;
while (_local2 < _selectedIndices.length) {
_local1.push(_dataProvider.getItemAt(_selectedIndices[_local2]));
_local2++;
};
return (_local1);
}
public function set selectedIndex(_arg1:int):void{
selectedIndices = ((_arg1)==-1) ? null : [_arg1];
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition()));
}
}
}//package fl.controls
Section 23
//TextArea (fl.controls.TextArea)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
public class TextArea extends UIComponent implements IFocusManagerComponent {
protected var _html:Boolean;// = false
protected var _verticalScrollBar:UIScrollBar;
protected var _savedHTML:String;
protected var background:DisplayObject;
protected var _horizontalScrollBar:UIScrollBar;
protected var _horizontalScrollPolicy:String;// = "auto"
protected var _editable:Boolean;// = true
protected var textHasChanged:Boolean;// = false
public var textField:TextField;
protected var _wordWrap:Boolean;// = true
protected var _verticalScrollPolicy:String;// = "auto"
protected static const SCROLL_BAR_STYLES:Object = {downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {upSkin:"TextArea_upSkin", disabledSkin:"TextArea_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:3, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function TextArea(){
_editable = true;
_wordWrap = true;
_horizontalScrollPolicy = ScrollPolicy.AUTO;
_verticalScrollPolicy = ScrollPolicy.AUTO;
_html = false;
textHasChanged = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
if (focusTarget != null){
focusTarget.drawFocus(_arg1);
return;
};
super.drawFocus(_arg1);
}
public function set imeMode(_arg1:String):void{
_imeMode = _arg1;
}
protected function handleWheel(_arg1:MouseEvent):void{
if (((!(enabled)) || (!(_verticalScrollBar.visible)))){
return;
};
_verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * _verticalScrollBar.lineScrollSize));
dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, (_arg1.delta * _verticalScrollBar.lineScrollSize), _verticalScrollBar.scrollPosition));
}
public function get verticalScrollPosition():Number{
return (textField.scrollV);
}
override protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((((_arg1 == textField)) || (super.isOurFocus(_arg1))));
}
public function set verticalScrollPosition(_arg1:Number):void{
drawNow();
textField.scrollV = _arg1;
}
protected function handleKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ENTER){
dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true));
};
}
public function set text(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
return;
};
textField.text = _arg1;
_html = false;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
textHasChanged = true;
}
protected function updateTextFieldType():void{
textField.type = (((enabled) && (_editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC;
textField.selectable = enabled;
textField.wordWrap = _wordWrap;
textField.multiline = true;
}
public function get selectionEndIndex():int{
return (textField.selectionEndIndex);
}
public function get editable():Boolean{
return (_editable);
}
override protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
setIMEMode(true);
if (_arg1.target == this){
stage.focus = textField;
};
_local2 = focusManager;
if (_local2){
if (editable){
_local2.showFocusIndicator = true;
};
_local2.defaultButtonEnabled = false;
};
super.focusInHandler(_arg1);
if (editable){
setIMEMode(true);
};
}
public function get wordWrap():Boolean{
return (_wordWrap);
}
public function get selectionBeginIndex():int{
return (textField.selectionBeginIndex);
}
public function get horizontalScrollBar():UIScrollBar{
return (_horizontalScrollBar);
}
public function set alwaysShowSelection(_arg1:Boolean):void{
textField.alwaysShowSelection = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseChildren = enabled;
invalidate(InvalidationType.STATE);
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
public function get horizontalScrollPosition():Number{
return (textField.scrollH);
}
public function set condenseWhite(_arg1:Boolean):void{
textField.condenseWhite = _arg1;
invalidate(InvalidationType.DATA);
}
public function get horizontalScrollPolicy():String{
return (_horizontalScrollPolicy);
}
public function set displayAsPassword(_arg1:Boolean):void{
textField.displayAsPassword = _arg1;
}
public function get maxVerticalScrollPosition():int{
return (textField.maxScrollV);
}
public function set horizontalScrollPosition(_arg1:Number):void{
drawNow();
textField.scrollH = _arg1;
}
public function get textHeight():Number{
drawNow();
return (textField.textHeight);
}
public function get textWidth():Number{
drawNow();
return (textField.textWidth);
}
public function get restrict():String{
return (textField.restrict);
}
public function set editable(_arg1:Boolean):void{
_editable = _arg1;
invalidate(InvalidationType.STATE);
}
protected function updateScrollBars(){
_horizontalScrollBar.update();
_verticalScrollBar.update();
_verticalScrollBar.enabled = enabled;
_horizontalScrollBar.enabled = enabled;
_horizontalScrollBar.drawNow();
_verticalScrollBar.drawNow();
}
public function get maxChars():int{
return (textField.maxChars);
}
public function get length():Number{
return (textField.text.length);
}
public function set wordWrap(_arg1:Boolean):void{
_wordWrap = _arg1;
invalidate(InvalidationType.STATE);
}
public function get verticalScrollPolicy():String{
return (_verticalScrollPolicy);
}
public function getLineMetrics(_arg1:int):TextLineMetrics{
return (textField.getLineMetrics(_arg1));
}
public function get imeMode():String{
return (IME.conversionMode);
}
protected function handleScroll(_arg1:ScrollEvent):void{
dispatchEvent(_arg1);
}
override protected function focusOutHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
_local2 = focusManager;
if (_local2){
_local2.defaultButtonEnabled = true;
};
setSelection(0, 0);
super.focusOutHandler(_arg1);
if (editable){
setIMEMode(false);
};
}
protected function delayedLayoutUpdate(_arg1:Event):void{
if (textHasChanged){
textHasChanged = false;
drawLayout();
return;
};
removeEventListener(Event.ENTER_FRAME, delayedLayoutUpdate);
}
public function set htmlText(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
return;
};
if (_arg1 == ""){
text = "";
return;
};
_html = true;
_savedHTML = _arg1;
textField.htmlText = _arg1;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
textHasChanged = true;
}
public function get text():String{
return (textField.text);
}
public function get verticalScrollBar():UIScrollBar{
return (_verticalScrollBar);
}
override public function get enabled():Boolean{
return (super.enabled);
}
public function get condenseWhite():Boolean{
return (textField.condenseWhite);
}
public function set horizontalScrollPolicy(_arg1:String):void{
_horizontalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get displayAsPassword():Boolean{
return (textField.displayAsPassword);
}
override protected function draw():void{
if (isInvalid(InvalidationType.STATE)){
updateTextFieldType();
};
if (isInvalid(InvalidationType.STYLES)){
setStyles();
setEmbedFont();
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawTextFormat();
drawBackground();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.DATA)){
drawLayout();
};
super.draw();
}
protected function handleTextInput(_arg1:TextEvent):void{
_arg1.stopPropagation();
dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text));
}
override protected function configUI():void{
super.configUI();
tabChildren = true;
textField = new TextField();
addChild(textField);
updateTextFieldType();
_verticalScrollBar = new UIScrollBar();
_verticalScrollBar.name = "V";
_verticalScrollBar.visible = false;
_verticalScrollBar.focusEnabled = false;
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
_verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
addChild(_verticalScrollBar);
_horizontalScrollBar = new UIScrollBar();
_horizontalScrollBar.name = "H";
_horizontalScrollBar.visible = false;
_horizontalScrollBar.focusEnabled = false;
_horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL;
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
_horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
addChild(_horizontalScrollBar);
textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true);
textField.addEventListener(Event.CHANGE, handleChange, false, 0, true);
textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true);
_horizontalScrollBar.scrollTarget = textField;
_verticalScrollBar.scrollTarget = textField;
addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true);
}
protected function setTextSize(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:Number;
var _local5:Number;
_local4 = (_arg1 - (_arg3 * 2));
_local5 = (_arg2 - (_arg3 * 2));
if (_local4 != textField.width){
textField.width = _local4;
};
if (_local5 != textField.height){
textField.height = _local5;
};
}
public function appendText(_arg1:String):void{
textField.appendText(_arg1);
invalidate(InvalidationType.DATA);
}
protected function needVScroll():Boolean{
if (_verticalScrollPolicy == ScrollPolicy.OFF){
return (false);
};
if (_verticalScrollPolicy == ScrollPolicy.ON){
return (true);
};
return ((textField.maxScrollV > 1));
}
public function setSelection(_arg1:int, _arg2:int):void{
textField.setSelection(_arg1, _arg2);
}
public function get alwaysShowSelection():Boolean{
return (textField.alwaysShowSelection);
}
public function get htmlText():String{
return (textField.htmlText);
}
public function set restrict(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
_arg1 = null;
};
textField.restrict = _arg1;
}
protected function drawBackground():void{
var _local1:DisplayObject;
var _local2:String;
_local1 = background;
_local2 = (enabled) ? "upSkin" : "disabledSkin";
background = getDisplayObjectInstance(getStyleValue(_local2));
if (background != null){
addChildAt(background, 0);
};
if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){
removeChild(_local1);
};
}
public function set maxChars(_arg1:int):void{
textField.maxChars = _arg1;
}
public function get maxHorizontalScrollPosition():int{
return (textField.maxScrollH);
}
protected function drawLayout():void{
var _local1:Number;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
var _local5:Boolean;
_local1 = Number(getStyleValue("textPadding"));
textField.x = (textField.y = _local1);
background.width = width;
background.height = height;
_local2 = height;
_local3 = needVScroll();
_local4 = (width - (_local3) ? _verticalScrollBar.width : 0);
_local5 = needHScroll();
if (_local5){
_local2 = (_local2 - _horizontalScrollBar.height);
};
setTextSize(_local4, _local2, _local1);
if (((((_local5) && (!(_local3)))) && (needVScroll()))){
_local3 = true;
_local4 = (_local4 - _verticalScrollBar.width);
setTextSize(_local4, _local2, _local1);
};
if (_local3){
_verticalScrollBar.visible = true;
_verticalScrollBar.x = (width - _verticalScrollBar.width);
_verticalScrollBar.height = _local2;
_verticalScrollBar.visible = true;
_verticalScrollBar.enabled = enabled;
} else {
_verticalScrollBar.visible = false;
};
if (_local5){
_horizontalScrollBar.visible = true;
_horizontalScrollBar.y = (height - _horizontalScrollBar.height);
_horizontalScrollBar.width = _local4;
_horizontalScrollBar.visible = true;
_horizontalScrollBar.enabled = enabled;
} else {
_horizontalScrollBar.visible = false;
};
updateScrollBars();
addEventListener(Event.ENTER_FRAME, delayedLayoutUpdate, false, 0, true);
}
protected function setStyles():void{
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
}
protected function needHScroll():Boolean{
if (_horizontalScrollPolicy == ScrollPolicy.OFF){
return (false);
};
if (_horizontalScrollPolicy == ScrollPolicy.ON){
return (true);
};
return ((textField.maxScrollH > 0));
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
if (_html){
textField.htmlText = _savedHTML;
};
}
public function set verticalScrollPolicy(_arg1:String):void{
_verticalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
protected function handleChange(_arg1:Event):void{
_arg1.stopPropagation();
dispatchEvent(new Event(Event.CHANGE, true));
invalidate(InvalidationType.DATA);
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(defaultStyles, ScrollBar.getStyleDefinition()));
}
}
}//package fl.controls
Section 24
//TextInput (fl.controls.TextInput)
package fl.controls {
import fl.core.*;
import flash.display.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class TextInput extends UIComponent implements IFocusManagerComponent {
protected var _html:Boolean;// = false
protected var _savedHTML:String;
protected var background:DisplayObject;
protected var _editable:Boolean;// = true
public var textField:TextField;
private static var defaultStyles:Object = {upSkin:"TextInput_upSkin", disabledSkin:"TextInput_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:0, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function TextInput(){
_editable = true;
_html = false;
super();
}
override public function drawFocus(_arg1:Boolean):void{
if (focusTarget != null){
focusTarget.drawFocus(_arg1);
return;
};
super.drawFocus(_arg1);
}
public function set imeMode(_arg1:String):void{
_imeMode = _arg1;
}
override protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((((_arg1 == textField)) || (super.isOurFocus(_arg1))));
}
protected function handleKeyDown(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ENTER){
dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true));
};
}
public function set text(_arg1:String):void{
textField.text = _arg1;
_html = false;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
}
protected function updateTextFieldType():void{
textField.type = (((enabled) && (editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC;
textField.selectable = enabled;
}
public function get selectionEndIndex():int{
return (textField.selectionEndIndex);
}
public function get editable():Boolean{
return (_editable);
}
override protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (_arg1.target == this){
stage.focus = textField;
};
_local2 = focusManager;
if (((editable) && (_local2))){
_local2.showFocusIndicator = true;
if (((textField.selectable) && ((textField.selectionBeginIndex == textField.selectionBeginIndex)))){
setSelection(0, textField.length);
};
};
super.focusInHandler(_arg1);
if (editable){
setIMEMode(true);
};
}
public function get selectionBeginIndex():int{
return (textField.selectionBeginIndex);
}
public function set alwaysShowSelection(_arg1:Boolean):void{
textField.alwaysShowSelection = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
updateTextFieldType();
}
protected function setEmbedFont(){
var _local1:Object;
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
public function get horizontalScrollPosition():int{
return (textField.scrollH);
}
public function set condenseWhite(_arg1:Boolean):void{
textField.condenseWhite = _arg1;
}
public function set displayAsPassword(_arg1:Boolean):void{
textField.displayAsPassword = _arg1;
}
public function set horizontalScrollPosition(_arg1:int):void{
textField.scrollH = _arg1;
}
public function get restrict():String{
return (textField.restrict);
}
public function get textWidth():Number{
return (textField.textWidth);
}
public function get textHeight():Number{
return (textField.textHeight);
}
public function set editable(_arg1:Boolean):void{
_editable = _arg1;
updateTextFieldType();
}
public function get maxChars():int{
return (textField.maxChars);
}
public function get length():int{
return (textField.length);
}
public function getLineMetrics(_arg1:int):TextLineMetrics{
return (textField.getLineMetrics(_arg1));
}
public function get imeMode():String{
return (_imeMode);
}
override protected function focusOutHandler(_arg1:FocusEvent):void{
super.focusOutHandler(_arg1);
if (editable){
setIMEMode(false);
};
}
public function set htmlText(_arg1:String):void{
if (_arg1 == ""){
text = "";
return;
};
_html = true;
_savedHTML = _arg1;
textField.htmlText = _arg1;
invalidate(InvalidationType.DATA);
invalidate(InvalidationType.STYLES);
}
public function get text():String{
return (textField.text);
}
override public function get enabled():Boolean{
return (super.enabled);
}
public function get condenseWhite():Boolean{
return (textField.condenseWhite);
}
public function get alwaysShowSelection():Boolean{
return (textField.alwaysShowSelection);
}
override protected function draw():void{
var _local1:Object;
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawTextFormat();
drawBackground();
_local1 = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function handleTextInput(_arg1:TextEvent):void{
_arg1.stopPropagation();
dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text));
}
override protected function configUI():void{
super.configUI();
tabChildren = true;
textField = new TextField();
addChild(textField);
updateTextFieldType();
textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true);
textField.addEventListener(Event.CHANGE, handleChange, false, 0, true);
textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true);
}
public function setSelection(_arg1:int, _arg2:int):void{
textField.setSelection(_arg1, _arg2);
}
public function get displayAsPassword():Boolean{
return (textField.displayAsPassword);
}
public function appendText(_arg1:String):void{
textField.appendText(_arg1);
}
public function set restrict(_arg1:String):void{
if (((componentInspectorSetting) && ((_arg1 == "")))){
_arg1 = null;
};
textField.restrict = _arg1;
}
public function get htmlText():String{
return (textField.htmlText);
}
protected function drawBackground():void{
var _local1:DisplayObject;
var _local2:String;
_local1 = background;
_local2 = (enabled) ? "upSkin" : "disabledSkin";
background = getDisplayObjectInstance(getStyleValue(_local2));
if (background == null){
return;
};
addChildAt(background, 0);
if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){
removeChild(_local1);
};
}
override public function setFocus():void{
stage.focus = textField;
}
protected function drawLayout():void{
var _local1:Number;
_local1 = Number(getStyleValue("textPadding"));
if (background != null){
background.width = width;
background.height = height;
};
textField.width = (width - (2 * _local1));
textField.height = (height - (2 * _local1));
textField.x = (textField.y = _local1);
}
public function set maxChars(_arg1:int):void{
textField.maxChars = _arg1;
}
public function get maxHorizontalScrollPosition():int{
return (textField.maxScrollH);
}
protected function drawTextFormat():void{
var _local1:Object;
var _local2:TextFormat;
var _local3:TextFormat;
_local1 = UIComponent.getStyleDefinition();
_local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
_local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
if (_html){
textField.htmlText = _savedHTML;
};
}
protected function handleChange(_arg1:Event):void{
_arg1.stopPropagation();
dispatchEvent(new Event(Event.CHANGE, true));
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 25
//UIScrollBar (fl.controls.UIScrollBar)
package fl.controls {
import fl.core.*;
import flash.events.*;
import fl.events.*;
import flash.text.*;
public class UIScrollBar extends ScrollBar {
protected var inScroll:Boolean;// = false
protected var _scrollTarget:TextField;
protected var inEdit:Boolean;// = false
private static var defaultStyles:Object = {};
public function UIScrollBar(){
inEdit = false;
inScroll = false;
super();
}
protected function handleTargetScroll(_arg1:Event):void{
if (inDrag){
return;
};
if (!enabled){
return;
};
inEdit = true;
updateScrollTargetProperties();
scrollPosition = ((direction)==ScrollBarDirection.HORIZONTAL) ? _scrollTarget.scrollH : _scrollTarget.scrollV;
inEdit = false;
}
override public function set minScrollPosition(_arg1:Number):void{
super.minScrollPosition = ((_arg1)<0) ? 0 : _arg1;
}
override public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{
super.setScrollPosition(_arg1, _arg2);
if (!_scrollTarget){
inScroll = false;
return;
};
updateTargetScroll();
}
override public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{
var _local5:Number;
var _local6:Number;
_local5 = _arg3;
_local6 = ((_arg2)<0) ? 0 : _arg2;
if (_scrollTarget != null){
if (direction == ScrollBarDirection.HORIZONTAL){
_local5 = ((_arg3)>_scrollTarget.maxScrollH) ? _scrollTarget.maxScrollH : _local5;
} else {
_local5 = ((_arg3)>_scrollTarget.maxScrollV) ? _scrollTarget.maxScrollV : _local5;
};
};
super.setScrollProperties(_arg1, _local6, _local5, _arg4);
}
public function get scrollTargetName():String{
return (_scrollTarget.name);
}
public function get scrollTarget():TextField{
return (_scrollTarget);
}
protected function updateScrollTargetProperties():void{
var _local1:Boolean;
var _local2:Number;
if (_scrollTarget == null){
setScrollProperties(pageSize, minScrollPosition, maxScrollPosition, pageScrollSize);
scrollPosition = 0;
} else {
_local1 = (direction == ScrollBarDirection.HORIZONTAL);
_local2 = (_local1) ? _scrollTarget.width : 10;
setScrollProperties(_local2, (_local1) ? 0 : 1, (_local1) ? _scrollTarget.maxScrollH : _scrollTarget.maxScrollV, pageScrollSize);
scrollPosition = (_local1) ? _scrollTarget.scrollH : _scrollTarget.scrollV;
};
}
public function update():void{
inEdit = true;
updateScrollTargetProperties();
inEdit = false;
}
public function set scrollTargetName(_arg1:String):void{
var target = _arg1;
try {
scrollTarget = (parent.getChildByName(target) as TextField);
} catch(error:Error) {
throw (new Error("ScrollTarget not found, or is not a TextField"));
};
}
override public function set direction(_arg1:String):void{
if (isLivePreview){
return;
};
super.direction = _arg1;
updateScrollTargetProperties();
}
protected function handleTargetChange(_arg1:Event):void{
inEdit = true;
setScrollPosition(((direction)==ScrollBarDirection.HORIZONTAL) ? _scrollTarget.scrollH : _scrollTarget.scrollV, true);
updateScrollTargetProperties();
inEdit = false;
}
override public function set maxScrollPosition(_arg1:Number):void{
var _local2:Number;
_local2 = _arg1;
if (_scrollTarget != null){
if (direction == ScrollBarDirection.HORIZONTAL){
_local2 = ((_local2)>_scrollTarget.maxScrollH) ? _scrollTarget.maxScrollH : _local2;
} else {
_local2 = ((_local2)>_scrollTarget.maxScrollV) ? _scrollTarget.maxScrollV : _local2;
};
};
super.maxScrollPosition = _local2;
}
protected function updateTargetScroll(_arg1:ScrollEvent=null):void{
if (inEdit){
return;
};
if (direction == ScrollBarDirection.HORIZONTAL){
_scrollTarget.scrollH = scrollPosition;
} else {
_scrollTarget.scrollV = scrollPosition;
};
}
override protected function draw():void{
if (isInvalid(InvalidationType.DATA)){
updateScrollTargetProperties();
};
super.draw();
}
public function set scrollTarget(_arg1:TextField):void{
if (_scrollTarget != null){
_scrollTarget.removeEventListener(Event.CHANGE, handleTargetChange, false);
_scrollTarget.removeEventListener(TextEvent.TEXT_INPUT, handleTargetChange, false);
_scrollTarget.removeEventListener(Event.SCROLL, handleTargetScroll, false);
removeEventListener(ScrollEvent.SCROLL, updateTargetScroll, false);
};
_scrollTarget = _arg1;
if (_scrollTarget != null){
_scrollTarget.addEventListener(Event.CHANGE, handleTargetChange, false, 0, true);
_scrollTarget.addEventListener(TextEvent.TEXT_INPUT, handleTargetChange, false, 0, true);
_scrollTarget.addEventListener(Event.SCROLL, handleTargetScroll, false, 0, true);
addEventListener(ScrollEvent.SCROLL, updateTargetScroll, false, 0, true);
};
invalidate(InvalidationType.DATA);
}
override public function get direction():String{
return (super.direction);
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(defaultStyles, ScrollBar.getStyleDefinition()));
}
}
}//package fl.controls
Section 26
//ComponentShim (fl.core.ComponentShim)
package fl.core {
import flash.display.*;
public dynamic class ComponentShim extends MovieClip {
}
}//package fl.core
Section 27
//InvalidationType (fl.core.InvalidationType)
package fl.core {
public class InvalidationType {
public static const SIZE:String = "size";
public static const ALL:String = "all";
public static const DATA:String = "data";
public static const SCROLL:String = "scroll";
public static const STATE:String = "state";
public static const STYLES:String = "styles";
public static const SELECTED:String = "selected";
public static const RENDERER_STYLES:String = "rendererStyles";
}
}//package fl.core
Section 28
//UIComponent (fl.core.UIComponent)
package fl.core {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.system.*;
public class UIComponent extends Sprite {
protected var _enabled:Boolean;// = true
private var _mouseFocusEnabled:Boolean;// = true
protected var startHeight:Number;
protected var _height:Number;
protected var _oldIMEMode:String;// = null
protected var startWidth:Number;
public var focusTarget:IFocusManagerComponent;
protected var errorCaught:Boolean;// = false
protected var uiFocusRect:DisplayObject;
protected var _width:Number;
public var version:String;// = "3.0.0.15"
protected var isFocused:Boolean;// = false
protected var callLaterMethods:Dictionary;
private var _focusEnabled:Boolean;// = true
private var tempText:TextField;
protected var invalidateFlag:Boolean;// = false
protected var _inspector:Boolean;// = false
protected var sharedStyles:Object;
protected var invalidHash:Object;
protected var isLivePreview:Boolean;// = false
protected var _imeMode:String;// = null
protected var instanceStyles:Object;
protected var _x:Number;
protected var _y:Number;
public static var inCallLaterPhase:Boolean = false;
private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)};
public static var createAccessibilityImplementation:Function;
private static var focusManagers:Dictionary = new Dictionary(false);
public function UIComponent(){
version = "3.0.0.15";
isLivePreview = false;
invalidateFlag = false;
_enabled = true;
isFocused = false;
_focusEnabled = true;
_mouseFocusEnabled = true;
_imeMode = null;
_oldIMEMode = null;
errorCaught = false;
_inspector = false;
super();
instanceStyles = {};
sharedStyles = {};
invalidHash = {};
callLaterMethods = new Dictionary();
StyleManager.registerInstance(this);
configUI();
invalidate(InvalidationType.ALL);
tabEnabled = (this is IFocusManagerComponent);
focusRect = false;
if (tabEnabled){
addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
initializeFocusManager();
addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true);
}
public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
isFocused = _arg1;
if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){
removeChild(uiFocusRect);
uiFocusRect = null;
};
if (_arg1){
uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite);
if (uiFocusRect == null){
return;
};
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = -(_local2);
uiFocusRect.y = -(_local2);
uiFocusRect.width = (width + (_local2 * 2));
uiFocusRect.height = (height + (_local2 * 2));
addChildAt(uiFocusRect, 0);
};
}
private function callLaterDispatcher(_arg1:Event):void{
var _local2:Dictionary;
var _local3:Object;
if (_arg1.type == Event.ADDED_TO_STAGE){
removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher);
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
return;
};
_arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher);
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
return;
};
inCallLaterPhase = true;
_local2 = callLaterMethods;
for (_local3 in _local2) {
_local3();
delete _local2[_local3];
};
inCallLaterPhase = false;
}
private function addedHandler(_arg1:Event):void{
removeEventListener("addedToStage", addedHandler);
initializeFocusManager();
}
protected function getStyleValue(_arg1:String):Object{
return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]);
}
protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
override public function get scaleX():Number{
return ((width / startWidth));
}
override public function get scaleY():Number{
return ((height / startHeight));
}
override public function set height(_arg1:Number):void{
if (_height == _arg1){
return;
};
setSize(width, _arg1);
}
protected function keyDownHandler(_arg1:KeyboardEvent):void{
}
protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (isOurFocus((_arg1.target as DisplayObject))){
_local2 = focusManager;
if (((_local2) && (_local2.showFocusIndicator))){
drawFocus(true);
isFocused = true;
};
};
}
public function setStyle(_arg1:String, _arg2:Object):void{
if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
instanceStyles[_arg1] = _arg2;
invalidate(InvalidationType.STYLES);
}
override public function get visible():Boolean{
return (super.visible);
}
public function get componentInspectorSetting():Boolean{
return (_inspector);
}
override public function get x():Number{
return ((isNaN(_x)) ? super.x : _x);
}
override public function get y():Number{
return ((isNaN(_y)) ? super.y : _y);
}
protected function setIMEMode(_arg1:Boolean){
var enabled = _arg1;
if (_imeMode != null){
if (enabled){
IME.enabled = true;
_oldIMEMode = IME.conversionMode;
try {
if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _imeMode;
};
errorCaught = false;
} catch(e:Error) {
errorCaught = true;
throw (new Error(("IME mode not supported: " + _imeMode)));
};
} else {
if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _oldIMEMode;
};
IME.enabled = false;
};
};
}
public function set enabled(_arg1:Boolean):void{
if (_arg1 == _enabled){
return;
};
_enabled = _arg1;
invalidate(InvalidationType.STATE);
}
public function setSharedStyle(_arg1:String, _arg2:Object):void{
if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
sharedStyles[_arg1] = _arg2;
if (instanceStyles[_arg1] == null){
invalidate(InvalidationType.STYLES);
};
}
protected function keyUpHandler(_arg1:KeyboardEvent):void{
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
override public function set scaleX(_arg1:Number):void{
setSize((startWidth * _arg1), height);
}
public function get mouseFocusEnabled():Boolean{
return (_mouseFocusEnabled);
}
override public function set scaleY(_arg1:Number):void{
setSize(width, (startHeight * _arg1));
}
protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{
var classDef:Object;
var skin = _arg1;
classDef = null;
if ((skin is Class)){
return ((new (skin) as DisplayObject));
};
if ((skin is DisplayObject)){
(skin as DisplayObject).x = 0;
(skin as DisplayObject).y = 0;
return ((skin as DisplayObject));
};
try {
classDef = getDefinitionByName(skin.toString());
} catch(e:Error) {
try {
classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object);
} catch(e:Error) {
};
};
if (classDef == null){
return (null);
};
return ((new (classDef) as DisplayObject));
}
protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{
var _local3:String;
for (_local3 in _arg2) {
_arg1.setStyle(_local3, getStyleValue(_arg2[_local3]));
};
}
protected function beforeComponentParameters():void{
}
protected function callLater(_arg1:Function):void{
if (inCallLaterPhase){
return;
};
callLaterMethods[_arg1] = true;
if (stage != null){
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
} else {
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
};
}
protected function createFocusManager():void{
if (focusManagers[stage] == null){
focusManagers[stage] = new FocusManager(stage);
};
}
override public function set visible(_arg1:Boolean):void{
var _local2:String;
if (super.visible == _arg1){
return;
};
super.visible = _arg1;
_local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE;
dispatchEvent(new ComponentEvent(_local2, true));
}
protected function hookAccessibility(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, hookAccessibility);
initializeAccessibility();
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_inspector = _arg1;
if (_inspector){
beforeComponentParameters();
} else {
afterComponentParameters();
};
}
override public function set x(_arg1:Number):void{
move(_arg1, _y);
}
public function drawNow():void{
draw();
}
override public function set y(_arg1:Number):void{
move(_x, _arg1);
}
protected function checkLivePreview():Boolean{
var className:String;
if (parent == null){
return (false);
};
try {
className = getQualifiedClassName(parent);
} catch(e:Error) {
};
return ((className == "fl.livepreview::LivePreviewParent"));
}
protected function focusOutHandler(_arg1:FocusEvent):void{
if (isOurFocus((_arg1.target as DisplayObject))){
drawFocus(false);
isFocused = false;
};
}
public function set mouseFocusEnabled(_arg1:Boolean):void{
_mouseFocusEnabled = _arg1;
}
public function getFocus():InteractiveObject{
if (stage){
return (stage.focus);
};
return (null);
}
protected function validate():void{
invalidHash = {};
}
override public function get height():Number{
return (_height);
}
public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{
invalidHash[_arg1] = true;
if (_arg2){
this.callLater(draw);
};
}
public function get enabled():Boolean{
return (_enabled);
}
protected function getScaleX():Number{
return (super.scaleX);
}
protected function getScaleY():Number{
return (super.scaleY);
}
public function get focusEnabled():Boolean{
return (_focusEnabled);
}
protected function afterComponentParameters():void{
}
protected function draw():void{
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
protected function configUI():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
isLivePreview = checkLivePreview();
_local1 = rotation;
rotation = 0;
_local2 = super.width;
_local3 = super.height;
var _local4 = 1;
super.scaleY = _local4;
super.scaleX = _local4;
setSize(_local2, _local3);
move(super.x, super.y);
rotation = _local1;
startWidth = _local2;
startHeight = _local3;
if (numChildren > 0){
removeChildAt(0);
};
}
protected function setScaleX(_arg1:Number):void{
super.scaleX = _arg1;
}
protected function setScaleY(_arg1:Number):void{
super.scaleY = _arg1;
}
private function initializeFocusManager():void{
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true);
} else {
createFocusManager();
};
}
public function set focusManager(_arg1:IFocusManager):void{
UIComponent.focusManagers[this] = _arg1;
}
public function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
protected function isInvalid(_arg1:String, ... _args):Boolean{
if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){
return (true);
};
while (_args.length > 0) {
if (invalidHash[_args.pop()]){
return (true);
};
};
return (false);
}
public function setSize(_arg1:Number, _arg2:Number):void{
_width = _arg1;
_height = _arg2;
invalidate(InvalidationType.SIZE);
dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false));
}
override public function set width(_arg1:Number):void{
if (_width == _arg1){
return;
};
setSize(_arg1, height);
}
public function setFocus():void{
if (stage){
stage.focus = this;
};
}
protected function initializeAccessibility():void{
if (UIComponent.createAccessibilityImplementation != null){
UIComponent.createAccessibilityImplementation(this);
};
}
public function get focusManager():IFocusManager{
var _local1:DisplayObject;
_local1 = this;
while (_local1) {
if (UIComponent.focusManagers[_local1] != null){
return (IFocusManager(UIComponent.focusManagers[_local1]));
};
_local1 = _local1.parent;
};
return (null);
}
override public function get width():Number{
return (_width);
}
public function move(_arg1:Number, _arg2:Number):void{
_x = _arg1;
_y = _arg2;
super.x = Math.round(_arg1);
super.y = Math.round(_arg2);
dispatchEvent(new ComponentEvent(ComponentEvent.MOVE));
}
public function validateNow():void{
invalidate(InvalidationType.ALL, false);
draw();
}
public function getStyle(_arg1:String):Object{
return (instanceStyles[_arg1]);
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
public static function mergeStyles(... _args):Object{
var _local2:Object;
var _local3:uint;
var _local4:uint;
var _local5:Object;
var _local6:String;
_local2 = {};
_local3 = _args.length;
_local4 = 0;
while (_local4 < _local3) {
_local5 = _args[_local4];
for (_local6 in _local5) {
if (_local2[_local6] != null){
} else {
_local2[_local6] = _args[_local4][_local6];
};
};
_local4++;
};
return (_local2);
}
}
}//package fl.core
Section 29
//DataProvider (fl.data.DataProvider)
package fl.data {
import flash.events.*;
import fl.events.*;
public class DataProvider extends EventDispatcher {
protected var data:Array;
public function DataProvider(_arg1:Object=null){
if (_arg1 == null){
data = [];
} else {
data = getDataFromObject(_arg1);
};
}
protected function dispatchPreChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{
dispatchEvent(new DataChangeEvent(DataChangeEvent.PRE_DATA_CHANGE, _arg1, _arg2, _arg3, _arg4));
}
public function invalidateItemAt(_arg1:int):void{
checkIndex(_arg1, (data.length - 1));
dispatchChangeEvent(DataChangeType.INVALIDATE, [data[_arg1]], _arg1, _arg1);
}
public function getItemIndex(_arg1:Object):int{
return (data.indexOf(_arg1));
}
protected function getDataFromObject(_arg1:Object):Array{
var _local2:Array;
var _local3:Array;
var _local4:uint;
var _local5:Object;
var _local6:XML;
var _local7:XMLList;
var _local8:XML;
var _local9:XMLList;
var _local10:XML;
var _local11:XMLList;
var _local12:XML;
if ((_arg1 is Array)){
_local3 = (_arg1 as Array);
if (_local3.length > 0){
if ((((_local3[0] is String)) || ((_local3[0] is Number)))){
_local2 = [];
_local4 = 0;
while (_local4 < _local3.length) {
_local5 = {label:String(_local3[_local4]), data:_local3[_local4]};
_local2.push(_local5);
_local4++;
};
return (_local2);
};
};
return (_arg1.concat());
//unresolved jump
};
if ((_arg1 is DataProvider)){
return (_arg1.toArray());
};
if ((_arg1 is XML)){
_local6 = (_arg1 as XML);
_local2 = [];
_local7 = _local6.*;
for each (_local8 in _local7) {
_arg1 = {};
_local9 = _local8.attributes();
for each (_local10 in _local9) {
_arg1[_local10.localName()] = _local10.toString();
};
_local11 = _local8.*;
for each (_local12 in _local11) {
if (_local12.hasSimpleContent()){
_arg1[_local12.localName()] = _local12.toString();
};
};
_local2.push(_arg1);
};
return (_local2);
//unresolved jump
};
throw (new TypeError((("Error: Type Coercion failed: cannot convert " + _arg1) + " to Array or DataProvider.")));
}
public function removeItemAt(_arg1:uint):Object{
var _local2:Array;
checkIndex(_arg1, (data.length - 1));
dispatchPreChangeEvent(DataChangeType.REMOVE, data.slice(_arg1, (_arg1 + 1)), _arg1, _arg1);
_local2 = data.splice(_arg1, 1);
dispatchChangeEvent(DataChangeType.REMOVE, _local2, _arg1, _arg1);
return (_local2[0]);
}
public function addItem(_arg1:Object):void{
dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1));
data.push(_arg1);
dispatchChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1));
}
public function sortOn(_arg1:Object, _arg2:Object=null){
var _local3:Array;
dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
_local3 = data.sortOn(_arg1, _arg2);
dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
return (_local3);
}
public function sort(... _args){
var _local2:Array;
dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
_local2 = data.sort.apply(data, _args);
dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1));
return (_local2);
}
public function addItems(_arg1:Object):void{
addItemsAt(_arg1, data.length);
}
public function concat(_arg1:Object):void{
addItems(_arg1);
}
public function clone():DataProvider{
return (new DataProvider(data));
}
public function toArray():Array{
return (data.concat());
}
public function get length():uint{
return (data.length);
}
public function addItemAt(_arg1:Object, _arg2:uint):void{
checkIndex(_arg2, data.length);
dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2);
data.splice(_arg2, 0, _arg1);
dispatchChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2);
}
public function getItemAt(_arg1:uint):Object{
checkIndex(_arg1, (data.length - 1));
return (data[_arg1]);
}
override public function toString():String{
return ((("DataProvider [" + data.join(" , ")) + "]"));
}
public function invalidateItem(_arg1:Object):void{
var _local2:uint;
_local2 = getItemIndex(_arg1);
if (_local2 == -1){
return;
};
invalidateItemAt(_local2);
}
protected function dispatchChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{
dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, _arg1, _arg2, _arg3, _arg4));
}
protected function checkIndex(_arg1:int, _arg2:int):void{
if ((((_arg1 > _arg2)) || ((_arg1 < 0)))){
throw (new RangeError((((("DataProvider index (" + _arg1) + ") is not in acceptable range (0 - ") + _arg2) + ")")));
};
}
public function addItemsAt(_arg1:Object, _arg2:uint):void{
var _local3:Array;
checkIndex(_arg2, data.length);
_local3 = getDataFromObject(_arg1);
dispatchPreChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1));
data.splice.apply(data, [_arg2, 0].concat(_local3));
dispatchChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1));
}
public function replaceItem(_arg1:Object, _arg2:Object):Object{
var _local3:int;
_local3 = getItemIndex(_arg2);
if (_local3 != -1){
return (replaceItemAt(_arg1, _local3));
};
return (null);
}
public function removeItem(_arg1:Object):Object{
var _local2:int;
_local2 = getItemIndex(_arg1);
if (_local2 != -1){
return (removeItemAt(_local2));
};
return (null);
}
public function merge(_arg1:Object):void{
var _local2:Array;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:Object;
_local2 = getDataFromObject(_arg1);
_local3 = _local2.length;
_local4 = data.length;
dispatchPreChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1));
_local5 = 0;
while (_local5 < _local3) {
_local6 = _local2[_local5];
if (getItemIndex(_local6) == -1){
data.push(_local6);
};
_local5++;
};
if (data.length > _local4){
dispatchChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1));
} else {
dispatchChangeEvent(DataChangeType.ADD, [], -1, -1);
};
}
public function replaceItemAt(_arg1:Object, _arg2:uint):Object{
var _local3:Array;
checkIndex(_arg2, (data.length - 1));
_local3 = [data[_arg2]];
dispatchPreChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2);
data[_arg2] = _arg1;
dispatchChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2);
return (_local3[0]);
}
public function invalidate():void{
dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, DataChangeType.INVALIDATE_ALL, data.concat(), 0, data.length));
}
public function removeAll():void{
var _local1:Array;
_local1 = data.concat();
dispatchPreChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length);
data = [];
dispatchChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length);
}
}
}//package fl.data
Section 30
//SimpleCollectionItem (fl.data.SimpleCollectionItem)
package fl.data {
public dynamic class SimpleCollectionItem {
public var label:String;
public var data:String;
public function toString():String{
return ((((("[SimpleCollectionItem: " + label) + ",") + data) + "]"));
}
}
}//package fl.data
Section 31
//ComponentEvent (fl.events.ComponentEvent)
package fl.events {
import flash.events.*;
public class ComponentEvent extends Event {
public static const HIDE:String = "hide";
public static const BUTTON_DOWN:String = "buttonDown";
public static const MOVE:String = "move";
public static const RESIZE:String = "resize";
public static const ENTER:String = "enter";
public static const LABEL_CHANGE:String = "labelChange";
public static const SHOW:String = "show";
public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("ComponentEvent", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new ComponentEvent(type, bubbles, cancelable));
}
}
}//package fl.events
Section 32
//DataChangeEvent (fl.events.DataChangeEvent)
package fl.events {
import flash.events.*;
public class DataChangeEvent extends Event {
protected var _items:Array;
protected var _endIndex:uint;
protected var _changeType:String;
protected var _startIndex:uint;
public static const PRE_DATA_CHANGE:String = "preDataChange";
public static const DATA_CHANGE:String = "dataChange";
public function DataChangeEvent(_arg1:String, _arg2:String, _arg3:Array, _arg4:int=-1, _arg5:int=-1):void{
super(_arg1);
_changeType = _arg2;
_startIndex = _arg4;
_items = _arg3;
_endIndex = ((_arg5)==-1) ? _startIndex : _arg5;
}
public function get changeType():String{
return (_changeType);
}
public function get startIndex():uint{
return (_startIndex);
}
public function get items():Array{
return (_items);
}
override public function clone():Event{
return (new DataChangeEvent(type, _changeType, _items, _startIndex, _endIndex));
}
override public function toString():String{
return (formatToString("DataChangeEvent", "type", "changeType", "startIndex", "endIndex", "bubbles", "cancelable"));
}
public function get endIndex():uint{
return (_endIndex);
}
}
}//package fl.events
Section 33
//DataChangeType (fl.events.DataChangeType)
package fl.events {
public class DataChangeType {
public static const ADD:String = "add";
public static const REMOVE:String = "remove";
public static const REMOVE_ALL:String = "removeAll";
public static const CHANGE:String = "change";
public static const REPLACE:String = "replace";
public static const INVALIDATE:String = "invalidate";
public static const INVALIDATE_ALL:String = "invalidateAll";
public static const SORT:String = "sort";
}
}//package fl.events
Section 34
//ListEvent (fl.events.ListEvent)
package fl.events {
import flash.events.*;
public class ListEvent extends Event {
protected var _index:int;
protected var _item:Object;
protected var _columnIndex:int;
protected var _rowIndex:int;
public static const ITEM_DOUBLE_CLICK:String = "itemDoubleClick";
public static const ITEM_ROLL_OUT:String = "itemRollOut";
public static const ITEM_ROLL_OVER:String = "itemRollOver";
public static const ITEM_CLICK:String = "itemClick";
public function ListEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:Object=null){
super(_arg1, _arg2, _arg3);
_rowIndex = _arg5;
_columnIndex = _arg4;
_index = _arg6;
_item = _arg7;
}
public function get rowIndex():Object{
return (_rowIndex);
}
public function get index():int{
return (_index);
}
public function get item():Object{
return (_item);
}
public function get columnIndex():int{
return (_columnIndex);
}
override public function clone():Event{
return (new ListEvent(type, bubbles, cancelable, _columnIndex, _rowIndex));
}
override public function toString():String{
return (formatToString("ListEvent", "type", "bubbles", "cancelable", "columnIndex", "rowIndex", "index", "item"));
}
}
}//package fl.events
Section 35
//ScrollEvent (fl.events.ScrollEvent)
package fl.events {
import flash.events.*;
public class ScrollEvent extends Event {
private var _position:Number;
private var _direction:String;
private var _delta:Number;
public static const SCROLL:String = "scroll";
public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){
super(ScrollEvent.SCROLL, false, false);
_direction = _arg1;
_delta = _arg2;
_position = _arg3;
}
override public function clone():Event{
return (new ScrollEvent(_direction, _delta, _position));
}
public function get position():Number{
return (_position);
}
override public function toString():String{
return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position"));
}
public function get delta():Number{
return (_delta);
}
public function get direction():String{
return (_direction);
}
}
}//package fl.events
Section 36
//FocusManager (fl.managers.FocusManager)
package fl.managers {
import fl.core.*;
import fl.controls.*;
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.text.*;
import flash.ui.*;
public class FocusManager implements IFocusManager {
private var focusableObjects:Dictionary;
private var _showFocusIndicator:Boolean;// = true
private var defButton:Button;
private var focusableCandidates:Array;
private var _form:DisplayObjectContainer;
private var _defaultButtonEnabled:Boolean;// = true
private var activated:Boolean;// = false
private var _defaultButton:Button;
private var calculateCandidates:Boolean;// = true
private var lastFocus:InteractiveObject;
private var lastAction:String;
public function FocusManager(_arg1:DisplayObjectContainer){
activated = false;
calculateCandidates = true;
_showFocusIndicator = true;
_defaultButtonEnabled = true;
super();
focusableObjects = new Dictionary(true);
if (_arg1 != null){
_form = _arg1;
addFocusables(DisplayObject(_arg1));
_arg1.addEventListener(Event.ADDED, addedHandler);
_arg1.addEventListener(Event.REMOVED, removedHandler);
activate();
};
}
public function get showFocusIndicator():Boolean{
return (_showFocusIndicator);
}
private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{
var _local5:int;
var _local6:int;
var _local7:DisplayObject;
var _local8:IFocusManagerGroup;
var _local9:int;
var _local10:DisplayObject;
var _local11:IFocusManagerGroup;
_local5 = focusableCandidates.length;
_local6 = _arg1;
while (true) {
if (_arg2){
_arg1--;
} else {
_arg1++;
};
if (_arg3){
if (((_arg2) && ((_arg1 < 0)))){
break;
};
if (((!(_arg2)) && ((_arg1 == _local5)))){
break;
};
} else {
_arg1 = ((_arg1 + _local5) % _local5);
if (_local6 == _arg1){
break;
};
};
if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){
_local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1]));
if ((_local7 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local7);
_local9 = 0;
while (_local9 < focusableCandidates.length) {
_local10 = focusableCandidates[_local9];
if ((_local10 is IFocusManagerGroup)){
_local11 = IFocusManagerGroup(_local10);
if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){
_arg1 = _local9;
break;
};
};
_local9++;
};
};
return (_arg1);
};
};
return (_arg1);
}
public function set form(_arg1:DisplayObjectContainer):void{
_form = _arg1;
}
private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{
var focusable:IFocusManagerComponent;
var io:InteractiveObject;
var doc:DisplayObjectContainer;
var i:int;
var child:DisplayObject;
var o = _arg1;
var skipTopLevel = _arg2;
if (!skipTopLevel){
if ((o is IFocusManagerComponent)){
focusable = IFocusManagerComponent(o);
if (focusable.focusEnabled){
if (((focusable.tabEnabled) && (isTabVisible(o)))){
focusableObjects[o] = true;
calculateCandidates = true;
};
o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
} else {
if ((o is InteractiveObject)){
io = (o as InteractiveObject);
if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){
focusableObjects[io] = true;
calculateCandidates = true;
};
io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
};
};
};
if ((o is DisplayObjectContainer)){
doc = DisplayObjectContainer(o);
o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){
i = 0;
while (i < doc.numChildren) {
try {
child = doc.getChildAt(i);
if (child != null){
addFocusables(doc.getChildAt(i));
};
} catch(error:SecurityError) {
};
i = (i + 1);
};
};
};
}
private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{
return (_arg1.getChildIndex(_arg2));
}
private function mouseFocusChangeHandler(_arg1:FocusEvent):void{
if ((_arg1.relatedObject is TextField)){
return;
};
_arg1.preventDefault();
}
private function focusOutHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
_local2 = (_arg1.target as InteractiveObject);
}
private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{
var _local3:IFocusManagerGroup;
if (!isEnabledAndVisible(_arg1)){
return (false);
};
if ((_arg1 is IFocusManagerGroup)){
_local3 = IFocusManagerGroup(_arg1);
if (_arg2 == _local3.groupName){
return (false);
};
};
return (true);
}
public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{
var _local2:InteractiveObject;
_local2 = _arg1;
while (_arg1) {
if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
};
return (_local2);
}
private function sortFocusableObjectsTabIndex():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){
focusableCandidates.push(_local2);
};
};
focusableCandidates.sort(sortByTabIndex);
}
private function removeFocusables(_arg1:DisplayObject):void{
var _local2:Object;
var _local3:DisplayObject;
if ((_arg1 is DisplayObjectContainer)){
_arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler);
_arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler);
for (_local2 in focusableObjects) {
_local3 = DisplayObject(_local2);
if (DisplayObjectContainer(_arg1).contains(_local3)){
if (_local3 == lastFocus){
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local2];
calculateCandidates = true;
};
};
};
}
private function addedHandler(_arg1:Event):void{
var _local2:DisplayObject;
_local2 = DisplayObject(_arg1.target);
if (_local2.stage){
addFocusables(DisplayObject(_arg1.target));
};
}
private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{
while (_arg1 != InteractiveObject(form)) {
if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){
return (_arg1);
};
_arg1 = _arg1.parent;
if (_arg1 == null){
break;
};
};
return (null);
}
private function tabChildrenChangeHandler(_arg1:Event):void{
var _local2:DisplayObjectContainer;
if (_arg1.target != _arg1.currentTarget){
return;
};
calculateCandidates = true;
_local2 = DisplayObjectContainer(_arg1.target);
if (_local2.tabChildren){
addFocusables(_local2, true);
} else {
removeFocusables(_local2);
};
}
public function sendDefaultButtonEvent():void{
defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
public function getFocus():InteractiveObject{
var _local1:InteractiveObject;
_local1 = form.stage.focus;
return (findFocusManagerComponent(_local1));
}
private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
var _local3:TextField;
var _local4:SimpleButton;
_local2 = DisplayObject(form).parent;
while (_arg1 != _local2) {
if ((_arg1 is UIComponent)){
if (!UIComponent(_arg1).enabled){
return (false);
};
} else {
if ((_arg1 is TextField)){
_local3 = TextField(_arg1);
if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){
return (false);
};
} else {
if ((_arg1 is SimpleButton)){
_local4 = SimpleButton(_arg1);
if (!_local4.enabled){
return (false);
};
};
};
};
if (!_arg1.visible){
return (false);
};
_arg1 = _arg1.parent;
};
return (true);
}
public function set defaultButton(_arg1:Button):void{
var _local2:Button;
_local2 = (_arg1) ? Button(_arg1) : null;
if (_local2 != _defaultButton){
if (_defaultButton){
_defaultButton.emphasized = false;
};
if (defButton){
defButton.emphasized = false;
};
_defaultButton = _local2;
defButton = _local2;
if (_local2){
_local2.emphasized = true;
};
};
}
private function deactivateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
}
public function setFocus(_arg1:InteractiveObject):void{
if ((_arg1 is IFocusManagerComponent)){
IFocusManagerComponent(_arg1).setFocus();
} else {
form.stage.focus = _arg1;
};
}
private function setFocusToNextObject(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
if (!hasFocusableObjects()){
return;
};
_local2 = getNextFocusManagerComponent(_arg1.shiftKey);
if (_local2){
setFocus(_local2);
};
}
private function hasFocusableObjects():Boolean{
var _local1:Object;
for (_local1 in focusableObjects) {
return (true);
};
return (false);
}
private function tabIndexChangeHandler(_arg1:Event):void{
calculateCandidates = true;
}
private function sortFocusableObjects():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){
sortFocusableObjectsTabIndex();
return;
};
focusableCandidates.push(_local2);
};
focusableCandidates.sort(sortByDepth);
}
private function keyFocusChangeHandler(_arg1:FocusEvent):void{
showFocusIndicator = true;
if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){
setFocusToNextObject(_arg1);
_arg1.preventDefault();
};
}
private function getIndexOfFocusedObject(_arg1:DisplayObject):int{
var _local2:int;
var _local3:int;
_local2 = focusableCandidates.length;
_local3 = 0;
_local3 = 0;
while (_local3 < _local2) {
if (focusableCandidates[_local3] == _arg1){
return (_local3);
};
_local3++;
};
return (-1);
}
public function hideFocus():void{
}
private function removedHandler(_arg1:Event):void{
var _local2:int;
var _local3:DisplayObject;
var _local4:InteractiveObject;
_local3 = DisplayObject(_arg1.target);
if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){
if (_local3 == lastFocus){
IFocusManagerComponent(lastFocus).drawFocus(false);
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
delete focusableObjects[_local3];
calculateCandidates = true;
} else {
if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){
_local4 = (_local3 as InteractiveObject);
if (_local4){
if (_local4 == lastFocus){
lastFocus = null;
};
delete focusableObjects[_local4];
calculateCandidates = true;
};
_local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler);
};
};
removeFocusables(_local3);
}
private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:String;
var _local7:String;
var _local8:String;
var _local9:DisplayObject;
var _local10:DisplayObject;
_local3 = "";
_local4 = "";
_local8 = "0000";
_local9 = DisplayObject(_arg1);
_local10 = DisplayObject(_arg2);
while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) {
_local5 = getChildIndex(_local9.parent, _local9);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local3 = (_local7 + _local3);
_local9 = _local9.parent;
};
while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) {
_local5 = getChildIndex(_local10.parent, _local10);
_local6 = _local5.toString(16);
if (_local6.length < 4){
_local7 = (_local8.substring(0, (4 - _local6.length)) + _local6);
};
_local4 = (_local7 + _local4);
_local10 = _local10.parent;
};
return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0);
}
public function get defaultButton():Button{
return (_defaultButton);
}
private function activateHandler(_arg1:Event):void{
var _local2:InteractiveObject;
_local2 = InteractiveObject(_arg1.target);
if (lastFocus){
if ((lastFocus is IFocusManagerComponent)){
IFocusManagerComponent(lastFocus).setFocus();
} else {
form.stage.focus = lastFocus;
};
};
lastAction = "ACTIVATE";
}
public function showFocus():void{
}
public function set defaultButtonEnabled(_arg1:Boolean):void{
_defaultButtonEnabled = _arg1;
}
public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{
var _local2:DisplayObject;
var _local3:String;
var _local4:int;
var _local5:Boolean;
var _local6:int;
var _local7:int;
var _local8:IFocusManagerGroup;
if (!hasFocusableObjects()){
return (null);
};
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
_local2 = form.stage.focus;
_local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2)));
_local3 = "";
if ((_local2 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local2);
_local3 = _local8.groupName;
};
_local4 = getIndexOfFocusedObject(_local2);
_local5 = false;
_local6 = _local4;
if (_local4 == -1){
if (_arg1){
_local4 = focusableCandidates.length;
};
_local5 = true;
};
_local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3);
return (findFocusManagerComponent(focusableCandidates[_local7]));
}
private function mouseDownHandler(_arg1:MouseEvent):void{
var _local2:InteractiveObject;
if (_arg1.isDefaultPrevented()){
return;
};
_local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target));
if (!_local2){
return;
};
showFocusIndicator = false;
if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){
setFocus(_local2);
};
lastAction = "MOUSEDOWN";
}
private function isTabVisible(_arg1:DisplayObject):Boolean{
var _local2:DisplayObjectContainer;
_local2 = _arg1.parent;
while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) {
if (!_local2.tabChildren){
return (false);
};
_local2 = _local2.parent;
};
return (true);
}
public function get nextTabIndex():int{
return (0);
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.TAB){
lastAction = "KEY";
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
};
if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){
sendDefaultButtonEvent();
};
}
private function focusInHandler(_arg1:FocusEvent):void{
var _local2:InteractiveObject;
var _local3:Button;
_local2 = InteractiveObject(_arg1.target);
if (form.contains(_local2)){
lastFocus = findFocusManagerComponent(InteractiveObject(_local2));
if ((lastFocus is Button)){
_local3 = Button(lastFocus);
if (defButton){
defButton.emphasized = false;
defButton = _local3;
_local3.emphasized = true;
};
} else {
if (((defButton) && (!((defButton == _defaultButton))))){
defButton.emphasized = false;
defButton = _defaultButton;
_defaultButton.emphasized = true;
};
};
};
}
private function tabEnabledChangeHandler(_arg1:Event):void{
var _local2:InteractiveObject;
var _local3:Boolean;
calculateCandidates = true;
_local2 = InteractiveObject(_arg1.target);
_local3 = (focusableObjects[_local2] == true);
if (_local2.tabEnabled){
if (((!(_local3)) && (isTabVisible(_local2)))){
if (!(_local2 is IFocusManagerComponent)){
_local2.focusRect = false;
};
focusableObjects[_local2] = true;
};
} else {
if (_local3){
delete focusableObjects[_local2];
};
};
}
public function set showFocusIndicator(_arg1:Boolean):void{
_showFocusIndicator = _arg1;
}
public function get form():DisplayObjectContainer{
return (_form);
}
private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{
return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2));
}
public function activate():void{
if (activated){
return;
};
form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true);
form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true);
form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true);
form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = true;
if (lastFocus){
setFocus(lastFocus);
};
}
public function deactivate():void{
form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler);
form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler);
form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.stage.removeEventListener(Event.ACTIVATE, activateHandler);
form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler);
form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = false;
}
public function get defaultButtonEnabled():Boolean{
return (_defaultButtonEnabled);
}
}
}//package fl.managers
Section 37
//IFocusManager (fl.managers.IFocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
public interface IFocusManager {
function getFocus():InteractiveObject;
function deactivate():void;
function set defaultButton(_arg1:Button):void;
function set showFocusIndicator(_arg1:Boolean):void;
function get defaultButtonEnabled():Boolean;
function get nextTabIndex():int;
function get defaultButton():Button;
function get showFocusIndicator():Boolean;
function setFocus(_arg1:InteractiveObject):void;
function activate():void;
function showFocus():void;
function set defaultButtonEnabled(_arg1:Boolean):void;
function hideFocus():void;
function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject;
function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject;
}
}//package fl.managers
Section 38
//IFocusManagerComponent (fl.managers.IFocusManagerComponent)
package fl.managers {
public interface IFocusManagerComponent {
function set focusEnabled(_arg1:Boolean):void;
function drawFocus(_arg1:Boolean):void;
function setFocus():void;
function get focusEnabled():Boolean;
function get tabEnabled():Boolean;
function get tabIndex():int;
function get mouseFocusEnabled():Boolean;
}
}//package fl.managers
Section 39
//IFocusManagerGroup (fl.managers.IFocusManagerGroup)
package fl.managers {
public interface IFocusManagerGroup {
function set groupName(_arg1:String):void;
function set selected(_arg1:Boolean):void;
function get groupName():String;
function get selected():Boolean;
}
}//package fl.managers
Section 40
//StyleManager (fl.managers.StyleManager)
package fl.managers {
import fl.core.*;
import flash.utils.*;
import flash.text.*;
public class StyleManager {
private var globalStyles:Object;
private var classToDefaultStylesDict:Dictionary;
private var styleToClassesHash:Object;
private var classToStylesDict:Dictionary;
private var classToInstancesDict:Dictionary;
private static var _instance:StyleManager;
public function StyleManager(){
styleToClassesHash = {};
classToInstancesDict = new Dictionary(true);
classToStylesDict = new Dictionary(true);
classToDefaultStylesDict = new Dictionary(true);
globalStyles = UIComponent.getStyleDefinition();
}
public static function clearComponentStyle(_arg1:Object, _arg2:String):void{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){
delete _local4[_arg2];
invalidateComponentStyle(_local3, _arg2);
};
}
private static function getClassDef(_arg1:Object):Class{
var component = _arg1;
if ((component is Class)){
return ((component as Class));
};
try {
return ((getDefinitionByName(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
if ((component is UIComponent)){
try {
return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
};
};
};
return (null);
}
public static function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Class;
var _local5:Object;
_local4 = getClassDef(_arg1);
_local5 = getInstance().classToStylesDict[_local4];
if (_local5 == null){
_local5 = (getInstance().classToStylesDict[_local4] = {});
};
if (_local5 == _arg3){
return;
};
_local5[_arg2] = _arg3;
invalidateComponentStyle(_local4, _arg2);
}
private static function setSharedStyles(_arg1:UIComponent):void{
var _local2:StyleManager;
var _local3:Class;
var _local4:Object;
var _local5:String;
_local2 = getInstance();
_local3 = getClassDef(_arg1);
_local4 = _local2.classToDefaultStylesDict[_local3];
for (_local5 in _local4) {
_arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5));
};
}
public static function getComponentStyle(_arg1:Object, _arg2:String):Object{
var _local3:Class;
var _local4:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance().classToStylesDict[_local3];
return (((_local4)==null) ? null : _local4[_arg2]);
}
private static function getInstance(){
if (_instance == null){
_instance = new (StyleManager);
};
return (_instance);
}
private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{
var _local3:Dictionary;
var _local4:Object;
var _local5:UIComponent;
_local3 = getInstance().classToInstancesDict[_arg1];
if (_local3 == null){
return;
};
for (_local4 in _local3) {
_local5 = (_local4 as UIComponent);
if (_local5 == null){
} else {
_local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2));
};
};
}
private static function invalidateStyle(_arg1:String):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = getInstance().styleToClassesHash[_arg1];
if (_local2 == null){
return;
};
for (_local3 in _local2) {
invalidateComponentStyle(Class(_local3), _arg1);
};
}
public static function registerInstance(_arg1:UIComponent):void{
var inst:StyleManager;
var classDef:Class;
var target:Class;
var defaultStyles:Object;
var styleToClasses:Object;
var n:String;
var instance = _arg1;
inst = getInstance();
classDef = getClassDef(instance);
if (classDef == null){
return;
};
if (inst.classToInstancesDict[classDef] == null){
inst.classToInstancesDict[classDef] = new Dictionary(true);
target = classDef;
while (defaultStyles == null) {
if (target["getStyleDefinition"] != null){
defaultStyles = target["getStyleDefinition"]();
break;
};
try {
target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class);
} catch(err:Error) {
try {
target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class);
} catch(e:Error) {
defaultStyles = UIComponent.getStyleDefinition();
break;
};
};
};
styleToClasses = inst.styleToClassesHash;
for (n in defaultStyles) {
if (styleToClasses[n] == null){
styleToClasses[n] = new Dictionary(true);
};
styleToClasses[n][classDef] = true;
};
inst.classToDefaultStylesDict[classDef] = defaultStyles;
inst.classToStylesDict[classDef] = {};
};
inst.classToInstancesDict[classDef][instance] = true;
setSharedStyles(instance);
}
public static function getStyle(_arg1:String):Object{
return (getInstance().globalStyles[_arg1]);
}
private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{
var _local3:Class;
var _local4:StyleManager;
var _local5:Object;
_local3 = getClassDef(_arg1);
_local4 = getInstance();
_local5 = _local4.classToStylesDict[_local3][_arg2];
if (_local5 != null){
return (_local5);
};
_local5 = _local4.globalStyles[_arg2];
if (_local5 != null){
return (_local5);
};
return (_local4.classToDefaultStylesDict[_local3][_arg2]);
}
public static function setStyle(_arg1:String, _arg2:Object):void{
var _local3:Object;
_local3 = getInstance().globalStyles;
if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
_local3[_arg1] = _arg2;
invalidateStyle(_arg1);
}
}
}//package fl.managers
Section 41
//Color (fl.motion.Color)
package fl.motion {
import flash.display.*;
import flash.geom.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 42
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 43
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 44
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 45
//Consts (GameData.Consts)
package GameData {
public class Consts {
public static const GroupKey:String = "G";
public static const ToolScale:String = "btnScale";
public static const DuplicateKey:String = "D";
public static const ToolScaleKey:String = "S";
public static const ScrollSpeed:Number = 300;
public static const WorkSpaceHeight:Number = 1500;
public static const ToolMove:String = "btnMove";
public static const ToolRotateKey:String = "R";
public static const ScrollSpeedCrawl:Number = 50;
public static const WorkSpaceWidth:Number = 2000;
public static const ToolRotate:String = "btnRotate";
public static const ToolMoveKey:String = "V";
public static const UnGroupKey:String = "B";
public static const ScrollSpeedSlow:Number = 150;
public static const ScrollTime:Number = 10;
}
}//package GameData
Section 46
//GunList (GameData.GunList)
package GameData {
public class GunList {
public static var xml:XML = <list>
<category name="Assault Rifles">
<subcat name="ACR">
<part id="ACR" size="4"/>
<part id="ACR_R" size="4"/>
</subcat>
<subcat name="AK">
<part id="AKM" size="4"/>
<part id="AK74" size="4"/>
<part id="AKS74U" size="4"/>
</subcat>
<subcat name="F2000">
<part id="F2000Tactical" size="4"/>
<part id="F2000" size="4"/>
</subcat>
<subcat name="G36">
<part id="G36C" size="4"/>
<part id="G36K" size="4"/>
<part id="G36" size="4"/>
</subcat>
<subcat name="HK416">
<part id="HK416" size="4"/>
</subcat>
<subcat name="HK417">
<part id="HK417" size="4"/>
</subcat>
<subcat name="M4">
<part id="M4CQBR" size="4"/>
<part id="M4A1" size="4"/>
</subcat>
<subcat name="M16">
<part id="M16VN" size="4"/>
<part id="M16A2" size="4"/>
<part id="M16A4" size="4"/>
<part id="CAR15" size="4"/>
</subcat>
<subcat name="SCAR-H">
<part id="SCARH" size="4"/>
</subcat>
<subcat name="SCAR-L">
<part id="SCARL" size="4"/>
</subcat>
<subcat name="Steyr AUG">
<part id="AUGA2Scope" size="4"/>
<part id="AUGA2" size="4"/>
<part id="AUGA3" size="4"/>
</subcat>
<subcat name="M14/Mk.14">
<part id="M14" size="4"/>
<part id="M14Preset2" size="4"/>
<part id="Mk14Mod0" size="4"/>
<part id="Mk14Mod1" size="4"/>
</subcat>
</category>
<category name="Light Machineguns">
<subcat name="M249">
<part id="M249SAW" size="4"/>
<part id="Mk46" size="4"/>
</subcat>
</category>
<category name="SMGs">
<subcat name="MP5">
<part id="MP5A2" size="4"/>
<part id="MP5A3" size="4"/>
<part id="MP5SD" size="4"/>
<part id="MP5K" size="4"/>
<part id="MP5PDW" size="4"/>
</subcat>
<subcat name="Steyr AUG Para">
<part id="AUGPara" size="4"/>
</subcat>
</category>
<category name="Sniper Rifles">
<subcat name="Barrett 98B">
<part id="Barrett98B" size="4"/>
</subcat>
<subcat name="M200">
<part id="M200" size="4"/>
</subcat>
<subcat name="Mk. 12SPR">
<part id="SPR" size="4"/>
</subcat>
<subcat name="SR25">
<part id="SR25" size="4"/>
</subcat>
<subcat name="SVD">
<part id="SVD" size="4"/>
<part id="SVDS" size="4"/>
</subcat>
</category>
</list>
;
}
}//package GameData
Section 47
//PartDescription (GameData.PartDescription)
package GameData {
import flash.utils.*;
public class PartDescription {
public static var list:Dictionary = new Dictionary();
private static var xml:XML = <list>
<!-- i:ammo -->
<part id="Ammo6mmBB">
<name>6mm BB</name>
<fits>Airsoft Guns</fits>
</part>
<part id="Ammo9x19mmC" type="group">
<name>9x19mm</name>
<fits>9x19mm Rifles</fits>
</part>
<part id="Ammo45ACPC" type="group">
<name>45 ACP</name>
<fits>45 ACP Rifles</fits>
</part>
<part id="Ammo57x28mmC" type="group">
<name>5.7x28mm</name>
<fits>5.7x28mm Rifles</fits>
</part>
<part id="Ammo556mmC" type="group">
<name>5.56x45mm</name>
<fits>5.56x45mm Rifles</fits>
</part>
<part id="Ammo762x25mmC" type="group">
<name>7.62x25mm</name>
<fits>7.62x25mm Rifles</fits>
</part>
<part id="Ammo762x39mmC" type="group">
<name>7.62x39mm</name>
<fits>7.62x39mm Rifles</fits>
</part>
<part id="Ammo762x45mmC" type="group">
<name>7.62x45mm</name>
<fits>7.62x45mm Rifles</fits>
</part>
<part id="Ammo762x51mmC" type="group">
<name>7.62x51mm</name>
<fits>7.62x51mm Rifles</fits>
</part>
<part id="Ammo762x54mmC" type="group">
<name>7.62x54mm</name>
<fits>7.62x54mm Rifles</fits>
</part>
<part id="Ammo40CalC" type="group">
<name>.40 Cal</name>
<fits>.40 Cal Rifles</fits>
</part>
<part id="Ammo357MagnumC" type="group">
<name>.357 Magnum</name>
<fits>.357 Magnum Rifles</fits>
</part>
<part id="Ammo44MagnumC" type="group">
<name>.44 Magnum</name>
<fits>.44 Magnum Rifles</fits>
</part>
<part id="Ammo50AECalC" type="group">
<name>.50 AE</name>
<fits>.50 AE Rifles</fits>
</part>
<part id="Ammo50CalC" type="group">
<name>.50 Cal</name>
<fits>.50 Cal Rifles</fits>
</part>
<part id="Gren40mm01" type="group">
<name>M781 Practice Grenade</name>
<fits>40mm Launchers</fits>
</part>
<part id="Gren40mm02" type="group">
<name>M433 HEDP Grenade</name>
<fits>40mm Launchers</fits>
</part>
<part id="Gren40mm03" type="group">
<name>M406 HE Grenade</name>
<fits>40mm Launchers</fits>
</part>
<part id="Gren40mm04" type="group">
<name>M651 CS Chemical Grenade</name>
<fits>40mm Launchers</fits>
</part>
<part id="Gren30mm01">
<name>30mm Grenade</name>
<fits>BS-1</fits>
</part>
<part id="AmmoBelt01">
<name>Ammo Belt</name>
<fits></fits>
</part>
<!-- i:barrels -->
<part id="Barrel001">
<name>M4 14.5" (368mm) Barrel</name><!--"-->
<fits>M4</fits>
</part>
<part id="Barrel002">
<name>M4 11.5" (292mm) Barrel</name><!--"-->
<fits>M4</fits>
</part>
<part id="Barrel003">
<name>M4 16" (406mm) Barrel</name><!--"-->
<fits>M4</fits>
</part>
<part id="Barrel004">
<name>A1 20" (508mm) Barrel</name><!--"-->
<fits>AR15</fits>
</part>
<part id="Barrel005">
<name>A4 20" (508mm) Barrel</name><!--"-->
<fits>AR15</fits>
</part>
<part id="Barrel006">
<name>AK47 16.3" (415mm) Barrel</name><!--"-->
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="Barrel007">
<name>AKS74U 8.3" (210mm) Barrel</name><!--"-->
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="Barrel008">
<name>SVD 24.4" (620mm) Barrel</name><!--"-->
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="Barrel009">
<name>SVD 22.2" (565mm) Barrel</name><!--"-->
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="Barrel010">
<name>SR25 20" (508mm) Barrel</name><!--"-->
<manufacturer>KAC</manufacturer>
<fits>SR25</fits>
</part>
<part id="Barrel011">
<name>SR25 24" (610mm) Barrel</name><!--"-->
<manufacturer>KAC</manufacturer>
<fits>SR25</fits>
</part>
<part id="Barrel012">
<name>SR25 16" (406mm) Barrel</name><!--"-->
<manufacturer>KAC</manufacturer>
<fits>SR25</fits>
</part>
<part id="Barrel013">
<name>SCAR-H 13" (330mm) Barrel</name><!--"-->
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="Barrel014">
<name>SCAR-H 15.7" (400mm) Barrel</name><!--"-->
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="Barrel015">
<name>SCAR-H 19.7" (500mm) Barrel</name><!--"-->
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="Barrel016">
<name>SCAR-L 10" (253mm) Barrel</name><!--"-->
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="Barrel017">
<name>SCAR-L 13.8" (351mm) Barrel</name><!--"-->
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="Barrel018">
<name>SCAR-L 18" (457mm) Barrel</name><!--"-->
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="Barrel019">
<name>M4/M16 10.5" (267mm) Barrel</name><!--"-->
<fits>AR15</fits>
</part>
<part id="Barrel020">
<name>98B 27" (685mm) Barrel</name><!--"-->
<manufacturer>Barrett</manufacturer>
<fits>Barrett 98B</fits>
</part>
<part id="Barrel021">
<name>M200 29" (737mm) Barrel</name><!--"-->
<manufacturer>Cheytac LLC</manufacturer>
<fits>M200</fits>
</part>
<part id="Barrel022">
<name>HK417 20" (508mm) Barrel</name><!--"-->
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="Barrel023">
<name>HK417 12" (305mm) Barrel</name><!--"-->
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="Barrel024">
<name>MP5 8.9" (225mm) Barrel</name><!--"-->
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="Barrel025">
<name>MP5K 4.5" (115mm) Barrel</name><!--"-->
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="Barrel026">
<name>MP5SD 5.7" (146mm) Barrel</name><!--"-->
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="Barrel027">
<name>ACR 10.5" (267mm) Barrel</name><!--"-->
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="Barrel028">
<name>ACR 14.5" (368mm) Barrel</name><!--"-->
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="Barrel029">
<name>ACR 20" (508mm) Barrel</name><!--"-->
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="Barrel030">
<name>F2000 15.7" (400mm) Barrel</name><!--"-->
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="Barrel031">
<name>Mk.12 18" (457mm) Barrel</name><!--"-->
<manufacturer>Colt</manufacturer>
<fits>Mk.12 SPR</fits>
</part>
<part id="Barrel032">
<name>G36 9" (228mm) Barrel</name><!--"-->
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="Barrel033">
<name>G36 12.5" (317mm) Barrel</name><!--"-->
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="Barrel034">
<name>G36 18.9" (480mm) Barrel</name><!--"-->
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="Barrel035">
<name>AUG 14.5" (370mm) Barrel</name><!--"-->
<manufacturer>Steyr</manufacturer>
<fits>AUG Para</fits>
</part>
<part id="Barrel036">
<name>AUG 16" (407mm) Barrel</name><!--"-->
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="Barrel037">
<name>AUG 20" (508mm) Barrel</name><!--"-->
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="Barrel038">
<name>M14 18" (457mm) Barrel</name><!--"-->
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="Barrel039">
<name>M14 22" (589mm) Barrel</name><!--"-->
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="Barrel040">
<name>M249 21" (521mm) Barrel</name><!--"-->
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="Barrel041">
<name>Mk. 46 16" (406mm) Barrel</name><!--"-->
<manufacturer>FNH</manufacturer>
<fits>Mk. 46</fits>
</part>
<!-- i:bayonets -->
<part id="Bayonet01">
<name>M7</name>
<manufacturer></manufacturer>
<fits>M4/M16</fits>
</part>
<part id="Bayonet02">
<name>M9</name>
<manufacturer></manufacturer>
<fits>M4/M16</fits>
</part>
<part id="Bayonet03">
<name>OKC-3S</name>
<manufacturer></manufacturer>
<fits>M4/M16</fits>
</part>
<part id="Bayonet04">
<name>Unnamed Bayonet #1</name>
<manufacturer></manufacturer>
<fits>AKM</fits>
</part>
<part id="Bayonet05">
<name>H576</name>
<manufacturer></manufacturer>
<fits>AKM</fits>
</part>
<part id="Bayonet06">
<name>H572</name>
<manufacturer></manufacturer>
<fits>AKM</fits>
</part>
<!-- i:bolts -->
<part id="Bolt001">
<name>M4 Bolt #1</name>
<manufacturer>Colt</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="Bolt002">
<name>AK47 Bolt</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="Bolt003">
<name>SVD Bolt</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="Bolt004">
<name>SR25 Bolt</name>
<manufacturer>KAC</manufacturer>
<fits>SR25</fits>
</part>
<part id="Bolt005">
<name>SCAR-H Bolt</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="Bolt006">
<name>SCAR-L Bolt</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="Bolt007">
<name>98B Bolt</name>
<manufacturer>Barrett</manufacturer>
<fits>Barrett 98B</fits>
</part>
<part id="Bolt007B">
<name>98B Bolt Handle</name>
<manufacturer>Barrett</manufacturer>
<fits>Barrett 98B</fits>
</part>
<part id="Bolt008">
<name>HK416 Bolt</name>
<manufacturer>H&K</manufacturer>
<fits>HK416</fits>
</part>
<part id="Bolt009">
<name>HK417 Bolt</name>
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="Bolt010">
<name>M200 Bolt</name>
<manufacturer>Cheytac LLC</manufacturer>
<fits>M200</fits>
</part>
<part id="Bolt010B">
<name>M200 Bolt Handle</name>
<manufacturer>Cheytac LLC</manufacturer>
<fits>M200</fits>
</part>
<part id="Bolt011">
<name>MP5 Bolt</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="Bolt011B">
<name>MP5 Charging Handle</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="Bolt012">
<name>ACR Bolt</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="Bolt013">
<name>F2000 Bolt</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="Bolt014">
<name>G36 Bolt</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="Bolt015">
<name>AUG Bolt</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="Bolt016">
<name>M14 Bolt</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="DustCover01">
<name>Dust Cover</name>
<manufacturer>Colt</manufacturer>
<fits>AR15</fits>
</part>
<part id="DustCover02">
<name>Dust Cover</name>
<fits>SR25</fits>
</part>
<part id="DustCover03">
<name>Dust Cover</name>
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<!-- i:bipods -->
<part id="Bipod01" type="group">
<name>M200 Bipod</name>
<manufacturer>Cheytac LLC</manufacturer>
<fits>M200</fits>
</part>
<part id="Bipod02" type="group">
<name>Unnamed Bipod #1</name>
<manufacturer></manufacturer>
<fits>Rails</fits>
</part>
<part id="Bipod03" type="group">
<name>Unnamed Bipod #2</name>
<manufacturer></manufacturer>
<fits>M249</fits>
</part>
<!-- i:compensators -->
<part id="Compensator001">
<name>VC-1</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="Compensator002">
<name>VC-A1</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="Compensator003">
<name>VC-301</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="Compensator004">
<name>Unnamed Compensator #1</name>
<manufacturer>Barrett</manufacturer>
<fits>98B</fits>
</part>
<part id="Compensator005">
<name>Unnamed Compensator #2</name>
<manufacturer>Cheytac LLC</manufacturer>
<fits>M200</fits>
</part>
<!-- i:electronics -->
<part id="Laser001" type="group">
<name>AN/PEQ-2</name>
<manufacturer>Insight Technology</manufacturer>
<fits>Rails</fits>
</part>
<part id="Laser002U">
<name>AN/PEQ-15</name>
<manufacturer>Insight Technology</manufacturer>
<fits>Rails</fits>
</part>
<part id="Laser002D">
<name>AN/PEQ-15</name>
<manufacturer>Insight Technology</manufacturer>
<fits>Rails</fits>
</part>
<part id="Laser002S">
<name>AN/PEQ-15</name>
<manufacturer>Insight Technology</manufacturer>
<fits>Rails</fits>
</part>
<part id="Flashlight01">
<name>Unnamed Flashlight #1</name>
<manufacturer></manufacturer>
<fits>MP5 Handguard</fits>
</part>
<part id="Flashlight02">
<name>6P</name>
<manufacturer>SureFire</manufacturer>
<fits>Rail Mount</fits>
</part>
<part id="Flashlight03">
<name>Unnamed Flashlight #2</name>
<manufacturer></manufacturer>
<fits>F2000 Handguard</fits>
</part>
<!-- i:flashhiders -->
<part id="FlashHider001">
<name>USGI A2 Flash Hider</name>
<manufacturer>Colt</manufacturer>
<fits>AR15</fits>
</part>
<part id="FlashHider002">
<name>KX3</name>
<manufacturer>Noveske</manufacturer>
<fits>AR15</fits>
</part>
<part id="FlashHider003">
<name>AK74 Style Flash Hider</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="FlashHider004">
<name>Krinkov Flash Hider</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="FlashHider005">
<name>Unnamed Flash Hider #3</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="FlashHider006">
<name>Unnamed Flash Hider #4</name>
<fits>SR25</fits>
</part>
<part id="FlashHider007">
<name>Scar Flash Hider #1</name>
<manufacturer>AAC</manufacturer>
<fits>SCAR-H</fits>
</part>
<part id="FlashHider008">
<name>Scar Flash Hider #2</name>
<manufacturer>AAC</manufacturer>
<fits>SCAR-L</fits>
</part>
<part id="FlashHider009">
<name>HK417 Birdcage</name>
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="FlashHider010">
<name>Unnamed Flashhider #5</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="FlashHider011">
<name>CAR-15 Flash Hider</name>
<manufacturer>Colt</manufacturer>
<fits>AR15</fits>
</part>
<part id="FlashHider012">
<name>Unnamed Flash Hider #6</name>
<manufacturer></manufacturer>
<fits>Mk.12 SPR</fits>
</part>
<part id="FlashHider013">
<name>Four-Prong Flash Hider</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="FlashHider014">
<name>Four-Prong Flash Hider #2</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="FlashHider015">
<name>AUG Flash Hider #1</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="FlashHider016">
<name>AUG Flash Hider #2</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="FlashHider017">
<name>Unnamed Flashhider #6</name>
<fits>Mk. 14</fits>
</part>
<part id="FlashHider018">
<name>M14 Flash Hider</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="FlashHider019">
<name>Unnamed Flash Hider</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<!-- i:foregrips -->
<part id="Foregrip001">
<name>T-POD</name>
<manufacturer>FAB Defense</manufacturer>
<fits>Rails</fits>
</part>
<part id="Foregrip002">
<name>Vertical Grip</name>
<manufacturer>Tango Down</manufacturer>
<fits>Rails</fits>
</part>
<part id="Foregrip003">
<name>Stubby Vertical Grip</name>
<manufacturer>Tango Down</manufacturer>
<fits>Rails</fits>
</part>
<part id="Foregrip004" type="group">
<name>Modular Vertical Grip</name>
<manufacturer>Troy</manufacturer>
<fits>Rails</fits>
</part>
<part id="Foregrip005">
<name>MWG Magwell Grip</name>
<manufacturer>FAB Defense</manufacturer>
<fits>M4/M16 magwell</fits>
</part>
<part id="Foregrip006">
<name>TAL-4</name>
<manufacturer>FAB Defense</manufacturer>
<fits>Rails</fits>
</part>
<part id="Foregrip007">
<name>AG-44-s</name>
<manufacturer>FAB Defense</manufacturer>
<fits>Rails</fits>
</part>
<part id="Foregrip008">
<name>Vertical Grip</name>
<manufacturer>Daniel Defense</manufacturer>
<fits>Rails</fits>
</part>
<part id="Foregrip009">
<name>AFG ®</name>
<manufacturer>Magpul</manufacturer>
<fits>Rails</fits>
</part>
<part id="Foregrip010" type="group">
<name>FVG5</name>
<manufacturer>CAA</manufacturer>
<fits>Rails</fits>
</part>
<part id="Foregrip011">
<name>MVG (TM)</name>
<manufacturer>Magpul</manufacturer>
<fits>MOE Handhuard</fits>
</part>
<part id="Foregrip012">
<name>RVG ®</name>
<manufacturer>Magpul</manufacturer>
<fits>Rails</fits>
</part>
<part id="Foregrip013">
<name>AUG Foregrip #1</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="Foregrip014">
<name>AUG Foregrip #2</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="Foregrip015" type="group">
<name>M900</name>
<manufacturer>SureFire</manufacturer>
<fits>Rails</fits>
</part>
<!-- i:gasblocks -->
<part id="GasBlock01">
<name>Low-Profile Gas Block</name>
<manufacturer>VLTOR</manufacturer>
<fits>AR15</fits>
</part>
<part id="GasBlock03">
<name>Switchblock</name>
<manufacturer>Noveske</manufacturer>
<fits>AR15</fits>
</part>
<part id="GasBlock02">
<name>AK47 Gas Block</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="GasBlock04">
<name>AK74 Gas Block</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="GasBlock05">
<name>SVD Gas Block</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="GasBlock06">
<name>HK416 Gas Block</name>
<manufacturer>H&K</manufacturer>
<fits>H&K</fits>
</part>
<part id="GasBlock07">
<name>ACR Gas Block</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="GasBlock08">
<name>Barrel Securing Ring</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="GasBlock09">
<name>G36 Gas Block</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="GasBlock10">
<name>AUG Gas Block</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="GasBlock11">
<name>AUG Para Gas Block</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG Para</fits>
</part>
<part id="GasBlock12">
<name>M14 Gas Cylinder</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="GasBlock12A">
<name>M14 Gas Cylinder Plug</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="GasBlock12B">
<name>M14 Gas Cylinder Lock</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="GasBlock13">
<name>M249 Gas Block</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="GasBlock14">
<name>M249 Gas Block</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<!-- i:gastubes -->
<part id="GasTube01">
<name>Unnamed Gas Tube #1</name>
<manufacturer>Colt</manufacturer>
<fits>M4</fits>
</part>
<part id="GasTube02">
<name>Unnamed Gas Tube #2</name>
<manufacturer>Colt</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="GasTube03">
<name>AK47 Gas Tube</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="GasTube04">
<name>AKS74U Gas Tube</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="GasTube05">
<name>SVD Gas Tube</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="GasTube06">
<name>Unnamed Gas Tube #3</name>
<fits>SR25</fits>
</part>
<part id="GasTube07">
<name>HK416 Gas Piston Rod</name>
<manufacturer>H&K</manufacturer>
<fits>HK416</fits>
</part>
<part id="GasTube08">
<name>ACR Gas Piston Rod</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="GasTube09">
<name>F2000 Gas Piston Rod</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="GasTube10">
<name>G36C Gas Piston Rod</name>
<manufacturer>H&K</manufacturer>
<fits>G36C</fits>
</part>
<part id="GasTube11">
<name>G36K Gas Piston Rod</name>
<manufacturer>H&K</manufacturer>
<fits>G36K</fits>
</part>
<part id="GasTube13A">
<name>M14 Operating Rod</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="GasTube13B">
<name>M14 Operating Rod Guide</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="GasTube14">
<name>M249 Gas Tube</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<!-- i:grenadelaunchers -->
<part id="GL01BS" type="group">
<name>M203 Barrel Mounted (Short)</name>
<manufacturer>Colt Defense</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="GL01BL" type="group">
<name>M203 Barrel Mounted</name>
<manufacturer>Colt Defense</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="GL01RS" type="group">
<name>M203 Rail Mounted (Short)</name>
<manufacturer>Colt Defense</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="GL01RL" type="group">
<name>M203 Rail Mounted</name>
<manufacturer>Colt Defense</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="GL02" type="group">
<name>BS-1 "Tishina"</name>
<fits>AK</fits>
</part>
<part id="GL03H" type="group">
<name>Mk. 13</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR-H</fits>
</part>
<part id="GL03L" type="group">
<name>Mk. 13</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR-L</fits>
</part>
<part id="GL03S" type="group">
<name>Mk. 13</name>
<manufacturer>FNH</manufacturer>
<fits>Rails</fits>
</part>
<part id="EGLM" type="group">
<name>Mk. 13 Standalone</name>
<manufacturer>FNH</manufacturer>
</part>
<part id="GL04" type="group">
<name>GP-30</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="GL05" type="group">
<name>GL1</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<!-- i:handguards -->
<part id="Handguard001">
<name>M16VN Handguard</name>
<fits>M16</fits>
</part>
<part id="Handguard002" type="group">
<name>M4A1 Handguard</name>
<fits>M4</fits>
</part>
<part id="Handguard003" type="group">
<name>MOE Handguard ® (Carbine)</name>
<manufacturer>Magpul</manufacturer>
<fits>M4</fits>
</part>
<part id="Handguard004" type="group">
<name>AKM/74M Handguard</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="Handguard005" type="group">
<name>AK74 Handguard</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="Handguard006" type="group">
<name>AKS74U Handguard</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="Handguard007" type="group">
<name>AKS74U Handguard #2</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="Handguard008">
<name>SVD Handguard</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="Handguard009" type="group">
<name>M200 Handguard</name>
<manufacturer>Cheytac LLC</manufacturer>
<fits>M200</fits>
</part>
<part id="Handguard010">
<name>MP5 Handguard</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="Handguard011" type="group">
<name>MP5 Handguard /w Flashlight</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="Handguard012">
<name>MP5K Handguard</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="Handguard013">
<name>MP5K Handguard /w Foregrip</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="Handguard014">
<name>MP5SD Handguard</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="Handguard015">
<name>ACR Handguard</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="Handguard016">
<name>ACR Handguard (Long)</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="Handguard017">
<name>F2000 Handguard</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="Handguard018" type="group">
<name>MOE Handguard ® (Mid-length)</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="Handguard019" type="group">
<name>MOE Handguard ® (Rifle)</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="Handguard020" type="group">
<name>M16 Handguard #1</name>
<manufacturer>Colt</manufacturer>
<fits>M16</fits>
</part>
<part id="Handguard021">
<name>M16 Handguard #2</name>
<manufacturer>Colt</manufacturer>
<fits>M16</fits>
</part>
<part id="Handguard022" type="group">
<name>FGR-3</name>
<manufacturer>FAB Defense</manufacturer>
<fits>AR15</fits>
</part>
<part id="Handguard023">
<name>G36C Handguard</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="Handguard024">
<name>G36K Handguard</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="Handguard025">
<name>G36 Handguard</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="Handguard026">
<name>M14 Handguard</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="Handguard027">
<name>Mk. 14 Handguard</name>
<manufacturer>Springfield</manufacturer>
<fits>Mk. 14</fits>
</part>
<part id="Handguard028">
<name>M249 Handguard</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="Handguard029">
<name>M249 Heat Shield</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<!-- i:magazines -->
<part id="RMag001">
<name>STANAG 30 rnd Magazine</name>
<manufacturer>Colt</manufacturer>
<fits>AR15</fits>
</part>
<part id="RMag002">
<name>STANAG 20 rnd Magazine</name>
<manufacturer>Colt</manufacturer>
<fits>AR15</fits>
</part>
<part id="RMag003">
<name>MagLevel PMAG ® 30 rnd</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="RMag003F" type="group">
<name>MagLevel PMAG ® 30 rnd</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="RMag004">
<name>AK47 30 rnd Magazine</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="RMag005">
<name>AK74 30 rnd Magazine</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="RMag006">
<name>SVD 10 rnd Magazine</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="RMag007">
<name>SVD 5 rnd Magazine</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="RMag008">
<name>SR25 20 rnd Magazine</name>
<fits>SR25</fits>
</part>
<part id="RMag009">
<name>SCAR-H 20 rnd Magazine</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="RMag010">
<name>PMAG ® 30 rnd</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="RMag011">
<name>PMAG ® 20 rnd</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="RMag012">
<name>98B 10 rnd Magazine</name>
<manufacturer>Barrett</manufacturer>
<fits>98B</fits>
</part>
<part id="RMag013">
<name>HK417 20 rnd Magazine</name>
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="RMag013F" type="group">
<name>HK417 20 rnd Magazine</name>
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="RMag014">
<name>M200 7 rnd Magazine</name>
<manufacturer>Cheytac LLC</manufacturer>
<fits>M200</fits>
</part>
<part id="RMag015">
<name>MP5 30 rnd Magazine</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="RMag016">
<name>MP5/10 30 rnd Magazine</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="RMag017">
<name>MP5 15 rnd Magazine</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="RMag018">
<name>G36 30 rnd Magazine</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="RMag018F" type="group">
<name>G36 30 rnd Magazine</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="RMag019">
<name>G36 30 rnd Magazine</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="RMag020">
<name>AUG 30 rnd Magazine</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="RMag021">
<name>AUG Para 25 rnd Magazine</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG Para</fits>
</part>
<part id="RMag022">
<name>M14 20 rnd Magazine</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="RMag023">
<name>M14 10 rnd Magazine</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="RMag024">
<name>M249 200 rnd Magazine</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="RMag025">
<name>M249 100 rnd Magazine</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="MagAcc01">
<name>STANAG Ranger Plate ®</name>
<manufacturer>Magpul</manufacturer>
<fits>STANAG Magazine</fits>
</part>
<part id="MagAcc02">
<name>PMag Ranger Plate ®</name>
<manufacturer>Magpul</manufacturer>
<fits>PMag Magazine</fits>
</part>
<part id="MagAcc03">
<name>L-Plate ®</name>
<manufacturer>Magpul</manufacturer>
<fits>STANAG Magazine</fits>
</part>
<part id="MagAcc04">
<name>Magpul ®</name>
<manufacturer>Magpul</manufacturer>
<fits>STANAG Magazine</fits>
</part>
<!-- i:pistolgrips -->
<part id="PGrip001">
<name>Unnamed Pistol Grip #1</name>
<manufacturer>Colt</manufacturer>
<fits>AR15</fits>
</part>
<part id="PGrip002">
<name>AK47/74 Pistol Grip</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="PGrip003">
<name>MIAD ®</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="PGrip004">
<name>BG-16 Battle Grip</name>
<manufacturer>Tango Down</manufacturer>
<fits>AR15</fits>
</part>
<part id="PGrip005">
<name>SVDS Pistol Grip</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="PGrip006">
<name>MOE Pistol Grip ®</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="PGrip007">
<name>UPG-16</name>
<manufacturer>CAA</manufacturer>
<fits>AR15</fits>
</part>
<part id="PGrip008">
<name>Unnamed Pistol Grip #2</name>
<manufacturer></manufacturer>
<fits>AR15</fits>
</part>
<part id="PGrip009">
<name>AG-43</name>
<manufacturer>FAB Defense</manufacturer>
<fits>AR15</fits>
</part>
<part id="PGrip010">
<name>HK Battlegrip Grip</name>
<manufacturer>H&K</manufacturer>
<fits>AR15</fits>
</part>
<part id="PGrip011">
<name>Mk. 14 Pistol Grip</name>
<manufacturer>Springfield</manufacturer>
<fits>Mk. 14 like</fits>
</part>
<part id="PGrip012">
<name>M249 Pistol Grip</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<!-- i:railcovers -->
<part id="RCover01" type="group">
<name>XTM Rail Panel (TM)</name>
<manufacturer>Magpul</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover02" type="group">
<name>Ladder Rail Protector (18)</name>
<manufacturer>Magpul</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover03" type="group">
<name>Ladder Rail Protector (14)</name>
<manufacturer>Magpul</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover04" type="group">
<name>Ladder Rail Protector (10)</name>
<manufacturer>Magpul</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover05" type="group">
<name>Ladder Rail Protector (6)</name>
<manufacturer>Magpul</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover06" type="group">
<name>XT Rail Panel (TM)</name>
<manufacturer>Magpul</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover07" type="group">
<name>Rail Panel (2 Rib)</name>
<manufacturer>KAC</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover08" type="group">
<name>Rail Panel (4 Rib)</name>
<manufacturer>KAC</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover09" type="group">
<name>Rail Panel (5 Rib)</name>
<manufacturer>KAC</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover10" type="group">
<name>Rail Panel (6 Rib)</name>
<manufacturer>KAC</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover11" type="group">
<name>Rail Panel (9 Rib)</name>
<manufacturer>KAC</manufacturer>
<fits>Rails</fits>
</part>
<part id="RCover12" type="group">
<name>Rail Panel (11 Rib)</name>
<manufacturer>KAC</manufacturer>
<fits>Rails</fits>
</part>
<!-- i:railmounts -->
<part id="RMount001">
<name>Aimpoint CompM4 QD Mount</name>
<manufacturer>LaRue</manufacturer>
<fits>CompM4, Rails</fits>
</part>
<part id="RMount002">
<name>Aimpoint CompM2/M3 QD Mount #1</name>
<manufacturer>LaRue</manufacturer>
<fits>CompM2/M3, Rails</fits>
</part>
<part id="RMount003">
<name>Aimpoint CompM2/M3 QD Mount #2</name>
<manufacturer>LaRue</manufacturer>
<fits>CompM2/M3, Rails</fits>
</part>
<part id="RMount004">
<name>Aimpoint CompM2/M3 QD Mount #3</name>
<manufacturer>LaRue</manufacturer>
<fits>CompM2/M3, Rails</fits>
</part>
<part id="RMount005">
<name>3XMag QD Mount</name>
<manufacturer>LaRue</manufacturer>
<fits>3XMag, Rails</fits>
</part>
<part id="RMount006">
<name>Aimpoint Micro T-1 QD Mount #1</name>
<manufacturer>LaRue</manufacturer>
<fits>Micro T-1, Rails</fits>
</part>
<part id="RMount007">
<name>Aimpoint Micro T-1 QD Mount #2</name>
<manufacturer>LaRue</manufacturer>
<fits>Micro T-1, Rails</fits>
</part>
<part id="RMount008">
<name>EOTech 3X QD Mount</name>
<manufacturer>LaRue</manufacturer>
<fits>3X, Rails</fits>
</part>
<part id="RMount009">
<name>Acog Mount</name>
<manufacturer>Trijicon</manufacturer>
<fits>Acog, Rails</fits>
</part>
<part id="RMount010">
<name>Docter MS01 Acog Mount</name>
<manufacturer>Trijicon</manufacturer>
<fits>Acog, Docter MS01</fits>
</part>
<part id="RMount011">
<name>SPR-E Mount</name>
<manufacturer>Larue</manufacturer>
<fits>Rails</fits>
</part>
<part id="RMount012">
<name>SPR-S Mount</name>
<manufacturer>Larue</manufacturer>
<fits>Rails</fits>
</part>
<part id="RMount013">
<name>Aimpoint CompM2/M3 QD Mount #4</name>
<manufacturer>LaRue</manufacturer>
<fits>CompM2/M3, Rails</fits>
</part>
<part id="RMount014" type="group">
<name>Unnamed Flashlight Mount</name>
<fits>Rails</fits>
</part>
<part id="RMount015">
<name>M14 Receiver Rail</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="RMount016">
<name>Unnamed Rail Mount #1</name>
<fits>Rails</fits>
</part>
<!-- i:ris -->
<part id="RIS001" type="group">
<name>Carbine RAS</name>
<manufacturer>KAC</manufacturer>
<fits>M4</fits>
</part>
<part id="RIS002" type="group">
<name>M5 Rifle RAS</name>
<manufacturer>KAC</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="RIS003" type="group">
<name>CASV-EL</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4</fits>
</part>
<part id="RIS004" type="group">
<name>CASV-M</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4</fits>
</part>
<part id="RIS005" type="group">
<name>AK47/74 RIS</name>
<manufacturer>FAB Defense</manufacturer>
<fits>AK</fits>
</part>
<part id="RIS006" type="group">
<name>VFR-AK Rail System</name>
<manufacturer>FAB Defense</manufacturer>
<fits>AK</fits>
</part>
<part id="RIS007">
<name>SR25 URX</name>
<manufacturer>KAC</manufacturer>
<fits>SR25</fits>
</part>
<part id="RIS008" type="group">
<name>M4 Carbine URX</name>
<manufacturer>KAC</manufacturer>
<fits>M4</fits>
</part>
<part id="RIS009" type="group">
<name>URX (Medium)</name>
<manufacturer>KAC</manufacturer>
<fits>AR15</fits>
</part>
<part id="RIS010">
<name>SCAR Under-barrel Rail</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="RIS012" type="group">
<name>Omega 7.0</name>
<manufacturer>Daniel Defense</manufacturer>
<fits>AR15</fits>
</part>
<part id="RIS013" type="group">
<name>Omega 9.0</name>
<manufacturer>Daniel Defense</manufacturer>
<fits>AR15</fits>
</part>
<part id="RIS014" type="group">
<name>Omega 12.0</name>
<manufacturer>Daniel Defense</manufacturer>
<fits>AR15</fits>
</part>
<part id="RIS015" type="group">
<name>Omega X 12.0 FSP</name>
<manufacturer>Daniel Defense</manufacturer>
<fits>AR15</fits>
</part>
<part id="RIS016">
<name>UPR 16/4</name>
<manufacturer>FAB Defense</manufacturer>
<fits>M4/M16 handguard</fits>
</part>
<part id="RIS017">
<name>HK416 RIS</name>
<manufacturer>H&K</manufacturer>
<fits>HK416</fits>
</part>
<part id="RIS018">
<name>HK417 RIS (Long)</name>
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="RIS019">
<name>HK417 RIS </name>
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="RIS020">
<name>MP5 Top Rail</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="RIS021">
<name>ACR RIS</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="RIS022">
<name>F2000 Tri-Rail</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="RIS023">
<name>M16 Carrying Handle Mount</name>
<manufacturer>TAPCO</manufacturer>
<fits>M16 Carrying Handle</fits>
</part>
<part id="RIS024">
<name>Mk.12 RIS</name>
<manufacturer>Colt</manufacturer>
<fits>Mk.12 SPR</fits>
</part>
<part id="RIS025" type="group">
<name>VFR-AR15</name>
<manufacturer>FAB Defense</manufacturer>
<fits>AR15</fits>
</part>
<part id="RIS026">
<name>G36 Upper Rail</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="RIS027">
<name>G36 RAS (Carbine)</name>
<manufacturer>KAC</manufacturer>
<fits>G36</fits>
</part>
<part id="RIS028">
<name>G36 RAS (Rifle)</name>
<manufacturer>KAC</manufacturer>
<fits>G36</fits>
</part>
<part id="RIS029">
<name>AUG Top Rail #1</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="RIS030">
<name>AUG Top Rail #2</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="RIS031">
<name>AUG Top Rail #3</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="RIS032">
<name>AUG RAS</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="RIS033">
<name>AUG Underbarrel Rail</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="RIS034">
<name>Unnamed M14 Top Rail #1</name>
<manufacturer>Fulton Armory</manufacturer>
<fits>M14</fits>
</part>
<part id="RIS035">
<name>Unnamed M14 Top Rail #2</name>
<manufacturer>Fulton Armory</manufacturer>
<fits>M14</fits>
</part>
<part id="RIS036" type="group">
<name>M4 RIS Block 2</name>
<manufacturer>Daniel Defense</manufacturer>
<fits>AR15</fits>
</part>
<part id="RIS037">
<name>Unnamed RIS</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="RIS038">
<name>Unnamed RIS</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="RIS039">
<name>Unnamed RIS</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<!-- i:receivers -->
<part id="UReceiver001">
<name>M16A1 Upper Receiver</name>
<fits>M16</fits>
</part>
<part id="UReceiver002">
<name>M16A2 Upper Receiver</name>
<fits>M16</fits>
</part>
<part id="UReceiver003">
<name>M4A1 Upper Receiver</name>
<fits>M4</fits>
</part>
<part id="UReceiver004" type="group">
<name>VIS-1 Upper Receiver</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4</fits>
</part>
<part id="UReceiver005" type="group">
<name>VIS-2 Upper Receiver</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4</fits>
</part>
<part id="UReceiver006" type="group">
<name>VIS-3 Upper Receiver</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4</fits>
</part>
<part id="UReceiver007">
<name>MUR Upper Receiver</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4</fits>
</part>
<part id="UReceiver008">
<name>AK74 Upper Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="UReceiver009">
<name>SVD Upper Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="UReceiver010">
<name>SVDS Upper Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="UReceiver011">
<name>SR25 Upper Receiver</name>
<manufacturer>KAC</manufacturer>
<fits>SR25</fits>
</part>
<part id="UReceiver012">
<name>SCAR-H Upper Receiver</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="UReceiver013">
<name>SCAR-L Upper Receiver</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="UReceiver014">
<name>98B Upper Receiver</name>
<manufacturer>Barrett</manufacturer>
<fits>98B</fits>
</part>
<part id="UReceiver015">
<name>HK416 Upper Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>HK416</fits>
</part>
<part id="UReceiver016">
<name>HK417 Upper Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="UReceiver017">
<name>AKM Upper Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="UReceiver018">
<name>MP5 Upper Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="UReceiver019">
<name>MP5K Upper Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="UReceiver020">
<name>MP5SD Upper Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="UReceiver021">
<name>ACR Upper Receiver</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="UReceiver022">
<name>F2000 Upper Receiver</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="UReceiver023">
<name>G36 Upper Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="UReceiver024">
<name>AUG A2 Upper Receiver</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="UReceiver025">
<name>AUG A3 Upper Receiver</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="UReceiver026" type="group">
<name>M14 Upper Receiver</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="UReceiver027">
<name>M249 Feed Tray w/ Rail</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="UReceiver028">
<name>M249 Feed Tray</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="LReceiver001">
<name>M4/M16 Lower Receiver</name>
<manufacturer>Colt</manufacturer>
<fits>AR15</fits>
</part>
<part id="LReceiver002">
<name>AK47 v3 Lower Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="LReceiver003">
<name>AKM/74 Lower Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="LReceiver004">
<name>SVD Lower Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="LReceiver005">
<name>SVDS Lower Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="LReceiver006">
<name>SR25 Lower Receiver</name>
<manufacturer>KAC</manufacturer>
<fits>SR25</fits>
</part>
<part id="LReceiver007">
<name>SCAR-H Lower Receiver</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="LReceiver008">
<name>SCAR-L Lower Receiver</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="LReceiver009">
<name>98B Lower Receiver</name>
<manufacturer>Barrett</manufacturer>
<fits>98B</fits>
</part>
<part id="LReceiver010">
<name>HK416 Lower Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>HK416</fits>
</part>
<part id="LReceiver011">
<name>HK417 Lower Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="LReceiver012">
<name>MP5 Lower Receiver #1</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="LReceiver013">
<name>MP5K Lower Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="LReceiver014">
<name>MP5 Lower Receiver #2</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="LReceiver015">
<name>ACR STANAG Lower Receiver</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="LReceiver016">
<name>ACR AK Lower Receiver</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="LReceiver017">
<name>F2000 Lower Receiver</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="LReceiver018A">
<name>G36 Trigger Assembly</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="LReceiver018B">
<name>G36 Magwell</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="LReceiver019">
<name>AUG Lower Receiver</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="LReceiver020">
<name>AUG Para Lower Receiver</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG Para</fits>
</part>
<part id="LReceiver021">
<name>M14 Lower Receiver</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="LReceiver022">
<name>M14 Lower Receiver</name>
<manufacturer></manufacturer>
<fits>M14</fits>
</part>
<part id="LReceiver023" type="group">
<name>Mk. 14 Lower Receiver</name>
<manufacturer>Springfield</manufacturer>
<fits>Mk. 14</fits>
</part>
<part id="LReceiver024">
<name>M249 Lower Receiver</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="LReceiver025">
<name>Mk. 46 Lower Receiver</name>
<manufacturer>FNH</manufacturer>
<fits>Mk. 46</fits>
</part>
<part id="CReceiver001" type="group">
<name>M16A1 Receiver</name>
<fits>M16</fits>
</part>
<part id="CReceiver002" type="group">
<name>M16A2 Receiver</name>
<fits>M16</fits>
</part>
<part id="CReceiver003" type="group">
<name>M4A1 Receiver</name>
<fits>M4</fits>
</part>
<part id="CReceiver004" type="group">
<name>AK47 v3 Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="CReceiver005" type="group">
<name>AK74 Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="CReceiver006" type="group">
<name>SVD Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="CReceiver007" type="group">
<name>SVDS Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="CReceiver008" type="group">
<name>SR25 Receiver</name>
<manufacturer>KAC</manufacturer>
<fits>SR25</fits>
</part>
<part id="CReceiver009" type="group">
<name>SCAR-H Receiver</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="CReceiver010" type="group">
<name>SCAR-L Receiver</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="CReceiver011" type="group">
<name>98B Receiver</name>
<manufacturer>Barrett</manufacturer>
<fits>98B</fits>
</part>
<part id="CReceiver012" type="group">
<name>HK416 Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>HK416</fits>
</part>
<part id="CReceiver013" type="group">
<name>HK417 Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>HK417</fits>
</part>
<part id="CReceiver014">
<name>M200 Receiver</name>
<manufacturer>Cheytac LLC</manufacturer>
<fits>M200</fits>
</part>
<part id="CReceiver015" type="group">
<name>AKM Receiver</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="CReceiver016" type="group">
<name>MP5 Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="CReceiver017" type="group">
<name>MP5K Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="CReceiver018" type="group">
<name>ACR STANAG Receiver</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="CReceiver019" type="group">
<name>ACR AK Receiver</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="CReceiver020" type="group">
<name>G36 Receiver</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="DeltaRing01">
<name>Delta Ring #1</name>
<manufacturer>Colt</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="DeltaRing02">
<name>Front Handguard Ring #1</name>
<fits>M4/M16</fits>
</part>
<part id="DeltaRing03">
<name>Delta Ring #2</name>
<manufacturer>Colt</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="DeltaRing04">
<name>Front Handguard Ring #2</name>
<fits>M4/M16</fits>
</part>
<part id="DeltaRing05">
<name>Front Handguard Ring #3</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="ChamberLid01">
<name>F2000 Chamber Lid</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="ScopeCover01">
<name>F2000 Scope Cover</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="MagAdapter01">
<name>9mm Adapter</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="TriggerAsm01">
<name>M14 Trigger Assembly</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="TriggerAsm02">
<name>M249 Trigger Assembly</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="StockBase01">
<name>Unnamed Part</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="CarryingHandle01A">
<name>Carrying Handle</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="CarryingHandle01B">
<name>Carrying Handle Mount</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="ChargingHandle01">
<name>M249 Charging Handle</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<!-- i:sights -->
<part id="ISight001">
<name>M4/M16 Front Sight</name>
<manufacturer>Colt</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="ISight002">
<name>A3 Carrying Handle</name>
<manufacturer>Colt</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight003">
<name>Fixed Rear Sight</name>
<manufacturer>LMT</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight004" type="group">
<name>VST Sight</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="ISight005">
<name>AK47/74 Front Sight</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="ISight006">
<name>AK47 Rear Sight</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="ISight007" type="group">
<name>Rear Folding BattleSight</name>
<manufacturer>Troy</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight008" type="group">
<name>Front Folding BattleSight M4 Style</name>
<manufacturer>Troy</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight009" type="group">
<name>Front Folding BattleSight HK Style</name>
<manufacturer>Troy</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight010">
<name>Front Fixed BattleSight HK Style</name>
<manufacturer>Troy</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight011">
<name>Rear Fixed BattleSight</name>
<manufacturer>Troy</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight012">
<name>AKS74U Front Sight</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="ISight013">
<name>AKS74U Rear Sight</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="ISight014">
<name>SVD Front Sight</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="ISight015">
<name>SVD Rear Sight</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="ISight016" type="group">
<name>SR25 Front Sight</name>
<fits>SR25</fits>
</part>
<part id="ISight017" type="group">
<name>Rear Flip Up Sight</name>
<manufacturer>KAC</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight018" type="group">
<name>SCAR Front Flip Up Sight</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="ISight019">
<name>Fixed Rear Sight</name>
<manufacturer>Daniel Defense</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight020" type="group">
<name>HK416 Front Sight</name>
<manufacturer>H&K</manufacturer>
<fits>HK416</fits>
</part>
<part id="ISight021">
<name>HK416 Rear Sight</name>
<manufacturer>H&K</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight022">
<name>HK416 Universal Front Sight</name>
<manufacturer>H&K</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight023">
<name>MP5 Front Sight</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="ISight024">
<name>MP5 Rear Sight</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="ISight025">
<name>MP5SD Front Sight</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="ISight026">
<name>F2000 Front Sight</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="ISight027">
<name>F2000 Rear Sight</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="ISight028" type="group">
<name>MBUS ® Rear</name>
<manufacturer>Magpul</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight029" type="group">
<name>MBUS ® Front</name>
<manufacturer>Magpul</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight030" type="group">
<name>Leaf Sight</name>
<manufacturer>Colt</manufacturer>
<fits>M16</fits>
</part>
<part id="ISight031" type="group">
<name>Front Flip Up Sight</name>
<manufacturer>PRI</manufacturer>
<fits>AR15</fits>
</part>
<part id="ISight032" type="group">
<name>#40</name>
<manufacturer>ARMS</manufacturer>
<fits>Rails</fits>
</part>
<part id="ISight033" type="group">
<name>Front Flip Up Sight</name>
<manufacturer>KAC</manufacturer>
<fits>AR15</fits>
</part>
<part id="ISight034">
<name>G36 Front Sight</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="ISight035">
<name>G36 Rear Sight</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="ISight036">
<name>AUG Para Front Sight</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="ISight037">
<name>AUG Para Rear Sight</name>
<manufacturer>Steyr</manufacturer>
<fits>AUG</fits>
</part>
<part id="ISight038">
<name>M14 Front Sight #1</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="ISight039">
<name>M14 Front Sight #2</name>
<manufacturer>Springfield</manufacturer>
<fits>M14</fits>
</part>
<part id="ISight040">
<name>M249 Rear Sight</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="ISight041">
<name>M249 Front Sight</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="RedDot001">
<name>Comp M2</name>
<manufacturer>Aimpoint</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="RedDot002">
<name>Comp M3</name>
<manufacturer>Aimpoint</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="RedDot003">
<name>Comp M4</name>
<manufacturer>Aimpoint</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="RedDot004">
<name>Comp M4S</name>
<manufacturer>Aimpoint</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="RedDot005">
<name>Micro T-1</name>
<manufacturer>Aimpoint</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="RedDot006">
<name>Mepro 21</name>
<manufacturer>Meprolight</manufacturer>
<fits>Rails</fits>
</part>
<part id="RedDot007">
<name>MS01</name>
<manufacturer>Docter</manufacturer>
<fits>Rails</fits>
</part>
<part id="RedDot008">
<name>Mars</name>
<manufacturer>ITL</manufacturer>
<fits>Rails</fits>
</part>
<part id="RedDot009">
<name>Quick Shot 1x33</name>
<manufacturer>Mueller</manufacturer>
<fits>Rails</fits>
</part>
<part id="Magnifier001">
<name>3XMag</name>
<manufacturer>Aimpoint</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="Magnifier002">
<name>3X FTS</name>
<manufacturer>EOTech</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="Magnifier003">
<name>G23 FTS</name>
<manufacturer>EOTech</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="Holo001">
<name>551</name>
<manufacturer>EOTech</manufacturer>
<fits>Rails</fits>
</part>
<part id="Holo002">
<name>552</name>
<manufacturer>EOTech</manufacturer>
<fits>Rails</fits>
</part>
<part id="Holo003">
<name>553</name>
<manufacturer>EOTech</manufacturer>
<fits>Rails</fits>
</part>
<part id="Holo005">
<name>555</name>
<manufacturer>EOTech</manufacturer>
<fits>Rails</fits>
</part>
<part id="Holo006">
<name>556</name>
<manufacturer>EOTech</manufacturer>
<fits>Rails</fits>
</part>
<part id="Holo007">
<name>557</name>
<manufacturer>EOTech</manufacturer>
<fits>Rails</fits>
</part>
<part id="Holo008">
<name>XPS3</name>
<manufacturer>EOTech</manufacturer>
<fits>Rails</fits>
</part>
<part id="Scope001">
<name>Acog TA01 4x32</name>
<manufacturer>Trijicon</manufacturer>
<fits>Rails/M16 Carrying Handle</fits>
</part>
<part id="Scope002">
<name>Acog Red Chevron 4x32</name>
<manufacturer>Trijicon</manufacturer>
<fits>Rails/M16 Carrying Handle</fits>
</part>
<part id="Scope003">
<name>Acog TA31 4x32</name>
<manufacturer>Trijicon</manufacturer>
<fits>Rails/M16 Carrying Handle</fits>
</part>
<part id="Scope004">
<name>Acog Red Chevron 6x48</name>
<manufacturer>Trijicon</manufacturer>
<fits>Rails/M16 Carrying Handle</fits>
</part>
<part id="Scope005">
<name>TR20</name>
<manufacturer>Trijicon</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="Scope006">
<name>TR21</name>
<manufacturer>Trijicon</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="Scope007">
<name>TR22</name>
<manufacturer>Trijicon</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="Scope008">
<name>Short Dot</name>
<manufacturer>S&B</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="Scope009">
<name>PSO-1</name>
<manufacturer>NPZ</manufacturer>
<fits>AK types, SVD</fits>
</part>
<part id="Scope010">
<name>Mark AR 3-9x40mm</name>
<manufacturer>Leupold</manufacturer>
<fits>Rail Mounts</fits>
</part>
<part id="Scope011">
<name>Mark 4 1-3x14mm CQ/T</name>
<manufacturer>Leupold</manufacturer>
<fits>Rails</fits>
</part>
<part id="Scope012">
<name>G36 x3.5 Scope</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="Scope013">
<name>G36 Dual Scope</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="Scope014">
<name>Swarovski Scope x1.5</name>
<manufacturer>Swarovski</manufacturer>
<fits>AUG</fits>
</part>
<part id="Scope015">
<name>SpectreOS x4</name>
<manufacturer>Elcan</manufacturer>
<fits>Rails</fits>
</part>
<part id="Scope016">
<name>SpectreDR 1-4x</name>
<manufacturer>Elcan</manufacturer>
<fits>Rails</fits>
</part>
<!-- i:silencers -->
<part id="Silencer01">
<name>PBS-4</name>
<fits>AK</fits>
</part>
<part id="Silencer02">
<name>Unnamed Silencer #1</name>
<fits>HK417</fits>
</part>
<part id="Silencer03">
<name>Unnamed Silencer #2</name>
<fits>AR15</fits>
</part>
<part id="Silencer04">
<name>QD Suppressor</name>
<manufacturer>KAC</manufacturer>
<fits>AR15</fits>
</part>
<part id="Silencer05">
<name>M4-1000</name>
<manufacturer>AAC</manufacturer>
<fits>AR15</fits>
</part>
<part id="Silencer06">
<name>M4-2000</name>
<manufacturer>AAC</manufacturer>
<fits>AR15</fits>
</part>
<part id="Silencer07">
<name>SPR/M4</name>
<manufacturer>AAC</manufacturer>
<fits>AR15</fits>
</part>
<part id="Silencer08">
<name>P90 Silencer</name>
<manufacturer>FNH</manufacturer>
<fits>P90</fits>
</part>
<!-- i:stocks -->
<part id="CStock01">
<name>LE Stock</name>
<manufacturer>Bushmaster</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock02">
<name>CTR Carbine Stock ®</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock03">
<name>GLR-16 Stock</name>
<manufacturer>FAB Defense</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock04">
<name>CAR-15 Stock</name>
<manufacturer>Colt</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock05">
<name>SOPMOD Crane Stock</name>
<manufacturer>LMT</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock06S" type="group">
<name>SOCOM Stock</name>
<manufacturer>ACE</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock06L" type="group">
<name>SOCOM Stock (Long)</name>
<manufacturer>ACE</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock07">
<name>Carbine Modstock</name>
<manufacturer>VLTOR</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock08">
<name>EMod Stock</name>
<manufacturer>VLTOR</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock09">
<name>EGLM Stock</name>
<manufacturer>FNH</manufacturer>
<fits>EGLM</fits>
</part>
<part id="CStock10">
<name>MOE Stock ®</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock11">
<name>HK416/417 Stock</name>
<manufacturer>H&K</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock12" type="group">
<name>MP5 Retractable Stock</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="CStock13" type="group">
<name>UBR ®</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="CStock14" type="group">
<name>Mk. 14 stock</name>
<manufacturer>Springfield</manufacturer>
<fits>Mk. 14</fits>
</part>
<part id="CStock15" type="group">
<name>M249 stock</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="CStock16" type="group">
<name>M249 stock</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="BufferTube01">
<name>Buffer Tube</name>
<manufacturer>Colt</manufacturer>
<fits>AR15</fits>
</part>
<part id="BufferTube02">
<name>SBT-K47 Recoil Reducing Buffer Tube</name>
<manufacturer>FAB Defense</manufacturer>
<fits>AK</fits>
</part>
<part id="BufferTube03">
<name>Buffer Tube #2</name>
<fits>HK417</fits>
</part>
<part id="BufferTube04">
<name>Buffer Tube #3</name>
<fits>M249</fits>
</part>
<part id="CheekRest01">
<name>Unnamed Cheek Rest #1</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVDS Folding Stock</fits>
</part>
<part id="CheekRest02">
<name>M14 Cheek Rest #1</name>
<fits>M14 Stock</fits>
</part>
<part id="CheekRest03">
<name>Unnamed Cheek Rest #1</name>
<fits>98B Stock</fits>
</part>
<part id="Monopod01">
<name>Unnamed Monopod #1</name>
<fits>98B Stock</fits>
</part>
<part id="Buttplate01">
<name>F2000 Butt Plate</name>
<manufacturer>FNH</manufacturer>
<fits>F2000</fits>
</part>
<part id="Buttplate02">
<name>P90 Butt Plate</name>
<manufacturer>FNH</manufacturer>
<fits>P90</fits>
</part>
<part id="FStock01">
<name>M16 Fixed Stock</name>
<fits>M16</fits>
</part>
<part id="FStock02">
<name>ARM-1S</name>
<manufacturer>VLTOR</manufacturer>
<fits>M4/M16</fits>
</part>
<part id="FStock03">
<name>Unnamed AK47 Stock #1</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK47 v3</fits>
</part>
<part id="FStock04">
<name>Unnamed AK74 Stock #1</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="FStock05">
<name>SVD Stock</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="FStock06">
<name>Unnamed AK47 Stock #2</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="FStock07">
<name>MP5 Fixed Stock</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="FStock08">
<name>M16A1 Fixed Stock</name>
<manufacturer>Colt</manufacturer>
<fits>M16</fits>
</part>
<part id="FStock09">
<name>M249 Fixed Stock</name>
<manufacturer>FNH</manufacturer>
<fits>M249</fits>
</part>
<part id="OStock01">
<name>Unnamed AK74 Folding Stock #1</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="OStock02">
<name>Unnamed SVDS Folding Stock #1</name>
<manufacturer>Izhmash</manufacturer>
<fits>SVD</fits>
</part>
<part id="OStock03">
<name>Unnamed AK Folding Stock #2</name>
<manufacturer>Izhmash</manufacturer>
<fits>AK</fits>
</part>
<part id="OStock04" type="group">
<name>UAS-AK</name>
<manufacturer>FAB Defense</manufacturer>
<fits>AK</fits>
</part>
<part id="OStock05" type="group">
<name>MP5 PDW Stock</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="OStock06" type="group">
<name>MP5 Folding Stock</name>
<manufacturer>H&K</manufacturer>
<fits>MP5</fits>
</part>
<part id="OStock07" type="group">
<name>ACR Folding Stock</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="OStock08">
<name>G36 Folding Stock</name>
<manufacturer>H&K</manufacturer>
<fits>G36</fits>
</part>
<part id="AStock01" type="group">
<name>SCAR Stock #1</name>
<manufacturer>FNH</manufacturer>
<fits>SCAR</fits>
</part>
<part id="AStock02" type="group">
<name>SSR-25</name>
<manufacturer>FAB Defense</manufacturer>
<fits>SR25/M16</fits>
</part>
<part id="AStock03" type="group">
<name>M200 Stock #1</name>
<manufacturer>Cheytac LLC</manufacturer>
<fits>M200</fits>
</part>
<part id="AStock04" type="group">
<name>ACR Adjustable Stock</name>
<manufacturer>Bushmaster</manufacturer>
<fits>ACR</fits>
</part>
<part id="AStock05" type="group">
<name>PRS ®</name>
<manufacturer>Magpul</manufacturer>
<fits>AR15</fits>
</part>
<part id="AStock06" type="group">
<name>Mk. 14 Stock</name>
<manufacturer>Springfield</manufacturer>
<fits>Mk. 14</fits>
</part>
<!-- i:effects -->
<part id="MuzzleFlash01">
<name>Muzzle Flash #1</name>
</part>
<part id="MuzzleFlash02">
<name>Muzzle Flash #2</name>
</part>
<part id="MuzzleFlash03">
<name>Muzzle Flash #3</name>
</part>
<part id="Strips" type="group">
<name>Tape</name>
</part>
<!-- i:shapes -->
<part id="Shape01">
<name>Square</name>
</part>
<part id="Shape02">
<name>Shaded Square #1</name>
</part>
<part id="Shape03">
<name>Shaded Square #2</name>
</part>
<part id="Shape04">
<name>Rectangle</name>
</part>
<part id="Shape05">
<name>Shaded Rectangle #1</name>
</part>
<part id="Shape06">
<name>Shaded Rectangle #2</name>
</part>
<part id="Shape07">
<name>Rectangle (Long)</name>
</part>
<part id="Shape08">
<name>Shaded Rectangle (Long) #1</name>
</part>
<part id="Shape09">
<name>Shaded Rectangle (Long) #2</name>
</part>
<part id="Shape10">
<name>Circle</name>
</part>
<part id="Shape11">
<name>Shaded Circle #1</name>
</part>
<part id="Shape12">
<name>Shaded Circle #2</name>
</part>
<part id="Shape13">
<name>Shaded Circle #3</name>
</part>
<part id="Shape14">
<name>Shaded Triangle #1</name>
</part>
<part id="Shape15">
<name>Triangle</name>
</part>
<part id="Shape16">
<name>Shaded Triangle #2</name>
</part>
<part id="Shape17">
<name>Shaded Triangle #3</name>
</part>
<part id="Shape18">
<name>Triangle #2</name>
</part>
<part id="Shape19">
<name>Shaded Triangle #4</name>
</part>
<part id="Shape20">
<name>Shaded Triangle #5</name>
</part>
<part id="Shape21">
<name>Shaded Triangle #6</name>
</part>
<!-- i:guns -->
<part id="M4" type="group">
<name>M4</name>
<manufacturer>Colt Defense</manufacturer>
<length>838 mm</length>
<weight>2.7 kg</weight>
<velocity>880 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>700-950 rounds/min</rof>
</part>
<part id="M4CQBR" type="group">
<name>M4 CQBR</name>
<manufacturer>Colt Defense</manufacturer>
<length>666 mm</length>
<weight>2.7 kg</weight>
<velocity>800 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof></rof>
</part>
<part id="M4A1" type="group">
<name>M4A1 SOPMOD</name>
<manufacturer>Colt Defense</manufacturer>
<length>838 mm</length>
<weight>3 kg</weight>
<velocity>880 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>700-950 rounds/min</rof>
</part>
<part id="M16VN" type="group">
<name>M16A1</name>
<manufacturer>Colt Defense</manufacturer>
<length>989 mm</length>
<weight>3.4 kg</weight>
<velocity>975 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>700 rounds/min</rof>
</part>
<part id="M16A2" type="group">
<name>M16A2</name>
<manufacturer>Colt Defense</manufacturer>
<length>1005 mm</length>
<weight>3.5 kg</weight>
<velocity>930 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>700 rounds/min</rof>
</part>
<part id="M16A4" type="group">
<name>M16A4 MWS</name>
<manufacturer>Colt Defense</manufacturer>
<length>1005 mm</length>
<weight>3.4 kg</weight>
<velocity>948 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>700 rounds/min</rof>
</part>
<part id="CAR15" type="group">
<name>CAR-15</name>
<manufacturer>Colt Defense</manufacturer>
<length>826 mm</length>
<weight>2.36 kg</weight>
<velocity>838 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>900 rounds/min</rof>
</part>
<part id="AKM" type="group">
<name>AKM</name>
<manufacturer>Izhmash</manufacturer>
<length>880 mm</length>
<weight>3.1 kg</weight>
<velocity>715 m/s</velocity>
<caliber>7.62x39mm</caliber>
<rof>600 rounds/min</rof>
</part>
<part id="AK74" type="group">
<name>AK74</name>
<manufacturer>Izhmash</manufacturer>
<length>943 mm</length>
<weight>3.03 kg</weight>
<velocity>900 m/s</velocity>
<caliber>5.45x39mm</caliber>
<rof>650 rounds/min</rof>
</part>
<part id="AKS74U" type="group">
<name>AKS74U</name>
<manufacturer>Izhmash</manufacturer>
<length>735 mm</length>
<weight>2.5 kg</weight>
<velocity>735 m/s</velocity>
<caliber>5.45x39mm</caliber>
<rof>650-735 rounds/min</rof>
</part>
<part id="SVD" type="group">
<name>Dragunov SVD</name>
<manufacturer>Izhmash</manufacturer>
<length>1225 mm</length>
<weight>4.3 kg</weight>
<velocity>830 m/s</velocity>
<caliber>7.62x54mm</caliber>
<rof></rof>
</part>
<part id="SVDS" type="group">
<name>Dragunov SVD</name>
<manufacturer>Izhmash</manufacturer>
<length>1135 mm</length>
<weight>4.68 kg</weight>
<velocity>830 m/s</velocity>
<caliber>7.62x54mm</caliber>
<rof></rof>
</part>
<part id="SR25" type="group">
<name>SR25</name>
<manufacturer>KAC</manufacturer>
<length>1118 mm</length>
<weight>4.88 kg</weight>
<velocity></velocity>
<caliber>7.62x51mm</caliber>
<rof></rof>
</part>
<part id="SCARH" type="group">
<name>SCAR-H</name>
<manufacturer>FNH</manufacturer>
<length>997 mm</length>
<weight>3.58 kg</weight>
<velocity>802 m/s</velocity>
<caliber>7.62x51mm</caliber>
<rof>625 rounds/min</rof>
</part>
<part id="SCARL" type="group">
<name>SCAR-L</name>
<manufacturer>FNH</manufacturer>
<length>850 mm</length>
<weight>3.29 kg</weight>
<velocity>875 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>625 rounds/min</rof>
</part>
<part id="Barrett98B" type="group">
<name>98 Bravo</name>
<manufacturer>Barrett</manufacturer>
<length>1263 mm</length>
<weight>6.12 kg</weight>
<velocity>945 m/s</velocity>
<caliber>.338 Lapua Magnum</caliber>
<rof></rof>
</part>
<part id="HK416" type="group">
<name>HK416</name>
<manufacturer>H&K</manufacturer>
<length>900 mm</length>
<weight>3.4 kg</weight>
<velocity></velocity>
<caliber>5.56x45mm</caliber>
<rof>850 rounds/min</rof>
</part>
<part id="HK417" type="group">
<name>HK417</name>
<manufacturer>H&K</manufacturer>
<length>885 mm</length>
<weight>3.87 kg</weight>
<velocity>709 m/s</velocity>
<caliber>7.62x51mm</caliber>
<rof>600 rounds/min</rof>
</part>
<part id="M200" type="group">
<name>M200</name>
<manufacturer>Cheytac LLC</manufacturer>
<length>1346 mm</length>
<weight>14 kg</weight>
<velocity></velocity>
<caliber>.408/.375</caliber>
<rof></rof>
</part>
<part id="MP5A2" type="group">
<name>MP5A2</name>
<manufacturer>H&K</manufacturer>
<length>680 mm</length>
<weight>2.56 kg</weight>
<velocity>400 m/s</velocity>
<caliber>9x19mm</caliber>
<rof>800 rounds/min</rof>
</part>
<part id="MP5A3" type="group">
<name>MP5A3</name>
<manufacturer>H&K</manufacturer>
<length>550 mm</length>
<weight>3.08 kg</weight>
<velocity>400 m/s</velocity>
<caliber>9x19mm</caliber>
<rof>800 rounds/min</rof>
</part>
<part id="MP5SD" type="group">
<name>MP5SD3</name>
<manufacturer>H&K</manufacturer>
<length>805 mm</length>
<weight>3.60 kg</weight>
<velocity>285 m/s</velocity>
<caliber>9x19mm</caliber>
<rof>700 rounds/min</rof>
</part>
<part id="MP5K" type="group">
<name>MP5K</name>
<manufacturer>H&K</manufacturer>
<length>325 mm</length>
<weight>2 kg</weight>
<velocity>375 m/s</velocity>
<caliber>9x19mm</caliber>
<rof>900 rounds/min</rof>
</part>
<part id="MP5PDW" type="group">
<name>MP5-PDW</name>
<manufacturer>H&K</manufacturer>
<length>603 mm</length>
<weight>2.78 kg</weight>
<velocity>375 m/s</velocity>
<caliber>9x19mm</caliber>
<rof>900 rounds/min</rof>
</part>
<part id="ACR" type="group">
<name>ACR</name>
<manufacturer>Bushmaster</manufacturer>
<length></length>
<weight>3 kg</weight>
<velocity>792-990 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>800 rounds/min</rof>
</part>
<part id="ACR_R" type="group">
<name>ACR</name>
<manufacturer>Bushmaster</manufacturer>
<length></length>
<weight>3 kg</weight>
<velocity>792-990 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>800 rounds/min</rof>
</part>
<part id="F2000Tactical" type="group">
<name>F2000 Tactical</name>
<manufacturer>FNH</manufacturer>
<length>690 mm</length>
<weight>3.6 kg</weight>
<velocity>900 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>850 rounds/min</rof>
</part>
<part id="F2000" type="group">
<name>F2000</name>
<manufacturer>FNH</manufacturer>
<length>690 mm</length>
<weight>3.8 kg</weight>
<velocity>900 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>850 rounds/min</rof>
</part>
<part id="SPR" type="group">
<name>Mk.12 SPR</name>
<manufacturer>Colt</manufacturer>
<length>952 mm</length>
<weight>4.5 kg</weight>
<velocity>930 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof></rof>
</part>
<part id="G36" type="group">
<name>G36</name>
<manufacturer>H&K</manufacturer>
<length>999 mm</length>
<weight>3.63 kg</weight>
<velocity>920 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>750</rof>
</part>
<part id="G36K" type="group">
<name>G36</name>
<manufacturer>H&K</manufacturer>
<length>860 mm</length>
<weight>3.3 kg</weight>
<velocity>850 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>750</rof>
</part>
<part id="G36C" type="group">
<name>G36</name>
<manufacturer>H&K</manufacturer>
<length>720 mm</length>
<weight>2.82 kg</weight>
<velocity></velocity>
<caliber>5.56x45mm</caliber>
<rof>750</rof>
</part>
<part id="AUGA2Scope" type="group">
<name>AUG A2</name>
<manufacturer>Steyr</manufacturer>
<length>790 mm</length>
<weight>3.6 kg</weight>
<velocity>970 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>680-750</rof>
</part>
<part id="AUGA2" type="group">
<name>AUG A2</name>
<manufacturer>Steyr</manufacturer>
<length>790 mm</length>
<weight>3.6 kg</weight>
<velocity>970 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>680-750</rof>
</part>
<part id="AUGA3" type="group">
<name>AUG A2</name>
<manufacturer>Steyr</manufacturer>
<length>690 mm</length>
<weight>3.3 kg</weight>
<velocity>970 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>680-750</rof>
</part>
<part id="AUGPara" type="group">
<name>AUG Para</name>
<manufacturer>Steyr</manufacturer>
<length>665 mm</length>
<weight>3.2 kg</weight>
<velocity>970 m/s</velocity>
<caliber>9x19mm</caliber>
<rof>680-750</rof>
</part>
<part id="M14" type="group">
<name>M14</name>
<manufacturer>Springfield</manufacturer>
<length>1,181 mm</length>
<weight>5.2 kg</weight>
<velocity>850 m/s</velocity>
<caliber>7.62x51mm</caliber>
<rof>700-750</rof>
</part>
<part id="M14Preset2" type="group">
<name>M14</name>
<manufacturer>Springfield</manufacturer>
<length>1,181 mm</length>
<weight>5.1 kg</weight>
<velocity>850 m/s</velocity>
<caliber>7.62x51mm</caliber>
<rof>700-750</rof>
</part>
<part id="Mk14Mod0" type="group">
<name>Mk. 14 Mod 0</name>
<manufacturer>Springfield</manufacturer>
<length>889 mm</length>
<weight>5.1 kg</weight>
<velocity>975 m/s</velocity>
<caliber>7.62x51mm</caliber>
<rof>700-750</rof>
</part>
<part id="Mk14Mod1" type="group">
<name>Mk. 14 Mod 1</name>
<manufacturer>Springfield</manufacturer>
<length>965 mm</length>
<weight>5.1 kg</weight>
<velocity>975 m/s</velocity>
<caliber>7.62x51mm</caliber>
<rof>700-750</rof>
</part>
<part id="M249SAW" type="group">
<name>M249 SAW</name>
<manufacturer>FNH</manufacturer>
<length>1041 mm</length>
<weight>7.1 kg</weight>
<velocity>915 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>750-1000</rof>
</part>
<part id="Mk46" type="group">
<name>Mk. 46</name>
<manufacturer>FNH</manufacturer>
<length>762 mm</length>
<weight>5.75 kg</weight>
<velocity>915 m/s</velocity>
<caliber>5.56x45mm</caliber>
<rof>750-1000</rof>
</part>
<part id="TestGun" type="group">
<name>Test</name>
<manufacturer></manufacturer>
<length></length>
<weight></weight>
<velocity></velocity>
<caliber></caliber>
<rof></rof>
</part>
</list>
;
public static function Initialize():void{
var _local1:*;
var _local2:*;
for each (_local1 in xml.children()) {
_local2 = _local1.attribute("id").toString();
list[_local2] = _local1;
};
}
}
}//package GameData
Section 48
//PartList (GameData.PartList)
package GameData {
public class PartList {
public static var xml:XML = <list>
<category name="All"/>
<category name="Receivers">
<subcat name="Upper">
<part id="UReceiver002"/>
<part id="UReceiver001"/>
<part id="UReceiver003"/>
<part id="UReceiver007"/>
<part id="UReceiver011"/>
<part id="UReceiver012"/>
<part id="UReceiver013"/>
<part id="UReceiver015"/>
<part id="UReceiver016"/>
<part id="UReceiver004"/>
<part id="UReceiver005"/>
<part id="UReceiver006"/>
<part id="UReceiver008"/>
<part id="UReceiver009"/>
<part id="UReceiver010"/>
<part id="UReceiver014"/>
<part id="UReceiver017"/>
<part id="UReceiver018"/>
<part id="UReceiver019"/>
<part id="UReceiver020"/>
<part id="UReceiver021"/>
<part id="UReceiver022"/>
<part id="UReceiver023"/>
<part id="UReceiver024"/>
<part id="UReceiver025"/>
<part id="UReceiver026"/>
<part id="UReceiver027"/>
<part id="UReceiver028"/>
</subcat>
<subcat name="Lower">
<part id="LReceiver001"/>
<part id="LReceiver010"/>
<part id="LReceiver011"/>
<part id="LReceiver002"/>
<part id="LReceiver003"/>
<part id="LReceiver004"/>
<part id="LReceiver005"/>
<part id="LReceiver006"/>
<part id="LReceiver007"/>
<part id="LReceiver008"/>
<part id="LReceiver009"/>
<part id="LReceiver012"/>
<part id="LReceiver013"/>
<part id="LReceiver014"/>
<part id="LReceiver015"/>
<part id="LReceiver016"/>
<part id="LReceiver017"/>
<part id="LReceiver018A"/>
<part id="LReceiver018B"/>
<part id="LReceiver019"/>
<part id="LReceiver020"/>
<part id="LReceiver021"/>
<part id="LReceiver022"/>
<part id="LReceiver023"/>
<part id="LReceiver024"/>
<part id="LReceiver025"/>
</subcat>
<subcat name="Complete">
<part id="CReceiver001"/>
<part id="CReceiver002"/>
<part id="CReceiver003"/>
<part id="CReceiver008"/>
<part id="CReceiver012"/>
<part id="CReceiver013"/>
<part id="CReceiver004"/>
<part id="CReceiver005"/>
<part id="CReceiver015"/>
<part id="CReceiver006"/>
<part id="CReceiver007"/>
<part id="CReceiver009"/>
<part id="CReceiver010"/>
<part id="CReceiver011"/>
<part id="CReceiver014"/>
<part id="CReceiver016"/>
<part id="CReceiver017"/>
<part id="CReceiver018"/>
<part id="CReceiver019"/>
<part id="CReceiver020"/>
</subcat>
<subcat name="Bolts">
<part id="Bolt001"/>
<part id="Bolt004"/>
<part id="Bolt002"/>
<part id="Bolt003"/>
<part id="Bolt005"/>
<part id="Bolt006"/>
<part id="Bolt007"/>
<part id="Bolt008"/>
<part id="Bolt009"/>
<part id="Bolt010"/>
<part id="Bolt011"/>
<part id="Bolt012"/>
<part id="Bolt013"/>
<part id="Bolt014"/>
<part id="Bolt015"/>
<part id="Bolt016"/>
</subcat>
<subcat name="Etc.">
<part id="DustCover01"/>
<part id="DustCover02"/>
<part id="DustCover03"/>
<part id="DeltaRing01"/>
<part id="DeltaRing03"/>
<part id="DeltaRing02"/>
<part id="DeltaRing04"/>
<part id="DeltaRing05"/>
<part id="Bolt007B"/>
<part id="Bolt010B"/>
<part id="Bolt011B"/>
<part id="ChamberLid01"/>
<part id="ScopeCover01"/>
<part id="MagAdapter01"/>
<part id="TriggerAsm01"/>
<part id="TriggerAsm02"/>
<part id="StockBase01"/>
<part id="CarryingHandle01A"/>
<part id="CarryingHandle01B"/>
<part id="ChargingHandle01"/>
</subcat>
</category>
<category name="Barrels">
<!--<subcat name="Pistol Barrels">
</subcat>-->
<subcat name="Rifle Barrels">
<part id="Barrel019"/>
<part id="Barrel002"/>
<part id="Barrel001"/>
<part id="Barrel003"/>
<part id="Barrel004"/>
<part id="Barrel005"/>
<part id="Barrel012"/>
<part id="Barrel010"/>
<part id="Barrel011"/>
<part id="Barrel031"/>
<part id="Barrel013"/>
<part id="Barrel014"/>
<part id="Barrel015"/>
<part id="Barrel016"/>
<part id="Barrel006"/>
<part id="Barrel007"/>
<part id="Barrel008"/>
<part id="Barrel022"/>
<part id="Barrel024"/>
<part id="Barrel025"/>
<part id="Barrel026"/>
<part id="Barrel027"/>
<part id="Barrel028"/>
<part id="Barrel029"/>
<part id="Barrel030"/>
<part id="Barrel009"/>
<part id="Barrel020"/>
<part id="Barrel021"/>
<part id="Barrel023"/>
<part id="Barrel032"/>
<part id="Barrel033"/>
<part id="Barrel034"/>
<part id="Barrel035"/>
<part id="Barrel036"/>
<part id="Barrel037"/>
<part id="Barrel038"/>
<part id="Barrel039"/>
<part id="Barrel040"/>
<part id="Barrel041"/>
</subcat>
<subcat name="Flash Hiders">
<part id="FlashHider001"/>
<part id="FlashHider009"/>
<part id="FlashHider006"/>
<part id="FlashHider010"/>
<part id="FlashHider002"/>
<part id="FlashHider008"/>
<part id="FlashHider007"/>
<part id="FlashHider003"/>
<part id="FlashHider004"/>
<part id="FlashHider005"/>
<part id="FlashHider012"/>
<part id="FlashHider011"/>
<part id="FlashHider013"/>
<part id="FlashHider014"/>
<part id="FlashHider015"/>
<part id="FlashHider016"/>
<part id="FlashHider017"/>
<part id="FlashHider018"/>
<part id="FlashHider019"/>
</subcat>
<subcat name="Compensators">
<part id="Compensator001"/>
<part id="Compensator002"/>
<part id="Compensator003"/>
<part id="Compensator004"/>
<part id="Compensator005"/>
</subcat>
<subcat name="Silencers">
<part id="Silencer01"/>
<part id="Silencer02"/>
<part id="Silencer03"/>
<part id="Silencer04"/>
<part id="Silencer05"/>
<part id="Silencer06"/>
<part id="Silencer07"/>
<!--<part id="Silencer08"/>-->
</subcat>
<subcat name="Gas Blocks">
<part id="GasBlock01"/>
<part id="GasBlock03"/>
<part id="GasBlock02"/>
<part id="GasBlock04"/>
<part id="GasBlock05"/>
<part id="GasBlock06"/>
<part id="GasBlock07"/>
<part id="GasBlock08"/>
<part id="GasBlock09"/>
<part id="GasBlock10"/>
<part id="GasBlock11"/>
<part id="GasBlock12"/>
<part id="GasBlock12A"/>
<part id="GasBlock12B"/>
<part id="GasBlock13"/>
<part id="GasBlock14"/>
</subcat>
<subcat name="Gas Tubes">
<part id="GasTube01"/>
<part id="GasTube02"/>
<part id="GasTube06"/>
<part id="GasTube03"/>
<part id="GasTube04"/>
<part id="GasTube05"/>
<part id="GasTube07"/>
<part id="GasTube08"/>
<part id="GasTube09"/>
<part id="GasTube10"/>
<part id="GasTube11"/>
<part id="GasTube13A"/>
<part id="GasTube13B"/>
<part id="GasTube14"/>
</subcat>
</category>
<category name="Stocks">
<subcat name="Fixed">
<part id="FStock01"/>
<part id="FStock08"/>
<part id="FStock02"/>
<part id="FStock03"/>
<part id="FStock06"/>
<part id="FStock04"/>
<part id="FStock05"/>
<part id="FStock07"/>
<part id="FStock09"/>
</subcat>
<subcat name="Collapsible">
<part id="CStock04"/>
<part id="CStock01"/>
<part id="CStock03"/>
<part id="CStock02"/>
<part id="CStock10"/>
<part id="CStock13"/>
<part id="CStock06S"/>
<part id="CStock06L"/>
<part id="CStock05"/>
<part id="CStock07"/>
<part id="CStock08"/>
<part id="CStock11"/>
<part id="CStock12"/>
<part id="CStock14"/>
<part id="CStock15"/>
<part id="CStock16"/>
</subcat>
<subcat name="Adjustable">
<part id="AStock01"/>
<part id="AStock04"/>
<part id="AStock05"/>
<part id="AStock02"/>
<part id="AStock03"/>
<part id="AStock06"/>
</subcat>
<subcat name="Folding">
<part id="OStock01"/>
<part id="OStock02"/>
<part id="OStock03"/>
<part id="OStock04"/>
<part id="OStock05"/>
<part id="OStock06"/>
<part id="OStock07"/>
<part id="OStock08"/>
</subcat>
<subcat name="Cheek Rests">
<part id="CheekRest01"/>
<part id="CheekRest02"/>
<part id="CheekRest03"/>
</subcat>
<subcat name="Etc.">
<part id="BufferTube01"/>
<part id="BufferTube03"/>
<part id="BufferTube02"/>
<part id="BufferTube04"/>
<part id="Monopod01"/>
<part id="Buttplate01"/>
</subcat>
</category>
<category name="Sights & Scopes">
<subcat name="Iron Sights">
<part id="ISight004"/>
<part id="ISight031"/>
<part id="ISight033"/>
<part id="ISight028"/>
<part id="ISight029"/>
<part id="ISight032"/>
<part id="ISight007"/>
<part id="ISight008"/>
<part id="ISight009"/>
<part id="ISight017"/>
<part id="ISight010"/>
<part id="ISight011"/>
<part id="ISight016"/>
<part id="ISight018"/>
<part id="ISight020"/>
<part id="ISight019"/>
<part id="ISight021"/>
<part id="ISight022"/>
<part id="ISight005"/>
<part id="ISight012"/>
<part id="ISight006"/>
<part id="ISight013"/>
<part id="ISight015"/>
<part id="ISight014"/>
<part id="ISight023"/>
<part id="ISight025"/>
<part id="ISight024"/>
<part id="ISight026"/>
<part id="ISight027"/>
<part id="ISight030"/>
<part id="ISight001"/>
<part id="ISight002"/>
<part id="ISight003"/>
<part id="ISight034"/>
<part id="ISight035"/>
<part id="ISight036"/>
<part id="ISight037"/>
<part id="ISight038"/>
<part id="ISight039"/>
<part id="ISight040"/>
<part id="ISight041"/>
</subcat>
<subcat name="Red Dots">
<part id="RedDot001"/>
<part id="RedDot002"/>
<part id="RedDot003"/>
<part id="RedDot004"/>
<part id="RedDot005"/>
<part id="RedDot006"/>
<part id="RedDot007"/>
<part id="RedDot008"/>
<part id="RedDot009"/>
</subcat>
<subcat name="Holo Sights">
<part id="Holo001"/>
<part id="Holo002"/>
<part id="Holo003"/>
<part id="Holo005"/>
<part id="Holo006"/>
<part id="Holo007"/>
<part id="Holo008"/>
</subcat>
<subcat name="Scopes">
<part id="Magnifier001"/>
<part id="Magnifier002"/>
<part id="Magnifier003"/>
<part id="Scope001"/>
<part id="Scope002"/>
<part id="Scope003"/>
<part id="Scope004"/>
<part id="Scope005" size="2"/>
<part id="Scope006" size="2"/>
<part id="Scope007" size="2"/>
<part id="Scope008"/>
<part id="Scope009"/>
<part id="Scope010"/>
<part id="Scope011"/>
<part id="Scope012"/>
<part id="Scope013"/>
<part id="Scope014"/>
<part id="Scope015"/>
<part id="Scope016"/>
</subcat>
</category>
<category name="Grips">
<subcat name="Foregrips">
<part id="Foregrip001"/>
<part id="Foregrip002"/>
<part id="Foregrip003"/>
<part id="Foregrip004"/>
<part id="Foregrip006"/>
<part id="Foregrip007"/>
<part id="Foregrip008"/>
<part id="Foregrip005"/>
<part id="Foregrip010"/>
<part id="Foregrip011"/>
<part id="Foregrip012"/>
<part id="Foregrip009"/>
<part id="Foregrip013"/>
<part id="Foregrip014"/>
<part id="Foregrip015"/>
</subcat>
<subcat name="Pistol Grips">
<part id="PGrip001"/>
<part id="PGrip003"/>
<part id="PGrip006"/>
<part id="PGrip007"/>
<part id="PGrip008"/>
<part id="PGrip009"/>
<part id="PGrip010"/>
<part id="PGrip004"/>
<part id="PGrip002"/>
<part id="PGrip005"/>
<part id="PGrip011"/>
<part id="PGrip012"/>
</subcat>
<subcat name="Handguards">
<part id="Handguard001" size="2"/>
<part id="Handguard020" size="2"/>
<part id="Handguard021" size="2"/>
<part id="Handguard002"/>
<part id="Handguard022"/>
<part id="Handguard003"/>
<part id="Handguard018"/>
<part id="Handguard019" size="2"/>
<part id="Handguard015"/>
<part id="Handguard016"/>
<part id="Handguard004"/>
<part id="Handguard005"/>
<part id="Handguard006"/>
<part id="Handguard007"/>
<part id="Handguard008"/>
<part id="Handguard009"/>
<part id="Handguard010"/>
<part id="Handguard011"/>
<part id="Handguard012"/>
<part id="Handguard013"/>
<part id="Handguard014"/>
<part id="Handguard017"/>
<part id="Handguard023"/>
<part id="Handguard024"/>
<part id="Handguard025"/>
<part id="Handguard026"/>
<part id="Handguard027"/>
<part id="Handguard028"/>
<part id="Handguard029"/>
</subcat>
<!--<subcat name="Carrying Handles">
</subcat>-->
</category>
<category name="Rails">
<subcat name="RIS">
<part id="RIS001"/>
<part id="RIS002"/>
<part id="RIS003"/>
<part id="RIS004"/>
<part id="RIS025"/>
<part id="RIS007"/>
<part id="RIS008"/>
<part id="RIS009"/>
<part id="RIS012"/>
<part id="RIS013"/>
<part id="RIS014"/>
<part id="RIS015"/>
<part id="RIS017"/>
<part id="RIS019"/>
<part id="RIS018"/>
<part id="RIS024"/>
<part id="RIS005"/>
<part id="RIS006"/>
<part id="RIS021"/>
<part id="RIS022"/>
<part id="RIS023"/>
<part id="RIS016"/>
<part id="RIS020"/>
<part id="RIS010"/>
<part id="RIS026"/>
<part id="RIS027"/>
<part id="RIS028"/>
<part id="RIS029"/>
<part id="RIS030"/>
<part id="RIS031"/>
<part id="RIS032"/>
<part id="RIS033"/>
<part id="RIS034"/>
<part id="RIS035"/>
<part id="RIS036"/>
<part id="RIS037"/>
<part id="RIS038"/>
<part id="RIS039"/>
</subcat>
<subcat name="Rail Covers">
<part id="RCover02"/>
<part id="RCover03"/>
<part id="RCover04"/>
<part id="RCover05"/>
<part id="RCover01"/>
<part id="RCover06"/>
<part id="RCover07"/>
<part id="RCover08"/>
<part id="RCover09"/>
<part id="RCover10"/>
<part id="RCover11"/>
<part id="RCover12"/>
</subcat>
<subcat name="Mounts & Rings">
<part id="RMount001"/>
<part id="RMount002"/>
<part id="RMount003"/>
<part id="RMount004"/>
<part id="RMount013"/>
<part id="RMount005"/>
<part id="RMount008"/>
<part id="RMount006"/>
<part id="RMount007"/>
<part id="RMount008"/>
<part id="RMount009"/>
<part id="RMount010"/>
<part id="RMount011"/>
<part id="RMount012"/>
<part id="RMount014"/>
<part id="RMount015"/>
<part id="RMount016"/>
</subcat>
</category>
<category name="Electronics">
<part id="Laser001"/>
<part id="Laser002U"/>
<part id="Laser002D"/>
<part id="Laser002S"/>
<part id="Flashlight02"/>
<part id="Flashlight01"/>
<part id="Flashlight03"/>
</category>
<category name="Magazines">
<subcat name="Box Magazines">
<part id="RMag001"/>
<part id="RMag002"/>
<part id="RMag003"/>
<part id="RMag003F"/>
<part id="RMag010"/>
<part id="RMag011"/>
<part id="RMag012"/>
<part id="RMag013"/>
<part id="RMag013F"/>
<part id="RMag014"/>
<part id="RMag008"/>
<part id="RMag009"/>
<part id="RMag004"/>
<part id="RMag005"/>
<part id="RMag006"/>
<part id="RMag007"/>
<part id="RMag015"/>
<!--<part id="RMag016"/>-->
<part id="RMag017"/>
<part id="RMag018"/>
<part id="RMag018F"/>
<part id="RMag019"/>
<part id="RMag020"/>
<part id="RMag021"/>
<part id="RMag022"/>
<part id="RMag023"/>
<part id="RMag024"/>
<part id="RMag025"/>
</subcat>
<subcat name="Etc.">
<part id="MagAcc01"/>
<part id="MagAcc02"/>
<part id="MagAcc03"/>
<part id="MagAcc04"/>
</subcat>
</category>
<category name="Grenade Launchers">
<part id="GL01BS"/>
<part id="GL01BL"/>
<part id="GL01RS"/>
<part id="GL01RL"/>
<part id="GL02"/>
<!--<part id="GL04"/>-->
<part id="GL03H"/>
<part id="GL03L"/>
<part id="GL03S"/>
<part id="GL05"/>
<part id="EGLM"/>
</category>
<category name="Bayonets">
<part id="Bayonet01"/>
<part id="Bayonet02"/>
<part id="Bayonet03"/>
<part id="Bayonet04"/>
<part id="Bayonet05"/>
<part id="Bayonet06"/>
</category>
<category name="Bipods">
<part id="Bipod01"/>
<part id="Bipod02"/>
<part id="Bipod03"/>
</category>
<category name="Etc.">
<subcat name="Ammunition">
<part id="AmmoBelt01"/>
<part id="Ammo57x28mmC"/>
<part id="Ammo762x25mmC"/>
<part id="Ammo9x19mmC"/>
<part id="Ammo40CalC"/>
<part id="Ammo357MagnumC"/>
<part id="Ammo44MagnumC"/>
<part id="Ammo45ACPC"/>
<part id="Ammo50AECalC"/>
<part id="Ammo556mmC"/>
<part id="Ammo762x39mmC"/>
<part id="Ammo762x45mmC"/>
<part id="Ammo762x51mmC"/>
<part id="Ammo762x54mmC"/>
<part id="Ammo50CalC"/>
<part id="Gren40mm01"/>
<part id="Gren40mm02"/>
<part id="Gren40mm03"/>
<part id="Gren40mm04"/>
<part id="Gren30mm01"/>
<part id="Ammo6mmBB"/>
</subcat>
<subcat name="Effects">
<part id="MuzzleFlash01"/>
<part id="MuzzleFlash02"/>
<part id="MuzzleFlash03"/>
<part id="Strips"/>
</subcat>
<subcat name="Shapes">
<part id="Shape01"/>
<part id="Shape02"/>
<part id="Shape03"/>
<part id="Shape04"/>
<part id="Shape05"/>
<part id="Shape06"/>
<part id="Shape07"/>
<part id="Shape08"/>
<part id="Shape09"/>
<part id="Shape10"/>
<part id="Shape11"/>
<part id="Shape12"/>
<part id="Shape13"/>
<part id="Shape14"/>
<part id="Shape15"/>
<part id="Shape16"/>
<part id="Shape17"/>
<part id="Shape18"/>
<part id="Shape19"/>
<part id="Shape20"/>
<part id="Shape21"/>
</subcat>
</category>
<!--
<category name="">
<subcat name="">
</subcat>
</category>
-->
</list>
;
}
}//package GameData
Section 49
//SelectEvent (GameEvents.SelectEvent)
package GameEvents {
import flash.events.*;
public class SelectEvent extends Event {
public var data:String;
public static const PROP_UPDATE_REQ:String = "PropertiesUpdateRequest";
public static const CATEGORY_CLICK:String = "CategoryClick";
public static const FILE_MENU_CLICK:String = "FileMenuClick";
public static const COLOR_CHANGE:String = "ColorChanged";
public static const COLOR_CLICK:String = "ColorClick";
public static const PART_CLICK_NO_RESET:String = "PartClickNoReset";
public static const PART_CLICK:String = "PartClick";
public static const TOOL_KEY:String = "ToolHotkeyPress";
public function SelectEvent(_arg1:String, _arg2:String, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg2, _arg3, _arg4);
data = _arg1;
}
}
}//package GameEvents
Section 50
//CategoryScroller_55 (secretmain_fla.CategoryScroller_55)
package secretmain_fla {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import GameData.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class CategoryScroller_55 extends MovieClip {
public var btnRight:SimpleButton;
public var btnLeft:SimpleButton;
public var mcContainer:MovieClip;
public var mcMask:MovieClip;
public function CategoryScroller_55(){
addFrameScript(0, frame1);
}
public function MouseOverHandler(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop("Over");
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_WHEEL, MouseWheelHandler);
btnLeft.addEventListener(MouseEvent.CLICK, ScrollHandler);
btnRight.addEventListener(MouseEvent.CLICK, ScrollHandler);
}
public function MouseDownHandler(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop("Down");
}
public function MouseOutHandler(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop("Out");
}
public function SelectHandler(_arg1:MouseEvent):void{
dispatchEvent(new SelectEvent(_arg1.currentTarget.txtCaption.text, SelectEvent.CATEGORY_CLICK));
}
public function ScrollHandler(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Tween;
var _local4:Number;
var _local5:Tween;
if (_arg1.currentTarget == btnLeft){
if (mcContainer.x < mcMask.x){
_local2 = (((mcMask.x - mcContainer.x))>=Consts.ScrollSpeed) ? Consts.ScrollSpeed : (mcMask.x - mcContainer.x);
_local3 = new Tween(mcContainer, "x", Regular.easeOut, mcContainer.x, (mcContainer.x + _local2), Consts.ScrollTime);
_local3.start();
};
} else {
if (_arg1.currentTarget == btnRight){
if ((mcContainer.x + mcContainer.width) > (mcMask.x + mcMask.width)){
_local4 = ((((mcContainer.x + mcContainer.width) - (mcMask.x + mcMask.width)))>=Consts.ScrollSpeed) ? Consts.ScrollSpeed : ((mcContainer.x + mcContainer.width) - (mcMask.x + mcMask.width));
_local5 = new Tween(mcContainer, "x", Regular.easeOut, mcContainer.x, (mcContainer.x - _local4), Consts.ScrollTime);
_local5.start();
};
};
};
}
public function MouseWheelHandler(_arg1:MouseEvent):void{
if (_arg1.delta > 0){
btnLeft.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
} else {
btnRight.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
public function Initialize(_arg1:XMLList):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:XML;
var _local6:DynamicCategoryButton;
mcContainer.x = mcMask.x;
_local2 = (mcContainer.numChildren - 1);
while (_local2 >= 0) {
mcContainer.removeChildAt(_local2);
_local2--;
};
_local3 = 0;
_local4 = 0;
while (_local4 < _arg1.length()) {
_local5 = _arg1[_local4];
_local6 = new DynamicCategoryButton();
_local6.txtCaption.text = _local5.attribute("name");
_local6.cacheAsBitmap = true;
_local6.width = (_local6.txtCaption.textWidth + 20);
_local3 = (_local3 + (_local6.width / 2));
_local6.x = _local3;
_local6.y = (_local6.height / 2);
_local3 = (_local3 + (_local6.width / 2));
_local6.addEventListener(MouseEvent.MOUSE_OVER, MouseOverHandler);
_local6.addEventListener(MouseEvent.MOUSE_OUT, MouseOutHandler);
_local6.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownHandler);
_local6.addEventListener(MouseEvent.MOUSE_UP, MouseOutHandler);
_local6.addEventListener(MouseEvent.CLICK, SelectHandler);
mcContainer.addChild(_local6);
_local4++;
};
if (_local3 > mcMask.width){
btnLeft.enabled = true;
btnRight.enabled = true;
btnLeft.alpha = 1;
btnRight.alpha = 1;
} else {
btnLeft.enabled = false;
btnRight.enabled = false;
btnLeft.alpha = 0.5;
btnRight.alpha = 0.5;
};
}
}
}//package secretmain_fla
Section 51
//HScrollBar_15 (secretmain_fla.HScrollBar_15)
package secretmain_fla {
import flash.display.*;
public dynamic class HScrollBar_15 extends MovieClip {
public function HScrollBar_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package secretmain_fla
Section 52
//ItemScroller_57 (secretmain_fla.ItemScroller_57)
package secretmain_fla {
import fl.controls.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import GameData.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ItemScroller_57 extends MovieClip {
public var btnUp:SimpleButton;
public var btnDown:SimpleButton;
public var btnSearch:SimpleButton;
public var txtSearch:TextInput;
public var btnClear:SimpleButton;
public var ItemScrollerY:Number;
public var mcContainer:MovieClip;
public var scroller:MovieClip;
public var txtSearchError:TextField;
public var mcMask:MovieClip;
public var grabber:mcGrabber;
public var theXML:XMLList;
public function ItemScroller_57(){
addFrameScript(0, frame1);
}
public function MouseOverHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget.enabled){
_arg1.currentTarget.gotoAndStop("Over");
};
}
function frame1(){
ItemScrollerY = -224.8;
this.addEventListener(MouseEvent.MOUSE_WHEEL, MouseWheelHandler);
btnUp.addEventListener(MouseEvent.CLICK, ScrollHandler);
btnDown.addEventListener(MouseEvent.CLICK, ScrollHandler);
btnClear.addEventListener(MouseEvent.CLICK, ClearSearchHandler);
btnSearch.addEventListener(MouseEvent.CLICK, SearchHandler);
txtSearch.addEventListener(KeyboardEvent.KEY_DOWN, SearchKeyHandler);
scroller.addEventListener(MouseEvent.MOUSE_OVER, MouseOverHandler);
scroller.addEventListener(MouseEvent.MOUSE_OUT, MouseOutHandler);
scroller.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownHandler);
scroller.addEventListener(MouseEvent.MOUSE_DOWN, StartScrollerDrag);
scroller.addEventListener(MouseEvent.MOUSE_UP, MouseOutHandler);
}
public function ClearSearchHandler(_arg1:MouseEvent):void{
txtSearch.text = "";
btnSearch.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
public function SearchHandler(_arg1:MouseEvent):void{
Initialize(theXML);
}
public function MouseDownHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget.enabled){
_arg1.currentTarget.gotoAndStop("Down");
};
}
public function MouseOutHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget.enabled){
_arg1.currentTarget.gotoAndStop("Out");
};
}
public function SelectHandler(_arg1:MouseEvent):void{
dispatchEvent(new SelectEvent(_arg1.currentTarget.itemID, SelectEvent.PART_CLICK));
}
public function ScrollHandler(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Tween;
var _local4:Number;
var _local5:Tween;
if (_arg1.currentTarget == btnUp){
if (mcContainer.y < mcMask.y){
_local2 = (((mcMask.y - mcContainer.y))>=Consts.ScrollSpeed) ? Consts.ScrollSpeed : (mcMask.y - mcContainer.y);
_local3 = new Tween(mcContainer, "y", Regular.easeOut, mcContainer.y, (mcContainer.y + _local2), Consts.ScrollTime);
_local3.start();
RepositionScroller(_arg1);
};
} else {
if (_arg1.currentTarget == btnDown){
if ((mcContainer.y + mcContainer.height) > (mcMask.y + mcMask.height)){
_local4 = ((((mcContainer.y + mcContainer.height) - (mcMask.y + mcMask.height)))>=Consts.ScrollSpeed) ? Consts.ScrollSpeed : ((mcContainer.y + mcContainer.height) - (mcMask.y + mcMask.height));
_local5 = new Tween(mcContainer, "y", Regular.easeOut, mcContainer.y, (mcContainer.y - _local4), Consts.ScrollTime);
_local5.start();
RepositionScroller(_arg1);
};
};
};
}
public function Initialize(_arg1:XMLList):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:XML;
var _local8:String;
var _local9:XML;
var _local10:*;
theXML = _arg1;
ItemScrollerY = -224.8;
mcContainer.y = mcMask.y;
scroller.y = ItemScrollerY;
grabber.y = 9999;
_local2 = (mcContainer.numChildren - 1);
while (_local2 >= 0) {
mcContainer.removeChildAt(_local2);
_local2--;
};
_local3 = 0;
_local4 = 0;
_local5 = 0;
_local6 = 0;
for each (_local7 in _arg1) {
_local6++;
_local8 = _local7.attribute("id");
_local9 = PartDescription.list[_local8];
if (txtSearch.text != ""){
txtSearchError.text = "No parts found.";
if (_local9.toString().toUpperCase().search(txtSearch.text.toUpperCase()) == -1){
continue;
} else {
txtSearchError.text = "";
};
} else {
txtSearchError.text = "";
};
if (_local7.attribute("size").toString() == "2"){
_local10 = new ItemDisplay2();
_local4 = (_local4 + 2);
} else {
if (_local7.attribute("size").toString() == "4"){
_local10 = new ItemDisplay4();
_local4 = (_local4 + 4);
} else {
_local10 = new ItemDisplay();
_local4++;
};
};
if (_local4 > 4){
_local4 = ((_local7.attribute("size").toString())=="") ? 1 : _local7.attribute("size").toString();
_local3 = 0;
_local5++;
};
_local10.Initialize(_local9);
_local10.cacheAsBitmap = true;
_local3 = (_local3 + (_local10.width / 2));
_local10.x = _local3;
_local10.y = ((_local10.height / 2) + ((_local10.height + 10) * _local5));
_local3 = (_local3 + ((_local10.width / 2) + 10));
_local10.addEventListener(MouseEvent.MOUSE_OVER, MouseOverHandler);
_local10.addEventListener(MouseEvent.MOUSE_OUT, MouseOutHandler);
_local10.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownHandler);
_local10.addEventListener(MouseEvent.MOUSE_UP, MouseOutHandler);
_local10.addEventListener(MouseEvent.CLICK, SelectHandler);
mcContainer.addChild(_local10);
if ((((_local4 >= 4)) && ((_local6 < _arg1.children().length())))){
_local4 = 0;
_local3 = 0;
_local5++;
};
};
if (_local5 >= 3){
btnUp.enabled = true;
btnDown.enabled = true;
scroller.enabled = true;
btnUp.alpha = 1;
btnDown.alpha = 1;
scroller.alpha = 1;
} else {
btnUp.enabled = false;
btnDown.enabled = false;
scroller.enabled = false;
btnUp.alpha = 0.5;
btnDown.alpha = 0.5;
scroller.alpha = 0.5;
};
}
public function MouseWheelHandler(_arg1:MouseEvent):void{
if (_arg1.delta > 0){
btnUp.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
} else {
btnDown.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
public function StopScrollerDrag(_arg1:MouseEvent):void{
_arg1.currentTarget.stopDrag();
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_MOVE, ScrollerDragHandler);
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_UP, StopScrollerDrag);
_arg1.currentTarget.y = 9999;
scroller.gotoAndStop("Out");
}
public function SearchKeyHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ENTER){
Initialize(theXML);
};
}
public function ScrollerDragHandler(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
scroller.gotoAndStop("Down");
_local2 = 0;
if ((((_arg1.currentTarget.y >= ItemScrollerY)) && ((_arg1.currentTarget.y <= -(ItemScrollerY))))){
_local2 = _arg1.currentTarget.y;
} else {
if (_arg1.currentTarget.y < ItemScrollerY){
_local2 = ItemScrollerY;
} else {
_local2 = -(ItemScrollerY);
};
};
scroller.y = _local2;
_local3 = ((scroller.y - ItemScrollerY) / (ItemScrollerY * -2));
_local4 = (mcContainer.height - mcMask.height);
mcContainer.y = (mcMask.y + (_local4 * -(_local3)));
}
public function RepositionScroller(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Tween;
_local2 = (mcContainer.height - mcMask.height);
_local3 = (mcMask.y - mcContainer.y);
if (_arg1.currentTarget == btnUp){
_local3 = (_local3 - Consts.ScrollSpeed);
} else {
if (_arg1.currentTarget == btnDown){
_local3 = (_local3 + Consts.ScrollSpeed);
};
};
_local4 = (_local3 / _local2);
if (_local4 < 0){
_local4 = 0;
} else {
if (_local4 > 1){
_local4 = 1;
};
};
_local5 = (((ItemScrollerY * -2) * _local4) + ItemScrollerY);
_local6 = new Tween(scroller, "y", Regular.easeOut, scroller.y, _local5, Consts.ScrollTime);
_local6.start();
}
public function StartScrollerDrag(_arg1:MouseEvent):void{
if (_arg1.currentTarget.enabled){
grabber.addEventListener(MouseEvent.MOUSE_MOVE, ScrollerDragHandler);
grabber.addEventListener(MouseEvent.MOUSE_UP, StopScrollerDrag);
grabber.startDrag(true);
};
}
}
}//package secretmain_fla
Section 53
//MainTimeline (secretmain_fla.MainTimeline)
package secretmain_fla {
import fl.controls.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import fl.motion.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var txtRotation:TextInput;
public var btnDel:SimpleButton;
public var btnScaleDown:MovieClip;
public var btnDuplicate:SimpleButton;
public var btnRotateDown:MovieClip;
public var btnRails:SimpleButton;
public var scrPartBrowser:MovieClip;
public var btnScale:SimpleButton;
public var btnMove:SimpleButton;
public var scrImport:MovieClip;
public var scrExport:MovieClip;
public var btnFlipH:SimpleButton;
public var btnMoveDown:MovieClip;
public var btnFlipV:SimpleButton;
public var btnLayerDown:SimpleButton;
public var scrWorkspace:MovieClip;
public var mcColors:MovieClip;
public var txtScale:TextInput;
public var btnLayerTop:SimpleButton;
public var txtColor:MovieClip;
public var btnRotate:SimpleButton;
public var btnLayerBottom:SimpleButton;
public var scrFileMenu:MovieClip;
public var btnGroup:SimpleButton;
public var scrGunBrowser:MovieClip;
public var btnUngroup:SimpleButton;
public var btnText:SimpleButton;
public var btnLayerUp:SimpleButton;
public var btnParts:SimpleButton;
public var btnFile:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1);
__setProp_txtRotation_Scene1_Menu_1();
__setProp_txtScale_Scene1_Menu_1();
}
public function DisableButton(_arg1):void{
_arg1.enabled = false;
_arg1.alpha = 0.5;
}
public function ItemSelectHandler(_arg1:SelectEvent):void{
scrWorkspace.AddItem(_arg1.data);
}
public function ShowPartBrowser(_arg1:MouseEvent):void{
HideAll();
scrPartBrowser.visible = true;
}
function frame1(){
btnMove.addEventListener(MouseEvent.CLICK, ToolToggleHandler);
btnRotate.addEventListener(MouseEvent.CLICK, ToolToggleHandler);
btnScale.addEventListener(MouseEvent.CLICK, ToolToggleHandler);
btnFile.addEventListener(MouseEvent.CLICK, ToggleFileMenu);
btnParts.addEventListener(MouseEvent.CLICK, ShowPartBrowser);
btnFlipH.addEventListener(MouseEvent.CLICK, FlipHandler);
btnFlipV.addEventListener(MouseEvent.CLICK, FlipHandler);
txtRotation.addEventListener(KeyboardEvent.KEY_DOWN, SetPropertyHandler);
txtScale.addEventListener(KeyboardEvent.KEY_DOWN, SetPropertyHandler);
btnGroup.addEventListener(MouseEvent.CLICK, GroupHandler);
btnUngroup.addEventListener(MouseEvent.CLICK, GroupHandler);
btnDuplicate.addEventListener(MouseEvent.CLICK, DuplicateHandler);
btnLayerTop.addEventListener(MouseEvent.CLICK, LayerHandler);
btnLayerUp.addEventListener(MouseEvent.CLICK, LayerHandler);
btnLayerDown.addEventListener(MouseEvent.CLICK, LayerHandler);
btnLayerBottom.addEventListener(MouseEvent.CLICK, LayerHandler);
btnDel.addEventListener(MouseEvent.CLICK, DeleteHandler);
scrFileMenu.addEventListener(SelectEvent.FILE_MENU_CLICK, MenuClickHandler);
InitMenu();
scrPartBrowser.addEventListener(SelectEvent.PART_CLICK, ItemSelectHandler);
scrGunBrowser.addEventListener(SelectEvent.PART_CLICK, GunSelectHandler);
scrGunBrowser.addEventListener(SelectEvent.PART_CLICK_NO_RESET, GunSelectHandler);
scrWorkspace.addEventListener(SelectEvent.PROP_UPDATE_REQ, UpdatePropertiesHandler);
scrWorkspace.addEventListener(SelectEvent.TOOL_KEY, ToolKeyHandler);
HideAll();
scrPartBrowser.Initialize();
scrWorkspace.Initialize();
PartDescription.Initialize();
convert();
}
public function RefreshProperties():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:Array;
var _local5:Number;
var _local6:*;
var _local7:Array;
var _local8:ColorSelector;
_local4 = new Array();
HandleOptions();
_local5 = (mcColors.numChildren - 1);
while (_local5 >= 0) {
mcColors.getChildAt(_local5).removeEventListener(SelectEvent.COLOR_CHANGE, ColorChangeHandler);
mcColors.getChildAt(_local5).removeEventListener(SelectEvent.COLOR_CLICK, ColorClickHandler);
mcColors.removeChildAt(_local5);
_local5--;
};
if (scrWorkspace.selectedItems.length == 0){
_local3 = "---";
_local2 = "---";
} else {
for each (_local6 in scrWorkspace.selectedItems) {
if (_local2 == null){
_local2 = Math.abs(_local6.scaleX);
} else {
if (_local2 != _local6.scaleX){
_local2 = "---";
};
};
if (_local3 == null){
_local3 = _local6.rotation;
} else {
if (_local3 != _local6.rotation){
_local3 = "---";
};
};
_local7 = _local6.GetColors();
_local1 = 0;
while (_local1 < _local7.length) {
if (_local4[_local1] == null){
_local4.push(_local7[_local1]);
} else {
if (_local4[_local1] != _local7[_local1]){
_local4[_local1] = -1;
};
};
_local1++;
};
};
};
_local1 = 0;
while (_local1 < _local4.length) {
_local8 = new ColorSelector();
_local8.Initialize(_local4[_local1], (_local1 + 1));
_local8.x = (20 * _local1);
_local8.addEventListener(SelectEvent.COLOR_CHANGE, ColorChangeHandler);
_local8.addEventListener(SelectEvent.COLOR_CLICK, ColorClickHandler);
mcColors.addChild(_local8);
_local1++;
};
txtScale.text = ((_local2)!="---") ? (_local2 * 100).toString() : _local2;
txtRotation.text = _local3;
}
public function ToolToggleHandler(_arg1:MouseEvent):void{
btnMove.visible = true;
btnRotate.visible = true;
btnScale.visible = true;
_arg1.currentTarget.visible = false;
Editor.tool = _arg1.currentTarget.name;
}
function __setProp_txtRotation_Scene1_Menu_1(){
try {
txtRotation["componentInspectorSetting"] = true;
} catch(e:Error) {
};
txtRotation.displayAsPassword = false;
txtRotation.editable = true;
txtRotation.enabled = true;
txtRotation.maxChars = 7;
txtRotation.restrict = "-.0-9";
txtRotation.text = "-360";
txtRotation.visible = true;
try {
txtRotation["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function ToggleFileMenu(_arg1:MouseEvent):void{
if (scrFileMenu.visible == false){
scrFileMenu.visible = true;
} else {
scrFileMenu.visible = false;
};
}
public function UpdatePropertiesHandler(_arg1:SelectEvent):void{
RefreshProperties();
}
public function InitMenu():void{
btnMove.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
scrFileMenu.visible = false;
DisableButton(btnRails);
DisableButton(btnText);
txtRotation.text = "---";
txtScale.text = "---";
}
public function EnableButton(_arg1):void{
_arg1.enabled = true;
_arg1.alpha = 1;
}
public function ShowGunBrowser(_arg1:String):void{
HideAll();
scrGunBrowser.Initialize(_arg1);
scrGunBrowser.visible = true;
}
public function LayerHandler(_arg1:MouseEvent):void{
scrWorkspace.LayerItems(_arg1.currentTarget.name.substring("btnLayer".length, _arg1.target.name.length));
}
public function HideAll():void{
scrPartBrowser.visible = false;
scrGunBrowser.visible = false;
scrExport.visible = false;
scrImport.visible = false;
}
public function ColorChangeHandler(_arg1:SelectEvent):void{
var _local2:*;
var _local3:Color;
for each (_local2 in scrWorkspace.selectedItems) {
if (_arg1.currentTarget.colorID <= _local2.GetColors().length){
_local3 = new Color();
_local3.tintColor = new uint(("0x" + _arg1.data));
_local2.SetColor(_arg1.currentTarget.colorID, _local3);
};
};
}
public function DeleteHandler(_arg1:MouseEvent):void{
scrWorkspace.RemoveItems(scrWorkspace.selectedItems);
}
public function SetPropertyHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.ENTER){
if (_arg1.currentTarget == txtRotation){
scrWorkspace.RotateSelectedItems(txtRotation.text);
} else {
if (_arg1.currentTarget == txtScale){
scrWorkspace.ScaleSelectedItems((new Number(txtScale.text) / 100));
};
};
};
}
public function HandleOptions():void{
if (scrWorkspace.selectedItems.length == 0){
DisableButton(btnGroup);
DisableButton(btnUngroup);
DisableButton(btnDuplicate);
DisableButton(btnLayerTop);
DisableButton(btnLayerBottom);
DisableButton(btnLayerUp);
DisableButton(btnLayerDown);
DisableButton(btnFlipH);
DisableButton(btnFlipV);
DisableButton(btnDel);
} else {
if (scrWorkspace.selectedItems.length == 1){
DisableButton(btnGroup);
if ((scrWorkspace.selectedItems[0] is GroupItem)){
EnableButton(btnUngroup);
} else {
DisableButton(btnUngroup);
};
} else {
EnableButton(btnGroup);
DisableButton(btnUngroup);
};
EnableButton(btnDuplicate);
EnableButton(btnLayerTop);
EnableButton(btnLayerBottom);
EnableButton(btnLayerUp);
EnableButton(btnLayerDown);
EnableButton(btnFlipH);
EnableButton(btnFlipV);
EnableButton(btnDel);
};
}
public function GunSelectHandler(_arg1:SelectEvent):void{
if (_arg1.type == SelectEvent.PART_CLICK){
scrWorkspace.Initialize();
};
scrWorkspace.AddItem(_arg1.data, true);
}
function __setProp_txtScale_Scene1_Menu_1(){
try {
txtScale["componentInspectorSetting"] = true;
} catch(e:Error) {
};
txtScale.displayAsPassword = false;
txtScale.editable = true;
txtScale.enabled = true;
txtScale.maxChars = 7;
txtScale.restrict = ".0-9";
txtScale.text = "100";
txtScale.visible = true;
try {
txtScale["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function sortFunc(_arg1:XML, _arg2:XML):Number{
var _local3:*;
var _local4:*;
_local3 = _arg1.@id;
_local4 = _arg2.@id;
if (_local3 > _local4){
return (1);
};
if (_local3 < _local4){
return (-1);
};
return (0);
}
public function ColorClickHandler(_arg1:SelectEvent):void{
var _local2:Number;
var _local3:ColorSelector;
_local2 = 0;
while (_local2 < mcColors.numChildren) {
_local3 = (mcColors.getChildAt(_local2) as ColorSelector);
if (_local3 != _arg1.currentTarget){
_local3.Hide();
};
_local2++;
};
}
public function convert():void{
var _local1:Array;
var _local2:XML;
var _local3:*;
var _local4:*;
var _local5:XML;
_local1 = new Array();
for each (_local2 in PartDescription.list) {
_local4 = (("<part id=\"" + _local2.@id) + "\"");
if (_local2.@type == "group"){
_local4 = (_local4 + " type=\"group\"");
};
_local4 = (_local4 + ">");
_local4 = (_local4 + (((((((((((((("\r\t<data>\r" + "\t\t<default>\r") + "\t\t\t<name>") + _local2.name) + "</name>\r") + "\t\t</default>\r") + "\t\t<manufacturers>\r") + "\t\t\t<manufacturer>###") + _local2.manufacturer) + "###</manufacturer>\r") + "\t\t</manufacturers>\r") + "\t</data>\r") + "\t<colors>\r") + "\t</colors>\r") + "</part>"));
_local5 = new XML(_local4);
_local1.push(_local5);
};
_local1.sort(sortFunc);
for each (_local3 in _local1) {
trace(_local3);
};
}
public function MenuClickHandler(_arg1:SelectEvent):void{
ToggleFileMenu(new MouseEvent(MouseEvent.CLICK));
if (_arg1.data == "New"){
ShowGunBrowser(_arg1.data);
} else {
if (_arg1.data == "Export"){
scrExport.Initialize(scrWorkspace);
scrExport.visible = true;
} else {
if (_arg1.data == "Import"){
scrImport.Initialize(scrWorkspace);
scrImport.visible = true;
} else {
if (_arg1.data == "SaveJPG"){
scrWorkspace.SortItemsByDepth(true);
PhotoMaker.SaveJPG(scrWorkspace.items, scrWorkspace.GetSuroundingRect(scrWorkspace.items));
};
};
};
};
}
public function ToolKeyHandler(_arg1:SelectEvent):void{
if (_arg1.data == Consts.ToolScaleKey){
btnScale.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
} else {
if (_arg1.data == Consts.ToolRotateKey){
btnRotate.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
} else {
btnMove.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
};
}
public function DuplicateHandler(_arg1:MouseEvent):void{
if (scrWorkspace.selectedItems.length > 0){
scrWorkspace.DuplicateItems();
};
}
public function GroupHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget == btnGroup){
scrWorkspace.GroupItems();
} else {
scrWorkspace.UngroupItems();
};
}
public function FlipHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget == btnFlipH){
scrWorkspace.FlipHSelectedItems();
} else {
scrWorkspace.FlipVSelectedItems();
};
}
}
}//package secretmain_fla
Section 54
//mcWorkspace_5 (secretmain_fla.mcWorkspace_5)
package secretmain_fla {
import flash.display.*;
public dynamic class mcWorkspace_5 extends MovieClip {
public var mcMarkers:MovieClip;
public var mcItems:MovieClip;
}
}//package secretmain_fla
Section 55
//scrError_96 (secretmain_fla.scrError_96)
package secretmain_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public dynamic class scrError_96 extends MovieClip {
public var btnOK:SimpleButton;
public var btnX:SimpleButton;
public var txtError:TextField;
public var workspace:MovieClip;
public function scrError_96(){
addFrameScript(0, frame1);
}
public function Close(_arg1:MouseEvent):void{
this.visible = false;
}
function frame1(){
btnOK.addEventListener(MouseEvent.CLICK, Close);
}
public function Initialize(_arg1:String):void{
txtError.text = _arg1;
}
}
}//package secretmain_fla
Section 56
//scrExport_72 (secretmain_fla.scrExport_72)
package secretmain_fla {
import fl.controls.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class scrExport_72 extends MovieClip {
public var txtExport:TextArea;
public var btnX:SimpleButton;
public var workspace:MovieClip;
public var btnWeapon:SimpleButton;
public function scrExport_72(){
addFrameScript(0, frame1);
__setProp_txtExport_scrExport_UI_1();
}
public function Close(_arg1:MouseEvent):void{
this.visible = false;
}
public function ExportWeapon(_arg1:MouseEvent):void{
var _local2:String;
var _local3:*;
var _local4:XML;
workspace.SortItemsByDepth(true);
_local2 = "<weapon>\r";
for each (_local3 in workspace.items) {
_local2 = (_local2 + _local3.ToXML());
};
_local2 = (_local2 + "</weapon>");
_local4 = new XML(_local2);
txtExport.text = _local4.toString();
}
public function SelectText(_arg1:MouseEvent):void{
txtExport.setSelection(0, txtExport.text.length);
}
function frame1(){
btnX.addEventListener(MouseEvent.CLICK, Close);
btnWeapon.addEventListener(MouseEvent.CLICK, ExportWeapon);
txtExport.addEventListener(MouseEvent.CLICK, SelectText);
}
public function Initialize(_arg1:MovieClip):void{
workspace = _arg1;
btnWeapon.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
function __setProp_txtExport_scrExport_UI_1(){
try {
txtExport["componentInspectorSetting"] = true;
} catch(e:Error) {
};
txtExport.condenseWhite = false;
txtExport.editable = false;
txtExport.enabled = true;
txtExport.horizontalScrollPolicy = "auto";
txtExport.htmlText = "";
txtExport.maxChars = 0;
txtExport.restrict = "";
txtExport.text = "";
txtExport.verticalScrollPolicy = "auto";
txtExport.visible = true;
txtExport.wordWrap = true;
try {
txtExport["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package secretmain_fla
Section 57
//scrFileMenu_23 (secretmain_fla.scrFileMenu_23)
package secretmain_fla {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class scrFileMenu_23 extends MovieClip {
public var btnImport:SimpleButton;
public var btnExport:SimpleButton;
public var btnSaveJPG:SimpleButton;
public var btnNew:SimpleButton;
public var btnOpen:SimpleButton;
public var btnSave:SimpleButton;
public function scrFileMenu_23(){
addFrameScript(0, frame1);
}
function frame1(){
btnNew.addEventListener(MouseEvent.CLICK, MenuClickHandler);
btnOpen.addEventListener(MouseEvent.CLICK, MenuClickHandler);
btnSave.addEventListener(MouseEvent.CLICK, MenuClickHandler);
btnExport.addEventListener(MouseEvent.CLICK, MenuClickHandler);
btnImport.addEventListener(MouseEvent.CLICK, MenuClickHandler);
btnSaveJPG.addEventListener(MouseEvent.CLICK, MenuClickHandler);
}
public function MenuClickHandler(_arg1:MouseEvent):void{
var _local2:String;
_local2 = _arg1.target.name;
_local2 = _local2.substring("btn".length, _arg1.target.name.length);
dispatchEvent(new SelectEvent(_local2, SelectEvent.FILE_MENU_CLICK));
}
}
}//package secretmain_fla
Section 58
//scrGunBrowser_61 (secretmain_fla.scrGunBrowser_61)
package secretmain_fla {
import fl.controls.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class scrGunBrowser_61 extends MovieClip {
public var mcCategories:MovieClip;
public var btnX:SimpleButton;
public var usedList:XML;
public var _mode:String;
public var mcSubCategories:MovieClip;
public var mcBrowser:MovieClip;
public var txtTitle:TextField;
public var cbxNoReset:CheckBox;
public function scrGunBrowser_61(){
addFrameScript(0, frame1);
__setProp_cbxNoReset_scrGunBrowser_UI_1();
}
public function Close(_arg1:MouseEvent):void{
this.visible = false;
}
public function CategorySelectHandler(_arg1:SelectEvent):void{
var selectedCat:XMLList;
var e = _arg1;
if (e.target.name == "mcCategories"){
selectedCat = GunList.xml.category.(@name == e.data);
mcSubCategories.Initialize(new XMLList());
Editor.category = e.data;
} else {
selectedCat = GunList.xml.category.(@name == Editor.category).subcat.(@name == e.data);
};
if (Editor.category == "All"){
mcBrowser.Initialize(GunList.xml.descendants("part"));
} else {
if (selectedCat[0].children()[0].name() == "subcat"){
mcSubCategories.Initialize(selectedCat[0].children());
mcBrowser.Initialize(selectedCat[0].children().children());
} else {
mcBrowser.Initialize(selectedCat[0].children());
};
};
}
public function PartSelectHandler(_arg1:SelectEvent):void{
if (cbxNoReset.selected){
dispatchEvent(new SelectEvent(_arg1.data, SelectEvent.PART_CLICK_NO_RESET));
} else {
dispatchEvent(new SelectEvent(_arg1.data, SelectEvent.PART_CLICK));
};
btnX.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
function frame1(){
btnX.addEventListener(MouseEvent.CLICK, Close);
mcCategories.addEventListener(SelectEvent.CATEGORY_CLICK, CategorySelectHandler);
mcSubCategories.addEventListener(SelectEvent.CATEGORY_CLICK, CategorySelectHandler);
mcBrowser.addEventListener(SelectEvent.PART_CLICK, PartSelectHandler);
}
public function Initialize(_arg1:String):void{
if (_arg1 == "New"){
usedList = GunList.xml;
txtTitle.text = "Select Preset";
};
mcCategories.Initialize(usedList.children());
mcSubCategories.Initialize(new XMLList());
mcBrowser.Initialize(new XMLList());
}
function __setProp_cbxNoReset_scrGunBrowser_UI_1(){
try {
cbxNoReset["componentInspectorSetting"] = true;
} catch(e:Error) {
};
cbxNoReset.enabled = true;
cbxNoReset.label = "Do not clear stage";
cbxNoReset.labelPlacement = "right";
cbxNoReset.selected = false;
cbxNoReset.visible = true;
try {
cbxNoReset["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package secretmain_fla
Section 59
//scrImport_94 (secretmain_fla.scrImport_94)
package secretmain_fla {
import fl.controls.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class scrImport_94 extends MovieClip {
public var scrError:MovieClip;
public var txtImport:TextArea;
public var btnOK:SimpleButton;
public var btnX:SimpleButton;
public var workspace:MovieClip;
public var cbxNoReset:CheckBox;
public function scrImport_94(){
addFrameScript(0, frame1);
__setProp_cbxNoReset_scrImport_UI_1();
}
public function Close(_arg1:MouseEvent):void{
this.visible = false;
}
function __setProp_cbxNoReset_scrImport_UI_1(){
try {
cbxNoReset["componentInspectorSetting"] = true;
} catch(e:Error) {
};
cbxNoReset.enabled = true;
cbxNoReset.label = "Do not clear stage";
cbxNoReset.labelPlacement = "right";
cbxNoReset.selected = false;
cbxNoReset.visible = true;
try {
cbxNoReset["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function ImportWeapon(_arg1:MouseEvent):void{
var theParts:Array;
var xml:XML;
var cItem:*;
var e = _arg1;
try {
theParts = new Array();
xml = new XML(txtImport.text);
if (xml.localName() == "weapon"){
theParts = LoadWeapon(xml);
};
if (!cbxNoReset.selected){
workspace.Initialize();
};
for each (cItem in theParts) {
workspace.AddReadyItem(cItem, false);
};
btnX.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
} catch(err:Error) {
scrError.Initialize(err.message);
scrError.visible = true;
};
}
function frame1(){
btnX.addEventListener(MouseEvent.CLICK, Close);
btnOK.addEventListener(MouseEvent.CLICK, ImportWeapon);
}
public function Initialize(_arg1:MovieClip):void{
scrError.visible = false;
workspace = _arg1;
}
public function LoadWeapon(_arg1:XML):Array{
var _local2:Array;
var _local3:*;
var _local4:StandardItem;
var _local5:GroupItem;
_local2 = new Array();
for each (_local3 in _arg1.children()) {
if (_local3.localName() == "part"){
_local4 = new StandardItem();
_local4.FromXML(_local3);
_local2.push(_local4);
} else {
if (_local3.localName() == "group"){
_local5 = new GroupItem();
_local5.FromXML(_local3);
_local2.push(_local5);
};
};
};
return (_local2.reverse());
}
}
}//package secretmain_fla
Section 60
//scrPartBrowser_51 (secretmain_fla.scrPartBrowser_51)
package secretmain_fla {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class scrPartBrowser_51 extends MovieClip {
public var mcCategories:MovieClip;
public var btnX:SimpleButton;
public var mcSubCategories:MovieClip;
public var mcBrowser:MovieClip;
public function scrPartBrowser_51(){
addFrameScript(0, frame1);
}
public function Close(_arg1:MouseEvent):void{
this.visible = false;
}
public function CategorySelectHandler(_arg1:SelectEvent):void{
var selectedCat:XMLList;
var e = _arg1;
if (e.target.name == "mcCategories"){
selectedCat = PartList.xml.category.(@name == e.data);
mcSubCategories.Initialize(new XMLList());
Editor.category = e.data;
} else {
selectedCat = PartList.xml.category.(@name == Editor.category).subcat.(@name == e.data);
};
if (Editor.category == "All"){
mcBrowser.Initialize(PartList.xml.descendants("part"));
} else {
if (selectedCat[0].children()[0].name() == "subcat"){
mcSubCategories.Initialize(selectedCat[0].children());
mcBrowser.Initialize(selectedCat[0].children().children());
} else {
mcBrowser.Initialize(selectedCat[0].children());
};
};
}
public function PartSelectHandler(_arg1:SelectEvent):void{
dispatchEvent(new SelectEvent(_arg1.data, _arg1.type));
btnX.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
function frame1(){
btnX.addEventListener(MouseEvent.CLICK, Close);
mcCategories.addEventListener(SelectEvent.CATEGORY_CLICK, CategorySelectHandler);
mcSubCategories.addEventListener(SelectEvent.CATEGORY_CLICK, CategorySelectHandler);
mcBrowser.addEventListener(SelectEvent.PART_CLICK, PartSelectHandler);
}
public function Initialize():void{
mcCategories.Initialize(PartList.xml.children());
mcSubCategories.Initialize(new XMLList());
mcBrowser.Initialize(new XMLList());
}
}
}//package secretmain_fla
Section 61
//scrWorkspace_2 (secretmain_fla.scrWorkspace_2)
package secretmain_fla {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class scrWorkspace_2 extends MovieClip {
public var btnUp:SimpleButton;
public var ContainerMinY;
public var ContainerMinX;
public var MinVScroll:Number;
public var selectCenter:Point;
public var btnLeft:SimpleButton;
public var hscroller:MovieClip;
public var vscroller:MovieClip;
public var grabber:mcGrabber;
public var MinHScroll:Number;
public var selectMarkers:Dictionary;
public var MaxVScroll:Number;
public var mcMarkers;
public var btnDown:SimpleButton;
public var btnRight:SimpleButton;
public var preTransformData:Dictionary;
public var mcBlank:MovieClip;
public var MaxHScroll:Number;
public var ContainerMaxX;
public var ContainerMaxY;
public var mcContainer:MovieClip;
public var mcMask:MovieClip;
public var items:Array;
public var prevDragPoint:Point;
public var mcItems;
public var selector:MovieClip;
public var selectorOrigin:Point;
public var selectedItems:Array;
public function scrWorkspace_2(){
addFrameScript(0, frame1);
}
public function KeyHandler(_arg1:KeyboardEvent):void{
var _local2:String;
var _local3:Number;
_local2 = String.fromCharCode(_arg1.charCode);
_local2 = _local2.toUpperCase();
_local3 = (_arg1.shiftKey) ? 10 : 1;
if (_arg1.keyCode == Keyboard.DOWN){
MoveSelectedItems(0, -(_local3));
} else {
if (_arg1.keyCode == Keyboard.UP){
MoveSelectedItems(0, _local3);
} else {
if (_arg1.keyCode == Keyboard.LEFT){
MoveSelectedItems(_local3, 0);
} else {
if (_arg1.keyCode == Keyboard.RIGHT){
MoveSelectedItems(-(_local3), 0);
} else {
if (_arg1.keyCode == Keyboard.DELETE){
} else {
if ((((((_local2 == Consts.ToolMoveKey)) || ((_local2 == Consts.ToolRotateKey)))) || ((_local2 == Consts.ToolScaleKey)))){
dispatchEvent(new SelectEvent(_local2, SelectEvent.TOOL_KEY));
} else {
if ((((((_local2 == Consts.GroupKey)) && (_arg1.shiftKey))) && ((selectedItems.length > 1)))){
GroupItems();
} else {
if ((((((((_local2 == Consts.UnGroupKey)) && (_arg1.shiftKey))) && ((selectedItems.length == 1)))) && ((selectedItems[0] is GroupItem)))){
UngroupItems();
} else {
if ((((((_local2 == Consts.DuplicateKey)) && (_arg1.shiftKey))) && ((selectedItems.length > 0)))){
DuplicateItems();
};
};
};
};
};
};
};
};
};
}
public function MouseOverHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget.enabled){
_arg1.currentTarget.gotoAndStop("Over");
};
}
public function StopHScrollerDrag(_arg1:MouseEvent):void{
_arg1.currentTarget.stopDrag();
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_MOVE, HScrollerDragHandler);
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_UP, StopHScrollerDrag);
_arg1.currentTarget.y = 9999;
vscroller.gotoAndStop("Out");
}
public function RotateSelectedItems(_arg1:Number):void{
var _local2:*;
var _local3:Rectangle;
for each (_local2 in selectedItems) {
_local2.rotation = _arg1;
_local3 = _local2.getRect(mcItems);
selectMarkers[_local2].width = _local3.width;
selectMarkers[_local2].height = _local3.height;
};
}
public function FlipHSelectedItems():void{
var _local1:Rectangle;
var _local2:*;
var _local3:Number;
_local1 = GetSuroundingRect(selectedItems);
if (selectedItems.length > 0){
for each (_local2 in selectedItems) {
_local3 = (_local2.x - _local1.x);
_local2.x = ((_local1.x + _local1.width) - _local3);
_local2.scaleX = (_local2.scaleX * -1);
_local2.rotation = -(_local2.rotation);
selectMarkers[_local2].x = _local2.x;
};
};
}
public function BlankMoveHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget.x > selectorOrigin.x){
selector.x = selectorOrigin.x;
selector.scaleX = (_arg1.currentTarget.x - selectorOrigin.x);
} else {
selector.x = _arg1.currentTarget.x;
selector.scaleX = (selectorOrigin.x - selector.x);
};
if (_arg1.currentTarget.y > selectorOrigin.y){
selector.y = selectorOrigin.y;
selector.scaleY = (_arg1.currentTarget.y - selectorOrigin.y);
} else {
selector.y = _arg1.currentTarget.y;
selector.scaleY = (selectorOrigin.y - selector.y);
};
}
public function SetSelectionCenter():void{
var _local1:Rectangle;
_local1 = GetSuroundingRect(selectedItems);
selectCenter = new Point((_local1.x + (_local1.width / 2)), (_local1.y + (_local1.height / 2)));
}
public function SelectItem(_arg1, _arg2:Boolean):void{
var _local3:mcSelectMarker;
if (selectedItems.indexOf(_arg1) == -1){
if (!_arg2){
UnselectAll();
};
_local3 = new mcSelectMarker();
_local3.x = _arg1.x;
_local3.y = _arg1.y;
_local3.height = _arg1.height;
_local3.width = _arg1.width;
selectMarkers[_arg1] = _local3;
selectedItems.push(_arg1);
mcMarkers.addChild(_local3);
} else {
if (_arg2){
UnselectItem(_arg1);
};
};
UpdateProperties();
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, RegisterKeys);
this.addEventListener(MouseEvent.MOUSE_OUT, UnRegisterKeys);
mcBlank.addEventListener(MouseEvent.MOUSE_DOWN, BlankDownHandler);
this.addEventListener(MouseEvent.MOUSE_WHEEL, MouseWheelHandler);
btnLeft.addEventListener(MouseEvent.CLICK, ScrollHandler);
btnRight.addEventListener(MouseEvent.CLICK, ScrollHandler);
btnUp.addEventListener(MouseEvent.CLICK, ScrollHandler);
btnDown.addEventListener(MouseEvent.CLICK, ScrollHandler);
vscroller.addEventListener(MouseEvent.MOUSE_OVER, MouseOverHandler);
vscroller.addEventListener(MouseEvent.MOUSE_OUT, MouseOutHandler);
vscroller.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownHandler);
vscroller.addEventListener(MouseEvent.MOUSE_DOWN, StartScrollerDrag);
vscroller.addEventListener(MouseEvent.MOUSE_UP, MouseOutHandler);
hscroller.addEventListener(MouseEvent.MOUSE_OVER, MouseOverHandler);
hscroller.addEventListener(MouseEvent.MOUSE_OUT, MouseOutHandler);
hscroller.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownHandler);
hscroller.addEventListener(MouseEvent.MOUSE_DOWN, StartScrollerDrag);
hscroller.addEventListener(MouseEvent.MOUSE_UP, MouseOutHandler);
}
public function UnselectAll():void{
var _local1:*;
selectedItems = new Array();
for each (_local1 in selectMarkers) {
mcMarkers.removeChild(_local1);
};
selectMarkers = new Dictionary();
UpdateProperties();
}
public function BlankDownHandler(_arg1:MouseEvent):void{
if (!_arg1.shiftKey){
UnselectAll();
};
selector.width = 1;
selector.height = 1;
selector.x = _arg1.localX;
selector.y = _arg1.localY;
selectorOrigin = new Point(selector.x, selector.y);
grabber.addEventListener(MouseEvent.MOUSE_MOVE, BlankMoveHandler);
grabber.addEventListener(MouseEvent.MOUSE_UP, BlankUpHandler);
grabber.startDrag(true);
}
public function MouseDownHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget.enabled){
_arg1.currentTarget.gotoAndStop("Down");
};
}
public function MouseWheelHandler(_arg1:MouseEvent):void{
if (_arg1.delta > 0){
if (_arg1.shiftKey){
btnLeft.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
} else {
btnUp.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
} else {
if (_arg1.shiftKey){
btnRight.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
} else {
btnDown.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
};
}
public function UnRegisterKeys(_arg1:MouseEvent):void{
this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, KeyHandler);
}
public function MouseOutHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget.enabled){
_arg1.currentTarget.gotoAndStop("Out");
};
}
public function GroupItems():void{
var _local1:Rectangle;
var _local2:*;
var _local3:GroupItem;
SortSelectedItemsByDepth();
_local1 = GetSuroundingRect(selectedItems);
for each (_local2 in selectedItems) {
items.splice(items.indexOf(_local2), 1);
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, ItemDownHandler);
mcItems.removeChild(_local2);
};
_local3 = GroupManager.GroupItems(selectedItems, _local1);
_local3.addEventListener(MouseEvent.MOUSE_DOWN, ItemDownHandler);
items.push(_local3);
mcItems.addChild(_local3);
UnselectAll();
SelectItem(_local3, false);
}
public function VScrollerDragHandler(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
vscroller.gotoAndStop("Down");
_local2 = 0;
if ((((_arg1.currentTarget.y >= MinVScroll)) && ((_arg1.currentTarget.y <= MaxVScroll)))){
_local2 = _arg1.currentTarget.y;
} else {
if (_arg1.currentTarget.y < MinVScroll){
_local2 = MinVScroll;
} else {
_local2 = MaxVScroll;
};
};
vscroller.y = _local2;
_local3 = ((vscroller.y - MinVScroll) / (MaxVScroll - MinVScroll));
_local4 = (ContainerMaxY + ContainerMinY);
mcContainer.y = (_local4 * _local3);
}
public function ScaleItems(_arg1:MouseEvent):void{
var _local2:Rectangle;
var _local3:Point;
var _local4:Number;
var _local5:Number;
var _local6:*;
var _local7:Number;
var _local8:Number;
_local2 = grabber.getRect(mcItems);
_local3 = new Point((_local2.x + (_local2.width / 2)), (_local2.y + (_local2.height / 2)));
if (prevDragPoint == null){
prevDragPoint = new Point(_local3.x, _local3.y);
};
_local4 = Point.distance(prevDragPoint, selectCenter);
_local5 = Point.distance(_local3, selectCenter);
for each (_local6 in selectedItems) {
_local7 = Math.abs(((_local5 / _local4) * preTransformData[_local6][0].h));
_local8 = Math.abs(((_local5 / _local4) * preTransformData[_local6][0].w));
if (_arg1.shiftKey){
_local7 = (Math.round((_local7 * 100)) / 100);
_local8 = (Math.round((_local8 * 100)) / 100);
};
_local6.scaleX = ((_local6.scaleX)>0) ? _local7 : -(_local7);
_local6.scaleY = ((_local6.scaleY)>0) ? _local8 : -(_local8);
selectMarkers[_local6].width = _local6.width;
selectMarkers[_local6].height = _local6.height;
};
UpdateProperties();
}
public function DragItems(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
if (prevDragPoint == null){
prevDragPoint = new Point(grabber.x, grabber.y);
};
_local2 = (prevDragPoint.x - grabber.x);
_local3 = (prevDragPoint.y - grabber.y);
MoveSelectedItems(_local2, _local3);
prevDragPoint = new Point(grabber.x, grabber.y);
}
public function ScaleSelectedItems(_arg1:Number):void{
var _local2:*;
for each (_local2 in selectedItems) {
_local2.scaleX = ((_local2.scaleX)>0) ? _arg1 : -(_arg1);
_local2.scaleY = ((_local2.scaleY)>0) ? _arg1 : -(_arg1);
selectMarkers[_local2].width = _local2.width;
selectMarkers[_local2].height = _local2.height;
};
}
public function FlipVSelectedItems():void{
var _local1:Rectangle;
var _local2:*;
var _local3:Number;
_local1 = GetSuroundingRect(selectedItems);
if (selectedItems.length > 0){
for each (_local2 in selectedItems) {
_local3 = (_local2.y - _local1.y);
_local2.y = ((_local1.y + _local1.height) - _local3);
_local2.scaleY = (_local2.scaleY * -1);
_local2.rotation = -(_local2.rotation);
selectMarkers[_local2].y = _local2.y;
};
};
}
public function RotateItems(_arg1:MouseEvent):void{
var _local2:Rectangle;
var _local3:Point;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:Number;
var _local12:Rectangle;
_local2 = grabber.getRect(mcItems);
_local3 = new Point((_local2.x + (_local2.width / 2)), (_local2.y + (_local2.height / 2)));
if (prevDragPoint == null){
prevDragPoint = new Point(_local3.x, _local3.y);
};
_local4 = (selectCenter.x - prevDragPoint.x);
_local5 = (selectCenter.y - prevDragPoint.y);
_local6 = (selectCenter.x - _local3.x);
_local7 = (selectCenter.y - _local3.y);
_local8 = (Math.atan((_local5 / _local4)) / (Math.PI / 180));
_local9 = (Math.atan((_local7 / _local6)) / (Math.PI / 180));
if (_arg1.shiftKey){
_local9 = Math.round(_local9);
_local8 = Math.round(_local8);
};
if (_local6 < 0){
_local9 = (_local9 + 180);
};
if (_local4 < 0){
_local8 = (_local8 + 180);
};
for each (_local10 in selectedItems) {
_local11 = (_arg1.shiftKey) ? Math.floor(preTransformData[_local10][0].r) : preTransformData[_local10][0].r;
_local10.rotation = ((_local9 - _local8) + _local11);
_local12 = _local10.getRect(mcItems);
selectMarkers[_local10].width = _local12.width;
selectMarkers[_local10].height = _local12.height;
};
UpdateProperties();
}
public function UpdateProperties():void{
dispatchEvent(new SelectEvent("", SelectEvent.PROP_UPDATE_REQ));
}
public function ItemDownHandler(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
SelectItem(_arg1.currentTarget, _arg1.shiftKey);
if (Editor.tool == Consts.ToolMove){
grabber.addEventListener(MouseEvent.MOUSE_MOVE, DragItems);
} else {
if (Editor.tool == Consts.ToolRotate){
grabber.addEventListener(MouseEvent.MOUSE_MOVE, RotateItems);
SetSelectionCenter();
preTransformData = new Dictionary();
for each (_local2 in selectedItems) {
preTransformData[_local2] = [{r:_local2.rotation, x:_local2.x, y:_local2.y}];
};
} else {
grabber.addEventListener(MouseEvent.MOUSE_MOVE, ScaleItems);
SetSelectionCenter();
preTransformData = new Dictionary();
for each (_local3 in selectedItems) {
preTransformData[_local3] = [{w:_local3.scaleX, h:_local3.scaleY, x:_local3.x, y:_local3.y}];
};
};
};
grabber.addEventListener(MouseEvent.MOUSE_UP, DropItems);
grabber.startDrag(true);
}
public function StopVScrollerDrag(_arg1:MouseEvent):void{
_arg1.currentTarget.stopDrag();
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_MOVE, VScrollerDragHandler);
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_UP, StopVScrollerDrag);
_arg1.currentTarget.y = 9999;
vscroller.gotoAndStop("Out");
}
public function LayerItems(_arg1:String):void{
var _local2:*;
var _local3:Number;
var _local4:Number;
var _local5:Number;
if ((((_arg1 == "Up")) || ((_arg1 == "Top")))){
SortSelectedItemsByDepth(true);
} else {
SortSelectedItemsByDepth();
};
for each (_local2 in selectedItems) {
_local3 = mcItems.getChildIndex(_local2);
if (_arg1 == "Up"){
if (_local3 < (mcItems.numChildren - 1)){
mcItems.swapChildrenAt(_local3, (_local3 + 1));
};
} else {
if (_arg1 == "Down"){
if (_local3 > 0){
mcItems.swapChildrenAt(_local3, (_local3 - 1));
};
} else {
if (_arg1 == "Top"){
if (_local3 < (mcItems.numChildren - 1)){
_local4 = _local3;
while (_local4 < (mcItems.numChildren - 1)) {
mcItems.swapChildrenAt(_local4, (_local4 + 1));
_local4++;
};
};
} else {
if (_arg1 == "Bottom"){
if (_local3 > 0){
_local5 = _local3;
while (_local5 > 0) {
mcItems.swapChildrenAt(_local5, (_local5 - 1));
_local5--;
};
};
};
};
};
};
};
}
public function AddItem(_arg1:String, _arg2:Boolean=false):void{
var _local3:*;
var _local4:XML;
_local4 = PartDescription.list[_arg1];
if (_local4.attribute("type").toString() == ""){
_local3 = new StandardItem();
} else {
if (_local4.attribute("type").toString() == "group"){
_local3 = new GroupItem();
};
};
_local3.Initialize(_arg1);
_local3.cacheAsBitmap = true;
_local3.x = ((mcMask.width / 2) - mcContainer.x);
_local3.y = ((mcMask.height / 2) - mcContainer.y);
_local3.addEventListener(MouseEvent.MOUSE_DOWN, ItemDownHandler);
items.push(_local3);
mcItems.addChild(_local3);
if (_arg2){
selectedItems.push(_local3);
UngroupItems();
UnselectAll();
};
}
public function RegisterKeys(_arg1:MouseEvent):void{
this.stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyHandler);
}
public function BlankUpHandler(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:*;
grabber.removeEventListener(MouseEvent.MOUSE_MOVE, BlankMoveHandler);
grabber.removeEventListener(MouseEvent.MOUSE_UP, BlankUpHandler);
grabber.stopDrag();
_local2 = 0;
while (_local2 < mcItems.numChildren) {
_local3 = mcItems.getChildAt(_local2);
if (selector.hitTestObject(_local3)){
SelectItem(_local3, true);
};
_local2++;
};
grabber.y = 9999;
selector.y = 9999;
}
public function MoveSelectedItems(_arg1:Number, _arg2:Number):void{
var _local3:*;
for each (_local3 in selectedItems) {
_local3.x = (_local3.x - _arg1);
_local3.y = (_local3.y - _arg2);
selectMarkers[_local3].x = _local3.x;
selectMarkers[_local3].y = _local3.y;
};
}
public function RemoveItems(_arg1:Array):void{
var _local2:Number;
_local2 = (_arg1.length - 1);
while (_local2 >= 0) {
RemoveItem(_arg1[_local2], false);
_local2--;
};
UnselectAll();
}
public function HScrollerDragHandler(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
hscroller.gotoAndStop("Down");
_local2 = 0;
if ((((_arg1.currentTarget.x >= MinHScroll)) && ((_arg1.currentTarget.x <= MaxHScroll)))){
_local2 = _arg1.currentTarget.x;
} else {
if (_arg1.currentTarget.x < MinHScroll){
_local2 = MinHScroll;
} else {
_local2 = MaxHScroll;
};
};
hscroller.x = _local2;
_local3 = ((hscroller.x - MinHScroll) / (MaxHScroll - MinHScroll));
_local4 = (ContainerMaxX + ContainerMinX);
mcContainer.x = (_local4 * _local3);
}
public function DuplicateItems():void{
var _local1:Array;
var _local2:*;
var _local3:*;
var _local4:*;
SortSelectedItemsByDepth();
_local1 = new Array();
for each (_local2 in selectedItems) {
_local4 = _local2.Clone();
_local2.Clone().x = (_local4.x + 10);
_local4.y = (_local4.y + 10);
_local4.addEventListener(MouseEvent.MOUSE_DOWN, ItemDownHandler);
_local1.push(_local4);
items.push(_local4);
mcItems.addChild(_local4);
};
UnselectAll();
for each (_local3 in _local1) {
SelectItem(_local3, true);
};
}
public function ScrollHandler(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Tween;
var _local4:Number;
var _local5:Tween;
var _local6:Number;
var _local7:Tween;
var _local8:Number;
var _local9:Tween;
if (_arg1.currentTarget == btnUp){
if (mcContainer.y < ContainerMaxY){
_local2 = (((mcMask.y - mcContainer.y))>=Consts.ScrollSpeedSlow) ? Consts.ScrollSpeedSlow : (mcMask.y - mcContainer.y);
_local3 = new Tween(mcContainer, "y", Regular.easeOut, mcContainer.y, (mcContainer.y + _local2), Consts.ScrollTime);
RepositionVScroller(_arg1);
_local3.start();
};
} else {
if (_arg1.currentTarget == btnDown){
if (mcContainer.y > ContainerMinY){
_local4 = (((mcContainer.y - ContainerMinY))>=Consts.ScrollSpeedSlow) ? Consts.ScrollSpeedSlow : (mcContainer.y - ContainerMinY);
_local5 = new Tween(mcContainer, "y", Regular.easeOut, mcContainer.y, (mcContainer.y - _local4), Consts.ScrollTime);
RepositionVScroller(_arg1);
_local5.start();
};
} else {
if (_arg1.currentTarget == btnLeft){
if (mcContainer.x < ContainerMaxY){
_local6 = (((mcMask.x - mcContainer.x))>=Consts.ScrollSpeedSlow) ? Consts.ScrollSpeedSlow : (mcMask.x - mcContainer.x);
_local7 = new Tween(mcContainer, "x", Regular.easeOut, mcContainer.x, (mcContainer.x + _local6), Consts.ScrollTime);
RepositionHScroller(_arg1);
_local7.start();
};
} else {
if (_arg1.currentTarget == btnRight){
if (mcContainer.x > ContainerMinX){
_local8 = (((mcContainer.x - ContainerMinX))>=Consts.ScrollSpeedSlow) ? Consts.ScrollSpeedSlow : (mcContainer.x - ContainerMinX);
_local9 = new Tween(mcContainer, "x", Regular.easeOut, mcContainer.x, (mcContainer.x - _local8), Consts.ScrollTime);
RepositionHScroller(_arg1);
_local9.start();
};
};
};
};
};
}
public function RepositionHScroller(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Tween;
_local2 = (ContainerMaxX + ContainerMinX);
_local3 = mcContainer.x;
if (_arg1.currentTarget == btnLeft){
_local3 = (_local3 + Consts.ScrollSpeedSlow);
} else {
if (_arg1.currentTarget == btnRight){
_local3 = (_local3 - Consts.ScrollSpeedSlow);
};
};
_local4 = (_local3 / _local2);
if (_local4 < 0){
_local4 = 0;
} else {
if (_local4 > 1){
_local4 = 1;
};
};
_local5 = (((MaxHScroll - MinHScroll) * _local4) + MinHScroll);
_local6 = new Tween(hscroller, "x", Regular.easeOut, hscroller.x, _local5, Consts.ScrollTime);
_local6.start();
}
public function UnselectItem(_arg1):void{
mcMarkers.removeChild(selectMarkers[_arg1]);
delete selectMarkers[_arg1];
selectedItems.splice(selectedItems.indexOf(_arg1), 1);
UpdateProperties();
}
public function SortItemsByDepth(_arg1:Boolean=false):void{
var _local2:Number;
var _local3:Number;
var _local4:*;
_local2 = 0;
while (_local2 < items.length) {
_local3 = 0;
while (_local3 < (items.length - 1)) {
if (mcItems.getChildIndex(items[_local3]) > mcItems.getChildIndex(items[(_local3 + 1)])){
_local4 = items[_local3];
items[_local3] = items[(_local3 + 1)];
items[(_local3 + 1)] = _local4;
};
_local3++;
};
_local2++;
};
if (_arg1){
items.reverse();
};
}
public function Initialize():void{
var _local1:Number;
items = new Array();
selectMarkers = new Dictionary();
UnselectAll();
mcItems = mcContainer.mcItems;
mcMarkers = mcContainer.mcMarkers;
ContainerMaxX = 0;
ContainerMaxY = 0;
ContainerMinX = (mcMask.width - Consts.WorkSpaceWidth);
ContainerMinY = (mcMask.height - Consts.WorkSpaceHeight);
MinVScroll = 55.5;
MaxVScroll = 639.5;
MinHScroll = 55.4;
MaxHScroll = 948.5;
mcContainer.x = (ContainerMinX / 2);
mcContainer.y = (ContainerMinY / 2);
vscroller.y = ((MinVScroll + MaxVScroll) / 2);
hscroller.x = ((MinHScroll + MaxHScroll) / 2);
grabber.y = 9999;
selector.y = 9999;
_local1 = (mcItems.numChildren - 1);
while (_local1 >= 0) {
mcItems.removeChildAt(_local1);
_local1--;
};
_local1 = (mcMarkers.numChildren - 1);
while (_local1 >= 0) {
mcMarkers.removeChildAt(_local1);
_local1--;
};
}
public function RepositionVScroller(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Tween;
_local2 = (ContainerMaxY + ContainerMinY);
_local3 = mcContainer.y;
if (_arg1.currentTarget == btnUp){
_local3 = (_local3 + Consts.ScrollSpeedSlow);
} else {
if (_arg1.currentTarget == btnDown){
_local3 = (_local3 - Consts.ScrollSpeedSlow);
};
};
_local4 = (_local3 / _local2);
if (_local4 < 0){
_local4 = 0;
} else {
if (_local4 > 1){
_local4 = 1;
};
};
_local5 = (((MaxVScroll - MinVScroll) * _local4) + MinVScroll);
_local6 = new Tween(vscroller, "y", Regular.easeOut, vscroller.y, _local5, Consts.ScrollTime);
_local6.start();
}
public function GetSuroundingRect(_arg1:Array):Rectangle{
var _local2:Rectangle;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:*;
var _local8:Rectangle;
_local3 = 9999;
_local4 = -9999;
_local5 = 9999;
_local6 = -9999;
for each (_local7 in _arg1) {
_local8 = _local7.getRect(mcItems);
if (_local8.x < _local3){
_local3 = _local8.x;
};
if (_local8.y < _local5){
_local5 = _local8.y;
};
if ((_local8.x + _local8.width) > _local4){
_local4 = (_local8.x + _local8.width);
};
if ((_local8.y + _local8.height) > _local6){
_local6 = (_local8.y + _local8.height);
};
};
_local2 = new Rectangle(_local3, _local5, (_local4 - _local3), (_local6 - _local5));
return (_local2);
}
public function AddReadyItem(_arg1, _arg2:Boolean=false):void{
_arg1.cacheAsBitmap = true;
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, ItemDownHandler);
items.push(_arg1);
mcItems.addChild(_arg1);
if (_arg2){
selectedItems.push(_arg1);
UngroupItems();
UnselectAll();
};
}
public function RemoveItem(_arg1, _arg2:Boolean=true):void{
items.splice(items.indexOf(_arg1), 1);
_arg1.removeEventListener(MouseEvent.MOUSE_DOWN, ItemDownHandler);
mcItems.removeChild(_arg1);
if (_arg2){
UnselectAll();
};
}
public function SortSelectedItemsByDepth(_arg1:Boolean=false):void{
var _local2:Number;
var _local3:Number;
var _local4:*;
_local2 = 0;
while (_local2 < selectedItems.length) {
_local3 = 0;
while (_local3 < (selectedItems.length - 1)) {
if (mcItems.getChildIndex(selectedItems[_local3]) > mcItems.getChildIndex(selectedItems[(_local3 + 1)])){
_local4 = selectedItems[_local3];
selectedItems[_local3] = selectedItems[(_local3 + 1)];
selectedItems[(_local3 + 1)] = _local4;
};
_local3++;
};
_local2++;
};
if (_arg1){
selectedItems.reverse();
};
}
public function StartScrollerDrag(_arg1:MouseEvent):void{
if (_arg1.currentTarget.enabled){
if (_arg1.currentTarget == vscroller){
grabber.addEventListener(MouseEvent.MOUSE_MOVE, VScrollerDragHandler);
grabber.addEventListener(MouseEvent.MOUSE_UP, StopVScrollerDrag);
} else {
grabber.addEventListener(MouseEvent.MOUSE_MOVE, HScrollerDragHandler);
grabber.addEventListener(MouseEvent.MOUSE_UP, StopHScrollerDrag);
};
grabber.startDrag(true);
};
}
public function DropItems(_arg1:MouseEvent):void{
grabber.removeEventListener(MouseEvent.MOUSE_UP, DropItems);
grabber.removeEventListener(MouseEvent.MOUSE_MOVE, DragItems);
grabber.removeEventListener(MouseEvent.MOUSE_MOVE, ScaleItems);
grabber.removeEventListener(MouseEvent.MOUSE_MOVE, RotateItems);
grabber.stopDrag();
grabber.y = 9999;
prevDragPoint = null;
selectCenter = null;
UpdateProperties();
}
public function UngroupItems():void{
var _local1:GroupItem;
var _local2:Number;
var _local3:Array;
var _local4:*;
_local1 = selectedItems[0];
_local2 = mcItems.getChildIndex(_local1);
_local3 = GroupManager.UngroupItems(_local1, mcItems);
items.splice(items.indexOf(_local1), 1);
_local1.removeEventListener(MouseEvent.MOUSE_DOWN, ItemDownHandler);
mcItems.removeChild(_local1);
UnselectAll();
for each (_local4 in _local3) {
_local4.addEventListener(MouseEvent.MOUSE_DOWN, ItemDownHandler);
items.push(_local4);
mcItems.addChildAt(_local4, _local2);
SelectItem(_local4, true);
};
}
}
}//package secretmain_fla
Section 62
//VScrollBar_12 (secretmain_fla.VScrollBar_12)
package secretmain_fla {
import flash.display.*;
public dynamic class VScrollBar_12 extends MovieClip {
public function VScrollBar_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package secretmain_fla
Section 63
//ACR (ACR)
package {
import flash.display.*;
public dynamic class ACR extends MovieClip {
}
}//package
Section 64
//ACR_AK (ACR_AK)
package {
import flash.display.*;
public dynamic class ACR_AK extends MovieClip {
}
}//package
Section 65
//ACR_R (ACR_R)
package {
import flash.display.*;
public dynamic class ACR_R extends MovieClip {
}
}//package
Section 66
//AK47 (AK47)
package {
import flash.display.*;
public dynamic class AK47 extends MovieClip {
}
}//package
Section 67
//AK74 (AK74)
package {
import flash.display.*;
public dynamic class AK74 extends MovieClip {
}
}//package
Section 68
//AKM (AKM)
package {
import flash.display.*;
public dynamic class AKM extends MovieClip {
}
}//package
Section 69
//AKS74U (AKS74U)
package {
import flash.display.*;
public dynamic class AKS74U extends MovieClip {
}
}//package
Section 70
//Ammo357MagnumB (Ammo357MagnumB)
package {
import flash.display.*;
public dynamic class Ammo357MagnumB extends MovieClip {
}
}//package
Section 71
//Ammo357MagnumC (Ammo357MagnumC)
package {
import flash.display.*;
public dynamic class Ammo357MagnumC extends MovieClip {
}
}//package
Section 72
//Ammo357MagnumS (Ammo357MagnumS)
package {
import flash.display.*;
public dynamic class Ammo357MagnumS extends MovieClip {
}
}//package
Section 73
//Ammo40CalB (Ammo40CalB)
package {
import flash.display.*;
public dynamic class Ammo40CalB extends MovieClip {
}
}//package
Section 74
//Ammo40CalC (Ammo40CalC)
package {
import flash.display.*;
public dynamic class Ammo40CalC extends MovieClip {
}
}//package
Section 75
//Ammo40CalS (Ammo40CalS)
package {
import flash.display.*;
public dynamic class Ammo40CalS extends MovieClip {
}
}//package
Section 76
//Ammo44MagnumB (Ammo44MagnumB)
package {
import flash.display.*;
public dynamic class Ammo44MagnumB extends MovieClip {
}
}//package
Section 77
//Ammo44MagnumC (Ammo44MagnumC)
package {
import flash.display.*;
public dynamic class Ammo44MagnumC extends MovieClip {
}
}//package
Section 78
//Ammo44MagnumS (Ammo44MagnumS)
package {
import flash.display.*;
public dynamic class Ammo44MagnumS extends MovieClip {
}
}//package
Section 79
//Ammo45ACPB (Ammo45ACPB)
package {
import flash.display.*;
public dynamic class Ammo45ACPB extends MovieClip {
}
}//package
Section 80
//Ammo45ACPC (Ammo45ACPC)
package {
import flash.display.*;
public dynamic class Ammo45ACPC extends MovieClip {
}
}//package
Section 81
//Ammo45ACPS (Ammo45ACPS)
package {
import flash.display.*;
public dynamic class Ammo45ACPS extends MovieClip {
}
}//package
Section 82
//Ammo50AECalB (Ammo50AECalB)
package {
import flash.display.*;
public dynamic class Ammo50AECalB extends MovieClip {
}
}//package
Section 83
//Ammo50AECalC (Ammo50AECalC)
package {
import flash.display.*;
public dynamic class Ammo50AECalC extends MovieClip {
}
}//package
Section 84
//Ammo50AECalS (Ammo50AECalS)
package {
import flash.display.*;
public dynamic class Ammo50AECalS extends MovieClip {
}
}//package
Section 85
//Ammo50CalB (Ammo50CalB)
package {
import flash.display.*;
public dynamic class Ammo50CalB extends MovieClip {
}
}//package
Section 86
//Ammo50CalC (Ammo50CalC)
package {
import flash.display.*;
public dynamic class Ammo50CalC extends MovieClip {
}
}//package
Section 87
//Ammo50CalS (Ammo50CalS)
package {
import flash.display.*;
public dynamic class Ammo50CalS extends MovieClip {
}
}//package
Section 88
//Ammo556mmB (Ammo556mmB)
package {
import flash.display.*;
public dynamic class Ammo556mmB extends MovieClip {
}
}//package
Section 89
//Ammo556mmC (Ammo556mmC)
package {
import flash.display.*;
public dynamic class Ammo556mmC extends MovieClip {
}
}//package
Section 90
//Ammo556mmS (Ammo556mmS)
package {
import flash.display.*;
public dynamic class Ammo556mmS extends MovieClip {
}
}//package
Section 91
//Ammo57x28mmB (Ammo57x28mmB)
package {
import flash.display.*;
public dynamic class Ammo57x28mmB extends MovieClip {
}
}//package
Section 92
//Ammo57x28mmC (Ammo57x28mmC)
package {
import flash.display.*;
public dynamic class Ammo57x28mmC extends MovieClip {
}
}//package
Section 93
//Ammo57x28mmS (Ammo57x28mmS)
package {
import flash.display.*;
public dynamic class Ammo57x28mmS extends MovieClip {
}
}//package
Section 94
//Ammo6mmBB (Ammo6mmBB)
package {
import flash.display.*;
public dynamic class Ammo6mmBB extends MovieClip {
}
}//package
Section 95
//Ammo762x25mmB (Ammo762x25mmB)
package {
import flash.display.*;
public dynamic class Ammo762x25mmB extends MovieClip {
}
}//package
Section 96
//Ammo762x25mmC (Ammo762x25mmC)
package {
import flash.display.*;
public dynamic class Ammo762x25mmC extends MovieClip {
}
}//package
Section 97
//Ammo762x25mmS (Ammo762x25mmS)
package {
import flash.display.*;
public dynamic class Ammo762x25mmS extends MovieClip {
}
}//package
Section 98
//Ammo762x39mmB (Ammo762x39mmB)
package {
import flash.display.*;
public dynamic class Ammo762x39mmB extends MovieClip {
}
}//package
Section 99
//Ammo762x39mmC (Ammo762x39mmC)
package {
import flash.display.*;
public dynamic class Ammo762x39mmC extends MovieClip {
}
}//package
Section 100
//Ammo762x39mmS (Ammo762x39mmS)
package {
import flash.display.*;
public dynamic class Ammo762x39mmS extends MovieClip {
}
}//package
Section 101
//Ammo762x45mmB (Ammo762x45mmB)
package {
import flash.display.*;
public dynamic class Ammo762x45mmB extends MovieClip {
}
}//package
Section 102
//Ammo762x45mmC (Ammo762x45mmC)
package {
import flash.display.*;
public dynamic class Ammo762x45mmC extends MovieClip {
}
}//package
Section 103
//Ammo762x45mmS (Ammo762x45mmS)
package {
import flash.display.*;
public dynamic class Ammo762x45mmS extends MovieClip {
}
}//package
Section 104
//Ammo762x51mmB (Ammo762x51mmB)
package {
import flash.display.*;
public dynamic class Ammo762x51mmB extends MovieClip {
}
}//package
Section 105
//Ammo762x51mmC (Ammo762x51mmC)
package {
import flash.display.*;
public dynamic class Ammo762x51mmC extends MovieClip {
}
}//package
Section 106
//Ammo762x51mmS (Ammo762x51mmS)
package {
import flash.display.*;
public dynamic class Ammo762x51mmS extends MovieClip {
}
}//package
Section 107
//Ammo762x54mmB (Ammo762x54mmB)
package {
import flash.display.*;
public dynamic class Ammo762x54mmB extends MovieClip {
}
}//package
Section 108
//Ammo762x54mmC (Ammo762x54mmC)
package {
import flash.display.*;
public dynamic class Ammo762x54mmC extends MovieClip {
}
}//package
Section 109
//Ammo762x54mmS (Ammo762x54mmS)
package {
import flash.display.*;
public dynamic class Ammo762x54mmS extends MovieClip {
}
}//package
Section 110
//Ammo9x19mmB (Ammo9x19mmB)
package {
import flash.display.*;
public dynamic class Ammo9x19mmB extends MovieClip {
}
}//package
Section 111
//Ammo9x19mmC (Ammo9x19mmC)
package {
import flash.display.*;
public dynamic class Ammo9x19mmC extends MovieClip {
}
}//package
Section 112
//Ammo9x19mmS (Ammo9x19mmS)
package {
import flash.display.*;
public dynamic class Ammo9x19mmS extends MovieClip {
}
}//package
Section 113
//AmmoBelt01 (AmmoBelt01)
package {
import flash.display.*;
public dynamic class AmmoBelt01 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 114
//AStock01 (AStock01)
package {
import flash.display.*;
public dynamic class AStock01 extends MovieClip {
}
}//package
Section 115
//AStock01A (AStock01A)
package {
import flash.display.*;
public dynamic class AStock01A extends MovieClip {
}
}//package
Section 116
//AStock01B (AStock01B)
package {
import flash.display.*;
public dynamic class AStock01B extends MovieClip {
}
}//package
Section 117
//AStock01C (AStock01C)
package {
import flash.display.*;
public dynamic class AStock01C extends MovieClip {
}
}//package
Section 118
//AStock01D (AStock01D)
package {
import flash.display.*;
public dynamic class AStock01D extends MovieClip {
}
}//package
Section 119
//AStock02 (AStock02)
package {
import flash.display.*;
public dynamic class AStock02 extends MovieClip {
}
}//package
Section 120
//AStock02A (AStock02A)
package {
import flash.display.*;
public dynamic class AStock02A extends MovieClip {
}
}//package
Section 121
//AStock02B (AStock02B)
package {
import flash.display.*;
public dynamic class AStock02B extends MovieClip {
}
}//package
Section 122
//AStock02C (AStock02C)
package {
import flash.display.*;
public dynamic class AStock02C extends MovieClip {
}
}//package
Section 123
//AStock03 (AStock03)
package {
import flash.display.*;
public dynamic class AStock03 extends MovieClip {
}
}//package
Section 124
//AStock03A (AStock03A)
package {
import flash.display.*;
public dynamic class AStock03A extends MovieClip {
}
}//package
Section 125
//AStock03B (AStock03B)
package {
import flash.display.*;
public dynamic class AStock03B extends MovieClip {
}
}//package
Section 126
//AStock03C (AStock03C)
package {
import flash.display.*;
public dynamic class AStock03C extends MovieClip {
}
}//package
Section 127
//AStock04 (AStock04)
package {
import flash.display.*;
public dynamic class AStock04 extends MovieClip {
}
}//package
Section 128
//AStock04A (AStock04A)
package {
import flash.display.*;
public dynamic class AStock04A extends MovieClip {
}
}//package
Section 129
//AStock04B (AStock04B)
package {
import flash.display.*;
public dynamic class AStock04B extends MovieClip {
}
}//package
Section 130
//AStock04C (AStock04C)
package {
import flash.display.*;
public dynamic class AStock04C extends MovieClip {
}
}//package
Section 131
//AStock04D (AStock04D)
package {
import flash.display.*;
public dynamic class AStock04D extends MovieClip {
}
}//package
Section 132
//AStock05 (AStock05)
package {
import flash.display.*;
public dynamic class AStock05 extends MovieClip {
}
}//package
Section 133
//AStock05A (AStock05A)
package {
import flash.display.*;
public dynamic class AStock05A extends MovieClip {
}
}//package
Section 134
//AStock05B (AStock05B)
package {
import flash.display.*;
public dynamic class AStock05B extends MovieClip {
}
}//package
Section 135
//AStock05C (AStock05C)
package {
import flash.display.*;
public dynamic class AStock05C extends MovieClip {
}
}//package
Section 136
//AStock06 (AStock06)
package {
import flash.display.*;
public dynamic class AStock06 extends MovieClip {
}
}//package
Section 137
//AStock06A (AStock06A)
package {
import flash.display.*;
public dynamic class AStock06A extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color4:mcColor;
public var color2:mcColor;
}
}//package
Section 138
//AStock06B (AStock06B)
package {
import flash.display.*;
public dynamic class AStock06B extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 139
//AStock06C (AStock06C)
package {
import flash.display.*;
public dynamic class AStock06C extends MovieClip {
public var color1:mcColor;
}
}//package
Section 140
//AStock06D (AStock06D)
package {
import flash.display.*;
public dynamic class AStock06D extends MovieClip {
public var color1:mcColor;
}
}//package
Section 141
//AUGA2 (AUGA2)
package {
import flash.display.*;
public dynamic class AUGA2 extends MovieClip {
}
}//package
Section 142
//AUGA2Scope (AUGA2Scope)
package {
import flash.display.*;
public dynamic class AUGA2Scope extends MovieClip {
}
}//package
Section 143
//AUGA3 (AUGA3)
package {
import flash.display.*;
public dynamic class AUGA3 extends MovieClip {
}
}//package
Section 144
//AUGPara (AUGPara)
package {
import flash.display.*;
public dynamic class AUGPara extends MovieClip {
}
}//package
Section 145
//Barrel001 (Barrel001)
package {
import flash.display.*;
public dynamic class Barrel001 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 146
//Barrel002 (Barrel002)
package {
import flash.display.*;
public dynamic class Barrel002 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 147
//Barrel003 (Barrel003)
package {
import flash.display.*;
public dynamic class Barrel003 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 148
//Barrel004 (Barrel004)
package {
import flash.display.*;
public dynamic class Barrel004 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 149
//Barrel005 (Barrel005)
package {
import flash.display.*;
public dynamic class Barrel005 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 150
//Barrel006 (Barrel006)
package {
import flash.display.*;
public dynamic class Barrel006 extends MovieClip {
}
}//package
Section 151
//Barrel007 (Barrel007)
package {
import flash.display.*;
public dynamic class Barrel007 extends MovieClip {
}
}//package
Section 152
//Barrel008 (Barrel008)
package {
import flash.display.*;
public dynamic class Barrel008 extends MovieClip {
}
}//package
Section 153
//Barrel009 (Barrel009)
package {
import flash.display.*;
public dynamic class Barrel009 extends MovieClip {
}
}//package
Section 154
//Barrel010 (Barrel010)
package {
import flash.display.*;
public dynamic class Barrel010 extends MovieClip {
}
}//package
Section 155
//Barrel011 (Barrel011)
package {
import flash.display.*;
public dynamic class Barrel011 extends MovieClip {
}
}//package
Section 156
//Barrel012 (Barrel012)
package {
import flash.display.*;
public dynamic class Barrel012 extends MovieClip {
}
}//package
Section 157
//Barrel013 (Barrel013)
package {
import flash.display.*;
public dynamic class Barrel013 extends MovieClip {
}
}//package
Section 158
//Barrel014 (Barrel014)
package {
import flash.display.*;
public dynamic class Barrel014 extends MovieClip {
}
}//package
Section 159
//Barrel015 (Barrel015)
package {
import flash.display.*;
public dynamic class Barrel015 extends MovieClip {
}
}//package
Section 160
//Barrel016 (Barrel016)
package {
import flash.display.*;
public dynamic class Barrel016 extends MovieClip {
}
}//package
Section 161
//Barrel017 (Barrel017)
package {
import flash.display.*;
public dynamic class Barrel017 extends MovieClip {
}
}//package
Section 162
//Barrel018 (Barrel018)
package {
import flash.display.*;
public dynamic class Barrel018 extends MovieClip {
}
}//package
Section 163
//Barrel019 (Barrel019)
package {
import flash.display.*;
public dynamic class Barrel019 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 164
//Barrel020 (Barrel020)
package {
import flash.display.*;
public dynamic class Barrel020 extends MovieClip {
}
}//package
Section 165
//Barrel021 (Barrel021)
package {
import flash.display.*;
public dynamic class Barrel021 extends MovieClip {
}
}//package
Section 166
//Barrel022 (Barrel022)
package {
import flash.display.*;
public dynamic class Barrel022 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 167
//Barrel023 (Barrel023)
package {
import flash.display.*;
public dynamic class Barrel023 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 168
//Barrel024 (Barrel024)
package {
import flash.display.*;
public dynamic class Barrel024 extends MovieClip {
}
}//package
Section 169
//Barrel025 (Barrel025)
package {
import flash.display.*;
public dynamic class Barrel025 extends MovieClip {
}
}//package
Section 170
//Barrel026 (Barrel026)
package {
import flash.display.*;
public dynamic class Barrel026 extends MovieClip {
}
}//package
Section 171
//Barrel027 (Barrel027)
package {
import flash.display.*;
public dynamic class Barrel027 extends MovieClip {
}
}//package
Section 172
//Barrel028 (Barrel028)
package {
import flash.display.*;
public dynamic class Barrel028 extends MovieClip {
}
}//package
Section 173
//Barrel029 (Barrel029)
package {
import flash.display.*;
public dynamic class Barrel029 extends MovieClip {
}
}//package
Section 174
//Barrel030 (Barrel030)
package {
import flash.display.*;
public dynamic class Barrel030 extends MovieClip {
}
}//package
Section 175
//Barrel031 (Barrel031)
package {
import flash.display.*;
public dynamic class Barrel031 extends MovieClip {
}
}//package
Section 176
//Barrel032 (Barrel032)
package {
import flash.display.*;
public dynamic class Barrel032 extends MovieClip {
}
}//package
Section 177
//Barrel033 (Barrel033)
package {
import flash.display.*;
public dynamic class Barrel033 extends MovieClip {
}
}//package
Section 178
//Barrel034 (Barrel034)
package {
import flash.display.*;
public dynamic class Barrel034 extends MovieClip {
}
}//package
Section 179
//Barrel035 (Barrel035)
package {
import flash.display.*;
public dynamic class Barrel035 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 180
//Barrel036 (Barrel036)
package {
import flash.display.*;
public dynamic class Barrel036 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 181
//Barrel037 (Barrel037)
package {
import flash.display.*;
public dynamic class Barrel037 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 182
//Barrel038 (Barrel038)
package {
import flash.display.*;
public dynamic class Barrel038 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 183
//Barrel039 (Barrel039)
package {
import flash.display.*;
public dynamic class Barrel039 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 184
//Barrel040 (Barrel040)
package {
import flash.display.*;
public dynamic class Barrel040 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 185
//Barrel041 (Barrel041)
package {
import flash.display.*;
public dynamic class Barrel041 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 186
//Barrett98B (Barrett98B)
package {
import flash.display.*;
public dynamic class Barrett98B extends MovieClip {
}
}//package
Section 187
//Bayonet01 (Bayonet01)
package {
import flash.display.*;
public dynamic class Bayonet01 extends MovieClip {
}
}//package
Section 188
//Bayonet02 (Bayonet02)
package {
import flash.display.*;
public dynamic class Bayonet02 extends MovieClip {
}
}//package
Section 189
//Bayonet03 (Bayonet03)
package {
import flash.display.*;
public dynamic class Bayonet03 extends MovieClip {
}
}//package
Section 190
//Bayonet04 (Bayonet04)
package {
import flash.display.*;
public dynamic class Bayonet04 extends MovieClip {
}
}//package
Section 191
//Bayonet05 (Bayonet05)
package {
import flash.display.*;
public dynamic class Bayonet05 extends MovieClip {
}
}//package
Section 192
//Bayonet06 (Bayonet06)
package {
import flash.display.*;
public dynamic class Bayonet06 extends MovieClip {
}
}//package
Section 193
//Bipod01 (Bipod01)
package {
import flash.display.*;
public dynamic class Bipod01 extends MovieClip {
}
}//package
Section 194
//Bipod01A (Bipod01A)
package {
import flash.display.*;
public dynamic class Bipod01A extends MovieClip {
}
}//package
Section 195
//Bipod01B (Bipod01B)
package {
import flash.display.*;
public dynamic class Bipod01B extends MovieClip {
}
}//package
Section 196
//Bipod01C (Bipod01C)
package {
import flash.display.*;
public dynamic class Bipod01C extends MovieClip {
}
}//package
Section 197
//Bipod02 (Bipod02)
package {
import flash.display.*;
public dynamic class Bipod02 extends MovieClip {
}
}//package
Section 198
//Bipod02A (Bipod02A)
package {
import flash.display.*;
public dynamic class Bipod02A extends MovieClip {
}
}//package
Section 199
//Bipod02B (Bipod02B)
package {
import flash.display.*;
public dynamic class Bipod02B extends MovieClip {
}
}//package
Section 200
//Bipod02C (Bipod02C)
package {
import flash.display.*;
public dynamic class Bipod02C extends MovieClip {
}
}//package
Section 201
//Bipod02D (Bipod02D)
package {
import flash.display.*;
public dynamic class Bipod02D extends MovieClip {
}
}//package
Section 202
//Bipod03 (Bipod03)
package {
import flash.display.*;
public dynamic class Bipod03 extends MovieClip {
}
}//package
Section 203
//Bipod03A (Bipod03A)
package {
import flash.display.*;
public dynamic class Bipod03A extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 204
//Bipod03B (Bipod03B)
package {
import flash.display.*;
public dynamic class Bipod03B extends MovieClip {
public var color1:mcColor;
}
}//package
Section 205
//Bipod03C (Bipod03C)
package {
import flash.display.*;
public dynamic class Bipod03C extends MovieClip {
public var color1:mcColor;
}
}//package
Section 206
//Bipod03D (Bipod03D)
package {
import flash.display.*;
public dynamic class Bipod03D extends MovieClip {
public var color1:mcColor;
}
}//package
Section 207
//Bipod03E (Bipod03E)
package {
import flash.display.*;
public dynamic class Bipod03E extends MovieClip {
public var color1:mcColor;
}
}//package
Section 208
//Bipod03F (Bipod03F)
package {
import flash.display.*;
public dynamic class Bipod03F extends MovieClip {
public var color1:mcColor;
}
}//package
Section 209
//Bipod03G (Bipod03G)
package {
import flash.display.*;
public dynamic class Bipod03G extends MovieClip {
public var color1:mcColor;
}
}//package
Section 210
//Bolt001 (Bolt001)
package {
import flash.display.*;
public dynamic class Bolt001 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 211
//Bolt002 (Bolt002)
package {
import flash.display.*;
public dynamic class Bolt002 extends MovieClip {
}
}//package
Section 212
//Bolt003 (Bolt003)
package {
import flash.display.*;
public dynamic class Bolt003 extends MovieClip {
}
}//package
Section 213
//Bolt004 (Bolt004)
package {
import flash.display.*;
public dynamic class Bolt004 extends MovieClip {
}
}//package
Section 214
//Bolt005 (Bolt005)
package {
import flash.display.*;
public dynamic class Bolt005 extends MovieClip {
}
}//package
Section 215
//Bolt006 (Bolt006)
package {
import flash.display.*;
public dynamic class Bolt006 extends MovieClip {
}
}//package
Section 216
//Bolt007 (Bolt007)
package {
import flash.display.*;
public dynamic class Bolt007 extends MovieClip {
}
}//package
Section 217
//Bolt007B (Bolt007B)
package {
import flash.display.*;
public dynamic class Bolt007B extends MovieClip {
}
}//package
Section 218
//Bolt008 (Bolt008)
package {
import flash.display.*;
public dynamic class Bolt008 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 219
//Bolt009 (Bolt009)
package {
import flash.display.*;
public dynamic class Bolt009 extends MovieClip {
}
}//package
Section 220
//Bolt010 (Bolt010)
package {
import flash.display.*;
public dynamic class Bolt010 extends MovieClip {
}
}//package
Section 221
//Bolt010B (Bolt010B)
package {
import flash.display.*;
public dynamic class Bolt010B extends MovieClip {
}
}//package
Section 222
//Bolt011 (Bolt011)
package {
import flash.display.*;
public dynamic class Bolt011 extends MovieClip {
}
}//package
Section 223
//Bolt011B (Bolt011B)
package {
import flash.display.*;
public dynamic class Bolt011B extends MovieClip {
}
}//package
Section 224
//Bolt012 (Bolt012)
package {
import flash.display.*;
public dynamic class Bolt012 extends MovieClip {
}
}//package
Section 225
//Bolt013 (Bolt013)
package {
import flash.display.*;
public dynamic class Bolt013 extends MovieClip {
}
}//package
Section 226
//Bolt014 (Bolt014)
package {
import flash.display.*;
public dynamic class Bolt014 extends MovieClip {
}
}//package
Section 227
//Bolt015 (Bolt015)
package {
import flash.display.*;
public dynamic class Bolt015 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 228
//Bolt016 (Bolt016)
package {
import flash.display.*;
public dynamic class Bolt016 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 229
//BufferTube01 (BufferTube01)
package {
import flash.display.*;
public dynamic class BufferTube01 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 230
//BufferTube02 (BufferTube02)
package {
import flash.display.*;
public dynamic class BufferTube02 extends MovieClip {
}
}//package
Section 231
//BufferTube03 (BufferTube03)
package {
import flash.display.*;
public dynamic class BufferTube03 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 232
//BufferTube04 (BufferTube04)
package {
import flash.display.*;
public dynamic class BufferTube04 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 233
//Buttplate01 (Buttplate01)
package {
import flash.display.*;
public dynamic class Buttplate01 extends MovieClip {
}
}//package
Section 234
//CAR15 (CAR15)
package {
import flash.display.*;
public dynamic class CAR15 extends MovieClip {
}
}//package
Section 235
//CarryingHandle01A (CarryingHandle01A)
package {
import flash.display.*;
public dynamic class CarryingHandle01A extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 236
//CarryingHandle01B (CarryingHandle01B)
package {
import flash.display.*;
public dynamic class CarryingHandle01B extends MovieClip {
public var color1:mcColor;
}
}//package
Section 237
//CellRenderer_disabledSkin (CellRenderer_disabledSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_disabledSkin extends MovieClip {
}
}//package
Section 238
//CellRenderer_downSkin (CellRenderer_downSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_downSkin extends MovieClip {
}
}//package
Section 239
//CellRenderer_overSkin (CellRenderer_overSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_overSkin extends MovieClip {
}
}//package
Section 240
//CellRenderer_selectedDisabledSkin (CellRenderer_selectedDisabledSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedDisabledSkin extends MovieClip {
}
}//package
Section 241
//CellRenderer_selectedDownSkin (CellRenderer_selectedDownSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedDownSkin extends MovieClip {
}
}//package
Section 242
//CellRenderer_selectedOverSkin (CellRenderer_selectedOverSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedOverSkin extends MovieClip {
}
}//package
Section 243
//CellRenderer_selectedUpSkin (CellRenderer_selectedUpSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_selectedUpSkin extends MovieClip {
}
}//package
Section 244
//CellRenderer_upSkin (CellRenderer_upSkin)
package {
import flash.display.*;
public dynamic class CellRenderer_upSkin extends MovieClip {
}
}//package
Section 245
//ChamberLid01 (ChamberLid01)
package {
import flash.display.*;
public dynamic class ChamberLid01 extends MovieClip {
}
}//package
Section 246
//ChargingHandle01 (ChargingHandle01)
package {
import flash.display.*;
public dynamic class ChargingHandle01 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 247
//CheckBox_disabledIcon (CheckBox_disabledIcon)
package {
import flash.display.*;
public dynamic class CheckBox_disabledIcon extends MovieClip {
}
}//package
Section 248
//CheckBox_downIcon (CheckBox_downIcon)
package {
import flash.display.*;
public dynamic class CheckBox_downIcon extends MovieClip {
}
}//package
Section 249
//CheckBox_overIcon (CheckBox_overIcon)
package {
import flash.display.*;
public dynamic class CheckBox_overIcon extends MovieClip {
}
}//package
Section 250
//CheckBox_selectedDisabledIcon (CheckBox_selectedDisabledIcon)
package {
import flash.display.*;
public dynamic class CheckBox_selectedDisabledIcon extends MovieClip {
}
}//package
Section 251
//CheckBox_selectedDownIcon (CheckBox_selectedDownIcon)
package {
import flash.display.*;
public dynamic class CheckBox_selectedDownIcon extends MovieClip {
}
}//package
Section 252
//CheckBox_selectedOverIcon (CheckBox_selectedOverIcon)
package {
import flash.display.*;
public dynamic class CheckBox_selectedOverIcon extends MovieClip {
}
}//package
Section 253
//CheckBox_selectedUpIcon (CheckBox_selectedUpIcon)
package {
import flash.display.*;
public dynamic class CheckBox_selectedUpIcon extends MovieClip {
}
}//package
Section 254
//CheckBox_upIcon (CheckBox_upIcon)
package {
import flash.display.*;
public dynamic class CheckBox_upIcon extends MovieClip {
}
}//package
Section 255
//CheekRest01 (CheekRest01)
package {
import flash.display.*;
public dynamic class CheekRest01 extends MovieClip {
}
}//package
Section 256
//CheekRest02 (CheekRest02)
package {
import flash.display.*;
public dynamic class CheekRest02 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 257
//CheekRest03 (CheekRest03)
package {
import flash.display.*;
public dynamic class CheekRest03 extends MovieClip {
}
}//package
Section 258
//ColorIcon (ColorIcon)
package {
import flash.display.*;
import flash.geom.*;
import fl.motion.*;
public dynamic class ColorIcon extends MovieClip {
public var color:mcColor;
public function ColorIcon(){
addFrameScript(0, frame1);
}
public function SetColor(_arg1:uint):void{
var _local2:Color;
var _local3:ColorTransform;
_local2 = new Color();
_local2.tintColor = _arg1;
_local3 = color.transform.colorTransform;
_local3.color = _local2.tintColor;
color.transform.colorTransform = _local3;
}
function frame1(){
}
public function GetColor():uint{
return (color.transform.colorTransform.color);
}
}
}//package
Section 259
//ColorSelector (ColorSelector)
package {
import fl.controls.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ColorSelector extends MovieClip {
public var btnUp:SimpleButton;
public var btnDel:SimpleButton;
public var btnDown:SimpleButton;
public var bgCustom:MovieClip;
public var bgDefault:MovieClip;
public var bg:MovieClip;
public var colorIcon:ColorIcon;
public var mcCustom:MovieClip;
public var mcMask:MovieClip;
public var btnAdd:SimpleButton;
public var colorID:Number;
public var mcDefault:MovieClip;
public var txtColor:TextInput;
public var colorPreview:ColorIcon;
public function ColorSelector(){
addFrameScript(0, frame1);
__setProp_txtColor_ColorSelector_UI_1();
}
public function DispatchColorChange(_arg1:uint):void{
dispatchEvent(new SelectEvent(_arg1.toString(16), SelectEvent.COLOR_CHANGE));
}
public function KeyHandler(_arg1:KeyboardEvent):void{
var _local2:uint;
if (_arg1.keyCode == Keyboard.ENTER){
_local2 = new uint(("0x" + txtColor.text));
SetIconColor(_local2);
SetPreviewColor(_local2);
DispatchColorChange(_local2);
};
}
public function SetIconColor(_arg1:uint):void{
colorIcon.alpha = 1;
colorIcon.SetColor(_arg1);
}
public function TextChangeHandler(_arg1:Event):void{
var _local2:uint;
_local2 = new uint(("0x" + txtColor.text));
SetPreviewColor(_local2);
}
public function Hide():void{
txtColor.visible = false;
colorPreview.visible = false;
bg.visible = false;
mcDefault.visible = false;
bgDefault.visible = false;
bgCustom.visible = false;
mcMask.visible = false;
mcCustom.visible = false;
btnUp.visible = false;
btnDown.visible = false;
btnAdd.visible = false;
btnDel.visible = false;
}
function frame1(){
txtColor.addEventListener(KeyboardEvent.KEY_DOWN, KeyHandler);
txtColor.addEventListener(Event.CHANGE, TextChangeHandler);
colorIcon.addEventListener(MouseEvent.CLICK, ToggleVisibility);
btnAdd.addEventListener(MouseEvent.CLICK, AddColorHandler);
btnDel.addEventListener(MouseEvent.CLICK, DelColorHandler);
mcMask.addEventListener(MouseEvent.MOUSE_WHEEL, MouseWheelHandler);
btnUp.addEventListener(MouseEvent.CLICK, ScrollHandler);
btnDown.addEventListener(MouseEvent.CLICK, ScrollHandler);
}
public function AddColorHandler(_arg1:MouseEvent):void{
ColorManager.AddUserColor(new uint(("0x" + txtColor.text)));
LoadUserColors();
}
public function ToggleVisibility(_arg1:MouseEvent):void{
LoadUserColors();
dispatchEvent(new SelectEvent("", SelectEvent.COLOR_CLICK));
txtColor.visible = !(txtColor.visible);
colorPreview.visible = !(colorPreview.visible);
bg.visible = !(bg.visible);
mcDefault.visible = !(mcDefault.visible);
bgDefault.visible = !(bgDefault.visible);
bgCustom.visible = !(bgCustom.visible);
mcMask.visible = !(mcMask.visible);
mcCustom.visible = !(mcCustom.visible);
btnUp.visible = !(btnUp.visible);
btnDown.visible = !(btnDown.visible);
btnAdd.visible = !(btnAdd.visible);
btnDel.visible = !(btnDel.visible);
}
public function Initialize(_arg1:uint, _arg2:Number):void{
var _local3:*;
var _local4:ColorIcon;
colorID = _arg2;
SetIconColor(_arg1);
SetPreviewColor(_arg1);
if (_arg1 == new uint(-1)){
colorIcon.alpha = 0.1;
};
txtColor.text = _arg1.toString(16);
for each (_local3 in ColorManager.defaultColors) {
_local4 = new ColorIcon();
_local4.width = 10;
_local4.height = 10;
_local4.x = (10 * (mcDefault.numChildren % 8));
_local4.y = (10 * Math.floor((mcDefault.numChildren / 8)));
_local4.addEventListener(MouseEvent.CLICK, DefaultColorHandler);
mcDefault.addChild(_local4);
_local4.SetColor(_local3);
};
LoadUserColors();
Hide();
}
public function ScrollHandler(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Tween;
var _local4:Number;
var _local5:Tween;
if (_arg1.currentTarget == btnUp){
if (mcCustom.y < mcMask.y){
_local2 = (((mcMask.y - mcCustom.y))>=Consts.ScrollSpeed) ? Consts.ScrollSpeedCrawl : (mcMask.y - mcCustom.y);
_local3 = new Tween(mcCustom, "y", Regular.easeOut, mcCustom.y, (mcCustom.y + _local2), Consts.ScrollTime);
_local3.start();
};
} else {
if (_arg1.currentTarget == btnDown){
if ((mcCustom.y + mcCustom.height) > (mcMask.y + mcMask.height)){
_local4 = ((((mcCustom.y + mcCustom.height) - (mcMask.y + mcMask.height)))>=Consts.ScrollSpeed) ? Consts.ScrollSpeedCrawl : ((mcCustom.y + mcCustom.height) - (mcMask.y + mcMask.height));
_local5 = new Tween(mcCustom, "y", Regular.easeOut, mcCustom.y, (mcCustom.y - _local4), Consts.ScrollTime);
_local5.start();
};
};
};
}
public function LoadUserColors():void{
var _local1:Number;
var _local2:*;
var _local3:*;
var _local4:ColorIcon;
_local1 = (mcCustom.numChildren - 1);
while (_local1 >= 0) {
_local3 = mcCustom.getChildAt(_local1);
_local3.removeEventListener(MouseEvent.CLICK, DefaultColorHandler);
mcCustom.removeChild(_local3);
_local1--;
};
for each (_local2 in ColorManager.userColors) {
_local4 = new ColorIcon();
_local4.width = 10;
_local4.height = 10;
_local4.x = (10 * (mcCustom.numChildren % 8));
_local4.y = (10 * Math.floor((mcCustom.numChildren / 8)));
_local4.addEventListener(MouseEvent.CLICK, DefaultColorHandler);
mcCustom.addChild(_local4);
_local4.SetColor(_local2);
};
}
public function MouseWheelHandler(_arg1:MouseEvent):void{
if (_arg1.delta > 0){
btnUp.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
} else {
btnDown.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
public function DefaultColorHandler(_arg1:MouseEvent):void{
var _local2:uint;
_local2 = _arg1.currentTarget.GetColor();
SetIconColor(_local2);
SetPreviewColor(_local2);
txtColor.text = _local2.toString(16);
DispatchColorChange(_local2);
}
function __setProp_txtColor_ColorSelector_UI_1(){
try {
txtColor["componentInspectorSetting"] = true;
} catch(e:Error) {
};
txtColor.displayAsPassword = false;
txtColor.editable = true;
txtColor.enabled = true;
txtColor.maxChars = 6;
txtColor.restrict = "0-9abcdef";
txtColor.text = "#FFFFFF";
txtColor.visible = true;
try {
txtColor["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function SetPreviewColor(_arg1:uint):void{
colorPreview.SetColor(_arg1);
}
public function DelColorHandler(_arg1:MouseEvent):void{
ColorManager.RemoveUserColor(new uint(("0x" + txtColor.text)));
LoadUserColors();
}
}
}//package
Section 260
//ComboBox_disabledSkin (ComboBox_disabledSkin)
package {
import flash.display.*;
public dynamic class ComboBox_disabledSkin extends MovieClip {
}
}//package
Section 261
//ComboBox_downSkin (ComboBox_downSkin)
package {
import flash.display.*;
public dynamic class ComboBox_downSkin extends MovieClip {
}
}//package
Section 262
//ComboBox_overSkin (ComboBox_overSkin)
package {
import flash.display.*;
public dynamic class ComboBox_overSkin extends MovieClip {
}
}//package
Section 263
//ComboBox_upSkin (ComboBox_upSkin)
package {
import flash.display.*;
public dynamic class ComboBox_upSkin extends MovieClip {
}
}//package
Section 264
//Compensator001 (Compensator001)
package {
import flash.display.*;
public dynamic class Compensator001 extends MovieClip {
}
}//package
Section 265
//Compensator002 (Compensator002)
package {
import flash.display.*;
public dynamic class Compensator002 extends MovieClip {
}
}//package
Section 266
//Compensator003 (Compensator003)
package {
import flash.display.*;
public dynamic class Compensator003 extends MovieClip {
}
}//package
Section 267
//Compensator004 (Compensator004)
package {
import flash.display.*;
public dynamic class Compensator004 extends MovieClip {
}
}//package
Section 268
//Compensator005 (Compensator005)
package {
import flash.display.*;
public dynamic class Compensator005 extends MovieClip {
}
}//package
Section 269
//CReceiver001 (CReceiver001)
package {
import flash.display.*;
public dynamic class CReceiver001 extends MovieClip {
}
}//package
Section 270
//CReceiver002 (CReceiver002)
package {
import flash.display.*;
public dynamic class CReceiver002 extends MovieClip {
}
}//package
Section 271
//CReceiver003 (CReceiver003)
package {
import flash.display.*;
public dynamic class CReceiver003 extends MovieClip {
}
}//package
Section 272
//CReceiver004 (CReceiver004)
package {
import flash.display.*;
public dynamic class CReceiver004 extends MovieClip {
}
}//package
Section 273
//CReceiver005 (CReceiver005)
package {
import flash.display.*;
public dynamic class CReceiver005 extends MovieClip {
}
}//package
Section 274
//CReceiver006 (CReceiver006)
package {
import flash.display.*;
public dynamic class CReceiver006 extends MovieClip {
}
}//package
Section 275
//CReceiver007 (CReceiver007)
package {
import flash.display.*;
public dynamic class CReceiver007 extends MovieClip {
}
}//package
Section 276
//CReceiver008 (CReceiver008)
package {
import flash.display.*;
public dynamic class CReceiver008 extends MovieClip {
}
}//package
Section 277
//CReceiver009 (CReceiver009)
package {
import flash.display.*;
public dynamic class CReceiver009 extends MovieClip {
}
}//package
Section 278
//CReceiver010 (CReceiver010)
package {
import flash.display.*;
public dynamic class CReceiver010 extends MovieClip {
}
}//package
Section 279
//CReceiver011 (CReceiver011)
package {
import flash.display.*;
public dynamic class CReceiver011 extends MovieClip {
}
}//package
Section 280
//CReceiver012 (CReceiver012)
package {
import flash.display.*;
public dynamic class CReceiver012 extends MovieClip {
}
}//package
Section 281
//CReceiver013 (CReceiver013)
package {
import flash.display.*;
public dynamic class CReceiver013 extends MovieClip {
}
}//package
Section 282
//CReceiver014 (CReceiver014)
package {
import flash.display.*;
public dynamic class CReceiver014 extends MovieClip {
}
}//package
Section 283
//CReceiver015 (CReceiver015)
package {
import flash.display.*;
public dynamic class CReceiver015 extends MovieClip {
}
}//package
Section 284
//CReceiver016 (CReceiver016)
package {
import flash.display.*;
public dynamic class CReceiver016 extends MovieClip {
}
}//package
Section 285
//CReceiver017 (CReceiver017)
package {
import flash.display.*;
public dynamic class CReceiver017 extends MovieClip {
}
}//package
Section 286
//CReceiver018 (CReceiver018)
package {
import flash.display.*;
public dynamic class CReceiver018 extends MovieClip {
}
}//package
Section 287
//CReceiver019 (CReceiver019)
package {
import flash.display.*;
public dynamic class CReceiver019 extends MovieClip {
}
}//package
Section 288
//CReceiver020 (CReceiver020)
package {
import flash.display.*;
public dynamic class CReceiver020 extends MovieClip {
}
}//package
Section 289
//CStock01 (CStock01)
package {
import flash.display.*;
public dynamic class CStock01 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 290
//CStock02 (CStock02)
package {
import flash.display.*;
public dynamic class CStock02 extends MovieClip {
}
}//package
Section 291
//CStock03 (CStock03)
package {
import flash.display.*;
public dynamic class CStock03 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 292
//CStock04 (CStock04)
package {
import flash.display.*;
public dynamic class CStock04 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 293
//CStock05 (CStock05)
package {
import flash.display.*;
public dynamic class CStock05 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 294
//CStock06B (CStock06B)
package {
import flash.display.*;
public dynamic class CStock06B extends MovieClip {
}
}//package
Section 295
//CStock06L (CStock06L)
package {
import flash.display.*;
public dynamic class CStock06L extends MovieClip {
}
}//package
Section 296
//CStock06S (CStock06S)
package {
import flash.display.*;
public dynamic class CStock06S extends MovieClip {
}
}//package
Section 297
//CStock06Tube1 (CStock06Tube1)
package {
import flash.display.*;
public dynamic class CStock06Tube1 extends MovieClip {
}
}//package
Section 298
//CStock06Tube2 (CStock06Tube2)
package {
import flash.display.*;
public dynamic class CStock06Tube2 extends MovieClip {
}
}//package
Section 299
//CStock07 (CStock07)
package {
import flash.display.*;
public dynamic class CStock07 extends MovieClip {
}
}//package
Section 300
//CStock08 (CStock08)
package {
import flash.display.*;
public dynamic class CStock08 extends MovieClip {
}
}//package
Section 301
//CStock09 (CStock09)
package {
import flash.display.*;
public dynamic class CStock09 extends MovieClip {
}
}//package
Section 302
//CStock10 (CStock10)
package {
import flash.display.*;
public dynamic class CStock10 extends MovieClip {
}
}//package
Section 303
//CStock11 (CStock11)
package {
import flash.display.*;
public dynamic class CStock11 extends MovieClip {
}
}//package
Section 304
//CStock12 (CStock12)
package {
import flash.display.*;
public dynamic class CStock12 extends MovieClip {
}
}//package
Section 305
//CStock12A (CStock12A)
package {
import flash.display.*;
public dynamic class CStock12A extends MovieClip {
}
}//package
Section 306
//CStock12B (CStock12B)
package {
import flash.display.*;
public dynamic class CStock12B extends MovieClip {
}
}//package
Section 307
//CStock13 (CStock13)
package {
import flash.display.*;
public dynamic class CStock13 extends MovieClip {
}
}//package
Section 308
//CStock13A (CStock13A)
package {
import flash.display.*;
public dynamic class CStock13A extends MovieClip {
}
}//package
Section 309
//CStock13B (CStock13B)
package {
import flash.display.*;
public dynamic class CStock13B extends MovieClip {
}
}//package
Section 310
//CStock13C (CStock13C)
package {
import flash.display.*;
public dynamic class CStock13C extends MovieClip {
}
}//package
Section 311
//CStock14 (CStock14)
package {
import flash.display.*;
public dynamic class CStock14 extends MovieClip {
}
}//package
Section 312
//CStock14A (CStock14A)
package {
import flash.display.*;
public dynamic class CStock14A extends MovieClip {
public var color1:mcColor;
}
}//package
Section 313
//CStock15 (CStock15)
package {
import flash.display.*;
public dynamic class CStock15 extends MovieClip {
}
}//package
Section 314
//CStock15A (CStock15A)
package {
import flash.display.*;
public dynamic class CStock15A extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 315
//CStock15B (CStock15B)
package {
import flash.display.*;
public dynamic class CStock15B extends MovieClip {
public var color1:mcColor;
}
}//package
Section 316
//CStock16 (CStock16)
package {
import flash.display.*;
public dynamic class CStock16 extends MovieClip {
}
}//package
Section 317
//CStock16A (CStock16A)
package {
import flash.display.*;
public dynamic class CStock16A extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 318
//CStock16B (CStock16B)
package {
import flash.display.*;
public dynamic class CStock16B extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 319
//DeltaRing01 (DeltaRing01)
package {
import flash.display.*;
public dynamic class DeltaRing01 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 320
//DeltaRing02 (DeltaRing02)
package {
import flash.display.*;
public dynamic class DeltaRing02 extends MovieClip {
}
}//package
Section 321
//DeltaRing03 (DeltaRing03)
package {
import flash.display.*;
public dynamic class DeltaRing03 extends MovieClip {
}
}//package
Section 322
//DeltaRing04 (DeltaRing04)
package {
import flash.display.*;
public dynamic class DeltaRing04 extends MovieClip {
}
}//package
Section 323
//DeltaRing05 (DeltaRing05)
package {
import flash.display.*;
public dynamic class DeltaRing05 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 324
//DrNoobs1 (DrNoobs1)
package {
import flash.display.*;
public dynamic class DrNoobs1 extends MovieClip {
}
}//package
Section 325
//DustCover01 (DustCover01)
package {
import flash.display.*;
public dynamic class DustCover01 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 326
//DustCover02 (DustCover02)
package {
import flash.display.*;
public dynamic class DustCover02 extends MovieClip {
}
}//package
Section 327
//DustCover03 (DustCover03)
package {
import flash.display.*;
public dynamic class DustCover03 extends MovieClip {
}
}//package
Section 328
//DynamicCategoryButton (DynamicCategoryButton)
package {
import flash.display.*;
import flash.text.*;
public dynamic class DynamicCategoryButton extends MovieClip {
public var txtCaption:TextField;
public function DynamicCategoryButton(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
txtCaption.wordWrap = false;
}
}
}//package
Section 329
//EGLM (EGLM)
package {
import flash.display.*;
public dynamic class EGLM extends MovieClip {
}
}//package
Section 330
//F2000 (F2000)
package {
import flash.display.*;
public dynamic class F2000 extends MovieClip {
}
}//package
Section 331
//F2000Tactical (F2000Tactical)
package {
import flash.display.*;
public dynamic class F2000Tactical extends MovieClip {
}
}//package
Section 332
//FlashHider001 (FlashHider001)
package {
import flash.display.*;
public dynamic class FlashHider001 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 333
//FlashHider002 (FlashHider002)
package {
import flash.display.*;
public dynamic class FlashHider002 extends MovieClip {
}
}//package
Section 334
//FlashHider003 (FlashHider003)
package {
import flash.display.*;
public dynamic class FlashHider003 extends MovieClip {
}
}//package
Section 335
//FlashHider004 (FlashHider004)
package {
import flash.display.*;
public dynamic class FlashHider004 extends MovieClip {
}
}//package
Section 336
//FlashHider005 (FlashHider005)
package {
import flash.display.*;
public dynamic class FlashHider005 extends MovieClip {
}
}//package
Section 337
//FlashHider006 (FlashHider006)
package {
import flash.display.*;
public dynamic class FlashHider006 extends MovieClip {
}
}//package
Section 338
//FlashHider007 (FlashHider007)
package {
import flash.display.*;
public dynamic class FlashHider007 extends MovieClip {
}
}//package
Section 339
//FlashHider008 (FlashHider008)
package {
import flash.display.*;
public dynamic class FlashHider008 extends MovieClip {
}
}//package
Section 340
//FlashHider009 (FlashHider009)
package {
import flash.display.*;
public dynamic class FlashHider009 extends MovieClip {
}
}//package
Section 341
//FlashHider010 (FlashHider010)
package {
import flash.display.*;
public dynamic class FlashHider010 extends MovieClip {
}
}//package
Section 342
//FlashHider011 (FlashHider011)
package {
import flash.display.*;
public dynamic class FlashHider011 extends MovieClip {
}
}//package
Section 343
//FlashHider012 (FlashHider012)
package {
import flash.display.*;
public dynamic class FlashHider012 extends MovieClip {
}
}//package
Section 344
//FlashHider013 (FlashHider013)
package {
import flash.display.*;
public dynamic class FlashHider013 extends MovieClip {
}
}//package
Section 345
//FlashHider014 (FlashHider014)
package {
import flash.display.*;
public dynamic class FlashHider014 extends MovieClip {
}
}//package
Section 346
//FlashHider015 (FlashHider015)
package {
import flash.display.*;
public dynamic class FlashHider015 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 347
//FlashHider016 (FlashHider016)
package {
import flash.display.*;
public dynamic class FlashHider016 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 348
//FlashHider017 (FlashHider017)
package {
import flash.display.*;
public dynamic class FlashHider017 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 349
//FlashHider018 (FlashHider018)
package {
import flash.display.*;
public dynamic class FlashHider018 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 350
//FlashHider019 (FlashHider019)
package {
import flash.display.*;
public dynamic class FlashHider019 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 351
//Flashlight01 (Flashlight01)
package {
import flash.display.*;
public dynamic class Flashlight01 extends MovieClip {
}
}//package
Section 352
//Flashlight02 (Flashlight02)
package {
import flash.display.*;
public dynamic class Flashlight02 extends MovieClip {
}
}//package
Section 353
//Flashlight03 (Flashlight03)
package {
import flash.display.*;
public dynamic class Flashlight03 extends MovieClip {
}
}//package
Section 354
//Flashlight04 (Flashlight04)
package {
import flash.display.*;
public dynamic class Flashlight04 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 355
//focusRectSkin (focusRectSkin)
package {
import flash.display.*;
public dynamic class focusRectSkin extends MovieClip {
}
}//package
Section 356
//Foregrip001 (Foregrip001)
package {
import flash.display.*;
public dynamic class Foregrip001 extends MovieClip {
}
}//package
Section 357
//Foregrip002 (Foregrip002)
package {
import flash.display.*;
public dynamic class Foregrip002 extends MovieClip {
}
}//package
Section 358
//Foregrip003 (Foregrip003)
package {
import flash.display.*;
public dynamic class Foregrip003 extends MovieClip {
}
}//package
Section 359
//Foregrip004 (Foregrip004)
package {
import flash.display.*;
public dynamic class Foregrip004 extends MovieClip {
}
}//package
Section 360
//Foregrip004A (Foregrip004A)
package {
import flash.display.*;
public dynamic class Foregrip004A extends MovieClip {
}
}//package
Section 361
//Foregrip004B (Foregrip004B)
package {
import flash.display.*;
public dynamic class Foregrip004B extends MovieClip {
}
}//package
Section 362
//Foregrip004C (Foregrip004C)
package {
import flash.display.*;
public dynamic class Foregrip004C extends MovieClip {
}
}//package
Section 363
//Foregrip005 (Foregrip005)
package {
import flash.display.*;
public dynamic class Foregrip005 extends MovieClip {
}
}//package
Section 364
//Foregrip006 (Foregrip006)
package {
import flash.display.*;
public dynamic class Foregrip006 extends MovieClip {
}
}//package
Section 365
//Foregrip007 (Foregrip007)
package {
import flash.display.*;
public dynamic class Foregrip007 extends MovieClip {
}
}//package
Section 366
//Foregrip008 (Foregrip008)
package {
import flash.display.*;
public dynamic class Foregrip008 extends MovieClip {
}
}//package
Section 367
//Foregrip009 (Foregrip009)
package {
import flash.display.*;
public dynamic class Foregrip009 extends MovieClip {
}
}//package
Section 368
//Foregrip010 (Foregrip010)
package {
import flash.display.*;
public dynamic class Foregrip010 extends MovieClip {
}
}//package
Section 369
//Foregrip010A (Foregrip010A)
package {
import flash.display.*;
public dynamic class Foregrip010A extends MovieClip {
}
}//package
Section 370
//Foregrip010B (Foregrip010B)
package {
import flash.display.*;
public dynamic class Foregrip010B extends MovieClip {
}
}//package
Section 371
//Foregrip011 (Foregrip011)
package {
import flash.display.*;
public dynamic class Foregrip011 extends MovieClip {
}
}//package
Section 372
//Foregrip012 (Foregrip012)
package {
import flash.display.*;
public dynamic class Foregrip012 extends MovieClip {
}
}//package
Section 373
//Foregrip013 (Foregrip013)
package {
import flash.display.*;
public dynamic class Foregrip013 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 374
//Foregrip014 (Foregrip014)
package {
import flash.display.*;
public dynamic class Foregrip014 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 375
//Foregrip015 (Foregrip015)
package {
import flash.display.*;
public dynamic class Foregrip015 extends MovieClip {
}
}//package
Section 376
//Foregrip015A (Foregrip015A)
package {
import flash.display.*;
public dynamic class Foregrip015A extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 377
//FStock01 (FStock01)
package {
import flash.display.*;
public dynamic class FStock01 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 378
//FStock02 (FStock02)
package {
import flash.display.*;
public dynamic class FStock02 extends MovieClip {
}
}//package
Section 379
//FStock03 (FStock03)
package {
import flash.display.*;
public dynamic class FStock03 extends MovieClip {
}
}//package
Section 380
//FStock04 (FStock04)
package {
import flash.display.*;
public dynamic class FStock04 extends MovieClip {
}
}//package
Section 381
//FStock05 (FStock05)
package {
import flash.display.*;
public dynamic class FStock05 extends MovieClip {
}
}//package
Section 382
//FStock06 (FStock06)
package {
import flash.display.*;
public dynamic class FStock06 extends MovieClip {
}
}//package
Section 383
//FStock07 (FStock07)
package {
import flash.display.*;
public dynamic class FStock07 extends MovieClip {
}
}//package
Section 384
//FStock08 (FStock08)
package {
import flash.display.*;
public dynamic class FStock08 extends MovieClip {
}
}//package
Section 385
//FStock09 (FStock09)
package {
import flash.display.*;
public dynamic class FStock09 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 386
//G36 (G36)
package {
import flash.display.*;
public dynamic class G36 extends MovieClip {
}
}//package
Section 387
//G36C (G36C)
package {
import flash.display.*;
public dynamic class G36C extends MovieClip {
}
}//package
Section 388
//G36K (G36K)
package {
import flash.display.*;
public dynamic class G36K extends MovieClip {
}
}//package
Section 389
//GasBlock01 (GasBlock01)
package {
import flash.display.*;
public dynamic class GasBlock01 extends MovieClip {
}
}//package
Section 390
//GasBlock02 (GasBlock02)
package {
import flash.display.*;
public dynamic class GasBlock02 extends MovieClip {
}
}//package
Section 391
//GasBlock03 (GasBlock03)
package {
import flash.display.*;
public dynamic class GasBlock03 extends MovieClip {
}
}//package
Section 392
//GasBlock04 (GasBlock04)
package {
import flash.display.*;
public dynamic class GasBlock04 extends MovieClip {
}
}//package
Section 393
//GasBlock05 (GasBlock05)
package {
import flash.display.*;
public dynamic class GasBlock05 extends MovieClip {
}
}//package
Section 394
//GasBlock06 (GasBlock06)
package {
import flash.display.*;
public dynamic class GasBlock06 extends MovieClip {
}
}//package
Section 395
//GasBlock07 (GasBlock07)
package {
import flash.display.*;
public dynamic class GasBlock07 extends MovieClip {
}
}//package
Section 396
//GasBlock08 (GasBlock08)
package {
import flash.display.*;
public dynamic class GasBlock08 extends MovieClip {
}
}//package
Section 397
//GasBlock09 (GasBlock09)
package {
import flash.display.*;
public dynamic class GasBlock09 extends MovieClip {
}
}//package
Section 398
//GasBlock10 (GasBlock10)
package {
import flash.display.*;
public dynamic class GasBlock10 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 399
//GasBlock11 (GasBlock11)
package {
import flash.display.*;
public dynamic class GasBlock11 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 400
//GasBlock12 (GasBlock12)
package {
import flash.display.*;
public dynamic class GasBlock12 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 401
//GasBlock12A (GasBlock12A)
package {
import flash.display.*;
public dynamic class GasBlock12A extends MovieClip {
public var color1:mcColor;
}
}//package
Section 402
//GasBlock12B (GasBlock12B)
package {
import flash.display.*;
public dynamic class GasBlock12B extends MovieClip {
public var color1:mcColor;
}
}//package
Section 403
//GasBlock13 (GasBlock13)
package {
import flash.display.*;
public dynamic class GasBlock13 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 404
//GasBlock14 (GasBlock14)
package {
import flash.display.*;
public dynamic class GasBlock14 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 405
//GasTube01 (GasTube01)
package {
import flash.display.*;
public dynamic class GasTube01 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 406
//GasTube02 (GasTube02)
package {
import flash.display.*;
public dynamic class GasTube02 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 407
//GasTube03 (GasTube03)
package {
import flash.display.*;
public dynamic class GasTube03 extends MovieClip {
}
}//package
Section 408
//GasTube04 (GasTube04)
package {
import flash.display.*;
public dynamic class GasTube04 extends MovieClip {
}
}//package
Section 409
//GasTube05 (GasTube05)
package {
import flash.display.*;
public dynamic class GasTube05 extends MovieClip {
}
}//package
Section 410
//GasTube06 (GasTube06)
package {
import flash.display.*;
public dynamic class GasTube06 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 411
//GasTube07 (GasTube07)
package {
import flash.display.*;
public dynamic class GasTube07 extends MovieClip {
}
}//package
Section 412
//GasTube08 (GasTube08)
package {
import flash.display.*;
public dynamic class GasTube08 extends MovieClip {
}
}//package
Section 413
//GasTube09 (GasTube09)
package {
import flash.display.*;
public dynamic class GasTube09 extends MovieClip {
}
}//package
Section 414
//GasTube10 (GasTube10)
package {
import flash.display.*;
public dynamic class GasTube10 extends MovieClip {
}
}//package
Section 415
//GasTube11 (GasTube11)
package {
import flash.display.*;
public dynamic class GasTube11 extends MovieClip {
}
}//package
Section 416
//GasTube12 (GasTube12)
package {
import flash.display.*;
public dynamic class GasTube12 extends MovieClip {
}
}//package
Section 417
//GasTube13A (GasTube13A)
package {
import flash.display.*;
public dynamic class GasTube13A extends MovieClip {
public var color1:mcColor;
}
}//package
Section 418
//GasTube13B (GasTube13B)
package {
import flash.display.*;
public dynamic class GasTube13B extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 419
//GasTube14 (GasTube14)
package {
import flash.display.*;
public dynamic class GasTube14 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 420
//GL01BL (GL01BL)
package {
import flash.display.*;
public dynamic class GL01BL extends MovieClip {
}
}//package
Section 421
//GL01BMount (GL01BMount)
package {
import flash.display.*;
public dynamic class GL01BMount extends MovieClip {
}
}//package
Section 422
//GL01BS (GL01BS)
package {
import flash.display.*;
public dynamic class GL01BS extends MovieClip {
}
}//package
Section 423
//GL01RL (GL01RL)
package {
import flash.display.*;
public dynamic class GL01RL extends MovieClip {
}
}//package
Section 424
//GL01RMount (GL01RMount)
package {
import flash.display.*;
public dynamic class GL01RMount extends MovieClip {
}
}//package
Section 425
//GL01RS (GL01RS)
package {
import flash.display.*;
public dynamic class GL01RS extends MovieClip {
}
}//package
Section 426
//GL01TubeL (GL01TubeL)
package {
import flash.display.*;
public dynamic class GL01TubeL extends MovieClip {
}
}//package
Section 427
//GL01TubeS (GL01TubeS)
package {
import flash.display.*;
public dynamic class GL01TubeS extends MovieClip {
}
}//package
Section 428
//GL02 (GL02)
package {
import flash.display.*;
public dynamic class GL02 extends MovieClip {
}
}//package
Section 429
//GL02Base (GL02Base)
package {
import flash.display.*;
public dynamic class GL02Base extends MovieClip {
}
}//package
Section 430
//GL02Mag (GL02Mag)
package {
import flash.display.*;
public dynamic class GL02Mag extends MovieClip {
}
}//package
Section 431
//GL03Base (GL03Base)
package {
import flash.display.*;
public dynamic class GL03Base extends MovieClip {
}
}//package
Section 432
//GL03H (GL03H)
package {
import flash.display.*;
public dynamic class GL03H extends MovieClip {
}
}//package
Section 433
//GL03L (GL03L)
package {
import flash.display.*;
public dynamic class GL03L extends MovieClip {
}
}//package
Section 434
//GL03MountH (GL03MountH)
package {
import flash.display.*;
public dynamic class GL03MountH extends MovieClip {
}
}//package
Section 435
//GL03MountL (GL03MountL)
package {
import flash.display.*;
public dynamic class GL03MountL extends MovieClip {
}
}//package
Section 436
//GL03MountS (GL03MountS)
package {
import flash.display.*;
public dynamic class GL03MountS extends MovieClip {
}
}//package
Section 437
//GL03S (GL03S)
package {
import flash.display.*;
public dynamic class GL03S extends MovieClip {
}
}//package
Section 438
//GL03Tube (GL03Tube)
package {
import flash.display.*;
public dynamic class GL03Tube extends MovieClip {
}
}//package
Section 439
//GL04 (GL04)
package {
import flash.display.*;
public dynamic class GL04 extends MovieClip {
}
}//package
Section 440
//GL04Base (GL04Base)
package {
import flash.display.*;
public dynamic class GL04Base extends MovieClip {
}
}//package
Section 441
//GL04Mount (GL04Mount)
package {
import flash.display.*;
public dynamic class GL04Mount extends MovieClip {
}
}//package
Section 442
//GL04Sight (GL04Sight)
package {
import flash.display.*;
public dynamic class GL04Sight extends MovieClip {
}
}//package
Section 443
//GL05 (GL05)
package {
import flash.display.*;
public dynamic class GL05 extends MovieClip {
}
}//package
Section 444
//GL05Base (GL05Base)
package {
import flash.display.*;
public dynamic class GL05Base extends MovieClip {
}
}//package
Section 445
//GL05Tube (GL05Tube)
package {
import flash.display.*;
public dynamic class GL05Tube extends MovieClip {
}
}//package
Section 446
//Gren30mm01 (Gren30mm01)
package {
import flash.display.*;
public dynamic class Gren30mm01 extends MovieClip {
}
}//package
Section 447
//Gren40mm01 (Gren40mm01)
package {
import flash.display.*;
public dynamic class Gren40mm01 extends MovieClip {
}
}//package
Section 448
//Gren40mm02 (Gren40mm02)
package {
import flash.display.*;
public dynamic class Gren40mm02 extends MovieClip {
}
}//package
Section 449
//Gren40mm03 (Gren40mm03)
package {
import flash.display.*;
public dynamic class Gren40mm03 extends MovieClip {
}
}//package
Section 450
//Gren40mm04 (Gren40mm04)
package {
import flash.display.*;
public dynamic class Gren40mm04 extends MovieClip {
}
}//package
Section 451
//Gren40mmG2 (Gren40mmG2)
package {
import flash.display.*;
public dynamic class Gren40mmG2 extends MovieClip {
}
}//package
Section 452
//Gren40mmG3 (Gren40mmG3)
package {
import flash.display.*;
public dynamic class Gren40mmG3 extends MovieClip {
}
}//package
Section 453
//Gren40mmG4 (Gren40mmG4)
package {
import flash.display.*;
public dynamic class Gren40mmG4 extends MovieClip {
}
}//package
Section 454
//Gren40mmPracticeG (Gren40mmPracticeG)
package {
import flash.display.*;
public dynamic class Gren40mmPracticeG extends MovieClip {
}
}//package
Section 455
//Gren40mmS (Gren40mmS)
package {
import flash.display.*;
public dynamic class Gren40mmS extends MovieClip {
}
}//package
Section 456
//GroupItem (GroupItem)
package {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import fl.motion.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class GroupItem extends MovieClip {
public var items:Array;
public function GroupItem(){
addFrameScript(0, frame1);
}
public function AddItem(_arg1):void{
if (items == null){
items = new Array();
};
items.push(_arg1);
addChild(_arg1);
}
public function Clone():GroupItem{
var _local1:GroupItem;
var _local2:*;
_local1 = new GroupItem();
_local1.cacheAsBitmap = true;
_local1.transform = this.transform;
for each (_local2 in items) {
_local1.AddItem(_local2.Clone());
};
return (_local1);
}
public function SetColor(_arg1:Number, _arg2:Color):void{
var _local3:*;
for each (_local3 in items) {
if (_arg1 <= _local3.GetColors().length){
_local3.SetColor(_arg1, _arg2);
};
};
}
function frame1(){
}
public function ToXML():String{
var _local1:String;
var _local2:*;
var _local3:String;
var _local4:String;
_local1 = "";
for each (_local2 in items) {
_local1 = (_local1 + _local2.ToXML());
};
_local3 = "";
_local3 = (_local3 + ((this.scaleX)<0) ? "-1" : "1");
_local3 = (_local3 + ",");
_local3 = (_local3 + ((this.scaleY)<0) ? "-1" : "1");
_local4 = ((((((((((((((((("<group " + "x=\"") + this.x) + "\" ") + "y=\"") + this.y) + "\" ") + "rotation=\"") + this.rotation) + "\" ") + "scale=\"") + Math.abs(this.scaleX)) + "\" ") + "flip=\"") + _local3) + "\" >") + _local1) + "</group>");
return (_local4);
}
public function GetColors():Array{
var _local1:Array;
var _local2:*;
var _local3:Array;
var _local4:*;
_local1 = new Array();
for each (_local2 in items) {
_local3 = _local2.GetColors();
_local4 = 0;
while (_local4 < _local3.length) {
if (_local1[_local4] == null){
_local1.push(_local3[_local4]);
} else {
if (_local1[_local4] != _local3[_local4]){
_local1[_local4] = -1;
};
};
_local4++;
};
};
return (_local1);
}
public function Initialize(_arg1:String):void{
var _local2:*;
var _local3:Number;
var _local4:*;
var _local5:String;
var _local6:XML;
var _local7:*;
_local2 = PartFactory.CreateItem(_arg1);
_local3 = 0;
while (_local3 < _local2.numChildren) {
_local4 = _local2.getChildAt(_local3);
_local5 = PartFactory.GetItemName(_local4);
_local6 = PartDescription.list[_local5];
if (_local6 == null){
_local6 = new XML();
};
if (_local6.attribute("type").toString() == ""){
_local7 = new StandardItem();
_local7.Initialize(_local5);
} else {
if (_local6.attribute("type").toString() == "group"){
_local7 = new GroupItem();
_local7.Initialize(_local5);
};
};
_local7.x = _local4.x;
_local7.y = _local4.y;
_local7.rotation = _local4.rotation;
AddItem(_local7);
_local3++;
};
}
public function FromXML(_arg1:XML):void{
var _local2:Array;
var _local3:Array;
var _local4:*;
var _local5:Number;
var _local6:StandardItem;
var _local7:GroupItem;
this.x = _arg1.attribute("x").toString();
this.y = _arg1.attribute("y").toString();
this.scaleX = Math.abs(_arg1.attribute("scale").toString());
this.scaleY = Math.abs(_arg1.attribute("scale").toString());
this.rotation = _arg1.attribute("rotation").toString();
_local2 = _arg1.attribute("flip").toString().split(",");
if (_local2[0] < 0){
this.scaleX = (this.scaleX * -1);
};
if (_local2[1] < 0){
this.scaleY = (this.scaleY * -1);
};
_local3 = new Array();
for each (_local4 in _arg1.children()) {
if (_local4.localName() == "part"){
_local6 = new StandardItem();
_local6.FromXML(_local4);
_local3.push(_local6);
} else {
if (_local4.localName() == "group"){
_local7 = new GroupItem();
_local7.FromXML(_local4);
_local3.push(_local7);
};
};
};
_local5 = 0;
while (_local5 < _local3.length) {
AddItem(_local3[_local5]);
_local5++;
};
}
}
}//package
Section 457
//Handguard001 (Handguard001)
package {
import flash.display.*;
public dynamic class Handguard001 extends MovieClip {
}
}//package
Section 458
//Handguard002 (Handguard002)
package {
import flash.display.*;
public dynamic class Handguard002 extends MovieClip {
}
}//package
Section 459
//Handguard002Down (Handguard002Down)
package {
import flash.display.*;
public dynamic class Handguard002Down extends MovieClip {
public var color1:mcColor;
}
}//package
Section 460
//Handguard002Up (Handguard002Up)
package {
import flash.display.*;
public dynamic class Handguard002Up extends MovieClip {
public var color1:mcColor;
}
}//package
Section 461
//Handguard003 (Handguard003)
package {
import flash.display.*;
public dynamic class Handguard003 extends MovieClip {
}
}//package
Section 462
//Handguard003Down (Handguard003Down)
package {
import flash.display.*;
public dynamic class Handguard003Down extends MovieClip {
}
}//package
Section 463
//Handguard003Up (Handguard003Up)
package {
import flash.display.*;
public dynamic class Handguard003Up extends MovieClip {
}
}//package
Section 464
//Handguard004 (Handguard004)
package {
import flash.display.*;
public dynamic class Handguard004 extends MovieClip {
}
}//package
Section 465
//Handguard004Down (Handguard004Down)
package {
import flash.display.*;
public dynamic class Handguard004Down extends MovieClip {
}
}//package
Section 466
//Handguard004Up (Handguard004Up)
package {
import flash.display.*;
public dynamic class Handguard004Up extends MovieClip {
}
}//package
Section 467
//Handguard005 (Handguard005)
package {
import flash.display.*;
public dynamic class Handguard005 extends MovieClip {
}
}//package
Section 468
//Handguard005Down (Handguard005Down)
package {
import flash.display.*;
public dynamic class Handguard005Down extends MovieClip {
}
}//package
Section 469
//Handguard005Up (Handguard005Up)
package {
import flash.display.*;
public dynamic class Handguard005Up extends MovieClip {
}
}//package
Section 470
//Handguard006 (Handguard006)
package {
import flash.display.*;
public dynamic class Handguard006 extends MovieClip {
}
}//package
Section 471
//Handguard006Down (Handguard006Down)
package {
import flash.display.*;
public dynamic class Handguard006Down extends MovieClip {
}
}//package
Section 472
//Handguard006Up (Handguard006Up)
package {
import flash.display.*;
public dynamic class Handguard006Up extends MovieClip {
}
}//package
Section 473
//Handguard007 (Handguard007)
package {
import flash.display.*;
public dynamic class Handguard007 extends MovieClip {
}
}//package
Section 474
//Handguard007Down (Handguard007Down)
package {
import flash.display.*;
public dynamic class Handguard007Down extends MovieClip {
}
}//package
Section 475
//Handguard008 (Handguard008)
package {
import flash.display.*;
public dynamic class Handguard008 extends MovieClip {
}
}//package
Section 476
//Handguard009 (Handguard009)
package {
import flash.display.*;
public dynamic class Handguard009 extends MovieClip {
}
}//package
Section 477
//Handguard009A (Handguard009A)
package {
import flash.display.*;
public dynamic class Handguard009A extends MovieClip {
}
}//package
Section 478
//Handguard009B (Handguard009B)
package {
import flash.display.*;
public dynamic class Handguard009B extends MovieClip {
}
}//package
Section 479
//Handguard009C (Handguard009C)
package {
import flash.display.*;
public dynamic class Handguard009C extends MovieClip {
}
}//package
Section 480
//Handguard009D (Handguard009D)
package {
import flash.display.*;
public dynamic class Handguard009D extends MovieClip {
}
}//package
Section 481
//Handguard010 (Handguard010)
package {
import flash.display.*;
public dynamic class Handguard010 extends MovieClip {
}
}//package
Section 482
//Handguard011 (Handguard011)
package {
import flash.display.*;
public dynamic class Handguard011 extends MovieClip {
}
}//package
Section 483
//Handguard011A (Handguard011A)
package {
import flash.display.*;
public dynamic class Handguard011A extends MovieClip {
}
}//package
Section 484
//Handguard012 (Handguard012)
package {
import flash.display.*;
public dynamic class Handguard012 extends MovieClip {
}
}//package
Section 485
//Handguard013 (Handguard013)
package {
import flash.display.*;
public dynamic class Handguard013 extends MovieClip {
}
}//package
Section 486
//Handguard014 (Handguard014)
package {
import flash.display.*;
public dynamic class Handguard014 extends MovieClip {
}
}//package
Section 487
//Handguard015 (Handguard015)
package {
import flash.display.*;
public dynamic class Handguard015 extends MovieClip {
}
}//package
Section 488
//Handguard016 (Handguard016)
package {
import flash.display.*;
public dynamic class Handguard016 extends MovieClip {
}
}//package
Section 489
//Handguard017 (Handguard017)
package {
import flash.display.*;
public dynamic class Handguard017 extends MovieClip {
}
}//package
Section 490
//Handguard018 (Handguard018)
package {
import flash.display.*;
public dynamic class Handguard018 extends MovieClip {
}
}//package
Section 491
//Handguard018Down (Handguard018Down)
package {
import flash.display.*;
public dynamic class Handguard018Down extends MovieClip {
}
}//package
Section 492
//Handguard018Up (Handguard018Up)
package {
import flash.display.*;
public dynamic class Handguard018Up extends MovieClip {
}
}//package
Section 493
//Handguard019 (Handguard019)
package {
import flash.display.*;
public dynamic class Handguard019 extends MovieClip {
}
}//package
Section 494
//Handguard019Down (Handguard019Down)
package {
import flash.display.*;
public dynamic class Handguard019Down extends MovieClip {
}
}//package
Section 495
//Handguard019Up (Handguard019Up)
package {
import flash.display.*;
public dynamic class Handguard019Up extends MovieClip {
}
}//package
Section 496
//Handguard020 (Handguard020)
package {
import flash.display.*;
public dynamic class Handguard020 extends MovieClip {
}
}//package
Section 497
//Handguard020Down (Handguard020Down)
package {
import flash.display.*;
public dynamic class Handguard020Down extends MovieClip {
}
}//package
Section 498
//Handguard020Up (Handguard020Up)
package {
import flash.display.*;
public dynamic class Handguard020Up extends MovieClip {
}
}//package
Section 499
//Handguard021 (Handguard021)
package {
import flash.display.*;
public dynamic class Handguard021 extends MovieClip {
}
}//package
Section 500
//Handguard022 (Handguard022)
package {
import flash.display.*;
public dynamic class Handguard022 extends MovieClip {
}
}//package
Section 501
//Handguard022Down (Handguard022Down)
package {
import flash.display.*;
public dynamic class Handguard022Down extends MovieClip {
public var color1:mcColor;
}
}//package
Section 502
//Handguard022Up (Handguard022Up)
package {
import flash.display.*;
public dynamic class Handguard022Up extends MovieClip {
public var color1:mcColor;
}
}//package
Section 503
//Handguard023 (Handguard023)
package {
import flash.display.*;
public dynamic class Handguard023 extends MovieClip {
}
}//package
Section 504
//Handguard024 (Handguard024)
package {
import flash.display.*;
public dynamic class Handguard024 extends MovieClip {
}
}//package
Section 505
//Handguard025 (Handguard025)
package {
import flash.display.*;
public dynamic class Handguard025 extends MovieClip {
}
}//package
Section 506
//Handguard026 (Handguard026)
package {
import flash.display.*;
public dynamic class Handguard026 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 507
//Handguard027 (Handguard027)
package {
import flash.display.*;
public dynamic class Handguard027 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 508
//Handguard028 (Handguard028)
package {
import flash.display.*;
public dynamic class Handguard028 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 509
//Handguard029 (Handguard029)
package {
import flash.display.*;
public dynamic class Handguard029 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 510
//HK416 (HK416)
package {
import flash.display.*;
public dynamic class HK416 extends MovieClip {
}
}//package
Section 511
//HK417 (HK417)
package {
import flash.display.*;
public dynamic class HK417 extends MovieClip {
}
}//package
Section 512
//Holo001 (Holo001)
package {
import flash.display.*;
public dynamic class Holo001 extends MovieClip {
}
}//package
Section 513
//Holo002 (Holo002)
package {
import flash.display.*;
public dynamic class Holo002 extends MovieClip {
}
}//package
Section 514
//Holo003 (Holo003)
package {
import flash.display.*;
public dynamic class Holo003 extends MovieClip {
}
}//package
Section 515
//Holo005 (Holo005)
package {
import flash.display.*;
public dynamic class Holo005 extends MovieClip {
}
}//package
Section 516
//Holo006 (Holo006)
package {
import flash.display.*;
public dynamic class Holo006 extends MovieClip {
}
}//package
Section 517
//Holo007 (Holo007)
package {
import flash.display.*;
public dynamic class Holo007 extends MovieClip {
}
}//package
Section 518
//Holo008 (Holo008)
package {
import flash.display.*;
public dynamic class Holo008 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 519
//ISight001 (ISight001)
package {
import flash.display.*;
public dynamic class ISight001 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 520
//ISight002 (ISight002)
package {
import flash.display.*;
public dynamic class ISight002 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 521
//ISight003 (ISight003)
package {
import flash.display.*;
public dynamic class ISight003 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 522
//ISight004 (ISight004)
package {
import flash.display.*;
public dynamic class ISight004 extends MovieClip {
}
}//package
Section 523
//ISight004A (ISight004A)
package {
import flash.display.*;
public dynamic class ISight004A extends MovieClip {
}
}//package
Section 524
//ISight004B (ISight004B)
package {
import flash.display.*;
public dynamic class ISight004B extends MovieClip {
}
}//package
Section 525
//ISight005 (ISight005)
package {
import flash.display.*;
public dynamic class ISight005 extends MovieClip {
}
}//package
Section 526
//ISight006 (ISight006)
package {
import flash.display.*;
public dynamic class ISight006 extends MovieClip {
}
}//package
Section 527
//ISight007 (ISight007)
package {
import flash.display.*;
public dynamic class ISight007 extends MovieClip {
}
}//package
Section 528
//ISight007A (ISight007A)
package {
import flash.display.*;
public dynamic class ISight007A extends MovieClip {
}
}//package
Section 529
//ISight007B (ISight007B)
package {
import flash.display.*;
public dynamic class ISight007B extends MovieClip {
}
}//package
Section 530
//ISight008 (ISight008)
package {
import flash.display.*;
public dynamic class ISight008 extends MovieClip {
}
}//package
Section 531
//ISight008A (ISight008A)
package {
import flash.display.*;
public dynamic class ISight008A extends MovieClip {
}
}//package
Section 532
//ISight008B (ISight008B)
package {
import flash.display.*;
public dynamic class ISight008B extends MovieClip {
}
}//package
Section 533
//ISight009 (ISight009)
package {
import flash.display.*;
public dynamic class ISight009 extends MovieClip {
}
}//package
Section 534
//ISight009B (ISight009B)
package {
import flash.display.*;
public dynamic class ISight009B extends MovieClip {
}
}//package
Section 535
//ISight010 (ISight010)
package {
import flash.display.*;
public dynamic class ISight010 extends MovieClip {
}
}//package
Section 536
//ISight011 (ISight011)
package {
import flash.display.*;
public dynamic class ISight011 extends MovieClip {
}
}//package
Section 537
//ISight012 (ISight012)
package {
import flash.display.*;
public dynamic class ISight012 extends MovieClip {
}
}//package
Section 538
//ISight013 (ISight013)
package {
import flash.display.*;
public dynamic class ISight013 extends MovieClip {
}
}//package
Section 539
//ISight014 (ISight014)
package {
import flash.display.*;
public dynamic class ISight014 extends MovieClip {
}
}//package
Section 540
//ISight015 (ISight015)
package {
import flash.display.*;
public dynamic class ISight015 extends MovieClip {
}
}//package
Section 541
//ISight016 (ISight016)
package {
import flash.display.*;
public dynamic class ISight016 extends MovieClip {
}
}//package
Section 542
//ISight016A (ISight016A)
package {
import flash.display.*;
public dynamic class ISight016A extends MovieClip {
}
}//package
Section 543
//ISight016B (ISight016B)
package {
import flash.display.*;
public dynamic class ISight016B extends MovieClip {
}
}//package
Section 544
//ISight017 (ISight017)
package {
import flash.display.*;
public dynamic class ISight017 extends MovieClip {
}
}//package
Section 545
//ISight017A (ISight017A)
package {
import flash.display.*;
public dynamic class ISight017A extends MovieClip {
}
}//package
Section 546
//ISight017B (ISight017B)
package {
import flash.display.*;
public dynamic class ISight017B extends MovieClip {
}
}//package
Section 547
//ISight018 (ISight018)
package {
import flash.display.*;
public dynamic class ISight018 extends MovieClip {
}
}//package
Section 548
//ISight018A (ISight018A)
package {
import flash.display.*;
public dynamic class ISight018A extends MovieClip {
}
}//package
Section 549
//ISight018B (ISight018B)
package {
import flash.display.*;
public dynamic class ISight018B extends MovieClip {
}
}//package
Section 550
//ISight019 (ISight019)
package {
import flash.display.*;
public dynamic class ISight019 extends MovieClip {
}
}//package
Section 551
//ISight020 (ISight020)
package {
import flash.display.*;
public dynamic class ISight020 extends MovieClip {
}
}//package
Section 552
//ISight020A (ISight020A)
package {
import flash.display.*;
public dynamic class ISight020A extends MovieClip {
}
}//package
Section 553
//ISight021 (ISight021)
package {
import flash.display.*;
public dynamic class ISight021 extends MovieClip {
}
}//package
Section 554
//ISight022 (ISight022)
package {
import flash.display.*;
public dynamic class ISight022 extends MovieClip {
}
}//package
Section 555
//ISight023 (ISight023)
package {
import flash.display.*;
public dynamic class ISight023 extends MovieClip {
}
}//package
Section 556
//ISight024 (ISight024)
package {
import flash.display.*;
public dynamic class ISight024 extends MovieClip {
}
}//package
Section 557
//ISight025 (ISight025)
package {
import flash.display.*;
public dynamic class ISight025 extends MovieClip {
}
}//package
Section 558
//ISight026 (ISight026)
package {
import flash.display.*;
public dynamic class ISight026 extends MovieClip {
}
}//package
Section 559
//ISight027 (ISight027)
package {
import flash.display.*;
public dynamic class ISight027 extends MovieClip {
}
}//package
Section 560
//ISight028 (ISight028)
package {
import flash.display.*;
public dynamic class ISight028 extends MovieClip {
}
}//package
Section 561
//ISight028A (ISight028A)
package {
import flash.display.*;
public dynamic class ISight028A extends MovieClip {
}
}//package
Section 562
//ISight028B (ISight028B)
package {
import flash.display.*;
public dynamic class ISight028B extends MovieClip {
}
}//package
Section 563
//ISight029 (ISight029)
package {
import flash.display.*;
public dynamic class ISight029 extends MovieClip {
}
}//package
Section 564
//ISight029A (ISight029A)
package {
import flash.display.*;
public dynamic class ISight029A extends MovieClip {
}
}//package
Section 565
//ISight030 (ISight030)
package {
import flash.display.*;
public dynamic class ISight030 extends MovieClip {
}
}//package
Section 566
//ISight030A (ISight030A)
package {
import flash.display.*;
public dynamic class ISight030A extends MovieClip {
}
}//package
Section 567
//ISight030B (ISight030B)
package {
import flash.display.*;
public dynamic class ISight030B extends MovieClip {
}
}//package
Section 568
//ISight031 (ISight031)
package {
import flash.display.*;
public dynamic class ISight031 extends MovieClip {
}
}//package
Section 569
//ISight031A (ISight031A)
package {
import flash.display.*;
public dynamic class ISight031A extends MovieClip {
}
}//package
Section 570
//ISight031B (ISight031B)
package {
import flash.display.*;
public dynamic class ISight031B extends MovieClip {
}
}//package
Section 571
//ISight032 (ISight032)
package {
import flash.display.*;
public dynamic class ISight032 extends MovieClip {
}
}//package
Section 572
//ISight032A (ISight032A)
package {
import flash.display.*;
public dynamic class ISight032A extends MovieClip {
}
}//package
Section 573
//ISight032B (ISight032B)
package {
import flash.display.*;
public dynamic class ISight032B extends MovieClip {
}
}//package
Section 574
//ISight033 (ISight033)
package {
import flash.display.*;
public dynamic class ISight033 extends MovieClip {
}
}//package
Section 575
//ISight033A (ISight033A)
package {
import flash.display.*;
public dynamic class ISight033A extends MovieClip {
}
}//package
Section 576
//ISight033B (ISight033B)
package {
import flash.display.*;
public dynamic class ISight033B extends MovieClip {
}
}//package
Section 577
//ISight034 (ISight034)
package {
import flash.display.*;
public dynamic class ISight034 extends MovieClip {
}
}//package
Section 578
//ISight035 (ISight035)
package {
import flash.display.*;
public dynamic class ISight035 extends MovieClip {
}
}//package
Section 579
//ISight036 (ISight036)
package {
import flash.display.*;
public dynamic class ISight036 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 580
//ISight037 (ISight037)
package {
import flash.display.*;
public dynamic class ISight037 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 581
//ISight038 (ISight038)
package {
import flash.display.*;
public dynamic class ISight038 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 582
//ISight039 (ISight039)
package {
import flash.display.*;
public dynamic class ISight039 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 583
//ISight040 (ISight040)
package {
import flash.display.*;
public dynamic class ISight040 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 584
//ISight041 (ISight041)
package {
import flash.display.*;
public dynamic class ISight041 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 585
//ItemDisplay (ItemDisplay)
package {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ItemDisplay extends MovieClip {
public var txtManu:TextField;
public var txtFits:TextField;
public var txtName:TextField;
public var itemID:String;
public var mcContainer:MovieClip;
public function ItemDisplay(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function FitToSize(_arg1:MovieClip):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = 177;
_local3 = 104;
if ((((_arg1.width > _local2)) || ((_arg1.height > _local3)))){
_local4 = 0;
if ((_arg1.width / _arg1.height) > (_local2 / _local3)){
_local4 = (_local2 / _arg1.width);
} else {
_local4 = (_local3 / _arg1.height);
};
_arg1.scaleX = _local4;
_arg1.scaleY = _local4;
};
}
public function Initialize(_arg1:XML):void{
var _local2:TextFormat;
var _local3:MovieClip;
itemID = _arg1.attribute("id");
txtName.text = _arg1[0].name.toString();
txtManu.text = ((_arg1[0].manufacturer.toString())!="") ? _arg1[0].manufacturer.toString() : "Unknown manufacturer";
txtFits.text = ((_arg1[0].fits.toString())!="") ? ("Fits: " + _arg1[0].fits.toString()) : "Fits: Unspecified";
_local2 = new TextFormat();
_local2.bold = true;
txtName.setTextFormat(_local2);
_local3 = PartFactory.CreateItem(itemID);
FitToSize(_local3);
mcContainer.addChild(_local3);
}
}
}//package
Section 586
//ItemDisplay2 (ItemDisplay2)
package {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ItemDisplay2 extends MovieClip {
public var txtManu:TextField;
public var txtFits:TextField;
public var txtName:TextField;
public var itemID:String;
public var mcContainer:MovieClip;
public function ItemDisplay2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function FitToSize(_arg1:MovieClip):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = 380;
_local3 = 104;
if ((((_arg1.width > _local2)) || ((_arg1.height > _local3)))){
_local4 = 0;
if ((_arg1.width / _arg1.height) > (_local2 / _local3)){
_local4 = (_local2 / _arg1.width);
} else {
_local4 = (_local3 / _arg1.height);
};
_arg1.scaleX = _local4;
_arg1.scaleY = _local4;
};
}
public function Initialize(_arg1:XML):void{
var _local2:TextFormat;
var _local3:MovieClip;
itemID = _arg1.attribute("id");
txtName.text = _arg1[0].name.toString();
txtManu.text = ((_arg1[0].manufacturer.toString())!="") ? _arg1[0].manufacturer.toString() : "Unknown manufacturer";
txtFits.text = ((_arg1[0].fits.toString())!="") ? ("Fits: " + _arg1[0].fits.toString()) : "Fits: Unspecified";
_local2 = new TextFormat();
_local2.bold = true;
txtName.setTextFormat(_local2);
_local3 = PartFactory.CreateItem(itemID);
FitToSize(_local3);
mcContainer.addChild(_local3);
}
}
}//package
Section 587
//ItemDisplay4 (ItemDisplay4)
package {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class ItemDisplay4 extends MovieClip {
public var txtWeight:TextField;
public var txtManu:TextField;
public var txtName:TextField;
public var txtRof:TextField;
public var txtVelocity:TextField;
public var itemID:String;
public var txtLength:TextField;
public var mcContainer:MovieClip;
public var txtCaliber:TextField;
public function ItemDisplay4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function FitToSize(_arg1:MovieClip):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = 576;
_local3 = 160;
if ((((_arg1.width > _local2)) || ((_arg1.height > _local3)))){
_local4 = 0;
if ((_arg1.width / _arg1.height) > (_local2 / _local3)){
_local4 = (_local2 / _arg1.width);
} else {
_local4 = (_local3 / _arg1.height);
};
_arg1.scaleX = _local4;
_arg1.scaleY = _local4;
};
}
public function Initialize(_arg1:XML):void{
var _local2:TextFormat;
var _local3:MovieClip;
itemID = _arg1.attribute("id");
txtName.text = _arg1[0].name.toString();
txtManu.text = ((_arg1[0].manufacturer.toString())!="") ? _arg1[0].manufacturer.toString() : "Unknown manufacturer";
txtLength.text = ((_arg1[0].length.toString())!="") ? ("Length: " + _arg1[0].length.toString()) : "Length: ---";
txtWeight.text = ((_arg1[0].weight.toString())!="") ? ("Weight: " + _arg1[0].weight.toString()) : "Weight: ---";
txtCaliber.text = ((_arg1[0].caliber.toString())!="") ? ("Caliber: " + _arg1[0].caliber.toString()) : "Caliber: ---";
txtVelocity.text = ((_arg1[0].velocity.toString())!="") ? ("Muzzle Velocity: " + _arg1[0].velocity.toString()) : "Muzzle Velocity: ---";
txtRof.text = ((_arg1[0].rof.toString())!="") ? ("Rate of Fire: " + _arg1[0].rof.toString()) : "Rate of Fire: ---";
_local2 = new TextFormat();
_local2.bold = true;
txtName.setTextFormat(_local2);
_local3 = PartFactory.CreateItem(itemID);
FitToSize(_local3);
mcContainer.addChild(_local3);
}
}
}//package
Section 588
//Laser001 (Laser001)
package {
import flash.display.*;
public dynamic class Laser001 extends MovieClip {
}
}//package
Section 589
//Laser001S (Laser001S)
package {
import flash.display.*;
public dynamic class Laser001S extends MovieClip {
}
}//package
Section 590
//Laser001T (Laser001T)
package {
import flash.display.*;
public dynamic class Laser001T extends MovieClip {
}
}//package
Section 591
//Laser002D (Laser002D)
package {
import flash.display.*;
public dynamic class Laser002D extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 592
//Laser002S (Laser002S)
package {
import flash.display.*;
public dynamic class Laser002S extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 593
//Laser002U (Laser002U)
package {
import flash.display.*;
public dynamic class Laser002U extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 594
//List_skin (List_skin)
package {
import flash.display.*;
public dynamic class List_skin extends MovieClip {
}
}//package
Section 595
//LReceiver001 (LReceiver001)
package {
import flash.display.*;
public dynamic class LReceiver001 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 596
//LReceiver002 (LReceiver002)
package {
import flash.display.*;
public dynamic class LReceiver002 extends MovieClip {
}
}//package
Section 597
//LReceiver003 (LReceiver003)
package {
import flash.display.*;
public dynamic class LReceiver003 extends MovieClip {
}
}//package
Section 598
//LReceiver004 (LReceiver004)
package {
import flash.display.*;
public dynamic class LReceiver004 extends MovieClip {
}
}//package
Section 599
//LReceiver005 (LReceiver005)
package {
import flash.display.*;
public dynamic class LReceiver005 extends MovieClip {
}
}//package
Section 600
//LReceiver006 (LReceiver006)
package {
import flash.display.*;
public dynamic class LReceiver006 extends MovieClip {
}
}//package
Section 601
//LReceiver007 (LReceiver007)
package {
import flash.display.*;
public dynamic class LReceiver007 extends MovieClip {
}
}//package
Section 602
//LReceiver008 (LReceiver008)
package {
import flash.display.*;
public dynamic class LReceiver008 extends MovieClip {
}
}//package
Section 603
//LReceiver009 (LReceiver009)
package {
import flash.display.*;
public dynamic class LReceiver009 extends MovieClip {
}
}//package
Section 604
//LReceiver010 (LReceiver010)
package {
import flash.display.*;
public dynamic class LReceiver010 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 605
//LReceiver011 (LReceiver011)
package {
import flash.display.*;
public dynamic class LReceiver011 extends MovieClip {
}
}//package
Section 606
//LReceiver012 (LReceiver012)
package {
import flash.display.*;
public dynamic class LReceiver012 extends MovieClip {
}
}//package
Section 607
//LReceiver013 (LReceiver013)
package {
import flash.display.*;
public dynamic class LReceiver013 extends MovieClip {
}
}//package
Section 608
//LReceiver014 (LReceiver014)
package {
import flash.display.*;
public dynamic class LReceiver014 extends MovieClip {
}
}//package
Section 609
//LReceiver015 (LReceiver015)
package {
import flash.display.*;
public dynamic class LReceiver015 extends MovieClip {
}
}//package
Section 610
//LReceiver016 (LReceiver016)
package {
import flash.display.*;
public dynamic class LReceiver016 extends MovieClip {
}
}//package
Section 611
//LReceiver017 (LReceiver017)
package {
import flash.display.*;
public dynamic class LReceiver017 extends MovieClip {
}
}//package
Section 612
//LReceiver018A (LReceiver018A)
package {
import flash.display.*;
public dynamic class LReceiver018A extends MovieClip {
}
}//package
Section 613
//LReceiver018B (LReceiver018B)
package {
import flash.display.*;
public dynamic class LReceiver018B extends MovieClip {
}
}//package
Section 614
//LReceiver019 (LReceiver019)
package {
import flash.display.*;
public dynamic class LReceiver019 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color4:mcColor;
public var color2:mcColor;
}
}//package
Section 615
//LReceiver020 (LReceiver020)
package {
import flash.display.*;
public dynamic class LReceiver020 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color4:mcColor;
public var color2:mcColor;
}
}//package
Section 616
//LReceiver021 (LReceiver021)
package {
import flash.display.*;
public dynamic class LReceiver021 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 617
//LReceiver022 (LReceiver022)
package {
import flash.display.*;
public dynamic class LReceiver022 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color4:mcColor;
public var color2:mcColor;
}
}//package
Section 618
//LReceiver023 (LReceiver023)
package {
import flash.display.*;
public dynamic class LReceiver023 extends MovieClip {
}
}//package
Section 619
//LReceiver023A (LReceiver023A)
package {
import flash.display.*;
public dynamic class LReceiver023A extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 620
//LReceiver023B (LReceiver023B)
package {
import flash.display.*;
public dynamic class LReceiver023B extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 621
//LReceiver024 (LReceiver024)
package {
import flash.display.*;
public dynamic class LReceiver024 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 622
//LReceiver025 (LReceiver025)
package {
import flash.display.*;
public dynamic class LReceiver025 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 623
//M14 (M14)
package {
import flash.display.*;
public dynamic class M14 extends MovieClip {
}
}//package
Section 624
//M14Preset2 (M14Preset2)
package {
import flash.display.*;
public dynamic class M14Preset2 extends MovieClip {
}
}//package
Section 625
//M16A2 (M16A2)
package {
import flash.display.*;
public dynamic class M16A2 extends MovieClip {
}
}//package
Section 626
//M16A4 (M16A4)
package {
import flash.display.*;
public dynamic class M16A4 extends MovieClip {
}
}//package
Section 627
//M16VN (M16VN)
package {
import flash.display.*;
public dynamic class M16VN extends MovieClip {
}
}//package
Section 628
//M200 (M200)
package {
import flash.display.*;
public dynamic class M200 extends MovieClip {
}
}//package
Section 629
//M249SAW (M249SAW)
package {
import flash.display.*;
public dynamic class M249SAW extends MovieClip {
}
}//package
Section 630
//M4 (M4)
package {
import flash.display.*;
public dynamic class M4 extends MovieClip {
}
}//package
Section 631
//M4A1 (M4A1)
package {
import flash.display.*;
public dynamic class M4A1 extends MovieClip {
}
}//package
Section 632
//M4CQBR (M4CQBR)
package {
import flash.display.*;
public dynamic class M4CQBR extends MovieClip {
}
}//package
Section 633
//MagAcc01 (MagAcc01)
package {
import flash.display.*;
public dynamic class MagAcc01 extends MovieClip {
}
}//package
Section 634
//MagAcc02 (MagAcc02)
package {
import flash.display.*;
public dynamic class MagAcc02 extends MovieClip {
}
}//package
Section 635
//MagAcc03 (MagAcc03)
package {
import flash.display.*;
public dynamic class MagAcc03 extends MovieClip {
}
}//package
Section 636
//MagAcc04 (MagAcc04)
package {
import flash.display.*;
public dynamic class MagAcc04 extends MovieClip {
}
}//package
Section 637
//MagAdapter01 (MagAdapter01)
package {
import flash.display.*;
public dynamic class MagAdapter01 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 638
//Magnifier001 (Magnifier001)
package {
import flash.display.*;
public dynamic class Magnifier001 extends MovieClip {
}
}//package
Section 639
//Magnifier002 (Magnifier002)
package {
import flash.display.*;
public dynamic class Magnifier002 extends MovieClip {
}
}//package
Section 640
//Magnifier003 (Magnifier003)
package {
import flash.display.*;
public dynamic class Magnifier003 extends MovieClip {
}
}//package
Section 641
//mcColor (mcColor)
package {
import flash.display.*;
public dynamic class mcColor extends MovieClip {
}
}//package
Section 642
//mcGrabber (mcGrabber)
package {
import flash.display.*;
public dynamic class mcGrabber extends MovieClip {
}
}//package
Section 643
//mcSelectMarker (mcSelectMarker)
package {
import flash.display.*;
public dynamic class mcSelectMarker extends MovieClip {
}
}//package
Section 644
//Mk14Mod0 (Mk14Mod0)
package {
import flash.display.*;
public dynamic class Mk14Mod0 extends MovieClip {
}
}//package
Section 645
//Mk14Mod1 (Mk14Mod1)
package {
import flash.display.*;
public dynamic class Mk14Mod1 extends MovieClip {
}
}//package
Section 646
//Mk46 (Mk46)
package {
import flash.display.*;
public dynamic class Mk46 extends MovieClip {
}
}//package
Section 647
//Monopod01 (Monopod01)
package {
import flash.display.*;
public dynamic class Monopod01 extends MovieClip {
}
}//package
Section 648
//MP5A2 (MP5A2)
package {
import flash.display.*;
public dynamic class MP5A2 extends MovieClip {
}
}//package
Section 649
//MP5A3 (MP5A3)
package {
import flash.display.*;
public dynamic class MP5A3 extends MovieClip {
}
}//package
Section 650
//MP5K (MP5K)
package {
import flash.display.*;
public dynamic class MP5K extends MovieClip {
}
}//package
Section 651
//MP5PDW (MP5PDW)
package {
import flash.display.*;
public dynamic class MP5PDW extends MovieClip {
}
}//package
Section 652
//MP5SD (MP5SD)
package {
import flash.display.*;
public dynamic class MP5SD extends MovieClip {
}
}//package
Section 653
//MuzzleFlash01 (MuzzleFlash01)
package {
import flash.display.*;
public dynamic class MuzzleFlash01 extends MovieClip {
}
}//package
Section 654
//MuzzleFlash02 (MuzzleFlash02)
package {
import flash.display.*;
public dynamic class MuzzleFlash02 extends MovieClip {
}
}//package
Section 655
//MuzzleFlash03 (MuzzleFlash03)
package {
import flash.display.*;
public dynamic class MuzzleFlash03 extends MovieClip {
}
}//package
Section 656
//OStock01 (OStock01)
package {
import flash.display.*;
public dynamic class OStock01 extends MovieClip {
}
}//package
Section 657
//OStock02 (OStock02)
package {
import flash.display.*;
public dynamic class OStock02 extends MovieClip {
}
}//package
Section 658
//OStock02A (OStock02A)
package {
import flash.display.*;
public dynamic class OStock02A extends MovieClip {
}
}//package
Section 659
//OStock02B (OStock02B)
package {
import flash.display.*;
public dynamic class OStock02B extends MovieClip {
}
}//package
Section 660
//OStock03 (OStock03)
package {
import flash.display.*;
public dynamic class OStock03 extends MovieClip {
}
}//package
Section 661
//OStock04 (OStock04)
package {
import flash.display.*;
public dynamic class OStock04 extends MovieClip {
}
}//package
Section 662
//OStock04A (OStock04A)
package {
import flash.display.*;
public dynamic class OStock04A extends MovieClip {
}
}//package
Section 663
//OStock04B (OStock04B)
package {
import flash.display.*;
public dynamic class OStock04B extends MovieClip {
}
}//package
Section 664
//OStock04C (OStock04C)
package {
import flash.display.*;
public dynamic class OStock04C extends MovieClip {
}
}//package
Section 665
//OStock04D (OStock04D)
package {
import flash.display.*;
public dynamic class OStock04D extends MovieClip {
}
}//package
Section 666
//OStock05 (OStock05)
package {
import flash.display.*;
public dynamic class OStock05 extends MovieClip {
}
}//package
Section 667
//OStock05A (OStock05A)
package {
import flash.display.*;
public dynamic class OStock05A extends MovieClip {
}
}//package
Section 668
//OSTock05B (OSTock05B)
package {
import flash.display.*;
public dynamic class OSTock05B extends MovieClip {
}
}//package
Section 669
//OStock06 (OStock06)
package {
import flash.display.*;
public dynamic class OStock06 extends MovieClip {
}
}//package
Section 670
//OStock06A (OStock06A)
package {
import flash.display.*;
public dynamic class OStock06A extends MovieClip {
}
}//package
Section 671
//OStock06B (OStock06B)
package {
import flash.display.*;
public dynamic class OStock06B extends MovieClip {
}
}//package
Section 672
//OStock07 (OStock07)
package {
import flash.display.*;
public dynamic class OStock07 extends MovieClip {
}
}//package
Section 673
//OStock07A (OStock07A)
package {
import flash.display.*;
public dynamic class OStock07A extends MovieClip {
}
}//package
Section 674
//OStock07B (OStock07B)
package {
import flash.display.*;
public dynamic class OStock07B extends MovieClip {
}
}//package
Section 675
//OStock08 (OStock08)
package {
import flash.display.*;
public dynamic class OStock08 extends MovieClip {
}
}//package
Section 676
//PGrip001 (PGrip001)
package {
import flash.display.*;
public dynamic class PGrip001 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 677
//PGrip002 (PGrip002)
package {
import flash.display.*;
public dynamic class PGrip002 extends MovieClip {
}
}//package
Section 678
//PGrip003 (PGrip003)
package {
import flash.display.*;
public dynamic class PGrip003 extends MovieClip {
}
}//package
Section 679
//PGrip004 (PGrip004)
package {
import flash.display.*;
public dynamic class PGrip004 extends MovieClip {
}
}//package
Section 680
//PGrip005 (PGrip005)
package {
import flash.display.*;
public dynamic class PGrip005 extends MovieClip {
}
}//package
Section 681
//PGrip006 (PGrip006)
package {
import flash.display.*;
public dynamic class PGrip006 extends MovieClip {
}
}//package
Section 682
//PGrip007 (PGrip007)
package {
import flash.display.*;
public dynamic class PGrip007 extends MovieClip {
}
}//package
Section 683
//PGrip008 (PGrip008)
package {
import flash.display.*;
public dynamic class PGrip008 extends MovieClip {
}
}//package
Section 684
//PGrip009 (PGrip009)
package {
import flash.display.*;
public dynamic class PGrip009 extends MovieClip {
}
}//package
Section 685
//PGrip010 (PGrip010)
package {
import flash.display.*;
public dynamic class PGrip010 extends MovieClip {
}
}//package
Section 686
//PGrip011 (PGrip011)
package {
import flash.display.*;
public dynamic class PGrip011 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 687
//PGrip012 (PGrip012)
package {
import flash.display.*;
public dynamic class PGrip012 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 688
//Rail01BColor (Rail01BColor)
package {
import flash.display.*;
public dynamic class Rail01BColor extends MovieClip {
}
}//package
Section 689
//Rail01SColor (Rail01SColor)
package {
import flash.display.*;
public dynamic class Rail01SColor extends MovieClip {
}
}//package
Section 690
//Rail01TColor (Rail01TColor)
package {
import flash.display.*;
public dynamic class Rail01TColor extends MovieClip {
}
}//package
Section 691
//Rail02BColor (Rail02BColor)
package {
import flash.display.*;
public dynamic class Rail02BColor extends MovieClip {
}
}//package
Section 692
//Rail02SColor (Rail02SColor)
package {
import flash.display.*;
public dynamic class Rail02SColor extends MovieClip {
}
}//package
Section 693
//Rail02TColor (Rail02TColor)
package {
import flash.display.*;
public dynamic class Rail02TColor extends MovieClip {
}
}//package
Section 694
//Rail03BColor (Rail03BColor)
package {
import flash.display.*;
public dynamic class Rail03BColor extends MovieClip {
}
}//package
Section 695
//Rail03SColor (Rail03SColor)
package {
import flash.display.*;
public dynamic class Rail03SColor extends MovieClip {
}
}//package
Section 696
//Rail03TColor (Rail03TColor)
package {
import flash.display.*;
public dynamic class Rail03TColor extends MovieClip {
}
}//package
Section 697
//Rail04BColor (Rail04BColor)
package {
import flash.display.*;
public dynamic class Rail04BColor extends MovieClip {
}
}//package
Section 698
//Rail04SColor (Rail04SColor)
package {
import flash.display.*;
public dynamic class Rail04SColor extends MovieClip {
}
}//package
Section 699
//Rail04TColor (Rail04TColor)
package {
import flash.display.*;
public dynamic class Rail04TColor extends MovieClip {
}
}//package
Section 700
//Rail05BColor (Rail05BColor)
package {
import flash.display.*;
public dynamic class Rail05BColor extends MovieClip {
}
}//package
Section 701
//Rail05SColor (Rail05SColor)
package {
import flash.display.*;
public dynamic class Rail05SColor extends MovieClip {
}
}//package
Section 702
//Rail05TColor (Rail05TColor)
package {
import flash.display.*;
public dynamic class Rail05TColor extends MovieClip {
}
}//package
Section 703
//RailCap01LBColor (RailCap01LBColor)
package {
import flash.display.*;
public dynamic class RailCap01LBColor extends MovieClip {
}
}//package
Section 704
//RailCap01LSColor (RailCap01LSColor)
package {
import flash.display.*;
public dynamic class RailCap01LSColor extends MovieClip {
}
}//package
Section 705
//RailCap01LTColor (RailCap01LTColor)
package {
import flash.display.*;
public dynamic class RailCap01LTColor extends MovieClip {
}
}//package
Section 706
//RailCap01RBColor (RailCap01RBColor)
package {
import flash.display.*;
public dynamic class RailCap01RBColor extends MovieClip {
}
}//package
Section 707
//RailCap01RSColor (RailCap01RSColor)
package {
import flash.display.*;
public dynamic class RailCap01RSColor extends MovieClip {
}
}//package
Section 708
//RailCap01RTColor (RailCap01RTColor)
package {
import flash.display.*;
public dynamic class RailCap01RTColor extends MovieClip {
}
}//package
Section 709
//RCover01 (RCover01)
package {
import flash.display.*;
public dynamic class RCover01 extends MovieClip {
}
}//package
Section 710
//RCover01B (RCover01B)
package {
import flash.display.*;
public dynamic class RCover01B extends MovieClip {
}
}//package
Section 711
//RCover01S1 (RCover01S1)
package {
import flash.display.*;
public dynamic class RCover01S1 extends MovieClip {
}
}//package
Section 712
//RCover01S2 (RCover01S2)
package {
import flash.display.*;
public dynamic class RCover01S2 extends MovieClip {
}
}//package
Section 713
//RCover01T (RCover01T)
package {
import flash.display.*;
public dynamic class RCover01T extends MovieClip {
}
}//package
Section 714
//RCover02 (RCover02)
package {
import flash.display.*;
public dynamic class RCover02 extends MovieClip {
}
}//package
Section 715
//RCover02B (RCover02B)
package {
import flash.display.*;
public dynamic class RCover02B extends MovieClip {
}
}//package
Section 716
//RCover02S (RCover02S)
package {
import flash.display.*;
public dynamic class RCover02S extends MovieClip {
}
}//package
Section 717
//RCover02T (RCover02T)
package {
import flash.display.*;
public dynamic class RCover02T extends MovieClip {
}
}//package
Section 718
//RCover03 (RCover03)
package {
import flash.display.*;
public dynamic class RCover03 extends MovieClip {
}
}//package
Section 719
//RCover03B (RCover03B)
package {
import flash.display.*;
public dynamic class RCover03B extends MovieClip {
}
}//package
Section 720
//RCover03S (RCover03S)
package {
import flash.display.*;
public dynamic class RCover03S extends MovieClip {
}
}//package
Section 721
//RCover03T (RCover03T)
package {
import flash.display.*;
public dynamic class RCover03T extends MovieClip {
}
}//package
Section 722
//RCover04 (RCover04)
package {
import flash.display.*;
public dynamic class RCover04 extends MovieClip {
}
}//package
Section 723
//RCover04B (RCover04B)
package {
import flash.display.*;
public dynamic class RCover04B extends MovieClip {
}
}//package
Section 724
//RCover04S (RCover04S)
package {
import flash.display.*;
public dynamic class RCover04S extends MovieClip {
}
}//package
Section 725
//RCover04T (RCover04T)
package {
import flash.display.*;
public dynamic class RCover04T extends MovieClip {
}
}//package
Section 726
//RCover05 (RCover05)
package {
import flash.display.*;
public dynamic class RCover05 extends MovieClip {
}
}//package
Section 727
//RCover05B (RCover05B)
package {
import flash.display.*;
public dynamic class RCover05B extends MovieClip {
}
}//package
Section 728
//RCover05S (RCover05S)
package {
import flash.display.*;
public dynamic class RCover05S extends MovieClip {
}
}//package
Section 729
//RCover05T (RCover05T)
package {
import flash.display.*;
public dynamic class RCover05T extends MovieClip {
}
}//package
Section 730
//RCover06 (RCover06)
package {
import flash.display.*;
public dynamic class RCover06 extends MovieClip {
}
}//package
Section 731
//RCover06B (RCover06B)
package {
import flash.display.*;
public dynamic class RCover06B extends MovieClip {
}
}//package
Section 732
//RCover06S (RCover06S)
package {
import flash.display.*;
public dynamic class RCover06S extends MovieClip {
}
}//package
Section 733
//RCover06T (RCover06T)
package {
import flash.display.*;
public dynamic class RCover06T extends MovieClip {
}
}//package
Section 734
//RCover07 (RCover07)
package {
import flash.display.*;
public dynamic class RCover07 extends MovieClip {
}
}//package
Section 735
//RCover07B (RCover07B)
package {
import flash.display.*;
public dynamic class RCover07B extends MovieClip {
}
}//package
Section 736
//RCover07S (RCover07S)
package {
import flash.display.*;
public dynamic class RCover07S extends MovieClip {
}
}//package
Section 737
//RCover07T (RCover07T)
package {
import flash.display.*;
public dynamic class RCover07T extends MovieClip {
}
}//package
Section 738
//RCover08 (RCover08)
package {
import flash.display.*;
public dynamic class RCover08 extends MovieClip {
}
}//package
Section 739
//RCover08B (RCover08B)
package {
import flash.display.*;
public dynamic class RCover08B extends MovieClip {
}
}//package
Section 740
//RCover08S (RCover08S)
package {
import flash.display.*;
public dynamic class RCover08S extends MovieClip {
}
}//package
Section 741
//RCover08T (RCover08T)
package {
import flash.display.*;
public dynamic class RCover08T extends MovieClip {
}
}//package
Section 742
//RCover09 (RCover09)
package {
import flash.display.*;
public dynamic class RCover09 extends MovieClip {
}
}//package
Section 743
//RCover09B (RCover09B)
package {
import flash.display.*;
public dynamic class RCover09B extends MovieClip {
}
}//package
Section 744
//RCover09S (RCover09S)
package {
import flash.display.*;
public dynamic class RCover09S extends MovieClip {
}
}//package
Section 745
//RCover09T (RCover09T)
package {
import flash.display.*;
public dynamic class RCover09T extends MovieClip {
}
}//package
Section 746
//RCover10 (RCover10)
package {
import flash.display.*;
public dynamic class RCover10 extends MovieClip {
}
}//package
Section 747
//RCover10B (RCover10B)
package {
import flash.display.*;
public dynamic class RCover10B extends MovieClip {
}
}//package
Section 748
//RCover10S (RCover10S)
package {
import flash.display.*;
public dynamic class RCover10S extends MovieClip {
}
}//package
Section 749
//RCover10T (RCover10T)
package {
import flash.display.*;
public dynamic class RCover10T extends MovieClip {
}
}//package
Section 750
//RCover11 (RCover11)
package {
import flash.display.*;
public dynamic class RCover11 extends MovieClip {
}
}//package
Section 751
//RCover11B (RCover11B)
package {
import flash.display.*;
public dynamic class RCover11B extends MovieClip {
}
}//package
Section 752
//RCover11S (RCover11S)
package {
import flash.display.*;
public dynamic class RCover11S extends MovieClip {
}
}//package
Section 753
//RCover11T (RCover11T)
package {
import flash.display.*;
public dynamic class RCover11T extends MovieClip {
}
}//package
Section 754
//RCover12 (RCover12)
package {
import flash.display.*;
public dynamic class RCover12 extends MovieClip {
}
}//package
Section 755
//RCover12B (RCover12B)
package {
import flash.display.*;
public dynamic class RCover12B extends MovieClip {
}
}//package
Section 756
//RCover12S (RCover12S)
package {
import flash.display.*;
public dynamic class RCover12S extends MovieClip {
}
}//package
Section 757
//RCover12T (RCover12T)
package {
import flash.display.*;
public dynamic class RCover12T extends MovieClip {
}
}//package
Section 758
//RedDot001 (RedDot001)
package {
import flash.display.*;
public dynamic class RedDot001 extends MovieClip {
}
}//package
Section 759
//RedDot002 (RedDot002)
package {
import flash.display.*;
public dynamic class RedDot002 extends MovieClip {
}
}//package
Section 760
//RedDot003 (RedDot003)
package {
import flash.display.*;
public dynamic class RedDot003 extends MovieClip {
}
}//package
Section 761
//RedDot004 (RedDot004)
package {
import flash.display.*;
public dynamic class RedDot004 extends MovieClip {
}
}//package
Section 762
//RedDot005 (RedDot005)
package {
import flash.display.*;
public dynamic class RedDot005 extends MovieClip {
}
}//package
Section 763
//RedDot006 (RedDot006)
package {
import flash.display.*;
public dynamic class RedDot006 extends MovieClip {
}
}//package
Section 764
//RedDot007 (RedDot007)
package {
import flash.display.*;
public dynamic class RedDot007 extends MovieClip {
}
}//package
Section 765
//RedDot008 (RedDot008)
package {
import flash.display.*;
public dynamic class RedDot008 extends MovieClip {
}
}//package
Section 766
//RedDot009 (RedDot009)
package {
import flash.display.*;
public dynamic class RedDot009 extends MovieClip {
}
}//package
Section 767
//RIS001 (RIS001)
package {
import flash.display.*;
public dynamic class RIS001 extends MovieClip {
}
}//package
Section 768
//RIS001Down (RIS001Down)
package {
import flash.display.*;
public dynamic class RIS001Down extends MovieClip {
public var color1:mcColor;
}
}//package
Section 769
//RIS001Up (RIS001Up)
package {
import flash.display.*;
public dynamic class RIS001Up extends MovieClip {
public var color1:mcColor;
}
}//package
Section 770
//RIS002 (RIS002)
package {
import flash.display.*;
public dynamic class RIS002 extends MovieClip {
}
}//package
Section 771
//RIS002Down (RIS002Down)
package {
import flash.display.*;
public dynamic class RIS002Down extends MovieClip {
public var color1:mcColor;
}
}//package
Section 772
//RIS002Up (RIS002Up)
package {
import flash.display.*;
public dynamic class RIS002Up extends MovieClip {
public var color1:mcColor;
}
}//package
Section 773
//RIS003 (RIS003)
package {
import flash.display.*;
public dynamic class RIS003 extends MovieClip {
}
}//package
Section 774
//RIS003Down (RIS003Down)
package {
import flash.display.*;
public dynamic class RIS003Down extends MovieClip {
}
}//package
Section 775
//RIS003Up (RIS003Up)
package {
import flash.display.*;
public dynamic class RIS003Up extends MovieClip {
}
}//package
Section 776
//RIS004 (RIS004)
package {
import flash.display.*;
public dynamic class RIS004 extends MovieClip {
}
}//package
Section 777
//RIS004A (RIS004A)
package {
import flash.display.*;
public dynamic class RIS004A extends MovieClip {
}
}//package
Section 778
//RIS004Down (RIS004Down)
package {
import flash.display.*;
public dynamic class RIS004Down extends MovieClip {
}
}//package
Section 779
//RIS004Up (RIS004Up)
package {
import flash.display.*;
public dynamic class RIS004Up extends MovieClip {
}
}//package
Section 780
//RIS005 (RIS005)
package {
import flash.display.*;
public dynamic class RIS005 extends MovieClip {
}
}//package
Section 781
//RIS005Down (RIS005Down)
package {
import flash.display.*;
public dynamic class RIS005Down extends MovieClip {
}
}//package
Section 782
//RIS005Up (RIS005Up)
package {
import flash.display.*;
public dynamic class RIS005Up extends MovieClip {
}
}//package
Section 783
//RIS006 (RIS006)
package {
import flash.display.*;
public dynamic class RIS006 extends MovieClip {
}
}//package
Section 784
//RIS006Down (RIS006Down)
package {
import flash.display.*;
public dynamic class RIS006Down extends MovieClip {
}
}//package
Section 785
//RIS006Up (RIS006Up)
package {
import flash.display.*;
public dynamic class RIS006Up extends MovieClip {
}
}//package
Section 786
//RIS007 (RIS007)
package {
import flash.display.*;
public dynamic class RIS007 extends MovieClip {
}
}//package
Section 787
//RIS008 (RIS008)
package {
import flash.display.*;
public dynamic class RIS008 extends MovieClip {
}
}//package
Section 788
//RIS008Down (RIS008Down)
package {
import flash.display.*;
public dynamic class RIS008Down extends MovieClip {
}
}//package
Section 789
//RIS008Up (RIS008Up)
package {
import flash.display.*;
public dynamic class RIS008Up extends MovieClip {
}
}//package
Section 790
//RIS009 (RIS009)
package {
import flash.display.*;
public dynamic class RIS009 extends MovieClip {
}
}//package
Section 791
//RIS009A (RIS009A)
package {
import flash.display.*;
public dynamic class RIS009A extends MovieClip {
}
}//package
Section 792
//RIS009Down (RIS009Down)
package {
import flash.display.*;
public dynamic class RIS009Down extends MovieClip {
}
}//package
Section 793
//RIS009Up (RIS009Up)
package {
import flash.display.*;
public dynamic class RIS009Up extends MovieClip {
}
}//package
Section 794
//RIS010 (RIS010)
package {
import flash.display.*;
public dynamic class RIS010 extends MovieClip {
}
}//package
Section 795
//RIS011 (RIS011)
package {
import flash.display.*;
public dynamic class RIS011 extends MovieClip {
}
}//package
Section 796
//RIS012 (RIS012)
package {
import flash.display.*;
public dynamic class RIS012 extends MovieClip {
}
}//package
Section 797
//RIS012Down (RIS012Down)
package {
import flash.display.*;
public dynamic class RIS012Down extends MovieClip {
}
}//package
Section 798
//RIS012Up (RIS012Up)
package {
import flash.display.*;
public dynamic class RIS012Up extends MovieClip {
}
}//package
Section 799
//RIS013 (RIS013)
package {
import flash.display.*;
public dynamic class RIS013 extends MovieClip {
}
}//package
Section 800
//RIS013Down (RIS013Down)
package {
import flash.display.*;
public dynamic class RIS013Down extends MovieClip {
}
}//package
Section 801
//RIS013Up (RIS013Up)
package {
import flash.display.*;
public dynamic class RIS013Up extends MovieClip {
}
}//package
Section 802
//RIS014 (RIS014)
package {
import flash.display.*;
public dynamic class RIS014 extends MovieClip {
}
}//package
Section 803
//RIS014Down (RIS014Down)
package {
import flash.display.*;
public dynamic class RIS014Down extends MovieClip {
}
}//package
Section 804
//RIS014Up (RIS014Up)
package {
import flash.display.*;
public dynamic class RIS014Up extends MovieClip {
}
}//package
Section 805
//RIS015 (RIS015)
package {
import flash.display.*;
public dynamic class RIS015 extends MovieClip {
}
}//package
Section 806
//RIS015Down (RIS015Down)
package {
import flash.display.*;
public dynamic class RIS015Down extends MovieClip {
}
}//package
Section 807
//RIS015Up (RIS015Up)
package {
import flash.display.*;
public dynamic class RIS015Up extends MovieClip {
}
}//package
Section 808
//RIS016 (RIS016)
package {
import flash.display.*;
public dynamic class RIS016 extends MovieClip {
}
}//package
Section 809
//RIS017 (RIS017)
package {
import flash.display.*;
public dynamic class RIS017 extends MovieClip {
}
}//package
Section 810
//RIS018 (RIS018)
package {
import flash.display.*;
public dynamic class RIS018 extends MovieClip {
}
}//package
Section 811
//RIS019 (RIS019)
package {
import flash.display.*;
public dynamic class RIS019 extends MovieClip {
}
}//package
Section 812
//RIS020 (RIS020)
package {
import flash.display.*;
public dynamic class RIS020 extends MovieClip {
}
}//package
Section 813
//RIS021 (RIS021)
package {
import flash.display.*;
public dynamic class RIS021 extends MovieClip {
}
}//package
Section 814
//RIS022 (RIS022)
package {
import flash.display.*;
public dynamic class RIS022 extends MovieClip {
}
}//package
Section 815
//RIS023 (RIS023)
package {
import flash.display.*;
public dynamic class RIS023 extends MovieClip {
}
}//package
Section 816
//RIS024 (RIS024)
package {
import flash.display.*;
public dynamic class RIS024 extends MovieClip {
}
}//package
Section 817
//RIS025 (RIS025)
package {
import flash.display.*;
public dynamic class RIS025 extends MovieClip {
}
}//package
Section 818
//RIS025A (RIS025A)
package {
import flash.display.*;
public dynamic class RIS025A extends MovieClip {
}
}//package
Section 819
//RIS025B (RIS025B)
package {
import flash.display.*;
public dynamic class RIS025B extends MovieClip {
}
}//package
Section 820
//RIS026 (RIS026)
package {
import flash.display.*;
public dynamic class RIS026 extends MovieClip {
}
}//package
Section 821
//RIS027 (RIS027)
package {
import flash.display.*;
public dynamic class RIS027 extends MovieClip {
}
}//package
Section 822
//RIS028 (RIS028)
package {
import flash.display.*;
public dynamic class RIS028 extends MovieClip {
}
}//package
Section 823
//RIS029 (RIS029)
package {
import flash.display.*;
public dynamic class RIS029 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 824
//RIS030 (RIS030)
package {
import flash.display.*;
public dynamic class RIS030 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 825
//RIS031 (RIS031)
package {
import flash.display.*;
public dynamic class RIS031 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 826
//RIS032 (RIS032)
package {
import flash.display.*;
public dynamic class RIS032 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 827
//RIS033 (RIS033)
package {
import flash.display.*;
public dynamic class RIS033 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 828
//RIS034 (RIS034)
package {
import flash.display.*;
public dynamic class RIS034 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 829
//RIS035 (RIS035)
package {
import flash.display.*;
public dynamic class RIS035 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 830
//RIS036 (RIS036)
package {
import flash.display.*;
public dynamic class RIS036 extends MovieClip {
}
}//package
Section 831
//RIS036D (RIS036D)
package {
import flash.display.*;
public dynamic class RIS036D extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 832
//RIS036U (RIS036U)
package {
import flash.display.*;
public dynamic class RIS036U extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 833
//RIS037 (RIS037)
package {
import flash.display.*;
public dynamic class RIS037 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 834
//RIS038 (RIS038)
package {
import flash.display.*;
public dynamic class RIS038 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 835
//RIS039 (RIS039)
package {
import flash.display.*;
public dynamic class RIS039 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 836
//RMag001 (RMag001)
package {
import flash.display.*;
public dynamic class RMag001 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 837
//RMag002 (RMag002)
package {
import flash.display.*;
public dynamic class RMag002 extends MovieClip {
}
}//package
Section 838
//RMag003 (RMag003)
package {
import flash.display.*;
public dynamic class RMag003 extends MovieClip {
}
}//package
Section 839
//RMag003F (RMag003F)
package {
import flash.display.*;
public dynamic class RMag003F extends MovieClip {
}
}//package
Section 840
//RMag004 (RMag004)
package {
import flash.display.*;
public dynamic class RMag004 extends MovieClip {
}
}//package
Section 841
//RMag005 (RMag005)
package {
import flash.display.*;
public dynamic class RMag005 extends MovieClip {
}
}//package
Section 842
//RMag006 (RMag006)
package {
import flash.display.*;
public dynamic class RMag006 extends MovieClip {
}
}//package
Section 843
//RMag007 (RMag007)
package {
import flash.display.*;
public dynamic class RMag007 extends MovieClip {
}
}//package
Section 844
//RMag008 (RMag008)
package {
import flash.display.*;
public dynamic class RMag008 extends MovieClip {
}
}//package
Section 845
//RMag009 (RMag009)
package {
import flash.display.*;
public dynamic class RMag009 extends MovieClip {
}
}//package
Section 846
//RMag010 (RMag010)
package {
import flash.display.*;
public dynamic class RMag010 extends MovieClip {
}
}//package
Section 847
//RMag011 (RMag011)
package {
import flash.display.*;
public dynamic class RMag011 extends MovieClip {
}
}//package
Section 848
//RMag012 (RMag012)
package {
import flash.display.*;
public dynamic class RMag012 extends MovieClip {
}
}//package
Section 849
//RMag013 (RMag013)
package {
import flash.display.*;
public dynamic class RMag013 extends MovieClip {
}
}//package
Section 850
//RMag013F (RMag013F)
package {
import flash.display.*;
public dynamic class RMag013F extends MovieClip {
}
}//package
Section 851
//RMag014 (RMag014)
package {
import flash.display.*;
public dynamic class RMag014 extends MovieClip {
}
}//package
Section 852
//RMag015 (RMag015)
package {
import flash.display.*;
public dynamic class RMag015 extends MovieClip {
}
}//package
Section 853
//RMag016 (RMag016)
package {
import flash.display.*;
public dynamic class RMag016 extends MovieClip {
}
}//package
Section 854
//RMag017 (RMag017)
package {
import flash.display.*;
public dynamic class RMag017 extends MovieClip {
}
}//package
Section 855
//RMag018 (RMag018)
package {
import flash.display.*;
public dynamic class RMag018 extends MovieClip {
}
}//package
Section 856
//RMag018F (RMag018F)
package {
import flash.display.*;
public dynamic class RMag018F extends MovieClip {
}
}//package
Section 857
//RMag019 (RMag019)
package {
import flash.display.*;
public dynamic class RMag019 extends MovieClip {
}
}//package
Section 858
//RMag020 (RMag020)
package {
import flash.display.*;
public dynamic class RMag020 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 859
//RMag021 (RMag021)
package {
import flash.display.*;
public dynamic class RMag021 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 860
//RMag022 (RMag022)
package {
import flash.display.*;
public dynamic class RMag022 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 861
//RMag023 (RMag023)
package {
import flash.display.*;
public dynamic class RMag023 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 862
//RMag024 (RMag024)
package {
import flash.display.*;
public dynamic class RMag024 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 863
//RMag025 (RMag025)
package {
import flash.display.*;
public dynamic class RMag025 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color4:mcColor;
public var color5:mcColor;
public var color6:mcColor;
public var color2:mcColor;
}
}//package
Section 864
//RMount001 (RMount001)
package {
import flash.display.*;
public dynamic class RMount001 extends MovieClip {
}
}//package
Section 865
//RMount002 (RMount002)
package {
import flash.display.*;
public dynamic class RMount002 extends MovieClip {
}
}//package
Section 866
//RMount003 (RMount003)
package {
import flash.display.*;
public dynamic class RMount003 extends MovieClip {
}
}//package
Section 867
//RMount004 (RMount004)
package {
import flash.display.*;
public dynamic class RMount004 extends MovieClip {
}
}//package
Section 868
//RMount005 (RMount005)
package {
import flash.display.*;
public dynamic class RMount005 extends MovieClip {
}
}//package
Section 869
//RMount006 (RMount006)
package {
import flash.display.*;
public dynamic class RMount006 extends MovieClip {
}
}//package
Section 870
//RMount007 (RMount007)
package {
import flash.display.*;
public dynamic class RMount007 extends MovieClip {
}
}//package
Section 871
//RMount008 (RMount008)
package {
import flash.display.*;
public dynamic class RMount008 extends MovieClip {
}
}//package
Section 872
//RMount009 (RMount009)
package {
import flash.display.*;
public dynamic class RMount009 extends MovieClip {
}
}//package
Section 873
//RMount010 (RMount010)
package {
import flash.display.*;
public dynamic class RMount010 extends MovieClip {
}
}//package
Section 874
//RMount011 (RMount011)
package {
import flash.display.*;
public dynamic class RMount011 extends MovieClip {
}
}//package
Section 875
//RMount012 (RMount012)
package {
import flash.display.*;
public dynamic class RMount012 extends MovieClip {
}
}//package
Section 876
//RMount013 (RMount013)
package {
import flash.display.*;
public dynamic class RMount013 extends MovieClip {
}
}//package
Section 877
//RMount014 (RMount014)
package {
import flash.display.*;
public dynamic class RMount014 extends MovieClip {
}
}//package
Section 878
//RMount014B (RMount014B)
package {
import flash.display.*;
public dynamic class RMount014B extends MovieClip {
}
}//package
Section 879
//RMount014S (RMount014S)
package {
import flash.display.*;
public dynamic class RMount014S extends MovieClip {
}
}//package
Section 880
//RMount015 (RMount015)
package {
import flash.display.*;
public dynamic class RMount015 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 881
//RMount016 (RMount016)
package {
import flash.display.*;
public dynamic class RMount016 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 882
//SCARH (SCARH)
package {
import flash.display.*;
public dynamic class SCARH extends MovieClip {
}
}//package
Section 883
//SCARL (SCARL)
package {
import flash.display.*;
public dynamic class SCARL extends MovieClip {
}
}//package
Section 884
//Scope001 (Scope001)
package {
import flash.display.*;
public dynamic class Scope001 extends MovieClip {
}
}//package
Section 885
//Scope002 (Scope002)
package {
import flash.display.*;
public dynamic class Scope002 extends MovieClip {
}
}//package
Section 886
//Scope003 (Scope003)
package {
import flash.display.*;
public dynamic class Scope003 extends MovieClip {
}
}//package
Section 887
//Scope004 (Scope004)
package {
import flash.display.*;
public dynamic class Scope004 extends MovieClip {
}
}//package
Section 888
//Scope005 (Scope005)
package {
import flash.display.*;
public dynamic class Scope005 extends MovieClip {
}
}//package
Section 889
//Scope006 (Scope006)
package {
import flash.display.*;
public dynamic class Scope006 extends MovieClip {
}
}//package
Section 890
//Scope007 (Scope007)
package {
import flash.display.*;
public dynamic class Scope007 extends MovieClip {
}
}//package
Section 891
//Scope008 (Scope008)
package {
import flash.display.*;
public dynamic class Scope008 extends MovieClip {
}
}//package
Section 892
//Scope009 (Scope009)
package {
import flash.display.*;
public dynamic class Scope009 extends MovieClip {
}
}//package
Section 893
//Scope010 (Scope010)
package {
import flash.display.*;
public dynamic class Scope010 extends MovieClip {
}
}//package
Section 894
//Scope011 (Scope011)
package {
import flash.display.*;
public dynamic class Scope011 extends MovieClip {
}
}//package
Section 895
//Scope012 (Scope012)
package {
import flash.display.*;
public dynamic class Scope012 extends MovieClip {
}
}//package
Section 896
//Scope013 (Scope013)
package {
import flash.display.*;
public dynamic class Scope013 extends MovieClip {
}
}//package
Section 897
//Scope014 (Scope014)
package {
import flash.display.*;
public dynamic class Scope014 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 898
//Scope015 (Scope015)
package {
import flash.display.*;
public dynamic class Scope015 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color4:mcColor;
public var color2:mcColor;
}
}//package
Section 899
//Scope016 (Scope016)
package {
import flash.display.*;
public dynamic class Scope016 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 900
//ScopeCover01 (ScopeCover01)
package {
import flash.display.*;
public dynamic class ScopeCover01 extends MovieClip {
}
}//package
Section 901
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_disabledSkin extends MovieClip {
}
}//package
Section 902
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_downSkin extends MovieClip {
}
}//package
Section 903
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_overSkin extends MovieClip {
}
}//package
Section 904
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_upSkin extends MovieClip {
}
}//package
Section 905
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_disabledSkin extends MovieClip {
}
}//package
Section 906
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_downSkin extends MovieClip {
}
}//package
Section 907
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_overSkin extends MovieClip {
}
}//package
Section 908
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_upSkin extends MovieClip {
}
}//package
Section 909
//ScrollBar_thumbIcon (ScrollBar_thumbIcon)
package {
import flash.display.*;
public dynamic class ScrollBar_thumbIcon extends MovieClip {
}
}//package
Section 910
//ScrollThumb_downSkin (ScrollThumb_downSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_downSkin extends MovieClip {
}
}//package
Section 911
//ScrollThumb_overSkin (ScrollThumb_overSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_overSkin extends MovieClip {
}
}//package
Section 912
//ScrollThumb_upSkin (ScrollThumb_upSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_upSkin extends MovieClip {
}
}//package
Section 913
//ScrollTrack_skin (ScrollTrack_skin)
package {
import flash.display.*;
public dynamic class ScrollTrack_skin extends MovieClip {
}
}//package
Section 914
//Shape01 (Shape01)
package {
import flash.display.*;
public dynamic class Shape01 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 915
//Shape02 (Shape02)
package {
import flash.display.*;
public dynamic class Shape02 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 916
//Shape03 (Shape03)
package {
import flash.display.*;
public dynamic class Shape03 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 917
//Shape04 (Shape04)
package {
import flash.display.*;
public dynamic class Shape04 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 918
//Shape05 (Shape05)
package {
import flash.display.*;
public dynamic class Shape05 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 919
//Shape06 (Shape06)
package {
import flash.display.*;
public dynamic class Shape06 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 920
//Shape07 (Shape07)
package {
import flash.display.*;
public dynamic class Shape07 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 921
//Shape08 (Shape08)
package {
import flash.display.*;
public dynamic class Shape08 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 922
//Shape09 (Shape09)
package {
import flash.display.*;
public dynamic class Shape09 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 923
//Shape10 (Shape10)
package {
import flash.display.*;
public dynamic class Shape10 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 924
//Shape11 (Shape11)
package {
import flash.display.*;
public dynamic class Shape11 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 925
//Shape12 (Shape12)
package {
import flash.display.*;
public dynamic class Shape12 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 926
//Shape13 (Shape13)
package {
import flash.display.*;
public dynamic class Shape13 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 927
//Shape14 (Shape14)
package {
import flash.display.*;
public dynamic class Shape14 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 928
//Shape15 (Shape15)
package {
import flash.display.*;
public dynamic class Shape15 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 929
//Shape16 (Shape16)
package {
import flash.display.*;
public dynamic class Shape16 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 930
//Shape17 (Shape17)
package {
import flash.display.*;
public dynamic class Shape17 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 931
//Shape18 (Shape18)
package {
import flash.display.*;
public dynamic class Shape18 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 932
//Shape19 (Shape19)
package {
import flash.display.*;
public dynamic class Shape19 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 933
//Shape20 (Shape20)
package {
import flash.display.*;
public dynamic class Shape20 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 934
//Shape21 (Shape21)
package {
import flash.display.*;
public dynamic class Shape21 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 935
//Silencer01 (Silencer01)
package {
import flash.display.*;
public dynamic class Silencer01 extends MovieClip {
}
}//package
Section 936
//Silencer02 (Silencer02)
package {
import flash.display.*;
public dynamic class Silencer02 extends MovieClip {
}
}//package
Section 937
//Silencer03 (Silencer03)
package {
import flash.display.*;
public dynamic class Silencer03 extends MovieClip {
}
}//package
Section 938
//Silencer04 (Silencer04)
package {
import flash.display.*;
public dynamic class Silencer04 extends MovieClip {
}
}//package
Section 939
//Silencer05 (Silencer05)
package {
import flash.display.*;
public dynamic class Silencer05 extends MovieClip {
}
}//package
Section 940
//Silencer06 (Silencer06)
package {
import flash.display.*;
public dynamic class Silencer06 extends MovieClip {
}
}//package
Section 941
//Silencer07 (Silencer07)
package {
import flash.display.*;
public dynamic class Silencer07 extends MovieClip {
}
}//package
Section 942
//SPR (SPR)
package {
import flash.display.*;
public dynamic class SPR extends MovieClip {
}
}//package
Section 943
//SR25 (SR25)
package {
import flash.display.*;
public dynamic class SR25 extends MovieClip {
}
}//package
Section 944
//StandardItem (StandardItem)
package {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.events.*;
import fl.motion.*;
import GameEvents.*;
import flash.text.*;
import Engines.*;
import GameData.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class StandardItem extends MovieClip {
public var item:MovieClip;
public var colors:Array;
public var numColors:Number;
public function StandardItem(){
addFrameScript(0, frame1);
}
public function Clone():StandardItem{
var _local1:StandardItem;
var _local2:Array;
var _local3:Number;
var _local4:Color;
_local1 = new StandardItem();
_local1.cacheAsBitmap = true;
_local1.Initialize(PartFactory.GetItemName(item));
_local1.transform = this.transform;
_local2 = GetColors();
_local3 = 0;
while (_local3 < _local2.length) {
_local4 = new Color();
_local4.tintColor = _local2[_local3];
_local1.SetColor((_local3 + 1), _local4);
_local3++;
};
return (_local1);
}
public function SetColor(_arg1:Number, _arg2:Color):void{
var _local3:mcColor;
var _local4:ColorTransform;
_local3 = colors[(_arg1 - 1)];
_local4 = _local3.transform.colorTransform;
_local4.color = _arg2.tintColor;
_local3.transform.colorTransform = _local4;
}
function frame1(){
}
public function ToXML():String{
var _local1:String;
var _local2:*;
var _local3:String;
var _local4:String;
_local1 = "";
for each (_local2 in GetColors()) {
if (_local1 != ""){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + _local2.toString(16));
};
_local3 = "";
_local3 = (_local3 + ((this.scaleX)<0) ? "-1" : "1");
_local3 = (_local3 + ",");
_local3 = (_local3 + ((this.scaleY)<0) ? "-1" : "1");
_local4 = (((((((((((((((((((((("<part " + "id=\"") + PartFactory.GetItemName(item)) + "\" ") + "x=\"") + this.x) + "\" ") + "y=\"") + this.y) + "\" ") + "rotation=\"") + this.rotation) + "\" ") + "scale=\"") + Math.abs(this.scaleX)) + "\" ") + "flip=\"") + _local3) + "\" ") + "colors=\"") + _local1) + "\" ") + "/>");
return (_local4);
}
public function GetColors():Array{
var _local1:Array;
var _local2:*;
_local1 = new Array();
for each (_local2 in colors) {
_local1.push(_local2.transform.colorTransform.color);
};
return (_local1);
}
public function Initialize(_arg1:String):void{
var _local2:Number;
var _local3:*;
item = PartFactory.CreateItem(_arg1);
colors = new Array();
numColors = 0;
_local2 = 0;
while (_local2 < item.numChildren) {
_local3 = item.getChildAt(_local2);
if ((_local3 is mcColor)){
numColors++;
colors.push(_local3);
};
_local2++;
};
addChild(item);
}
public function FromXML(_arg1:XML):void{
var _local2:String;
var _local3:Array;
var _local4:Array;
var _local5:Number;
var _local6:Color;
_local2 = _arg1.attribute("id").toString();
Initialize(_local2);
this.x = _arg1.attribute("x").toString();
this.y = _arg1.attribute("y").toString();
this.scaleX = Math.abs(_arg1.attribute("scale").toString());
this.scaleY = Math.abs(_arg1.attribute("scale").toString());
this.rotation = _arg1.attribute("rotation").toString();
_local3 = _arg1.attribute("flip").toString().split(",");
if (_local3[0] < 0){
this.scaleX = (this.scaleX * -1);
};
if (_local3[1] < 0){
this.scaleY = (this.scaleY * -1);
};
_local4 = _arg1.attribute("colors").toString().split(",");
_local5 = 0;
while (_local5 < _local4.length) {
if (_local5 < colors.length){
_local6 = new Color();
_local6.tintColor = new uint(("0x" + _local4[_local5]));
SetColor((_local5 + 1), _local6);
};
_local5++;
};
}
}
}//package
Section 945
//StockBase01 (StockBase01)
package {
import flash.display.*;
public dynamic class StockBase01 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 946
//Strip01 (Strip01)
package {
import flash.display.*;
public dynamic class Strip01 extends MovieClip {
}
}//package
Section 947
//Strip02 (Strip02)
package {
import flash.display.*;
public dynamic class Strip02 extends MovieClip {
}
}//package
Section 948
//Strip03 (Strip03)
package {
import flash.display.*;
public dynamic class Strip03 extends MovieClip {
}
}//package
Section 949
//Strip04 (Strip04)
package {
import flash.display.*;
public dynamic class Strip04 extends MovieClip {
}
}//package
Section 950
//Strip05 (Strip05)
package {
import flash.display.*;
public dynamic class Strip05 extends MovieClip {
}
}//package
Section 951
//Strip06 (Strip06)
package {
import flash.display.*;
public dynamic class Strip06 extends MovieClip {
}
}//package
Section 952
//Strip07 (Strip07)
package {
import flash.display.*;
public dynamic class Strip07 extends MovieClip {
}
}//package
Section 953
//Strip08 (Strip08)
package {
import flash.display.*;
public dynamic class Strip08 extends MovieClip {
}
}//package
Section 954
//Strip09 (Strip09)
package {
import flash.display.*;
public dynamic class Strip09 extends MovieClip {
}
}//package
Section 955
//Strip10 (Strip10)
package {
import flash.display.*;
public dynamic class Strip10 extends MovieClip {
}
}//package
Section 956
//Strip11 (Strip11)
package {
import flash.display.*;
public dynamic class Strip11 extends MovieClip {
}
}//package
Section 957
//Strip12 (Strip12)
package {
import flash.display.*;
public dynamic class Strip12 extends MovieClip {
}
}//package
Section 958
//Strip13 (Strip13)
package {
import flash.display.*;
public dynamic class Strip13 extends MovieClip {
}
}//package
Section 959
//Strip14 (Strip14)
package {
import flash.display.*;
public dynamic class Strip14 extends MovieClip {
}
}//package
Section 960
//Strip15 (Strip15)
package {
import flash.display.*;
public dynamic class Strip15 extends MovieClip {
}
}//package
Section 961
//Strip16 (Strip16)
package {
import flash.display.*;
public dynamic class Strip16 extends MovieClip {
}
}//package
Section 962
//Strip17 (Strip17)
package {
import flash.display.*;
public dynamic class Strip17 extends MovieClip {
}
}//package
Section 963
//Strip18 (Strip18)
package {
import flash.display.*;
public dynamic class Strip18 extends MovieClip {
}
}//package
Section 964
//Strip19 (Strip19)
package {
import flash.display.*;
public dynamic class Strip19 extends MovieClip {
}
}//package
Section 965
//Strip20 (Strip20)
package {
import flash.display.*;
public dynamic class Strip20 extends MovieClip {
}
}//package
Section 966
//Strip21 (Strip21)
package {
import flash.display.*;
public dynamic class Strip21 extends MovieClip {
}
}//package
Section 967
//Strip22 (Strip22)
package {
import flash.display.*;
public dynamic class Strip22 extends MovieClip {
}
}//package
Section 968
//Strip23 (Strip23)
package {
import flash.display.*;
public dynamic class Strip23 extends MovieClip {
}
}//package
Section 969
//Strip24 (Strip24)
package {
import flash.display.*;
public dynamic class Strip24 extends MovieClip {
}
}//package
Section 970
//Strip25 (Strip25)
package {
import flash.display.*;
public dynamic class Strip25 extends MovieClip {
}
}//package
Section 971
//Strip26 (Strip26)
package {
import flash.display.*;
public dynamic class Strip26 extends MovieClip {
}
}//package
Section 972
//Strip27 (Strip27)
package {
import flash.display.*;
public dynamic class Strip27 extends MovieClip {
}
}//package
Section 973
//Strip28 (Strip28)
package {
import flash.display.*;
public dynamic class Strip28 extends MovieClip {
}
}//package
Section 974
//Strips (Strips)
package {
import flash.display.*;
public dynamic class Strips extends MovieClip {
}
}//package
Section 975
//SVD (SVD)
package {
import flash.display.*;
public dynamic class SVD extends MovieClip {
}
}//package
Section 976
//SVDS (SVDS)
package {
import flash.display.*;
public dynamic class SVDS extends MovieClip {
}
}//package
Section 977
//TestGun (TestGun)
package {
import flash.display.*;
public dynamic class TestGun extends MovieClip {
}
}//package
Section 978
//TextArea_disabledSkin (TextArea_disabledSkin)
package {
import flash.display.*;
public dynamic class TextArea_disabledSkin extends MovieClip {
}
}//package
Section 979
//TextArea_upSkin (TextArea_upSkin)
package {
import flash.display.*;
public dynamic class TextArea_upSkin extends MovieClip {
}
}//package
Section 980
//TextInput_disabledSkin (TextInput_disabledSkin)
package {
import flash.display.*;
public dynamic class TextInput_disabledSkin extends MovieClip {
}
}//package
Section 981
//TextInput_upSkin (TextInput_upSkin)
package {
import flash.display.*;
public dynamic class TextInput_upSkin extends MovieClip {
}
}//package
Section 982
//TriggerAsm01 (TriggerAsm01)
package {
import flash.display.*;
public dynamic class TriggerAsm01 extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 983
//TriggerAsm02 (TriggerAsm02)
package {
import flash.display.*;
public dynamic class TriggerAsm02 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 984
//UReceiver001 (UReceiver001)
package {
import flash.display.*;
public dynamic class UReceiver001 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 985
//UReceiver002 (UReceiver002)
package {
import flash.display.*;
public dynamic class UReceiver002 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 986
//UReceiver003 (UReceiver003)
package {
import flash.display.*;
public dynamic class UReceiver003 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 987
//UReceiver004 (UReceiver004)
package {
import flash.display.*;
public dynamic class UReceiver004 extends MovieClip {
}
}//package
Section 988
//UReceiver004Down (UReceiver004Down)
package {
import flash.display.*;
public dynamic class UReceiver004Down extends MovieClip {
}
}//package
Section 989
//UReceiver004Up (UReceiver004Up)
package {
import flash.display.*;
public dynamic class UReceiver004Up extends MovieClip {
}
}//package
Section 990
//UReceiver005 (UReceiver005)
package {
import flash.display.*;
public dynamic class UReceiver005 extends MovieClip {
}
}//package
Section 991
//UReceiver005Down (UReceiver005Down)
package {
import flash.display.*;
public dynamic class UReceiver005Down extends MovieClip {
}
}//package
Section 992
//UReceiver005Up (UReceiver005Up)
package {
import flash.display.*;
public dynamic class UReceiver005Up extends MovieClip {
}
}//package
Section 993
//UReceiver006 (UReceiver006)
package {
import flash.display.*;
public dynamic class UReceiver006 extends MovieClip {
}
}//package
Section 994
//UReceiver006Down (UReceiver006Down)
package {
import flash.display.*;
public dynamic class UReceiver006Down extends MovieClip {
}
}//package
Section 995
//UReceiver006Up (UReceiver006Up)
package {
import flash.display.*;
public dynamic class UReceiver006Up extends MovieClip {
}
}//package
Section 996
//UReceiver007 (UReceiver007)
package {
import flash.display.*;
public dynamic class UReceiver007 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 997
//UReceiver008 (UReceiver008)
package {
import flash.display.*;
public dynamic class UReceiver008 extends MovieClip {
}
}//package
Section 998
//UReceiver009 (UReceiver009)
package {
import flash.display.*;
public dynamic class UReceiver009 extends MovieClip {
}
}//package
Section 999
//UReceiver010 (UReceiver010)
package {
import flash.display.*;
public dynamic class UReceiver010 extends MovieClip {
}
}//package
Section 1000
//UReceiver011 (UReceiver011)
package {
import flash.display.*;
public dynamic class UReceiver011 extends MovieClip {
}
}//package
Section 1001
//UReceiver012 (UReceiver012)
package {
import flash.display.*;
public dynamic class UReceiver012 extends MovieClip {
}
}//package
Section 1002
//UReceiver013 (UReceiver013)
package {
import flash.display.*;
public dynamic class UReceiver013 extends MovieClip {
}
}//package
Section 1003
//UReceiver014 (UReceiver014)
package {
import flash.display.*;
public dynamic class UReceiver014 extends MovieClip {
}
}//package
Section 1004
//UReceiver015 (UReceiver015)
package {
import flash.display.*;
public dynamic class UReceiver015 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 1005
//UReceiver016 (UReceiver016)
package {
import flash.display.*;
public dynamic class UReceiver016 extends MovieClip {
}
}//package
Section 1006
//UReceiver017 (UReceiver017)
package {
import flash.display.*;
public dynamic class UReceiver017 extends MovieClip {
}
}//package
Section 1007
//UReceiver018 (UReceiver018)
package {
import flash.display.*;
public dynamic class UReceiver018 extends MovieClip {
}
}//package
Section 1008
//UReceiver019 (UReceiver019)
package {
import flash.display.*;
public dynamic class UReceiver019 extends MovieClip {
}
}//package
Section 1009
//UReceiver020 (UReceiver020)
package {
import flash.display.*;
public dynamic class UReceiver020 extends MovieClip {
}
}//package
Section 1010
//UReceiver021 (UReceiver021)
package {
import flash.display.*;
public dynamic class UReceiver021 extends MovieClip {
}
}//package
Section 1011
//UReceiver022 (UReceiver022)
package {
import flash.display.*;
public dynamic class UReceiver022 extends MovieClip {
}
}//package
Section 1012
//UReceiver023 (UReceiver023)
package {
import flash.display.*;
public dynamic class UReceiver023 extends MovieClip {
}
}//package
Section 1013
//UReceiver024 (UReceiver024)
package {
import flash.display.*;
public dynamic class UReceiver024 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 1014
//UReceiver025 (UReceiver025)
package {
import flash.display.*;
public dynamic class UReceiver025 extends MovieClip {
public var color1:mcColor;
}
}//package
Section 1015
//UReceiver026 (UReceiver026)
package {
import flash.display.*;
public dynamic class UReceiver026 extends MovieClip {
}
}//package
Section 1016
//UReceiver026A (UReceiver026A)
package {
import flash.display.*;
public dynamic class UReceiver026A extends MovieClip {
public var color1:mcColor;
public var color2:mcColor;
}
}//package
Section 1017
//UReceiver026B (UReceiver026B)
package {
import flash.display.*;
public dynamic class UReceiver026B extends MovieClip {
public var color1:mcColor;
}
}//package
Section 1018
//UReceiver027 (UReceiver027)
package {
import flash.display.*;
public dynamic class UReceiver027 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color4:mcColor;
public var color2:mcColor;
}
}//package
Section 1019
//UReceiver028 (UReceiver028)
package {
import flash.display.*;
public dynamic class UReceiver028 extends MovieClip {
public var color1:mcColor;
public var color3:mcColor;
public var color2:mcColor;
}
}//package
Section 1020
//WaterMark (WaterMark)
package {
import flash.display.*;
public dynamic class WaterMark extends MovieClip {
public function WaterMark(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package