home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / david.swf / scripts / __Packages / Sauetelling.as < prev    next >
Encoding:
Text File  |  2007-03-28  |  417 b   |  22 lines

  1. class Sauetelling
  2. {
  3.    var mc;
  4.    var teljar = 0;
  5.    function Sauetelling(mc, skjerm_x, skjerm_y)
  6.    {
  7.       this.mc = mc;
  8.       this.mc._x = skjerm_x;
  9.       this.mc._y = skjerm_y;
  10.    }
  11.    function settTeljar(tal)
  12.    {
  13.       this.teljar = tal;
  14.       this.mc.gotoAndStop(this.teljar + 1);
  15.    }
  16.    function enMindre()
  17.    {
  18.       this.teljar -= 1;
  19.       this.mc.gotoAndStop(this.teljar + 1);
  20.    }
  21. }
  22.