home *** CD-ROM | disk | FTP | other *** search
/ Adephia Powerlink / AdephiaPowerlink-030102.iso / pc / Install / WorkFlow / Gui / StdLayout.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2002-04-02  |  2.5 KB  |  85 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 ShowGraphic(mName, XPos, YPos)
  20. {
  21.    var TempName;
  22.    TempName = mName add "_EXPORT";
  23.    this.attachMovie(mName,TempName,CurrentStackingOrder);
  24.    CurrentStackingOrder++;
  25.    this[TempName]._x = XPos;
  26.    this[TempName]._y = YPos;
  27.    return this[TempName];
  28. }
  29. function ShowGraphicFromFile(strFilename, PlaceNumber)
  30. {
  31.    var TempName;
  32.    var bounds;
  33.    TempName = "GraphicPlacement" add PlaceNumber;
  34.    bounds = this[TempName].getBounds(_root);
  35.    loadMovie(strFilename,this[TempName]);
  36.    this[TempName]._x = bounds.xMin;
  37.    this[TempName]._y = bounds.yMin;
  38.    this[TempName]._height = bounds.yMax - bounds.yMin;
  39.    this[TempName]._width = bound.xMax - bounds.xMin;
  40.    this[TempName]._xscale = 100;
  41.    this[TempName]._yscale = 100;
  42.    return this[TempName];
  43. }
  44. function ShowTextScroller(ScrollerName, PlaceNumber, strText)
  45. {
  46.    var NewMClip;
  47.    var TempPlaceHolder;
  48.    NewMClip = ScrollerName add "_EXPORT";
  49.    TempPlaceHolder = eval(ScrollerName add PlaceNumber);
  50.    this.attachMovie(ScrollerName,NewMclip,CurrentStackingOrder);
  51.    CurrentStackingOrder++;
  52.    this[NewMClip]._x = TempPlaceHolder._x;
  53.    this[NewMClip]._y = TempPlaceHolder._y;
  54.    this[NewMClip].Scroller.url = strText;
  55. }
  56. function SetText(strTextID, strText)
  57. {
  58.    this[strTextID] = strText;
  59.    return true;
  60. }
  61. function ShowListBox(nPlacementLocation, arListItems)
  62. {
  63.    var NewMClip;
  64.    var TempPlaceHolder;
  65.    var Bounds;
  66.    fscommand("SHOWLISTBOX",arListItems[0].Item);
  67.    fscommand("SHOWLISTBOX",arListItems[1].Item);
  68.    NewMClip = "ListBox" add nPlacementLocation;
  69.    TempPlaceHolder = eval("LBPlacement" add nPlacementLocation);
  70.    this.attachMovie("LISTBOX_CONTROL_WRAPPER",NewMClip,CurrentStackingOrder);
  71.    CurrentStackingOrder++;
  72.    Bounds = TempPlaceHolder.getBounds(_root);
  73.    this[NewMClip]._x = Bounds.xMin;
  74.    this[NewMClip]._y = Bounds.yMin;
  75.    this[NewMClip].LBControl.arItems = arListItems;
  76.    this[NewMClip].LBControl.RowSize = Math.round(TempPlaceHolder._height / 25) + 1;
  77.    return nPlacementLocation;
  78. }
  79. function OnSelectionChange(strSelection)
  80. {
  81.    ChildSWF.OnSelectionChange(strSelection);
  82. }
  83. _level0.BackgroundCreationCallback(_target);
  84. CurrentStackingOrder = 100;
  85.