fFlop = object.optInt("flop", 0);
fLayer = object.optInt("layer", 0);
fNewTile = object.optString("tile", "DEF");
Sprite sprite = new Sprite(GruntzGame.resourceManager().spritesheet("editor/logics", 17, 17));
if (fMode == 0) sprite.subimage(0, 1);
else if (fMode == 1) sprite.subimage(1, 0);
else if (fMode == 2) sprite.subimage(1, 2);
else if (fMode == 3) sprite.subimage(0, 2);
else sprite.subimage(2, 2);
addChild(sprite);