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 >
Text File  |  2009-08-17  |  1KB  |  38 lines

  1. class com.techsmith.ui.StartWidget extends com.techsmith.ui.BlurredPanel
  2. {
  3.    var padding = 5;
  4.    function StartWidget()
  5.    {
  6.       super();
  7.    }
  8.    static function create(container, name, depth, init)
  9.    {
  10.       Object.registerClass("StartWidget",com.techsmith.ui.StartWidget);
  11.       var _loc6_ = container.attachMovie("StartWidget",name,depth,init);
  12.       return com.techsmith.ui.StartWidget(_loc6_);
  13.    }
  14.    function init(src, panelType, style, rect)
  15.    {
  16.       super.init(src,panelType,style,rect);
  17.       this.orb = com.techsmith.ui.BasicButton.create(this,"orb",4);
  18.       this.orb.init(new com.techsmith.ui.ButtonStyle("BeginOrb",null,false));
  19.       var _loc7_ = (com.techsmith.ui.Component(this.panel)._width - this.orb._width) / 2;
  20.       var _loc8_ = (com.techsmith.ui.Component(this.panel)._height - this.orb._height) / 2;
  21.       this.orb.move(_loc7_,_loc8_);
  22.       this.orb.addEventListener(com.techsmith.events.Events.MOUSE_RELEASE,com.techsmith.utils.Delegate.create(this,this.orbHandler));
  23.    }
  24.    function orbHandler(e)
  25.    {
  26.       this.dispatchEvent({target:this,type:com.techsmith.events.Events.MOUSE_RELEASE});
  27.    }
  28.    function getButton()
  29.    {
  30.       return this.orb;
  31.    }
  32.    function destroy()
  33.    {
  34.       this.orb.removeAllListeners();
  35.       super.destroy();
  36.    }
  37. }
  38.