home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.novell.com
/
2014.06.ftp.novell.com.tar
/
ftp.novell.com
/
forge
/
camtasia.msi
/
Cabs.w1.cab
/
camtasia_player_ext.swf9
/
scripts
/
__Packages
/
com
/
techsmith
/
ui
/
StartWidget.as
< prev
next >
Wrap
Text File
|
2009-08-17
|
1KB
|
38 lines
class com.techsmith.ui.StartWidget extends com.techsmith.ui.BlurredPanel
{
var padding = 5;
function StartWidget()
{
super();
}
static function create(container, name, depth, init)
{
Object.registerClass("StartWidget",com.techsmith.ui.StartWidget);
var _loc6_ = container.attachMovie("StartWidget",name,depth,init);
return com.techsmith.ui.StartWidget(_loc6_);
}
function init(src, panelType, style, rect)
{
super.init(src,panelType,style,rect);
this.orb = com.techsmith.ui.BasicButton.create(this,"orb",4);
this.orb.init(new com.techsmith.ui.ButtonStyle("BeginOrb",null,false));
var _loc7_ = (com.techsmith.ui.Component(this.panel)._width - this.orb._width) / 2;
var _loc8_ = (com.techsmith.ui.Component(this.panel)._height - this.orb._height) / 2;
this.orb.move(_loc7_,_loc8_);
this.orb.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE,com.techsmith.utils.Delegate.create(this,this.orbHandler));
}
function orbHandler(e)
{
this.dispatchEvent({target:this,type:com.techsmith.events.Events.MOUSE_RELEASE});
}
function getButton()
{
return this.orb;
}
function destroy()
{
this.orb.removeAllListeners();
super.destroy();
}
}