Guest User

Untitled

a guest
Jun 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. class com.shEkh.Main extends MovieClip
  2. {
  3. var _xml, _asstId, _hmgId, getNextHighestDepth, attachMovie, _bgClrMc, _bgClr1, _bgClr2, _bgImgMc, _flScrn, _cpyMc, _plyrMain, _mnuMain, _sctnMc, _cntcMc;
  4. function Main()
  5. {
  6. super();
  7. _xml = _root._xml;
  8. _asstId = _xml.idMap.assets;
  9. _hmgId = _asstId.childNodes[0];
  10. _bgClrMc = this.attachMovie("_bgClrMc", "_bgClrMc", this.getNextHighestDepth(), {_width: Stage.width, _height: Stage.height});
  11. _bgClr1 = _hmgId.attributes.bgClr1;
  12. _bgClr2 = _hmgId.attributes.bgClr2;
  13. _bgImgMc = this.attachMovie("_bgImgMc", "_bgImgMc", this.getNextHighestDepth());
  14. _bgImgMc._imgh = _hmgId.attributes.bgImg;
  15. _bgImgMc._bgh = _hmgId.attributes.bg;
  16. _bgImgMc._bgalgnh = _hmgId.attributes.bgAlign;
  17. _root._bgImgMc = _bgImgMc;
  18. _flScrn = this.attachMovie("_flScrnMc", "_flScrnMc", this.getNextHighestDepth(), {_x: 20, _y: Stage.height - 50, _alpha: 0});
  19. _flScrn._txt = _asstId.childNodes[1].attributes.txt;
  20. _flScrn._txtT.autoSize = true;
  21. _flScrn.alphaTo(60, 1, "easeInOutExpo");
  22. _cpyMc = this.attachMovie("_cpyMc", "_cpyMc", this.getNextHighestDepth(), {_x: 20, _y: Stage.height, _alpha: 0});
  23. _cpyMc._txt = _xml.idMap.copy;
  24. _cpyMc._txtT.autoSize = true;
  25. _cpyMc.alphaTo(100, 1, "easeInOutExpo");
  26. _plyrMain = this.attachMovie("_plyrMain", "_plyrMain", this.getNextHighestDepth(), {_x: Stage.width, _y: Stage.height});
  27. _root._logTxt = _xml.idMap.logo;
  28. _mnuMain = this.attachMovie("_mnuMain", "_mnuMain", this.getNextHighestDepth(), {_x: Stage.width / 2, _y: Stage.height / 2 + (Stage.height / 2 - 170) / 2});
  29. _mnuMain._lgoMC._txt = _root._logTxt;
  30. _mnuMain._lgoMC._txtT.autoSize = true;
  31. _mnuMain._lgoMC._txtT._y = -_mnuMain._lgoMC._txtT._height / 2;
  32. } // End of the function
  33. function _mprsFnc()
  34. {
  35. switch (_root._p)
  36. {
  37. case "15":
  38. {
  39. _root._actvSctn = _sctnMc = _root.attachMovie("_glryMc", "_sctnMc", _root.getNextHighestDepth());
  40. break;
  41. }
  42. case "25":
  43. {
  44. _root._actvSctn = _sctnMc = _root.attachMovie("_sctnMc1", "_sctnMc", _root.getNextHighestDepth());
  45. break;
  46. }
  47. case "35":
  48. {
  49. _root._actvSctn = _sctnMc = _root.attachMovie("_sctnMc2", "_sctnMc", _root.getNextHighestDepth());
  50. break;
  51. }
  52. default:
  53. {
  54. trace ("There is No Section");
  55. break;
  56. }
  57. } // End of switch
  58. _bgClrMc._clrFnc(_root._clr1, _root._clr2);
  59. _bgImgMc._prcdFnc(false);
  60. } // End of the function
  61. function _rszeFnc()
  62. {
  63. _mnuMain._x = Math.round(Stage.width / 2);
  64. _mnuMain._y = Math.round(Stage.height / 2 + (Stage.height / 2 - 170) / 2);
  65. _mnuMain._crclMc._y = -(Stage.height / 2 - 170) / 2;
  66. _bgClrMc._width = _plyrMain._x = Stage.width;
  67. _bgClrMc._height = _cpyMc._y = _plyrMain._y = Stage.height;
  68. _flScrn._y = _cntcMc._y = Stage.height - 50;
  69. _cntcMc._x = _flScrn._width + 30;
  70. _cntcMc._rzeFnc();
  71. } // End of the function
  72. } // End of Class
Add Comment
Please, Sign In to add comment