home *** CD-ROM | disk | FTP | other *** search
/ i·claim - visualizing argument / ICLAIM.ISO / pc / glossary.swf / scripts / __Packages / mx / controls / streamingmedia / ToStartButton.as < prev    next >
Encoding:
Text File  |  2005-02-24  |  902 b   |  31 lines

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