public function TankPreview(garageBoxId:Long, rotationSpeed:Number = 5)
      {
         var box:Mesh = null;
         var material:TextureMaterial = null;
         var i:int = 0;
         this.overlay = new Shape();
         super();
         this.rotationSpeed = rotationSpeed;
         this.window = new TankWindow2(400,300);
         var localeService:ILocaleService = ILocaleService(Main.osgi.getService(ILocaleService));
         this.window.header = TankWindowHeader.YOUR_TANK;
         addChild(this.window);
         this.rootContainer = new KDContainer();
         var boxResource:TankResource = ResourceUtil.getResource(ResourceType.MODEL,"garage_box_model") as TankResource;
         Main.writeVarsToConsoleChannel("TANK PREVIEW","\tgarageBoxId: %1",garageBoxId);
         Main.writeVarsToConsoleChannel("TANK PREVIEW","\tboxResource: %1",boxResource);
         var boxes:Vector.<Mesh> = new Vector.<Mesh>();
         var numObjects:int = int(boxResource.objects.length);
         Logger.log("Garage: " + numObjects + " " + boxResource.id);
         while(i < numObjects)
         {
            box = boxResource.objects[i] as Mesh;
            if(box != null)
            {
               material = TextureMaterial(box.alternativa3d::faceList.material);
               Main.writeVarsToConsoleChannel("TEST","TankPreview::TankPreview() box texture=%1","E");
               material.texture = ResourceUtil.getResource(ResourceType.IMAGE,"garage_box_img").bitmapData;
               boxes.push(box);
            }
            i++;
         }
         this.rootContainer.addChild(boxes[0]);
         this.rootContainer.addChild(boxes[1]);
         this.tank = new Tank3D(null,null,null);
         this.rootContainer.addChild(this.tank);
         this.tank.matrix.appendTranslation(-17,0,0);
         this.camera = new GameCamera();
         this.camera.view = new View(100,100,false);
         this.camera.view.hideLogo();
         this.camera.useShadowMap = true;
         this.camera.useLight = true;
         addChild(this.camera.view);
         addChild(this.overlay);
         this.overlay.x = 0;
         this.overlay.y = 9;
         this.overlay.width = 1500;
         this.overlay.height = 1300;
         this.overlay.graphics.clear();
         this.cameraContainer = new Object3DContainer();
         this.rootContainer.addChild(this.cameraContainer);
         this.cameraContainer.addChild(this.camera);
         this.camera.z = -735;
         this.cameraContainer.rotationX = -125 * Math.PI / 180;
         this.cameraContainer.rotationZ = this.startAngle * Math.PI / 180;
         this.inner = new TankWindowInner(0,0,TankWindowInner.TRANSPARENT);
         addChild(this.inner);
         this.inner.mouseEnabled = true;
         this.resize(400,300);
         this.autoRotationTimer = new Timer(this.autoRotationDelay,1);
         this.autoRotationTimer.addEventListener(TimerEvent.TIMER_COMPLETE,this.start);
         this.timer = new Timer(50);
         this.slowdownTimer = new Timer(20,1000000);
         this.slowdownTimer.addEventListener(TimerEvent.TIMER,this.slowDown);
         this.inner.addEventListener(MouseEvent.MOUSE_DOWN,this.onMouseDown);
         Main.stage.addEventListener(Event.ENTER_FRAME,this.onRender);
         this.start();
      } как приблизить камеру