home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 August / TommyVideo.iso / flash / volumes / volume_1.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2003-06-08  |  2.6 KB  |  69 lines

  1. function setGlobalStyleFormat()
  2. {
  3.    globalStyleFormat.face = 16750899;
  4.    globalStyleFormat.arrow = 0;
  5.    globalStyleFormat.darkshadow = 0;
  6.    globalStyleFormat.shadow = 0;
  7.    globalStyleFormat.highlight = 0;
  8.    globalStyleFormat.highlight3D = 0;
  9.    globalStyleFormat.scrollTrack = 0;
  10.    globalStyleFormat.selection = 0;
  11.    globalStyleFormat.textSelected = 0;
  12.    globalStyleFormat.textColor = 16777215;
  13.    globalStyleFormat.textFont = "supertext";
  14.    globalStyleFormat.embedFonts = true;
  15.    globalStyleFormat.textSize = 8;
  16.    globalStyleFormat.applyChanges();
  17. }
  18. function translate()
  19. {
  20.    _root.itemCurrent = parseInt(_level1._root.menuSubLabel.slice(_level1._root.menuSubLabel.length - 1,_level1._root.menuSubLabel.length));
  21.    _root.itemNext = _root.itemCurrent + 1;
  22.    _root.itemPrevious = _root.itemCurrent - 1;
  23.    _root.itemText = _level1._root.menuSubLabel.slice(0,_level1._root.menuSubLabel.length - 1);
  24.    if(_root.itemPrevious == 0)
  25.    {
  26.       btnPrevious._visible = false;
  27.       separator._visible = false;
  28.    }
  29.    if(_root.itemCurrent == _level1._root.maxVolumes)
  30.    {
  31.       btnNext._visible = false;
  32.       separator._visible = false;
  33.    }
  34.    btnBuy.label.autoSize = true;
  35.    btnBuyBundle.label.autoSize = true;
  36.    btnPrevious.label.autoSize = true;
  37.    btnNext.label.autoSize = true;
  38.    if(_level1._root.lang == "en")
  39.    {
  40.       btnBuy.btnText = "ORDER VOLUME " + _root.itemCurrent + " DVD-ROM";
  41.       btnBuyBundle.btnText = "ORDER BUNDLE AND SAVE $100";
  42.       btnPrevious.btnText = "<< VOLUME " + _root.itemPrevious;
  43.       btnNext.btnText = "VOLUME " + _root.itemNext + " >>";
  44.    }
  45.    else if(_level1._root.lang == "hr")
  46.    {
  47.       btnBuy.btnText = "NARU√àITE IZDANJE " + _root.itemCurrent + " DVD-ROM";
  48.       btnBuyBundle.btnText = "NARU√àITE SVE I U≈†TEDITE $100";
  49.       btnPrevious.btnText = "<< IZDANJE " + _root.itemPrevious;
  50.       btnNext.btnText = "IZDANJE " + _root.itemNext + " >>";
  51.    }
  52.    else if(_level1._root.lang == "de")
  53.    {
  54.       btnBuy.btnText = "AUSGABE " + _root.itemCurrent + " DVD-ROM ORDNEN";
  55.       btnBuyBundle.btnText = "ALLES ORDNEN UND SPARREN $100";
  56.       btnPrevious.btnText = "<< AUSGABE " + _root.itemPrevious;
  57.       btnNext.btnText = "AUSGABE " + _root.itemNext + " >>";
  58.    }
  59.    btnBuy.label._x = 6;
  60.    btnBuyBundle.label._x = 6;
  61.    btnPrevious.label._x = Math.round((btnPrevious._width - btnPrevious.label._width) / 2);
  62.    btnNext.label._x = Math.round((btnNext._width - btnNext.label._width) / 2);
  63. }
  64. this.translate();
  65. video = "";
  66. setGlobalStyleFormat();
  67. myGallery.setTnTitleStyle("title");
  68. stop();
  69.