home *** CD-ROM | disk | FTP | other *** search
- class application.screens.InfoScreen extends application.screens.AbstractScreen implements application.models.IScreen
- {
- var info;
- var dataObj;
- var currentId;
- var popup;
- function InfoScreen()
- {
- super();
- }
- function build()
- {
- this.info = new application.ui.DynamicInfoTextfield();
- this.info.setContainer(this);
- this.info.setDataObj(this.dataObj);
- }
- function update(id, softwarList)
- {
- if(id != null)
- {
- if(id == this.currentId)
- {
- return undefined;
- }
- if(this.popup != null)
- {
- application.core.FocusManager.getInstance().killCurrentFocus();
- this.popup.removeMovieClip();
- }
- this.currentId = id;
- var _loc3_ = this.info.run(id);
- var _loc7_ = 445;
- var _loc6_ = 309;
- this.popup = _loc3_.mc;
- this.popup._x = 82;
- this.popup._y = 80;
- this.popup._x = this.popup._x + _loc7_ - _loc3_.w;
- var _loc4_ = softwarList.getInfoButton(id);
- var _loc2_ = new Object();
- _loc2_.x = int(_loc4_._x);
- _loc2_.y = int(_loc4_._y);
- _loc4_.localToGlobal(_loc2_);
- if(_loc2_.y + _loc3_.h + 9 - this._parent._y > this.popup._y + _loc6_ || _loc2_.y + 9 - this._parent._y < this.popup._y)
- {
- this.popup._y += int((_loc6_ - _loc3_.h) / 2);
- }
- else
- {
- this.popup._y = _loc2_.y + 9 - this._parent._y;
- }
- }
- else
- {
- this.popup.removeMovieClip();
- this.currentId = null;
- this.popup = null;
- }
- }
- function onButtonRollOver(mc)
- {
- }
- function onButtonRollOut(mc)
- {
- }
- function onButtonPress(mc)
- {
- }
- function onButtonRelease(mc)
- {
- }
- function onButtonDisable(mc)
- {
- }
- function onButtonEnable(mc)
- {
- }
- function onButtonReleaseOutside(mc)
- {
- }
- }
-