home *** CD-ROM | disk | FTP | other *** search
- class mx.controls.streamingmedia.ToEndButton extends MovieClip
- {
- var toEndSimpleButton;
- function ToEndButton()
- {
- super();
- this.init();
- }
- function init()
- {
- this.attachMovie("SimpleButton","toEndSimpleButton",1,{falseUpSkin:"ToEnd-False-Up",falseOverSkin:"ToEnd-False-Over",falseDownSkin:"ToEnd-False-Down",falseDisabledSkin:"ToEnd-False-Disabled"});
- this.toEndSimpleButton.addEventListener("click",this);
- var _loc2_ = this._parent._parent;
- _loc2_.evaluateToEnd();
- this.tabEnabled = false;
- this.tabChildren = true;
- }
- function get enabled()
- {
- return this.toEndSimpleButton.enabled;
- }
- function set enabled(is)
- {
- this.toEndSimpleButton.enabled = is;
- }
- function click(ev)
- {
- var _loc2_ = this._parent._parent;
- mx.controls.streamingmedia.Tracer.trace("ToEndButton.click: playAtBeginning=false");
- _loc2_.playAtBeginning = false;
- _loc2_.broadcastEvent("playheadChange",100);
- }
- }
-