home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
i·claim - visualizing argument
/
ICLAIM.ISO
/
mac
/
t_02.swf
/
scripts
/
__Packages
/
mx
/
controls
/
streamingmedia
/
ToEndButton.as
< prev
next >
Wrap
Text File
|
2005-02-25
|
1KB
|
33 lines
class mx.controls.streamingmedia.ToEndButton extends MovieClip
{
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);
}
}