home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / VenusMission.swf / scripts / __Packages / games / externalmethods / PastelPortalMethods.as < prev   
Encoding:
Text File  |  2008-09-23  |  998 b   |  31 lines

  1. class games.externalmethods.PastelPortalMethods
  2. {
  3.    var gameId;
  4.    var gameName;
  5.    var gameYear;
  6.    var commentsLink;
  7.    function PastelPortalMethods(id, name, year)
  8.    {
  9.       this.gameId = id;
  10.       this.gameName = name;
  11.       this.gameYear = year;
  12.       this.commentsLink = "http://www.pastelportal.com/stories/" + this.gameId + "/#respond";
  13.    }
  14.    function getComments()
  15.    {
  16.       getURL(this.commentsLink,"");
  17.    }
  18.    function setFooter(footer, sendcomments)
  19.    {
  20.       footer._visible = true;
  21.       footer.TF.htmlText = "<p align=\'center\'>" + this.gameName + " | created by ";
  22.       footer.TF.htmlText += "<u><a href=\'http://www.pastelgames.com\' target=\'_blank\'>Pastel Games</a></u>";
  23.       footer.TF.htmlText += " | ┬⌐ " + this.gameYear;
  24.       if(sendcomments != false)
  25.       {
  26.          footer.TF.htmlText += " | <u><a href=\'" + this.commentsLink + "\' target=\'_blank\'>comment this game</a></u>";
  27.       }
  28.       footer.TF.htmlText += "</p>";
  29.    }
  30. }
  31.