home *** CD-ROM | disk | FTP | other *** search
/ Adephia Powerlink / AdephiaPowerlink-030102.iso / pc / Install / WorkFlow / Gui / WelLayout.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2002-04-02  |  1.8 KB  |  60 lines

  1. function SetHelpText(strText)
  2. {
  3.    if(!HelpControlInstance.SetDisplayText(strText))
  4.    {
  5.       HelpControlInstance.defaultText = strText;
  6.    }
  7. }
  8. function SetHintText(strText)
  9. {
  10.    if(!HintBoxInstance.SetDisplayText(strText))
  11.    {
  12.       HintBoxInstance.defaultText = strText;
  13.    }
  14. }
  15. function ToggleHelp()
  16. {
  17.    HelpControlInstance.ToggleVisibility();
  18. }
  19. function SetGraphicBoxVars(pGraphicTextBox, title, hintEnter, hintExit, Graphic)
  20. {
  21.    pGraphicTextBox.GraphicTextControl.title = title;
  22.    pGraphicTextBox.GraphicTextControl.hintEnter = hintEnter;
  23.    pGraphicTextBox.GraphicTextControl.hintExit = hintExit;
  24.    pGraphicTextBox.GraphicTextControl.Graphic = Graphic;
  25. }
  26. function ShowGraphicTextBox(BoxTitle, OnEnter, OnLeave, GraphicChoice)
  27. {
  28.    var TempInputName;
  29.    if(this.GTextBoxNumber == undefined)
  30.    {
  31.       this.GTextBoxNumber = 0;
  32.    }
  33.    TempInputName = "GTextControl" add this.GTextBoxNumber;
  34.    this.attachMovie("GRAPHIC_TEXT_BOX_EXPORT",TempInputName,CurrentStackingOrder);
  35.    CurrentStackingOrder++;
  36.    var tempObject = eval("this." add TempInputName);
  37.    tempObject._x = 205.3;
  38.    tempObject._y = 118 + 49 * this.GTextBoxNumber;
  39.    SetGraphicBoxVars(tempObject,BoxTitle,OnEnter,OnLeave,GraphicChoice);
  40.    this.GTextBoxNumber = this.GTextBoxNumber + 1;
  41. }
  42. function ShowTextScroller(ScrollerName, PlaceNumber)
  43. {
  44.    var NewMClip;
  45.    var TempPlaceHolder;
  46.    NewMClip = ScrollerName add "_EXPORT";
  47.    TempPlaceHolder = ScrollerName add PlaceNumber;
  48.    this.attachMovie(ScrollerName,NewMclip,CurrentStackingOrder);
  49.    CurrentStackingOrder++;
  50.    this[NewMClip]._x = TempPlaceHolder._x;
  51.    this[NewMClip]._y = TempPlaceHolder._y;
  52. }
  53. function SetText(strTextID, strText)
  54. {
  55.    this[strTextID] = strText;
  56.    return true;
  57. }
  58. _level0.BackgroundCreationCallback(_target);
  59. CurrentStackingOrder = 100;
  60.