//--------------------------------------------mouse click private function clickObj (e:MouseEvent):void { var arr:* = obj.geometry.vertices; var wires:* = wireObj.geometry.vertices; if(isTween) { movePoints(arr, 30, 40); movePoints(wires, 30, 40); isTween = false; }else { movePoints(arr, -30, -40); movePoints(wires, -30, -40); isTween = true; } scene.renderCamera(camera); }