Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class com.shEkh.Main extends MovieClip
- {
- var _xml, _asstId, _hmgId, getNextHighestDepth, attachMovie, _bgClrMc, _bgClr1, _bgClr2, _bgImgMc, _flScrn, _cpyMc, _plyrMain, _mnuMain, _sctnMc, _cntcMc;
- function Main()
- {
- super();
- _xml = _root._xml;
- _asstId = _xml.idMap.assets;
- _hmgId = _asstId.childNodes[0];
- _bgClrMc = this.attachMovie("_bgClrMc", "_bgClrMc", this.getNextHighestDepth(), {_width: Stage.width, _height: Stage.height});
- _bgClr1 = _hmgId.attributes.bgClr1;
- _bgClr2 = _hmgId.attributes.bgClr2;
- _bgImgMc = this.attachMovie("_bgImgMc", "_bgImgMc", this.getNextHighestDepth());
- _bgImgMc._imgh = _hmgId.attributes.bgImg;
- _bgImgMc._bgh = _hmgId.attributes.bg;
- _bgImgMc._bgalgnh = _hmgId.attributes.bgAlign;
- _root._bgImgMc = _bgImgMc;
- _flScrn = this.attachMovie("_flScrnMc", "_flScrnMc", this.getNextHighestDepth(), {_x: 20, _y: Stage.height - 50, _alpha: 0});
- _flScrn._txt = _asstId.childNodes[1].attributes.txt;
- _flScrn._txtT.autoSize = true;
- _flScrn.alphaTo(60, 1, "easeInOutExpo");
- _cpyMc = this.attachMovie("_cpyMc", "_cpyMc", this.getNextHighestDepth(), {_x: 20, _y: Stage.height, _alpha: 0});
- _cpyMc._txt = _xml.idMap.copy;
- _cpyMc._txtT.autoSize = true;
- _cpyMc.alphaTo(100, 1, "easeInOutExpo");
- _plyrMain = this.attachMovie("_plyrMain", "_plyrMain", this.getNextHighestDepth(), {_x: Stage.width, _y: Stage.height});
- _root._logTxt = _xml.idMap.logo;
- _mnuMain = this.attachMovie("_mnuMain", "_mnuMain", this.getNextHighestDepth(), {_x: Stage.width / 2, _y: Stage.height / 2 + (Stage.height / 2 - 170) / 2});
- _mnuMain._lgoMC._txt = _root._logTxt;
- _mnuMain._lgoMC._txtT.autoSize = true;
- _mnuMain._lgoMC._txtT._y = -_mnuMain._lgoMC._txtT._height / 2;
- } // End of the function
- function _mprsFnc()
- {
- switch (_root._p)
- {
- case "15":
- {
- _root._actvSctn = _sctnMc = _root.attachMovie("_glryMc", "_sctnMc", _root.getNextHighestDepth());
- break;
- }
- case "25":
- {
- _root._actvSctn = _sctnMc = _root.attachMovie("_sctnMc1", "_sctnMc", _root.getNextHighestDepth());
- break;
- }
- case "35":
- {
- _root._actvSctn = _sctnMc = _root.attachMovie("_sctnMc2", "_sctnMc", _root.getNextHighestDepth());
- break;
- }
- default:
- {
- trace ("There is No Section");
- break;
- }
- } // End of switch
- _bgClrMc._clrFnc(_root._clr1, _root._clr2);
- _bgImgMc._prcdFnc(false);
- } // End of the function
- function _rszeFnc()
- {
- _mnuMain._x = Math.round(Stage.width / 2);
- _mnuMain._y = Math.round(Stage.height / 2 + (Stage.height / 2 - 170) / 2);
- _mnuMain._crclMc._y = -(Stage.height / 2 - 170) / 2;
- _bgClrMc._width = _plyrMain._x = Stage.width;
- _bgClrMc._height = _cpyMc._y = _plyrMain._y = Stage.height;
- _flScrn._y = _cntcMc._y = Stage.height - 50;
- _cntcMc._x = _flScrn._width + 30;
- _cntcMc._rzeFnc();
- } // End of the function
- } // End of Class
Add Comment
Please, Sign In to add comment