home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 155 / MOBICLIC155.ISO / mac / DATA / BAY155 / BAY155_00 / BAY155_00.swf / scripts / frame_16 / DoAction.as
Text File  |  2013-07-08  |  3KB  |  49 lines

  1. stop();
  2. InitMascotte({mc:BUG.BUG});
  3. BUG.swapDepths(2546);
  4. BUG.BUG.gotoAndStop("E2");
  5. BUG.BUG._visible = true;
  6. BUG.BUG.CacherApres = false;
  7. InitMascotte({mc:SPAM.SPAM});
  8. SPAM.swapDepths(2547);
  9. SPAM.SPAM.gotoAndStop("E2");
  10. SPAM.SPAM._visible = true;
  11. SPAM.SPAM.CacherApres = false;
  12. InitMascotte({mc:WIKI.WIKI});
  13. WIKI.swapDepths(2548);
  14. WIKI.WIKI.gotoAndStop("E2");
  15. WIKI.WIKI._visible = true;
  16. WIKI.WIKI.CacherApres = false;
  17. InitMascotte({mc:LIZZ.LIZZ});
  18. LIZZ.swapDepths(2549);
  19. LIZZ.LIZZ.gotoAndStop("E2");
  20. LIZZ.LIZZ._visible = true;
  21. LIZZ.LIZZ.CacherApres = false;
  22. InitMascotte({mc:TOTO.TOTO});
  23. TOTO.swapDepths(2549);
  24. TOTO.TOTO.gotoAndStop("E2");
  25. TOTO.TOTO._visible = true;
  26. TOTO.TOTO.CacherApres = false;
  27. MASCOTTE_SPAM = SPAM.SPAM;
  28. MASCOTTE_WIKI = WIKI.WIKI;
  29. MASCOTTE_BUG = BUG.BUG;
  30. MASCOTTE_LIZZ = LIZZ.LIZZ;
  31. MASCOTTE_LIZZ = TOTO.TOTO;
  32. trace("MMMM " + MASCOTTE_WIKI.ParamsXml.xDepart);
  33. var vitesse_mascottes = 2;
  34. this.TweenBUGx = new mx.transitions.Tween(BUG.BUG,"_x",mx.transitions.easing.None.easeOut,Number(BUG.BUG.ParamsXml.xDepart),BUG.BUG._x,vitesse_mascottes,true);
  35. this.TweenBUGy = new mx.transitions.Tween(BUG.BUG,"_y",mx.transitions.easing.None.easeOut,Number(BUG.BUG.ParamsXml.yDepart),BUG.BUG._y,vitesse_mascottes,true);
  36. this.TweenSPAMx = new mx.transitions.Tween(SPAM.SPAM,"_x",mx.transitions.easing.None.easeOut,Number(SPAM.SPAM.ParamsXml.xDepart),SPAM.SPAM._x,vitesse_mascottes,true);
  37. this.TweenSPAMy = new mx.transitions.Tween(SPAM.SPAM,"_y",mx.transitions.easing.None.easeOut,Number(SPAM.SPAM.ParamsXml.yDepart),SPAM.SPAM._y,vitesse_mascottes,true);
  38. this.TweenWIKIx = new mx.transitions.Tween(MASCOTTE_WIKI,"_x",mx.transitions.easing.None.easeOut,Number(MASCOTTE_WIKI.ParamsXml.xDepart),MASCOTTE_WIKI._x,vitesse_mascottes,true);
  39. this.TweenWIKIy = new mx.transitions.Tween(MASCOTTE_WIKI,"_y",mx.transitions.easing.None.easeOut,Number(MASCOTTE_WIKI.ParamsXml.yDepart),MASCOTTE_WIKI._y,vitesse_mascottes,true);
  40. this.TweenLIZZx = new mx.transitions.Tween(LIZZ.LIZZ,"_x",mx.transitions.easing.None.easeOut,Number(LIZZ.LIZZ.ParamsXml.xDepart),LIZZ.LIZZ._x,vitesse_mascottes,true);
  41. this.TweenLIZZy = new mx.transitions.Tween(LIZZ.LIZZ,"_y",mx.transitions.easing.None.easeOut,Number(lIZZ.LIZZ.ParamsXml.yDepart),LIZZ.lIZZ._y,vitesse_mascottes,true);
  42. this.TweenTOTOx = new mx.transitions.Tween(TOTO.TOTO,"_x",mx.transitions.easing.None.easeOut,Number(TOTO.TOTO.ParamsXml.xDepart),TOTO.TOTO._x,vitesse_mascottes,true);
  43. this.TweenTOTOy = new mx.transitions.Tween(TOTO.TOTO,"_y",mx.transitions.easing.None.easeOut,Number(TOTO.TOTO.ParamsXml.yDepart),TOTO.TOTO._y,vitesse_mascottes,true);
  44. TweenWIKIx.onMotionFinished = function()
  45. {
  46.    TweenWIKIx = undefined;
  47.    _root.gotoAndPlay("INTRO");
  48. };
  49.