⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gameinfoupdatacommand.as.svn-base

📁 Flex3实现的掼蛋游戏
💻 SVN-BASE
字号:
/**
  * Project: 更新玩家积分等信息事件
  * Author : dmh2002 
  * Blog:http://dmh2002.com/
  * QQ:122054933 MSN:shangxinyu2002@msn.com 
  * Date : 2008.04.10 
  */ 
package com.dmh2002.games.cardgame.cairngorm.command
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.dmh2002.games.cardgame.cairngorm.model.CardGameModelLoactor;
	import com.dmh2002.games.cardgame.cairngorm.view.UserView;

	public class GameInfoUpdataCommand implements ICommand
	{
		[Bindable]
		private var _model:CardGameModelLoactor = CardGameModelLoactor.getInstance()
		
		public function GameInfoUpdataCommand()
		{
		}

		public function execute(event:CairngormEvent):void
		{
			var _tmpArray:Array = new Array()
 				
 			for(var i:uint=0 ; i<_model.gameStage_UserViewArray.length ; i++)
 			{
 				var _tmpObj:Object = new Object()
 			
 				var _tmpUserView:UserView = _model.gameStage_UserViewArray[i] as UserView
 				
 				_tmpObj.userName = _tmpUserView.userName;
 				_tmpObj.userLostGamesNums  = _tmpUserView.userLostGamesNums;
 				_tmpObj.userWinGamesNums = _tmpUserView.userWinGamesNums;
 				_tmpObj.userTotalCent = _tmpUserView.userTotalCent;
 				_tmpArray.push(_tmpObj)
 			}
 				
 			_model.gameInfo_DataGridArray = _tmpArray
		}		
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -