home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / VenusMission.swf / scripts / DefineSprite_195 / frame_15 / DoAction.as
Encoding:
Text File  |  2008-09-23  |  925 b   |  34 lines

  1. var tMC;
  2. pages.p_back.removeMovieClip();
  3. pages.p_next.removeMovieClip();
  4. if(pages.p_hit_back != undefined)
  5. {
  6.    tMC = pages.createEmptyMovieClip("p_back",1);
  7.    tMC.onRelease = function()
  8.    {
  9.       this._parent._parent.gotoAndPlay("flippage");
  10.       this._parent._parent.nextframe = -1;
  11.    };
  12.    tMC.hitArea = pages.p_hit_back._visible = false;
  13. }
  14. if(pages.p_hit_next != undefined)
  15. {
  16.    tMC = pages.createEmptyMovieClip("p_next",2);
  17.    tMC.onRelease = function()
  18.    {
  19.       this._parent._parent.gotoAndPlay("flippage");
  20.       this._parent._parent.nextframe = 1;
  21.    };
  22.    tMC.hitArea = pages.p_hit_next._visible = false;
  23. }
  24. if(pages.p_menu == undefined)
  25. {
  26.    tMC = pages.createEmptyMovieClip("p_menu",3);
  27.    tMC.onRelease = function()
  28.    {
  29.       this._parent._parent.gotoAndPlay("flippage");
  30.       this._parent._parent.nextframe = 0;
  31.    };
  32.    tMC.hitArea = pages.p_hit_menu._visible = false;
  33. }
  34.