home *** CD-ROM | disk | FTP | other *** search
- class Library.BasicPopUp extends Library.State
- {
- var bComplexAnim;
- var oListener;
- var mcRef;
- static var NEED_UPDATE = 1;
- function BasicPopUp(__mcRef, __bComplexAnim)
- {
- super(__mcRef);
- if(__bComplexAnim == undefined)
- {
- __bComplexAnim = false;
- }
- this.bComplexAnim = __bComplexAnim;
- this.setState("Hidden");
- }
- function doHide()
- {
- this.setState("Hidden");
- }
- function doClose()
- {
- if(this.CurrentState == "Idle")
- {
- this.setState("Out");
- }
- }
- function doOpen()
- {
- this.setState("In");
- }
- function doDestroy()
- {
- delete this.oListener;
- delete this.mcRef;
- }
- function get Ref()
- {
- if(this.bComplexAnim)
- {
- return this.mcRef.mcState;
- }
- return this.mcRef.mcState.mcBox;
- }
- function set Listener(__o)
- {
- this.oListener = __o;
- }
- function doIn()
- {
- if(this.isStateComplete())
- {
- this.setState("Idle");
- }
- }
- function doOut()
- {
- if(this.isStateComplete())
- {
- this.setState("Hidden");
- }
- }
- function doLoadStateAction()
- {
- this.mcRef.mcState.btnBlock.onRelease = function()
- {
- };
- this.mcRef.mcState.btnBlock.useHandCursor = false;
- if(this.CurrentState != "Hidden")
- {
- this.oListener.onPopUpEvent(Library.BasicPopUp.NEED_UPDATE,this);
- }
- }
- }
-