home *** CD-ROM | disk | FTP | other *** search
/ Equipe de France et Bonbons / EquipeFrancePromoCD.iso / pages / cs_cadbury / loadergfx.swf / scripts / __Packages / Point2D.as < prev    next >
Encoding:
Text File  |  2006-03-19  |  429 b   |  31 lines

  1. class Point2D
  2. {
  3.    var x;
  4.    var y;
  5.    function Point2D(x, y)
  6.    {
  7.       this.x = x;
  8.       this.y = y;
  9.    }
  10.    function trace()
  11.    {
  12.       trace("Point2D(x,y) = (" + this.x + "," + this.y + ")");
  13.    }
  14.    function getX()
  15.    {
  16.       return this.x;
  17.    }
  18.    function getY()
  19.    {
  20.       return this.y;
  21.    }
  22.    function setX(x)
  23.    {
  24.       this.x = x;
  25.    }
  26.    function setY(y)
  27.    {
  28.       this.y = y;
  29.    }
  30. }
  31.