class Drawing.Data.Attribute extends Array { var mcName, toolType, push, 0, pop, length; function Attribute(mcname, tooltype) { super(); mcName = mcname; toolType = tooltype; this.push(mcName, toolType, "data"); } // End of the function function changeName(name) { 0 = name; } // End of the function function data(x, y) { this.push(Math.round(x), Math.round(y)); } // End of the function function sdata(num) { this.push(Math.round(num)); } // End of the function function text(txt) { this.push(txt); } // End of the function function end(depth) { this.push(depth, "end"); } // End of the function function changeDepth(temp) { this.pop(); var _loc2 = this.pop(); this.push(temp, "end"); return (_loc2); } // End of the function function scale(xscale, yscale, rotation) { for (var _loc5 in this) { if (this[_loc5] == "scale") { set(_loc5 + 3, xscale); set(_loc5 + 4, yscale); set(_loc5 + 5, rotation); return; } // end if } // end of for...in this.pop(); var _loc6 = this.pop(); this.push("scale", 0, 0, xscale, yscale, rotation, _loc6, "end"); } // End of the function function move(x, y) { for (var _loc4 in this) { if (this[_loc4] == "move") { set(_loc4 + 1, x); set(_loc4 + 2, y); return; } // end if } // end of for...in this.pop(); var _loc5 = this.pop(); this.push("move", x, y, _loc5, "end"); } // End of the function function changeMove(x, y) { trace ("--------------------------"); trace (this); for (var _loc2 = 0; _loc2 < length; ++_loc2) { if (this[_loc2] == "scale") { if (this[_loc2 + 1] == undefined) { set(_loc2 + 1, 0); } // end if if (this[_loc2 + 2] == undefined) { set(_loc2 + 2, 0); } // end if set(_loc2 + 1, Number(this[_loc2 + 1]) + x); set(_loc2 + 2, Number(this[_loc2 + 2]) + y); trace ("--------------------------"); trace (this); return; } // end if } // end of for } // End of the function } // End of Class