home *** CD-ROM | disk | FTP | other *** search
- class Poengtelling
- {
- var mc;
- static var poeng = 0;
- function Poengtelling(mc, skjerm_x, skjerm_y)
- {
- this.mc = mc;
- this.mc._x = skjerm_x;
- this.mc._y = skjerm_y;
- }
- function settPoeng(png)
- {
- Poengtelling.poeng = png;
- _root.poeng = Poengtelling.poeng;
- }
- function leggTilPoeng(png)
- {
- Poengtelling.poeng += png;
- _root.poeng = Poengtelling.poeng;
- }
- function trekkFraaPoeng(png)
- {
- Poengtelling.poeng -= png;
- _root.poeng = Poengtelling.poeng;
- }
- }
-