home *** CD-ROM | disk | FTP | other *** search
- function ok(pnm)
- {
- var _loc1_ = _root;
- var _loc2_ = pnm;
- if(_loc2_ != "")
- {
- _loc1_.playerName = _loc2_;
- _loc1_.pn.text = _loc2_;
- }
- _loc1_.saveProcess(1);
- _loc1_.killsetting();
- _loc1_.stopother(true);
- removeMovieClip(this);
- }
- this.onKeyDown = function()
- {
- if(Key.isDown(13))
- {
- if(this.pn2.text.substr(0,6) == "$cmd$:")
- {
- var mycmd = this.pn2.text.substr(6,this.pn2.text.length).split("/");
- switch(mycmd[0])
- {
- case "pass":
- _root.saveProcess(16);
- break;
- case "clear":
- delete _root.so.data.playerProcess;
- break;
- case "don":
- var _loc0_ = null;
- _root.vQuestBubbles = _loc0_ = mycmd[1];
- _root.vArcadeBubbles = _loc0_;
- break;
- case "cn":
- k = mycmd[1] * 17;
- while(k < mycmd[2] * 17)
- {
- _root.ClearTheCell(k,false);
- k++;
- }
- break;
- case "sv":
- _root.saveAll(_root.playerName,mycmd[1] * 100);
- break;
- case "show":
- k = 0;
- while(k < _root.endline + 17)
- {
- if(eval("_root.Cell" + k) != null)
- {
- removeMovieClip(eval("_root.Cell" + k));
- }
- if(!_root.BBL[k].Moveable)
- {
- _root.attachMovie("Cell","Cell" + k,k + 1000);
- eval("_root.Cell" + k)._x = _root.BBL[k].X;
- eval("_root.Cell" + k)._y = _root.BBL[k].Y;
- }
- k++;
- }
- break;
- case "hide":
- k = 0;
- while(k < _root.endline + 17)
- {
- if(eval("_root.Cell" + k) != null)
- {
- removeMovieClip(eval("_root.Cell" + k));
- }
- k++;
- }
- }
- ok(_root.playerName);
- }
- else
- {
- ok(this.pn2.text);
- }
- }
- };
- Key.addListener(this);
-