home *** CD-ROM | disk | FTP | other *** search
- class application.ui.FocusBorder extends application.screens.AbstractScreen
- {
- var holder;
- var configObj;
- var activeBtn;
- static var instance;
- function FocusBorder()
- {
- super();
- }
- static function getInstance()
- {
- if(application.ui.FocusBorder.instance == null)
- {
- application.ui.FocusBorder.instance = new application.ui.FocusBorder();
- }
- return application.ui.FocusBorder.instance;
- }
- function setHolder(holder)
- {
- this.holder = holder;
- }
- function showBorder(mc)
- {
- var _loc5_ = mc.rect._width - 4;
- var _loc4_ = mc.rect._height - 4;
- var _loc2_ = new Object();
- _loc2_.x = mc.rect._x;
- _loc2_.y = mc.rect._y;
- mc.localToGlobal(_loc2_);
- this.holder._x = _loc2_.x;
- this.holder._y = _loc2_.y;
- this.holder.clear();
- this.holder.lineStyle(2,this.configObj.tabBorderColor,100);
- this.holder.moveTo(0,0);
- this.holder.lineTo(_loc5_,0);
- this.holder.lineTo(_loc5_,_loc4_);
- this.holder.lineTo(0,_loc4_);
- this.holder.lineTo(0,0);
- this.activeBtn = mc;
- }
- function repos()
- {
- var _loc4_ = this.activeBtn.rect._width - 4;
- var _loc3_ = this.activeBtn.rect._height - 4;
- var _loc2_ = new Object();
- _loc2_.x = this.activeBtn.rect._x;
- _loc2_.y = this.activeBtn.rect._y;
- this.activeBtn.localToGlobal(_loc2_);
- this.holder._x = _loc2_.x;
- this.holder._y = _loc2_.y;
- }
- function hide()
- {
- this.holder.clear();
- }
- function onScrollonKeyEvent()
- {
- this.repos();
- }
- }
-