home *** CD-ROM | disk | FTP | other *** search
/ i·claim - visualizing argument / ICLAIM.ISO / mac / t_06.swf / scripts / __Packages / mx / controls / streamingmedia / ToStartButton.as < prev    next >
Text File  |  2005-02-28  |  879b  |  30 lines

  1. class mx.controls.streamingmedia.ToStartButton extends MovieClip
  2. {
  3.    function ToStartButton()
  4.    {
  5.       super();
  6.       this.init();
  7.    }
  8.    function init()
  9.    {
  10.       this.attachMovie("SimpleButton","toStartSimpleButton",1,{falseUpSkin:"ToStart-False-Up",falseOverSkin:"ToStart-False-Over",falseDownSkin:"ToStart-False-Down",falseDisabledSkin:"ToStart-False-Disabled"});
  11.       this.toStartSimpleButton.addEventListener("click",this);
  12.       var _loc2_ = this._parent._parent;
  13.       this.__set__enabled(_loc2_.enabled);
  14.       this.tabEnabled = false;
  15.       this.tabChildren = true;
  16.    }
  17.    function get enabled()
  18.    {
  19.       return this.toStartSimpleButton.enabled;
  20.    }
  21.    function set enabled(is)
  22.    {
  23.       this.toStartSimpleButton.enabled = is;
  24.    }
  25.    function click(ev)
  26.    {
  27.       this._parent._parent.broadcastEvent("playheadChange",0);
  28.    }
  29. }
  30.