home *** CD-ROM | disk | FTP | other *** search
/ Practical Internet Web Designer 90 / PIWD90.iso / mac / contents / flash / tutorial_files / Pages60-64 / ZoomMenu_MX.swf / scripts / zoomButton.as < prev   
Text File  |  2003-12-18  |  609b  |  20 lines

  1. function ZoomButton()
  2. {
  3.    this.sectionHolder = eval(this.sectionHolder);
  4.    this.label_tf.text = this.label;
  5.    this.sectionHolder.loadSection(this.label,this.sectionLink);
  6.    this.onRollOver = this.zoomToSection;
  7.    this.onRelease = this.zoomToDetail;
  8.    this.useHandCursor = this.handOnRollover;
  9. }
  10. ZoomButton.prototype = new MovieClip();
  11. ZoomButton.prototype.zoomToSection = function()
  12. {
  13.    this.sectionHolder.zoomToSection(this.label);
  14. };
  15. ZoomButton.prototype.zoomToDetail = function()
  16. {
  17.    this.sectionHolder.zoomToDetail(this.label);
  18. };
  19. Object.registerClass("zoomButton",ZoomButton);
  20.