home *** CD-ROM | disk | FTP | other *** search
/ Adephia Powerlink / AdephiaPowerlink-030102.iso / pc / Install / WorkFlow / Gui / StdLyt.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2002-04-02  |  2.8 KB  |  100 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, bFileName)
  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.    if(bFileName)
  55.    {
  56.       this[NewMClip].Scroller.url = strText;
  57.    }
  58.    else
  59.    {
  60.       this[NewMClip].Scroller.textToShow = strText;
  61.    }
  62. }
  63. function SetText(strTextID, strText)
  64. {
  65.    this[strTextID] = strText;
  66.    return true;
  67. }
  68. function ShowListBox(nPlacementLocation, arListItems, curVar)
  69. {
  70.    var NewMClip;
  71.    var TempPlaceHolder;
  72.    var Bounds;
  73.    fscommand("SHOWLISTBOX",arListItems[0].Item);
  74.    fscommand("SHOWLISTBOX",arListItems[1].Item);
  75.    NewMClip = "ListBox" add nPlacementLocation;
  76.    TempPlaceHolder = eval("LBPlacement" add nPlacementLocation);
  77.    this.attachMovie("LISTBOX_CONTROL_WRAPPER",NewMClip,CurrentStackingOrder);
  78.    CurrentStackingOrder++;
  79.    Bounds = TempPlaceHolder.getBounds(_root);
  80.    this[NewMClip]._x = Bounds.xMin;
  81.    this[NewMClip]._y = Bounds.yMin;
  82.    this[NewMClip].LBControl.arItems = arListItems;
  83.    this[NewMClip].LBControl.RowSize = Math.round(TempPlaceHolder._height / 25) + 1;
  84.    if(curVar != undefined)
  85.    {
  86.       this[NewMClip].CurrentSelection = curVar;
  87.    }
  88.    return nPlacementLocation;
  89. }
  90. function OnSelectionChange(strSelection)
  91. {
  92.    ChildSWF.OnSelectionChange(strSelection);
  93. }
  94. function ScrollComplete()
  95. {
  96.    ChildSWF.ScrollComplete();
  97. }
  98. _level0.BackgroundCreationCallback(_target);
  99. CurrentStackingOrder = 100;
  100.