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

  1. class Poengtelling
  2. {
  3.    var mc;
  4.    static var poeng = 0;
  5.    function Poengtelling(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 settPoeng(png)
  12.    {
  13.       Poengtelling.poeng = png;
  14.       _root.poeng = Poengtelling.poeng;
  15.    }
  16.    function leggTilPoeng(png)
  17.    {
  18.       Poengtelling.poeng += png;
  19.       _root.poeng = Poengtelling.poeng;
  20.    }
  21.    function trekkFraaPoeng(png)
  22.    {
  23.       Poengtelling.poeng -= png;
  24.       _root.poeng = Poengtelling.poeng;
  25.    }
  26. }
  27.