home *** CD-ROM | disk | FTP | other *** search
- function SetHelpText(strText)
- {
- if(!HelpControlInstance.SetDisplayText(strText))
- {
- HelpControlInstance.defaultText = strText;
- }
- }
- function SetHintText(strText)
- {
- if(!HintBoxInstance.SetDisplayText(strText))
- {
- HintBoxInstance.defaultText = strText;
- }
- }
- function ToggleHelp()
- {
- HelpControlInstance.ToggleVisibility();
- }
- function SetInputBoxVars(pInputBox, title, defaultInputText, hintEnter, hintExit, AmPassword, ExpCheck)
- {
- pInputBox.title = title;
- pInputBox.defaultInputText = defaultInputText;
- pInputBox.hintEnter = hintEnter;
- pInputBox.hintExit = hintExit;
- pInputBox.AmPassword = AmPassword;
- pInputBox.ExpCheck = ExpCheck;
- }
- function AddToValidation(strTarget)
- {
- if(_root.TheInputValidator == undefined)
- {
- this.attachMovie("INPUT_VALIDATOR_WRAPPER","TheInputValidator",this.CurrentStackingOrder);
- _root.TheInputValidator.InputList = new Array();
- _root.TheInputValidator.CallBackFunction = "OnValidInputs";
- this.CurrentStackingOrder = this.CurrentStackingOrder + 1;
- }
- _root.TheInputValidator.InputList.push(strTarget);
- }
- function OnValidInputs(bValid)
- {
- ChildSwf.OnValidInputs(bValid);
- }
- function ShowInputBox(BoxTitle, DefaultText, OnEnter, OnLeave, bPassword, RegExp, bValidate)
- {
- var TempInputName;
- if(this.InputBoxNumber == undefined)
- {
- this.InputBoxNumber = 1;
- }
- TempInputName = "InputControl" add this.InputBoxNumber;
- this.attachMovie("INPUT_BOX_EXPORT",TempInputName,CurrentStackingOrder);
- CurrentStackingOrder++;
- var tempObject = eval("this." add TempInputName);
- tempObject._x = 202.4;
- tempObject._y = 135 + 41 * (this.InputBoxNumber - 1);
- SetInputBoxVars(tempObject.InputBox,BoxTitle,DefaultText,OnEnter,OnLeave,bPassword,RegExp);
- if(bValidate)
- {
- AddToValidation(tempObject.InputBox._target add "/InputField");
- }
- this.InputBoxNumber = this.InputBoxNumber + 1;
- return this.InputBoxNumber - 1;
- }
- function GetInputReference(nId)
- {
- return eval("InputControl" add nId add ".InputBox");
- }
- function GetInputFieldPath(nID)
- {
- var tempOb = eval("InputControl" add nID);
- return targetPath(tempOb) add ".InputBox.InputField.Input";
- }
- function SetText(strTextID, strText)
- {
- this[strTextID] = strText;
- return true;
- }
- function RequestAutoFill(nWatchID, nFillID, strHeader, strFooter)
- {
- if(this.AutoFillCounter == undefined)
- {
- this.AutoFillCounter = 1;
- }
- var tempAutoFillName = "AutoFill" add this.AutoFillCounter;
- var tempObject;
- this.attachMovie("AUTO_FILL_WRAPPER",tempAutoFillName,CurrentStackingOrder);
- CurrentStackingOrder++;
- this.AutoFillCounter = this.AutoFillCounter + 1;
- tempObject = eval(tempAutoFillName);
- tempObject.FieldToWatch = GetInputFieldPath(nWatchID);
- tempObject.FieldToFill = GetInputFieldPath(nFillID);
- tempObject.InputHeader = strHeader;
- tempObject.InputFooter = strFooter;
- }
- _level0.BackgroundCreationCallback(_target);
- CurrentStackingOrder = 100;
-