 
     manager.linePress = function(n){
     	//trace("call linePress");
+    	Player.play();
     	var line = this.keySet.indexOf(n);
     	if(this.grid[1][line] == BLOCK_BLACK){
     		this.moveOn(line);

    manager.timer.stop();
    //计数器 50个结束游戏
    manager.blockCounter = 0;

    //method
    //init


    };

    //游戏过程中不允许改键
    manager.keySets = function(index){
    	if(this.gameFlag == GAME_PLAYING || this.gameFlag == KEYSETTING){
    		return;
    	}
    	this.flagCache = this.gameFlag;
    	this.gameFlag = KEYSETTING;
    	this.gameView.kmButton[index].text = (index+1) + ": 按下设置";
    	this.ksIndex = index;
    };

    //改变按键 检查冲突
    manager.keyChange = function(key){
trace("chang index: "+this.ksIndex+" to key: "+key);
    	var ks = $G._get("keySet");
    	var index = this.ksIndex;
    	var k = ks[index];
//trace("ks:"+ks+" k:"+k);
    	if(ks.indexOf(key) != -1 || key == 37 || key == 38 || key == 39 || key == 40){
    		this.gameView.kmButton[index].text = (index+1) + ": " + KEYMAP[k];
    	}else{

    		ks[index] = key;
    		$G._set("keySet",ks);
    		trace("#6 "+ this.ksIndex +":"+ this.gameView.kmButton[index]);

    		this.gameView.kmButton[index].text = (index+1) + ": " + KEYMAP[key];
    	}

    	//恢复状态
    	this.gameFlag = this.flagCache;
    };

    manager._keyTrigger = function(key){
    	trace("you press key "+key);
    	trace("this.gameFlag: "+manager.gameFlag);
    	switch(manager.gameFlag){
    		case GAME_IDLE:
    			manager.gameStart();
    		case GAME_PLAYING:
    			manager.linePress(key);
    			break;

    		case KEYSETTING:
    			manager.keyChange(key);
    			break;
    	}
    };
