home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / bossbash.swf / scripts / DefineSprite_275 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-28  |  640 b   |  27 lines

  1. function moveSel(which)
  2. {
  3.    this._parent._parent._parent.spellmove.start();
  4.    if(which == "d")
  5.    {
  6.       starty += 1;
  7.    }
  8.    if(which == "u")
  9.    {
  10.       starty -= 1;
  11.    }
  12.    if(starty < 0)
  13.    {
  14.       starty = spellarray.length - 1;
  15.    }
  16.    if(starty > spellarray.length - 1)
  17.    {
  18.       starty = 0;
  19.    }
  20.    this._parent._parent._parent.selectaroon = starty;
  21.    sel._y = spellarray[starty];
  22. }
  23. this.spellarray = new Array(40,65,85,110,135,155,180,200);
  24. this._parent._parent._parent.spellpow = new Array(16,8,50,40,16,16,16,64);
  25. this.starty = this._parent._parent._parent.selectaroon;
  26. sel._y = spellarray[starty];
  27.