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

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