home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 August / TommyVideo.iso / flash / services / cas.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2003-06-08  |  1.5 KB  |  59 lines

  1. function setContent(temp)
  2. {
  3.    if(temp == "input")
  4.    {
  5.       pane.setScrollContent("supportContent");
  6.    }
  7.    else if(temp == "thankyou")
  8.    {
  9.       pane.setScrollContent("Thank_You");
  10.    }
  11.    pane.refreshPane();
  12. }
  13. function translate()
  14. {
  15.    switch(_level1._root.lang)
  16.    {
  17.       case "en":
  18.          gotoAndStop(4);
  19.          break;
  20.       case "de":
  21.          gotoAndStop(5);
  22.          break;
  23.       case "hr":
  24.          gotoAndStop(6);
  25.          break;
  26.       default:
  27.          gotoAndStop(4);
  28.    }
  29. }
  30. function setGlobalStyleFormat()
  31. {
  32.    globalStyleFormat.face = 1458837;
  33.    globalStyleFormat.background = 1724600;
  34.    globalStyleFormat.arrow = 0;
  35.    globalStyleFormat.darkshadow = 0;
  36.    globalStyleFormat.shadow = 0;
  37.    globalStyleFormat.highlight = 0;
  38.    globalStyleFormat.highlight3D = 0;
  39.    globalStyleFormat.scrollTrack = 0;
  40.    globalStyleFormat.selection = 1458837;
  41.    globalStyleFormat.textSelected = 16777215;
  42.    globalStyleFormat.textColor = 16777215;
  43.    globalStyleFormat.textFont = "supertext";
  44.    globalStyleFormat.embedFonts = true;
  45.    globalStyleFormat.textSize = 8;
  46.    globalStyleFormat.applyChanges();
  47. }
  48. this.setGlobalStyleFormat();
  49. this.setContent("input");
  50. _root.mouseObj = new classMouse();
  51. pane.onMouseWheel = function(intWheelDelta)
  52. {
  53.    var objCurrentPosition = this.getScrollPosition();
  54.    var intNewPosition = objCurrentPosition.y - intWheelDelta;
  55.    this.setScrollPosition(0,intNewPosition);
  56. };
  57. _root.mouseObj.addListener(pane);
  58. stop();
  59.