home *** CD-ROM | disk | FTP | other *** search
/ Canadian Forces: Prepare for Takeoff as a Pilot / CF_FS_Air.iso.iso / pc / data / swf / flashpaper / 102_fr.swf / scripts / frame_2 / DoAction_3.as < prev    next >
Text File  |  2004-09-01  |  460b  |  19 lines

  1. FPModel = function()
  2. {
  3.    this.currentPage = 0;
  4.    this.numPages = 0;
  5.    this.dpi = _root.dpi;
  6.    this.width = 0;
  7.    ASBroadcaster.initialize(this);
  8. };
  9. FPModel.prototype.addPage = function(width_i, height_i)
  10. {
  11.    this.numPages = this.numPages + 1;
  12.    this.broadcastMessage("onAddPage",width_i,height_i);
  13. };
  14. FPModel.prototype.setPage = function(pageNum_i)
  15. {
  16.    this.currentPage = pageNum_i;
  17.    this.broadcastMessage("onSetPage",pageNum_i);
  18. };
  19.