devsaider

Main Timeline (transformice 0.1)

Sep 12th, 2013
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package Souris_fla
  2. {
  3.    import Box2D.Dynamics.*;
  4.    import Box2D.Collision.Shapes.*;
  5.    import flash.display.*;
  6.    import flash.geom.*;
  7.    import adobe.utils.*;
  8.    import flash.accessibility.*;
  9.    import flash.desktop.*;
  10.    import flash.errors.*;
  11.    import flash.events.*;
  12.    import flash.external.*;
  13.    import flash.filters.*;
  14.    import flash.media.*;
  15.    import flash.net.*;
  16.    import flash.printing.*;
  17.    import flash.profiler.*;
  18.    import flash.sampler.*;
  19.    import flash.system.*;
  20.    import flash.text.*;
  21.    import flash.text.engine.*;
  22.    import flash.ui.*;
  23.    import flash.utils.*;
  24.    import flash.xml.*;
  25.    import Box2D.Collision.*;
  26.    import Box2D.Common.Math.*;
  27.    import fl.transitions.Tween;
  28.    import fl.transitions.TweenEvent;
  29.    import __AS3__.vec.Vector;
  30.    import Box2D.Dynamics.Joints.b2RevoluteJointDef;
  31.  
  32.  
  33.    public dynamic class MainTimeline extends MovieClip
  34.    {
  35.          
  36.       public function MainTimeline() {
  37.          super();
  38.          addFrameScript(0,this.frame1);
  39.       }
  40.  
  41.       public var ClipJoueurProp:b2CircleDef;
  42.  
  43.       public var Domaine:String;
  44.  
  45.       public function Connexion_Impossible(param1:Event) : void {
  46.          this.ClipServeur.Texte.text = "\nImpossible d\'établir une connexion avec le serveur :\'(";
  47.       }
  48.  
  49.       public var PosDépartX:int;
  50.  
  51.       public var PosDépartY:int;
  52.  
  53.       public var InfoSalon:Array;
  54.  
  55.       public var IPS:$IPS;
  56.  
  57.       public var TexteServeur:TextField;
  58.  
  59.       public var DernierSaut:int;
  60.  
  61.       public function Validation_Placement_Objet(param1:Event) : void {
  62.          var _loc2_:MovieClip = null;
  63.          if(!this.HorsDePorté)
  64.          {
  65.             this.PosFinObjetX = this.ObjetEnCours.x;
  66.             this.PosFinObjetY = this.ObjetEnCours.y;
  67.             stage.addEventListener(MouseEvent.MOUSE_UP,this.Annulation_Invocation);
  68.             Mouse.hide();
  69.             _loc2_ = this.ClipJoueur.BarreDinvoc;
  70.             _loc2_._M.width = 0;
  71.             _loc2_._H.x = 0;
  72.             this.InvocationEnCours = true;
  73.             this.DébutInvocation = getTimer();
  74.             this.ClipJoueur.addChild(this.ClipJoueur.BarreDinvoc);
  75.             if(this.ClipJoueur.x < this.ObjetEnCours.x)
  76.             {
  77.                if(this.ClipJoueur.Vers_La_Droite(true))
  78.                {
  79.                   this.Envoie_Serveur(this.$4 + this.$8 + this.$1 + 0);
  80.                }
  81.                this.ClipJoueur.Animation_Statique(true);
  82.             }
  83.             else
  84.             {
  85.                if(this.ClipJoueur.Vers_La_Droite(false))
  86.                {
  87.                   this.Envoie_Serveur(this.$4 + this.$8 + this.$1 + 1);
  88.                }
  89.                this.ClipJoueur.Animation_Statique(false);
  90.             }
  91.             this.ClipJoueur.DroiteEnCours = false;
  92.             this.ClipJoueur.GaucheEnCours = false;
  93.             this.MAJ_Position();
  94.             this.Envoie_Serveur(this.$5 + this.$8 + this.$1 + this.ObjetEnCours.Code + this.$1 + this.PosFinObjetX + this.$1 + this.PosFinObjetY + this.$1 + int(this.ObjetEnCours.rotation));
  95.             this.ClipJoueur.Animation_Invocation(this.ClipJoueur.AnimDroite);
  96.          }
  97.       }
  98.  
  99.       public const CouleurBase:ColorTransform = new ColorTransform(1,1,1,0.5);
  100.  
  101.       public function MAJ_Position(param1:Event=null, param2:Boolean=false) : void {
  102.          var _loc3_:String = null;
  103.          var _loc4_:* = 0;
  104.          var _loc5_:* = 0;
  105.          var _loc6_:b2Body = null;
  106.          var _loc7_:b2XForm = null;
  107.          var _loc8_:* = NaN;
  108.          var _loc9_:* = NaN;
  109.          var _loc10_:b2Vec2 = null;
  110.          var _loc11_:* = 0;
  111.          var _loc12_:b2Body = null;
  112.          var _loc13_:* = 0;
  113.          var _loc14_:* = 0;
  114.          var _loc15_:b2XForm = null;
  115.          var _loc16_:b2Vec2 = null;
  116.          var _loc17_:* = 0;
  117.          if(((param1) || (param2)) && (this.Synchroniseur))
  118.          {
  119.             _loc3_ = this.$4 + this.$3;
  120.             _loc4_ = this.ListeMobile.length;
  121.             _loc5_ = 0;
  122.             while(_loc5_ < _loc4_)
  123.             {
  124.                _loc6_ = this.ListeMobile[_loc5_];
  125.                if(_loc6_)
  126.                {
  127.                   _loc7_ = _loc6_.GetXForm();
  128.                   _loc8_ = int(_loc7_.position.x * 1000) / 1000;
  129.                   _loc9_ = int(_loc7_.position.y * 1000) / 1000;
  130.                   if(-4 > _loc8_ || _loc8_ > 31 || _loc9_ > 20 || -15 > _loc9_)
  131.                   {
  132.                      this.Destruction_Mobile(_loc5_);
  133.                      _loc3_ = _loc3_ + (this.$1 + "x");
  134.                   }
  135.                   else
  136.                   {
  137.                      _loc10_ = _loc6_.GetLinearVelocity();
  138.                      _loc11_ = int(_loc6_.m_userData.Type);
  139.                      _loc3_ = _loc3_ + (this.$1 + _loc11_ + "," + _loc8_ + "," + _loc9_ + "," + int(_loc10_.x * 1000) / 1000 + "," + int(_loc10_.y * 1000) / 1000 + "," + int(_loc6_.GetAngle() * 1000) / 1000 + "," + int(_loc6_.GetAngularVelocity() * 1000) / 1000);
  140.                   }
  141.                }
  142.                else
  143.                {
  144.                   _loc3_ = _loc3_ + (this.$1 + "x");
  145.                }
  146.                _loc5_++;
  147.             }
  148.             this.Envoie_Serveur(_loc3_);
  149.          }
  150.          if(!this.ClipJoueur.Mort)
  151.          {
  152.             _loc12_ = this.ClipJoueur.Physique;
  153.             _loc13_ = this.ClipJoueur.DroiteEnCours?1:0;
  154.             _loc14_ = this.ClipJoueur.GaucheEnCours?1:0;
  155.             _loc15_ = _loc12_.GetXForm();
  156.             _loc16_ = _loc12_.GetLinearVelocity();
  157.             _loc17_ = this.ClipJoueur.Saute?1:0;
  158.             this.Envoie_Serveur(this.$4 + this.$4 + this.$1 + _loc13_ + this.$1 + _loc14_ + this.$1 + int(_loc15_.position.x * 1000) / 1000 + this.$1 + int(_loc15_.position.y * 1000) / 1000 + this.$1 + int(_loc16_.x * 1000) / 1000 + this.$1 + int(_loc16_.y * 1000) / 1000 + this.$1 + _loc17_ + this.$1 + this.ClipJoueur.ImageSaut);
  159.          }
  160.       }
  161.  
  162.       public var ListeJoueur:Dictionary;
  163.  
  164.       public var TexteChat:TextField;
  165.  
  166.       public var SautDisponible:Boolean;
  167.  
  168.       public var m_iterations:int;
  169.  
  170.       public function Demande_Giclage(param1:int) : void {
  171.          this.Envoie_Serveur(this.$4 + this.$6 + this.$1 + param1);
  172.       }
  173.  
  174.       public function Demande_Explosion(param1:int, param2:int, param3:int, param4:int, param5:Boolean=false) : void {
  175.          if(param5)
  176.          {
  177.             this.Envoie_Serveur(this.$5 + this.$17 + this.$1 + param1 + this.$1 + param2 + this.$1 + param3 + this.$1 + param4 + this.$1 + 1);
  178.          }
  179.          else
  180.          {
  181.             this.Envoie_Serveur(this.$5 + this.$17 + this.$1 + param1 + this.$1 + param2 + this.$1 + param3 + this.$1 + param4 + this.$1 + 0);
  182.          }
  183.       }
  184.  
  185.       public var CouleurSol:uint;
  186.  
  187.       public function Annulation_Invocation(param1:Event=null) : void {
  188.          if(this.InvocationEnCours)
  189.          {
  190.             if(this.ObjetEnCours)
  191.             {
  192.                this.ObjetEnCours.x = mouseX;
  193.                this.ObjetEnCours.y = mouseY;
  194.             }
  195.             Mouse.show();
  196.             this.InvocationEnCours = false;
  197.             if(this.ClipJoueur.BarreDinvoc.parent)
  198.             {
  199.                this.ClipJoueur.removeChild(this.ClipJoueur.BarreDinvoc);
  200.             }
  201.             this.Envoie_Serveur(this.$5 + this.$9);
  202.             this.ClipJoueur.Animation_Statique(this.ClipJoueur.AnimDroite);
  203.          }
  204.       }
  205.  
  206.       public const VitesseJoueur:Number = 3;
  207.  
  208.       public var AutoClouDécalage:int;
  209.  
  210.       public function Validation_Placement_Objet_Fin() : void {
  211.          var _loc3_:MovieClip = null;
  212.          var _loc4_:Point = null;
  213.          var _loc1_:MovieClip = this.ObjetEnCours;
  214.          var _loc2_:int = _loc1_.Code;
  215.          if(_loc2_ > 10 && _loc2_ < 17 || _loc2_ == 22)
  216.          {
  217.             this.Création_Clou(_loc2_,this.PosFinObjetX,this.PosFinObjetY);
  218.             this.Annulation_Placement_Objet();
  219.             return;
  220.          }
  221.          this.Creation_Objet(_loc2_,int(_loc1_.x),int(_loc1_.y),int(_loc1_.rotation));
  222.          this.Envoie_Serveur(this.$5 + this.$20 + this.$1 + _loc2_ + this.$1 + this.PosFinObjetX + this.$1 + (this.PosFinObjetY - 3) + this.$1 + int(_loc1_.rotation) + this.$1 + 0 + this.$1 + 0);
  223.          if(this.AutoClou)
  224.          {
  225.             this.AutoClou = false;
  226.             _loc3_ = this.ObjetEnCours.getChildAt(this.ObjetEnCours.numChildren-1) as MovieClip;
  227.             _loc4_ = _loc3_.localToGlobal(new Point(0,0));
  228.             this.Création_Clou(this.AutoClouCode,_loc4_.x,_loc4_.y - 3);
  229.          }
  230.          this.Annulation_Invocation();
  231.          this.Annulation_Placement_Objet();
  232.       }
  233.  
  234.       public function Objet_Transparent(param1:String, param2:int, param3:int, param4:int, param5:int) : MovieClip {
  235.          var _loc6_:MovieClip = $Res.Pouf("$Objet_" + param2);
  236.          _loc6_.mouseEnabled = false;
  237.          _loc6_.mouseChildren = false;
  238.          _loc6_.x = param3;
  239.          _loc6_.y = param4;
  240.          _loc6_.transform.colorTransform = this.CouleurBleue;
  241.          _loc6_.rotation = param5;
  242.          _loc6_.name = param1;
  243.          this.ClipOP.addChild(_loc6_);
  244.          return _loc6_;
  245.       }
  246.  
  247.       public var ClipServeur:MovieClip;
  248.  
  249.       public var Monte:Boolean;
  250.  
  251.       public var CodeJoueur:int;
  252.  
  253.       public var TempsEnCours:int;
  254.  
  255.       public function Connexion_Interdite(param1:SecurityErrorEvent) : void {
  256.          this.ClipServeur.Texte.text = "\nImpossible d\'établir une connexion avec le serveur :\'(";
  257.       }
  258.  
  259.       function frame1() : * {
  260.          $Joueur._root = this;
  261.          opaqueBackground = 13027543;
  262.          this.ClipMonde = this._M;
  263.          this.ClipListeJoueur = this.ClipMonde._ListeJoueur;
  264.          this.ClipListeMobile = this.ClipMonde._ListeMobile;
  265.          this.ClipStatique = this.ClipMonde._OS;
  266.          this.ClipServeur = this._Serveur;
  267.          this.ClipIdentification = this._Serveur._I;
  268.          this.ClipInterface = this._I;
  269.          this.ClipOP = this._OP;
  270.          this.ClipOP.mouseEnabled = false;
  271.          this.ClipOP.mouseChildren = false;
  272.          this.ClipInterface.mouseEnabled = false;
  273.          this.TexteServeur = this._Serveur.Texte;
  274.          this.NomObjet = new Array();
  275.          this.MoteurActif = false;
  276.          this.CouleurSol = 6788234;
  277.          this.ListeObjetDispo = new Array(1,2,3,4,6,7,18);
  278.          this.NomObjet[0] = "Flèche indicative";
  279.          this.NomObjet[1] = "Petite caisse";
  280.          this.NomObjet[2] = "Grosse caisse";
  281.          this.NomObjet[3] = "Petite planche";
  282.          this.NomObjet[4] = "Grande planche";
  283.          this.NomObjet[5] = "Balle lourde";
  284.          this.NomObjet[6] = "Balle";
  285.          this.NomObjet[7] = "Trampoline ";
  286.          this.NomObjet[8] = "Petite planche rugueuse";
  287.          this.NomObjet[9] = "Grande planche rugueuse";
  288.          this.NomObjet[10] = "Boite lourde";
  289.          this.NomObjet[11] = "Clou fixe";
  290.          this.NomObjet[12] = "Moteur fixe droite";
  291.          this.NomObjet[13] = "Moteur fixe gauche";
  292.          this.NomObjet[14] = "Clou (Touche V pour associer avec un autre objet)";
  293.          this.NomObjet[15] = "Moteur droite";
  294.          this.NomObjet[16] = "Moteur gauche";
  295.          this.NomObjet[17] = "Boulet";
  296.          this.NomObjet[18] = "Boulet";
  297.          this.NomObjet[19] = "Boulet";
  298.          this.NomObjet[20] = "Boulet";
  299.          this.NomObjet[21] = "Balle collante";
  300.          this.NomObjet[22] = "Clou semi fixe (Touche C pour associer avec un autre objet)";
  301.          this.ListeJoueur = new Dictionary();
  302.          this.Synchroniseur = false;
  303.          this.SautDisponible = false;
  304.          this.AutoClou = false;
  305.          this.ClipInterface.visible = false;
  306.          this.ClipMonde.visible = false;
  307.          this.$1 = String.fromCharCode(1);
  308.          this.$2 = String.fromCharCode(2);
  309.          this.$3 = String.fromCharCode(3);
  310.          this.$4 = String.fromCharCode(4);
  311.          this.$5 = String.fromCharCode(5);
  312.          this.$6 = String.fromCharCode(6);
  313.          this.$7 = String.fromCharCode(7);
  314.          this.$8 = String.fromCharCode(8);
  315.          this.$9 = String.fromCharCode(9);
  316.          this.$11 = String.fromCharCode(11);
  317.          this.$12 = String.fromCharCode(12);
  318.          this.$14 = String.fromCharCode(14);
  319.          this.$15 = String.fromCharCode(15);
  320.          this.$16 = String.fromCharCode(16);
  321.          this.$17 = String.fromCharCode(17);
  322.          this.$18 = String.fromCharCode(18);
  323.          this.$19 = String.fromCharCode(19);
  324.          this.$20 = String.fromCharCode(20);
  325.          this.$21 = String.fromCharCode(21);
  326.          this.$22 = String.fromCharCode(22);
  327.          this.$24 = String.fromCharCode(24);
  328.          this.$25 = String.fromCharCode(25);
  329.          this.$26 = String.fromCharCode(26);
  330.          this.$27 = String.fromCharCode(27);
  331.          this.ClipJoueurProp = new b2CircleDef();
  332.          this.ClipJoueurProp.radius = 0.5;
  333.          this.ClipJoueurProp.density = 2;
  334.          this.ClipJoueurProp.friction = 0.2;
  335.          this.ClipJoueurProp.restitution = 0.2;
  336.          this.ClipJoueurProp.filter.categoryBits = 2;
  337.          this.ClipJoueurProp.filter.maskBits = 4;
  338.          this.MasseSourisBase = new b2MassData();
  339.          this.MasseSourisBase.mass = 30;
  340.          this.MasseSourisGrosse = new b2MassData();
  341.          this.MasseSourisGrosse.mass = 90;
  342.          this.worldAABB = new b2AABB();
  343.          this.worldAABB.lowerBound.Set(-100,-100);
  344.          this.worldAABB.upperBound.Set(100,100);
  345.          this.MondePhysique = new b2World(this.worldAABB,new b2Vec2(0.0,10),true);
  346.          this.m_iterations = 10;
  347.          this.m_timeStep = 1 / 30;
  348.          this.CacheObjet = new Array();
  349.          stage.addEventListener(Event.ENTER_FRAME,this.Boucle_Moteur);
  350.          this.ImagesCalculées = 0;
  351.          this.HorsDePorté = false;
  352.          this.Monte = true;
  353.          this.StyleTexte = new StyleSheet();
  354.          this.StyleTexte.setStyle("BV",{"color":"#002222"});
  355.          this.StyleTexte.setStyle("R",{"color":"#440000"});
  356.          this.StyleTexte.setStyle("BL",{"color":"#000044"});
  357.          this.StyleTexte.setStyle("J",{"color":"#554400"});
  358.          this.StyleTexte.setStyle("N",{"color":"#000044"});
  359.          this.StyleTexte.setStyle("G",{"color":"#1D4E4E"});
  360.          this.StyleTexte.setStyle("V",{"color":"#002200"});
  361.          this.StyleTexte.setStyle("VP",{"color":"#440044"});
  362.          this.StyleTexte.setStyle("VI",{"color":"#440044"});
  363.          this.StyleTexte.setStyle("ROSE",{"color":"#440044"});
  364.          this.StyleTexte.setStyle("a:hover",{"color":"#2ECF73"});
  365.          this.StyleTexte.setStyle("a:active",{"color":"#2ECF73"});
  366.          this.CollisionJoueur = false;
  367.          this.Guide = false;
  368.          this.IPS = new $IPS(200,50,30);
  369.          $Res.FonctionErreur = this.Erreur_Ressource;
  370.          this.TimerPosition = new Timer(500);
  371.          this.TimerPosition.addEventListener(TimerEvent.TIMER,this.MAJ_Position);
  372.          this.NombreObjet = this.NomObjet.length;
  373.          this.InterfaceListeObjet = new $Liste(145,189,43,false);
  374.          this.ClipInterface.addChild(this.InterfaceListeObjet);
  375.          this.InterfaceListeObjet.x = 650;
  376.          this.InterfaceListeObjet.y = 406;
  377.          this.InterfaceListeObjet.Ascenseur();
  378.          this.CouleurBleue = new ColorTransform(1,1,2,0.5,0,0,50);
  379.          this.InvocationEnCours = false;
  380.          this.Domaine = "r3x.no-ip.org";
  381.          this.Version = "0.1";
  382.          this.MauvaiseVersion = true;
  383.          this.Restriction = "^<";
  384.          this.Admin = false;
  385.          this.Modo = false;
  386.          this.SalonCible = "1";
  387.          stage.tabChildren = false;
  388.          Security.allowDomain("*");
  389.          this.Chargement_Ressources();
  390.          try
  391.          {
  392.             if(ExternalInterface.available)
  393.             {
  394.                this.Adresse = ExternalInterface.call("window.location.href.toString");
  395.                if(this.Adresse == null)
  396.                {
  397.                   this.SalonCible = "1";
  398.                }
  399.                else
  400.                {
  401.                   this.InfoSalon = this.Adresse.split("?salon=");
  402.                   if(this.InfoSalon.length == 1)
  403.                   {
  404.                      this.SalonCible = "1";
  405.                   }
  406.                   else
  407.                   {
  408.                      this.SalonCible = this.InfoSalon[1].toLowerCase();
  409.                   }
  410.                }
  411.             }
  412.             else
  413.             {
  414.                this.SalonCible = "1";
  415.             }
  416.          }
  417.          catch(E:Error)
  418.          {
  419.          }
  420.          this.BoucleReveille = new Timer(11000);
  421.          this.CE = this.ClipInterface.CE;
  422.          this.LimiteChat = 0;
  423.          this.DernierMessage = "";
  424.          this.TexteChat = this.ClipInterface.CS;
  425.          this.TexteChat.styleSheet = this.StyleTexte;
  426.          this.TexteChat.text = "";
  427.          this.DernierCodeClou = -1;
  428.          stage.addEventListener(KeyboardEvent.KEY_DOWN,this.Clavier1);
  429.          stage.addEventListener(KeyboardEvent.KEY_UP,this.Clavier2);
  430.          this.InterfaceListeJoueur = new $Liste(145,190,19,false);
  431.          this.ClipInterface.addChild(this.InterfaceListeJoueur);
  432.          this.InterfaceListeJoueur.x = 494;
  433.          this.InterfaceListeJoueur.y = 407;
  434.          this.InterfaceListeJoueur.Ascenseur();
  435.          this.AscenseurChat = new $Ascenseur(this.TexteChat);
  436.          this.ListeMessage = new Vector.<String>();
  437.          this._Vignette = this.ClipVignette;
  438.          this.AnimVignette = new Tween(this._Vignette,"alpha",null,1,0,0.1,true);
  439.          this.AnimVignette.addEventListener(TweenEvent.MOTION_FINISH,this.Fin_AnimVignette);
  440.          this._Vignette.mouseChildren = false;
  441.          this._Vignette.mouseEnabled = false;
  442.          this._Vignette._Texte.styleSheet = this.StyleTexte;
  443.          this.Fx = 0.1;
  444.          this.Fy = 0;
  445.          this.Gy = 0.1;
  446.          this.ParticuleZone = new $ParticuleZone(0,0,800,400,this.Mouvement);
  447.          this.ClipMonde.addChild(this.ParticuleZone);
  448.          this.ListeParticule = new Array();
  449.          this.ListeParticuleAnimation = new Array();
  450.          this._Serveur._Titre.text = $T.Nom_Jeu;
  451.       }
  452.  
  453.       public function Vignette_RollOver(param1:MouseEvent) : void {
  454.          var _loc3_:* = 0;
  455.          var _loc4_:* = 0;
  456.          stage.removeEventListener(MouseEvent.MOUSE_MOVE,this.Vignette_On);
  457.          this.VignetteEnCours = param1.currentTarget;
  458.          var _loc2_:int = this.VignetteEnCours.VignetteFixe;
  459.          this._Vignette._Texte.htmlText = this.VignetteEnCours.VignetteTexte;
  460.          if(this.VignetteEnCours.VignetteLargeur == 0)
  461.          {
  462.             this._Vignette._Texte.wordWrap = false;
  463.             this._Vignette._Texte.width = this._Vignette._Texte.textWidth + 4;
  464.          }
  465.          else
  466.          {
  467.             this._Vignette._Texte.wordWrap = true;
  468.             this._Vignette._Texte.width = this.VignetteEnCours.VignetteLargeur;
  469.          }
  470.          this._Vignette._Texte.height = this._Vignette._Texte.textHeight + 4;
  471.          _loc3_ = this._Vignette._Texte.width + 10;
  472.          _loc4_ = this._Vignette._Texte.height + 6;
  473.          this._Vignette.graphics.clear();
  474.          this._Vignette.graphics.beginFill(2236979);
  475.          this._Vignette.graphics.lineStyle(3,0,1,true,"normal",null,JointStyle.MITER);
  476.          this._Vignette.graphics.drawRect(0,0,_loc3_,_loc4_);
  477.          this._Vignette.graphics.endFill();
  478.          if(_loc2_ == 0)
  479.          {
  480.             this._Vignette.x = mouseX;
  481.             this._Vignette.y = mouseY + 22;
  482.             stage.addEventListener(MouseEvent.MOUSE_MOVE,this.Vignette_On);
  483.             this.LimiteX = 800 - this._Vignette.width;
  484.             this.LimiteY = 600 - this._Vignette.height;
  485.             if(this._Vignette.x > this.LimiteX)
  486.             {
  487.                this._Vignette.x = this.LimiteX;
  488.             }
  489.             if(this._Vignette.y > this.LimiteY)
  490.             {
  491.                this._Vignette.y = this.LimiteY;
  492.             }
  493.          }
  494.          else
  495.          {
  496.             if(_loc2_ == 1)
  497.             {
  498.                this._Vignette.x = this.VignetteEnCours.VignetteFixeX;
  499.                this._Vignette.y = this.VignetteEnCours.VignetteFixeY;
  500.             }
  501.             else
  502.             {
  503.                if(_loc2_ == 2)
  504.                {
  505.                   this._Vignette.x = this.VignetteEnCours.VignetteFixeX;
  506.                   this._Vignette.y = int(this.VignetteEnCours.VignetteFixeY - this._Vignette.height);
  507.                }
  508.                else
  509.                {
  510.                   if(_loc2_ == 3)
  511.                   {
  512.                      this._Vignette.x = int(this.VignetteEnCours.VignetteFixeX - this._Vignette.width);
  513.                      this._Vignette.y = int(this.VignetteEnCours.VignetteFixeY - this._Vignette.height);
  514.                   }
  515.                   else
  516.                   {
  517.                      if(_loc2_ == 10)
  518.                      {
  519.                         this._Vignette.x = mouseX;
  520.                         this._Vignette.y = mouseY + 22;
  521.                         stage.addEventListener(MouseEvent.MOUSE_MOVE,this.Vignette_On);
  522.                         this.LimiteX = 800 - this._Vignette.width;
  523.                         this.LimiteY = 600 - this._Vignette.height;
  524.                         if(this._Vignette.x > this.LimiteX)
  525.                         {
  526.                            this._Vignette.x = this.LimiteX;
  527.                         }
  528.                         if(this._Vignette.y > this.LimiteY)
  529.                         {
  530.                            this._Vignette.y = this.LimiteY;
  531.                         }
  532.                      }
  533.                   }
  534.                }
  535.             }
  536.          }
  537.          this.AnimVignette.stop();
  538.          if(this._Vignette.alpha != 1)
  539.          {
  540.             this.AnimVignette.begin = this._Vignette.alpha;
  541.             this.AnimVignette.finish = 1;
  542.             this.AnimVignette.start();
  543.          }
  544.          addChild(this._Vignette);
  545.       }
  546.  
  547.       public function Destruction_Joueur(param1:int, param2:int=0, param3:int=0) : void {
  548.          var _loc4_:$Joueur = this.ListeJoueur[param1];
  549.          if(_loc4_)
  550.          {
  551.             if(param2 == 0)
  552.             {
  553.                delete this.ListeJoueur[[param1]];
  554.             }
  555.             if(_loc4_.parent)
  556.             {
  557.                _loc4_.parent.removeChild(_loc4_);
  558.                this.MondePhysique.DestroyBody(_loc4_.Physique);
  559.             }
  560.             _loc4_.Mort = true;
  561.             _loc4_.Score = param3;
  562.             if(_loc4_.ClipJoueur)
  563.             {
  564.                if(param2 == 1)
  565.                {
  566.                   this.Message_Chat("Pas de fromage pour vous ! ^_^");
  567.                }
  568.                else
  569.                {
  570.                   if(param2 == 2)
  571.                   {
  572.                      this.Message_Chat("Fromaaaage *-*");
  573.                   }
  574.                }
  575.             }
  576.          }
  577.       }
  578.  
  579.       public var CE:TextField;
  580.  
  581.       public function MAJ_Force_Porté() : void {
  582.          var _loc1_:* = 0;
  583.          var _loc2_:* = 0;
  584.          var _loc3_:* = 0;
  585.          if(this.ObjetEnCours)
  586.          {
  587.             _loc1_ = this.ObjetEnCours.x - this.ClipJoueur.x;
  588.             _loc2_ = this.ObjetEnCours.y - this.ClipJoueur.y;
  589.             _loc3_ = Math.sqrt(_loc1_ * _loc1_ + _loc2_ * _loc2_);
  590.             if(_loc3_ > 120)
  591.             {
  592.                this.ObjetEnCours.transform.colorTransform = this.CouleurZéro;
  593.                this.HorsDePorté = true;
  594.             }
  595.             else
  596.             {
  597.                this.ObjetEnCours.transform.colorTransform = this.CouleurBase;
  598.                this.HorsDePorté = false;
  599.             }
  600.          }
  601.       }
  602.  
  603.       public var Monde:MovieClip;
  604.  
  605.       public function Fin_AnimVignette(param1:Event) : void {
  606.          if(this._Vignette.alpha == 0)
  607.          {
  608.             removeChild(this._Vignette);
  609.             stage.removeEventListener(MouseEvent.MOUSE_MOVE,this.Vignette_On);
  610.          }
  611.       }
  612.  
  613.       public var ImagesCalculées:int;
  614.  
  615.       public var VraiLargeur:int;
  616.  
  617.       public var TempsSeconde:int;
  618.  
  619.       public function Envoie_Serveur(param1:String) : void {
  620.          this.Serveur.send(param1);
  621.       }
  622.  
  623.       public var ParticuleZone:$ParticuleZone;
  624.  
  625.       public var AutoClou:Boolean;
  626.  
  627.       public function Boucle_Molette(param1:MouseEvent) : void {
  628.          var _loc2_:* = 0;
  629.          if((this.ObjetEnCours) && !this.InvocationEnCours)
  630.          {
  631.             if(param1.delta < 0)
  632.             {
  633.                _loc2_ = -15;
  634.             }
  635.             else
  636.             {
  637.                _loc2_ = 15;
  638.             }
  639.             this.ObjetEnCours.rotation = this.ObjetEnCours.rotation + _loc2_;
  640.          }
  641.       }
  642.  
  643.       public var _OP:MovieClip;
  644.  
  645.       public function Creation_Objet(param1:int, param2:int, param3:int, param4:int, param5:Number=0, param6:Number=0) : b2Body {
  646.          var _loc7_:* = NaN;
  647.          var _loc8_:* = NaN;
  648.          var _loc9_:b2BodyDef = null;
  649.          var _loc10_:b2PolygonDef = null;
  650.          var _loc11_:b2CircleDef = null;
  651.          var _loc12_:b2Body = null;
  652.          var _loc13_:b2MassData = null;
  653.          var _loc18_:MovieClip = null;
  654.          var _loc19_:* = 0;
  655.          var _loc20_:* = 0;
  656.          var _loc21_:BitmapData = null;
  657.          var _loc22_:Matrix = null;
  658.          _loc9_ = new b2BodyDef();
  659.          _loc9_.position.x = param2 / 30;
  660.          _loc9_.position.y = param3 / 30;
  661.          _loc9_.angle = Math.PI * param4 / 180;
  662.          if(!this.CacheObjet[param1])
  663.          {
  664.             _loc18_ = $Res.Pouf("$Objet_" + param1);
  665.             _loc19_ = _loc18_.width + 2;
  666.             _loc20_ = _loc18_.height + 2;
  667.             _loc21_ = new BitmapData(_loc19_,_loc20_,true,0);
  668.             _loc22_ = new Matrix();
  669.             _loc22_.translate(_loc19_ / 2,_loc20_ / 2);
  670.             _loc21_.draw(_loc18_,_loc22_);
  671.             this.CacheObjet[param1] = _loc21_;
  672.          }
  673.          var _loc14_:MovieClip = new MovieClip();
  674.          var _loc15_:Bitmap = new Bitmap(this.CacheObjet[param1],"auto",true);
  675.          _loc15_.x = -int(_loc15_.width / 2);
  676.          _loc15_.y = -int(_loc15_.height / 2);
  677.          _loc14_.addChild(_loc15_);
  678.          _loc14_.Type = param1;
  679.          var _loc16_:* = false;
  680.          var _loc17_:* = false;
  681.          if(param1 == 0)
  682.          {
  683.             this.ClipListeMobile.addChild(_loc14_);
  684.             _loc14_.x = param2;
  685.             _loc14_.y = param3;
  686.             _loc14_.rotation = param4;
  687.             return null;
  688.          }
  689.          if(param1 == 1 || param1 == 2)
  690.          {
  691.             if(param1 == 1)
  692.             {
  693.                _loc7_ = 0.5;
  694.                _loc8_ = 0.5;
  695.             }
  696.             else
  697.             {
  698.                _loc7_ = 1;
  699.                _loc8_ = 1;
  700.             }
  701.             _loc10_ = new b2PolygonDef();
  702.             _loc10_.filter.categoryBits = 4;
  703.             _loc10_.SetAsBox(_loc7_,_loc8_);
  704.             _loc10_.density = 30;
  705.             _loc10_.friction = 0.8;
  706.             _loc10_.restitution = 0.2;
  707.             _loc9_.userData = _loc14_;
  708.             _loc14_.width = _loc7_ * 60;
  709.             _loc14_.height = _loc8_ * 60;
  710.             _loc12_ = this.MondePhysique.CreateBody(_loc9_);
  711.             _loc12_.CreateShape(_loc10_);
  712.             _loc12_.SetMassFromShapes();
  713.          }
  714.          else
  715.          {
  716.             if(param1 == 3 || param1 == 4)
  717.             {
  718.                if(param1 == 3)
  719.                {
  720.                   _loc7_ = 1.66;
  721.                }
  722.                else
  723.                {
  724.                   _loc7_ = 3.33;
  725.                }
  726.                _loc8_ = 0.16666;
  727.                _loc10_ = new b2PolygonDef();
  728.                _loc10_.filter.categoryBits = 4;
  729.                _loc10_.SetAsBox(_loc7_,_loc8_);
  730.                _loc10_.density = 50;
  731.                _loc10_.friction = 0.4;
  732.                _loc10_.restitution = 0.1;
  733.                _loc9_.userData = _loc14_;
  734.                _loc12_ = this.MondePhysique.CreateBody(_loc9_);
  735.                _loc12_.CreateShape(_loc10_);
  736.                _loc12_.SetMassFromShapes();
  737.             }
  738.             else
  739.             {
  740.                if(param1 == 5 || param1 == 6)
  741.                {
  742.                   _loc7_ = 0.5;
  743.                   _loc8_ = 0.5;
  744.                   _loc11_ = new b2CircleDef();
  745.                   _loc11_.filter.categoryBits = 4;
  746.                   _loc11_.radius = _loc7_;
  747.                   if(param1 == 5)
  748.                   {
  749.                      _loc11_.density = 100;
  750.                      _loc11_.restitution = 0.2;
  751.                   }
  752.                   else
  753.                   {
  754.                      _loc11_.density = 10;
  755.                      _loc11_.restitution = 0.9;
  756.                   }
  757.                   _loc11_.friction = 0.1;
  758.                   _loc9_.userData = _loc14_;
  759.                   _loc12_ = this.MondePhysique.CreateBody(_loc9_);
  760.                   _loc12_.CreateShape(_loc11_);
  761.                   if(param1 == 5)
  762.                   {
  763.                      _loc13_ = new b2MassData();
  764.                      _loc13_.mass = 500;
  765.                      _loc12_.SetMass(_loc13_);
  766.                   }
  767.                   else
  768.                   {
  769.                      _loc12_.SetMassFromShapes();
  770.                   }
  771.                }
  772.                else
  773.                {
  774.                   if(param1 == 7)
  775.                   {
  776.                      _loc9_.userData = _loc14_;
  777.                      _loc12_ = this.MondePhysique.CreateBody(_loc9_);
  778.                      _loc10_ = new b2PolygonDef();
  779.                      _loc10_.filter.categoryBits = 4;
  780.                      _loc10_.vertexCount = 4;
  781.                      _loc10_.vertices[0].Set(-1.66,0);
  782.                      _loc10_.vertices[1].Set(1.66,0);
  783.                      _loc10_.vertices[2].Set(1.66,0.33);
  784.                      _loc10_.vertices[3].Set(-1.66,0.33);
  785.                      _loc10_.density = 50;
  786.                      _loc10_.friction = 1;
  787.                      _loc10_.restitution = 0;
  788.                      _loc12_.CreateShape(_loc10_);
  789.                      _loc10_ = new b2PolygonDef();
  790.                      _loc10_.filter.categoryBits = 4;
  791.                      _loc10_.vertexCount = 4;
  792.                      _loc10_.vertices[0].Set(-1.33,0);
  793.                      _loc10_.vertices[1].Set(-0.33,-0.33);
  794.                      _loc10_.vertices[2].Set(0.33,-0.33);
  795.                      _loc10_.vertices[3].Set(1.33,0);
  796.                      _loc10_.density = 10;
  797.                      _loc10_.friction = 0;
  798.                      _loc10_.restitution = 1.5;
  799.                      _loc12_.CreateShape(_loc10_);
  800.                      _loc12_.SetMassFromShapes();
  801.                   }
  802.                   else
  803.                   {
  804.                      if(param1 == 8 || param1 == 9)
  805.                      {
  806.                         if(param1 == 8)
  807.                         {
  808.                            _loc7_ = 1.66;
  809.                         }
  810.                         else
  811.                         {
  812.                            _loc7_ = 3.33;
  813.                         }
  814.                         _loc8_ = 0.166;
  815.                         _loc10_ = new b2PolygonDef();
  816.                         _loc10_.filter.categoryBits = 4;
  817.                         _loc10_.SetAsBox(_loc7_,_loc8_);
  818.                         _loc10_.density = 20;
  819.                         _loc10_.friction = 10;
  820.                         _loc9_.userData = _loc14_;
  821.                         _loc14_.width = _loc7_ * 60;
  822.                         _loc12_ = this.MondePhysique.CreateBody(_loc9_);
  823.                         _loc12_.CreateShape(_loc10_);
  824.                         _loc12_.SetMassFromShapes();
  825.                      }
  826.                      else
  827.                      {
  828.                         if(param1 == 10)
  829.                         {
  830.                            _loc7_ = 0.5;
  831.                            _loc8_ = 0.5;
  832.                            _loc10_ = new b2PolygonDef();
  833.                            _loc10_.filter.categoryBits = 4;
  834.                            _loc10_.SetAsBox(_loc7_,_loc8_);
  835.                            _loc10_.density = 50;
  836.                            _loc10_.friction = 0.2;
  837.                            _loc10_.restitution = 0;
  838.                            _loc9_.userData = _loc14_;
  839.                            _loc14_.width = _loc7_ * 60;
  840.                            _loc14_.height = _loc8_ * 60;
  841.                            _loc12_ = this.MondePhysique.CreateBody(_loc9_);
  842.                            _loc12_.CreateShape(_loc10_);
  843.                            _loc13_ = new b2MassData();
  844.                            _loc13_.mass = 1000;
  845.                            _loc13_.center = new b2Vec2(0,0);
  846.                            _loc13_.I = 100;
  847.                            _loc12_.SetMass(_loc13_);
  848.                         }
  849.                         else
  850.                         {
  851.                            if(param1 > 16 && param1 < 21)
  852.                            {
  853.                               _loc7_ = 0.5;
  854.                               _loc8_ = 0.5;
  855.                               _loc11_ = new b2CircleDef();
  856.                               _loc11_.filter.categoryBits = 4;
  857.                               _loc11_.radius = _loc7_;
  858.                               _loc11_.density = 1;
  859.                               _loc11_.friction = 0.2;
  860.                               _loc11_.restitution = 0.2;
  861.                               _loc9_.userData = _loc14_;
  862.                               _loc12_ = this.MondePhysique.CreateBody(_loc9_);
  863.                               _loc12_.CreateShape(_loc11_);
  864.                               _loc13_ = new b2MassData();
  865.                               _loc13_.mass = 1000;
  866.                               if(param1 == 17)
  867.                               {
  868.                                  _loc12_.m_linearVelocity.y = -20;
  869.                                  _loc17_ = true;
  870.                               }
  871.                               else
  872.                               {
  873.                                  if(param1 == 18)
  874.                                  {
  875.                                     _loc12_.m_linearVelocity.y = 10;
  876.                                     _loc17_ = true;
  877.                                     _loc13_.mass = 2000;
  878.                                  }
  879.                                  else
  880.                                  {
  881.                                     if(param1 == 19)
  882.                                     {
  883.                                        _loc12_.m_linearVelocity.x = 20;
  884.                                        _loc16_ = true;
  885.                                     }
  886.                                     else
  887.                                     {
  888.                                        if(param1 == 20)
  889.                                        {
  890.                                           _loc12_.m_linearVelocity.x = -20;
  891.                                           _loc16_ = true;
  892.                                        }
  893.                                     }
  894.                                  }
  895.                               }
  896.                               _loc13_.center = new b2Vec2(0,0);
  897.                               _loc13_.I = 100;
  898.                               _loc12_.SetMass(_loc13_);
  899.                            }
  900.                            else
  901.                            {
  902.                               if(param1 == 21)
  903.                               {
  904.                                  _loc7_ = 0.5;
  905.                                  _loc8_ = 0.5;
  906.                                  _loc11_ = new b2CircleDef();
  907.                                  _loc11_.filter.categoryBits = 4;
  908.                                  _loc11_.radius = _loc7_;
  909.                                  _loc11_.density = 100;
  910.                                  _loc11_.friction = 30;
  911.                                  _loc11_.restitution = 0;
  912.                                  _loc9_.userData = _loc14_;
  913.                                  _loc12_ = this.MondePhysique.CreateBody(_loc9_);
  914.                                  _loc12_.CreateShape(_loc11_);
  915.                                  _loc13_ = new b2MassData();
  916.                                  _loc13_.mass = 500;
  917.                                  _loc12_.SetMass(_loc13_);
  918.                               }
  919.                            }
  920.                         }
  921.                      }
  922.                   }
  923.                }
  924.             }
  925.          }
  926.          this.ClipListeMobile.addChild(_loc14_);
  927.          this.ListeMobile.push(_loc12_);
  928.          _loc14_.CodeObjet = param1;
  929.          _loc14_.x = param2;
  930.          _loc14_.y = param3;
  931.          _loc14_.rotation = param4;
  932.          if(!_loc16_)
  933.          {
  934.             _loc12_.m_linearVelocity.x = param5;
  935.          }
  936.          if(!_loc17_)
  937.          {
  938.             _loc12_.m_linearVelocity.y = param6;
  939.          }
  940.          _loc12_.WakeUp();
  941.          this.Explosion(3,param2 - 10,param3 - 10,10,2,false);
  942.          return _loc12_;
  943.       }
  944.  
  945.       public var MauvaiseVersion:Boolean;
  946.  
  947.       public var AnimVignette:Tween;
  948.  
  949.       public var _Serveur:MovieClip;
  950.  
  951.       public var $2:String;
  952.  
  953.       public var $3:String;
  954.  
  955.       public var $4:String;
  956.  
  957.       public var $5:String;
  958.  
  959.       public var $6:String;
  960.  
  961.       public var $7:String;
  962.  
  963.       public var $1:String;
  964.  
  965.       public var NomObjet:Array;
  966.  
  967.       public var $8:String;
  968.  
  969.       public var $9:String;
  970.  
  971.       public var Adresse:String;
  972.  
  973.       public var ListeMessage:Vector.<String>;
  974.  
  975.       public function Selection_Objet_Clavier(param1:int) : void {
  976.          if(!this.InvocationEnCours && (this.ListeClipObjet[param1]))
  977.          {
  978.             this.Clique_Placement_Objet(this.ListeClipObjet[param1].Code);
  979.          }
  980.       }
  981.  
  982.       public function Gravité(param1:$Particule) : void {
  983.          
  984.       }
  985.  
  986.       public var InterfaceListeObjet:$Liste;
  987.  
  988.       public function Boucle_Reveille(param1:Event) : void {
  989.          var _loc2_:int = getTimer();
  990.          this.Envoie_Serveur(this.$4 + this.$2 + this.$1 + (getTimer() - this.TempsZeroBR));
  991.          this.TempsZeroBR = _loc2_;
  992.          if(getTimer() - this.DernièreAction > 1000000 && false)
  993.          {
  994.             this.Serveur.close();
  995.             this.Deconnexion(null);
  996.             this.ClipServeur.Texte.text = "\nVous êtes afk depuis trop longtemps :\'(";
  997.          }
  998.       }
  999.  
  1000.       public function Reception(param1:DataEvent) : void {
  1001.          var _loc7_:$Joueur = null;
  1002.          var _loc8_:* = 0;
  1003.          var _loc9_:b2Body = null;
  1004.          var _loc10_:Array = null;
  1005.          var _loc11_:* = 0;
  1006.          var _loc12_:* = NaN;
  1007.          var _loc13_:* = NaN;
  1008.          var _loc14_:* = 0;
  1009.          var _loc15_:String = null;
  1010.          var _loc16_:Array = null;
  1011.          var _loc17_:* = NaN;
  1012.          var _loc18_:* = false;
  1013.          var _loc19_:* = false;
  1014.          var _loc20_:* = false;
  1015.          var _loc2_:String = param1.data;
  1016.          var _loc3_:Array = _loc2_.split(this.$1);
  1017.          var _loc4_:String = _loc3_[0];
  1018.          var _loc5_:int = _loc4_.charCodeAt(0);
  1019.          var _loc6_:int = _loc4_.charCodeAt(1);
  1020.          if(_loc5_ == 4)
  1021.          {
  1022.             if(_loc6_ == 3)
  1023.             {
  1024.                if(!this.Synchroniseur)
  1025.                {
  1026.                   _loc3_.shift();
  1027.                   _loc11_ = _loc3_.length;
  1028.                   _loc14_ = 0;
  1029.                   while(_loc14_ < _loc11_)
  1030.                   {
  1031.                      _loc15_ = _loc3_[_loc14_];
  1032.                      _loc9_ = this.ListeMobile[_loc14_];
  1033.                      if(_loc15_ == "x")
  1034.                      {
  1035.                         if(_loc9_)
  1036.                         {
  1037.                            this.Destruction_Mobile(_loc14_);
  1038.                         }
  1039.                      }
  1040.                      else
  1041.                      {
  1042.                         _loc16_ = _loc15_.split(",");
  1043.                         if(!_loc9_)
  1044.                         {
  1045.                            _loc9_ = this.Creation_Objet(_loc16_[0],0,0,0);
  1046.                         }
  1047.                         _loc9_.SetXForm(new b2Vec2(_loc16_[1],_loc16_[2]),_loc16_[5]);
  1048.                         _loc12_ = Number(_loc16_[3]);
  1049.                         _loc13_ = Number(_loc16_[4]);
  1050.                         _loc9_.SetLinearVelocity(new b2Vec2(_loc12_,_loc13_));
  1051.                         _loc17_ = Number(_loc16_[6]);
  1052.                         _loc9_.SetAngularVelocity(_loc17_);
  1053.                         if(_loc12_ < 0.01 && -0.01 < _loc12_ && _loc13_ < 0.01 && -0.01 < _loc13_ && _loc17_ < 0.01 && -0.01 < _loc17_)
  1054.                         {
  1055.                            _loc9_.PutToSleep();
  1056.                         }
  1057.                         else
  1058.                         {
  1059.                            _loc9_.WakeUp();
  1060.                         }
  1061.                      }
  1062.                      _loc14_++;
  1063.                   }
  1064.                }
  1065.                return;
  1066.             }
  1067.             if(_loc6_ == 4)
  1068.             {
  1069.                _loc8_ = int(_loc3_[9]);
  1070.                _loc7_ = this.ListeJoueur[_loc8_];
  1071.                if((_loc7_) && !_loc7_.ClipJoueur)
  1072.                {
  1073.                   _loc18_ = _loc7_.DroiteEnCours;
  1074.                   _loc19_ = _loc7_.GaucheEnCours;
  1075.                   _loc7_.DroiteEnCours = _loc3_[1] == "1";
  1076.                   _loc7_.GaucheEnCours = _loc3_[2] == "1";
  1077.                   _loc9_ = _loc7_.Physique;
  1078.                   _loc9_.SetXForm(new b2Vec2(_loc3_[3],_loc3_[4]),0);
  1079.                   _loc12_ = Number(_loc3_[5]);
  1080.                   _loc13_ = Number(_loc3_[6]);
  1081.                   _loc9_.SetLinearVelocity(new b2Vec2(_loc12_,_loc13_));
  1082.                   _loc20_ = false;
  1083.                   if(_loc3_[7] == "1")
  1084.                   {
  1085.                      _loc7_.MAJ_Saut(true,_loc3_[8]);
  1086.                   }
  1087.                   else
  1088.                   {
  1089.                      _loc7_.MAJ_Saut(false);
  1090.                   }
  1091.                   if(_loc7_.DroiteEnCours)
  1092.                   {
  1093.                      if(!_loc18_)
  1094.                      {
  1095.                         _loc7_.Animation_Course(true);
  1096.                      }
  1097.                      _loc20_ = true;
  1098.                   }
  1099.                   else
  1100.                   {
  1101.                      if(_loc7_.GaucheEnCours)
  1102.                      {
  1103.                         if(!_loc19_)
  1104.                         {
  1105.                            _loc7_.Animation_Course(false);
  1106.                         }
  1107.                         _loc20_ = true;
  1108.                      }
  1109.                      else
  1110.                      {
  1111.                         if((_loc18_) || (_loc19_))
  1112.                         {
  1113.                            _loc7_.Animation_Statique(_loc18_);
  1114.                         }
  1115.                      }
  1116.                   }
  1117.                   if(_loc20_)
  1118.                   {
  1119.                      _loc9_.WakeUp();
  1120.                   }
  1121.                   else
  1122.                   {
  1123.                      if(_loc12_ < 0.01 && -0.01 < _loc12_ && _loc13_ < 0.01 && -0.01 < _loc13_)
  1124.                      {
  1125.                         _loc9_.PutToSleep();
  1126.                      }
  1127.                      else
  1128.                      {
  1129.                         _loc9_.WakeUp();
  1130.                      }
  1131.                   }
  1132.                }
  1133.                return;
  1134.             }
  1135.             if(_loc6_ == 6)
  1136.             {
  1137.                _loc9_ = this.ListeMobile[_loc3_[1]];
  1138.                if(_loc9_)
  1139.                {
  1140.                   _loc9_.SetXForm(new b2Vec2(0,600),0);
  1141.                }
  1142.                return;
  1143.             }
  1144.             if(_loc6_ == 8)
  1145.             {
  1146.                _loc7_ = this.ListeJoueur[_loc3_[1]];
  1147.                if((_loc7_) && !_loc7_.ClipJoueur)
  1148.                {
  1149.                   _loc7_.Vers_La_Droite(_loc3_.length == 2);
  1150.                }
  1151.                return;
  1152.             }
  1153.             if(_loc6_ == 20)
  1154.             {
  1155.                this.Envoie_Serveur(this.$4 + this.$20);
  1156.                return;
  1157.             }
  1158.          }
  1159.          if(_loc5_ == 5)
  1160.          {
  1161.             if(_loc6_ == 5)
  1162.             {
  1163.                this.Nouvelle_Partie(_loc3_[1]);
  1164.                while(this.ClipOP.numChildren)
  1165.                {
  1166.                   this.ClipOP.removeChildAt(0);
  1167.                }
  1168.                this.ClipInterface._JEV.text = _loc3_[2];
  1169.                return;
  1170.             }
  1171.             if(_loc6_ == 7)
  1172.             {
  1173.                _loc11_ = _loc3_.length;
  1174.                _loc14_ = 1;
  1175.                while(_loc14_ < _loc11_)
  1176.                {
  1177.                   this.Création_Lien.apply(this,_loc3_[_loc14_].split(","));
  1178.                   _loc14_++;
  1179.                }
  1180.                return;
  1181.             }
  1182.             if(_loc6_ == 8)
  1183.             {
  1184.                _loc7_ = this.ListeJoueur[_loc3_[1]];
  1185.                if(!_loc7_)
  1186.                {
  1187.                   return;
  1188.                }
  1189.                if(_loc7_.ClipJoueur)
  1190.                {
  1191.                   return;
  1192.                }
  1193.                _loc7_.Animation_Invocation(_loc7_.AnimDroite);
  1194.                this.Objet_Transparent("O" + _loc3_[1],_loc3_[2],_loc3_[3],_loc3_[4],_loc3_[5]);
  1195.                return;
  1196.             }
  1197.             if(_loc6_ == 9)
  1198.             {
  1199.                _loc7_ = this.ListeJoueur[_loc3_[1]];
  1200.                if(_loc7_)
  1201.                {
  1202.                   _loc7_.Animation_Statique(_loc7_.AnimDroite);
  1203.                }
  1204.                this.Supprimer_OP("O" + _loc3_[1]);
  1205.                return;
  1206.             }
  1207.             if(_loc6_ == 16)
  1208.             {
  1209.                this.Déplacement_Fromage(_loc3_[1],_loc3_[2]);
  1210.                return;
  1211.             }
  1212.             if(_loc6_ == 17)
  1213.             {
  1214.                this.Génération_Explosion(_loc3_[1],_loc3_[2],_loc3_[3],_loc3_[4],_loc3_[5] == "1");
  1215.                return;
  1216.             }
  1217.             if(_loc6_ == 19)
  1218.             {
  1219.                _loc7_ = this.ListeJoueur[_loc3_[1]];
  1220.                if(_loc7_)
  1221.                {
  1222.                   this.Souris_Grosse(_loc7_);
  1223.                   this.Explosion(3,_loc7_.x - 10,_loc7_.y - 10,10,2,false);
  1224.                }
  1225.                return;
  1226.             }
  1227.             if(_loc6_ == 20)
  1228.             {
  1229.                if(_loc3_.length == 8)
  1230.                {
  1231.                   _loc7_ = this.ListeJoueur[_loc3_[1]];
  1232.                   if((_loc7_) && (_loc7_.ClipJoueur))
  1233.                   {
  1234.                      return;
  1235.                   }
  1236.                   this.Creation_Objet(_loc3_[2],_loc3_[3],_loc3_[4],_loc3_[5],_loc3_[6],_loc3_[7]);
  1237.                }
  1238.                else
  1239.                {
  1240.                   this.Creation_Objet(_loc3_[1],_loc3_[2],_loc3_[3],_loc3_[4],_loc3_[5],_loc3_[6]);
  1241.                }
  1242.                return;
  1243.             }
  1244.             if(_loc6_ == 21)
  1245.             {
  1246.                this.Message_Chat("Vous venez d\'entrer dans le salon [" + _loc3_[1] + "].");
  1247.                return;
  1248.             }
  1249.          }
  1250.          if(_loc5_ == 6)
  1251.          {
  1252.             if(_loc6_ == 6)
  1253.             {
  1254.                if(_loc3_[2].indexOf("<") != -1)
  1255.                {
  1256.                   return;
  1257.                }
  1258.                this.Message_Chat(_loc3_[3],_loc3_[2]);
  1259.                _loc7_ = this.ListeJoueur[_loc3_[1]];
  1260.                this.Affichage_Bulle(_loc7_,_loc3_[3]);
  1261.                return;
  1262.             }
  1263.             if(_loc6_ == 20)
  1264.             {
  1265.                this.Message_Chat("<BL>" + _loc3_[1],"Serveur");
  1266.                return;
  1267.             }
  1268.          }
  1269.          if(_loc5_ == 8)
  1270.          {
  1271.             if(_loc6_ == 5)
  1272.             {
  1273.                this.Destruction_Joueur(_loc3_[1],1,_loc3_[3]);
  1274.                this.MAJ_InterfaceListeJoueur();
  1275.                this.ClipInterface._JEV.text = _loc3_[2];
  1276.                return;
  1277.             }
  1278.             if(_loc6_ == 6)
  1279.             {
  1280.                this.Destruction_Joueur(_loc3_[1],2,_loc3_[3]);
  1281.                this.MAJ_InterfaceListeJoueur();
  1282.                this.ClipInterface._JEV.text = _loc3_[2];
  1283.                return;
  1284.             }
  1285.             if(_loc6_ == 7)
  1286.             {
  1287.                this.Destruction_Joueur(_loc3_[1]);
  1288.                this.Message_Chat(_loc3_[2] + " vient de se déconnecter.");
  1289.                this.MAJ_InterfaceListeJoueur();
  1290.                return;
  1291.             }
  1292.             if(_loc6_ == 8)
  1293.             {
  1294.                _loc10_ = _loc3_[1].split(",");
  1295.                _loc7_ = this.Creation_Joueur(_loc10_);
  1296.                if(!_loc7_.Mort)
  1297.                {
  1298.                   this.ClipListeJoueur.addChildAt(_loc7_,0);
  1299.                }
  1300.                if(_loc3_.length == 2)
  1301.                {
  1302.                   this.Message_Chat(_loc10_[0] + " vient de se connecter.");
  1303.                   this.MAJ_InterfaceListeJoueur();
  1304.                }
  1305.                return;
  1306.             }
  1307.             if(_loc6_ == 9)
  1308.             {
  1309.                _loc3_.shift();
  1310.                this.Chargement_Liste_Joueur(_loc3_);
  1311.                this.MAJ_InterfaceListeJoueur();
  1312.                return;
  1313.             }
  1314.             if(_loc6_ == 20)
  1315.             {
  1316.                this.Guide = false;
  1317.                if(_loc3_[1] == "X")
  1318.                {
  1319.                   this.Guide = true;
  1320.                   this._I._CH.text = "-";
  1321.                }
  1322.                else
  1323.                {
  1324.                   if(int(_loc3_[1]) == this.CodeJoueur)
  1325.                   {
  1326.                      this.Guide = true;
  1327.                   }
  1328.                   _loc7_ = this.ListeJoueur[_loc3_[1]];
  1329.                   if(_loc7_)
  1330.                   {
  1331.                      this._I._CH.text = _loc7_.NomJoueur;
  1332.                      this.Message_Chat("Suivez votre Chaman " + _loc7_.NomJoueur + " !");
  1333.                   }
  1334.                }
  1335.                this.Init_Guide();
  1336.                return;
  1337.             }
  1338.             if(_loc6_ == 21)
  1339.             {
  1340.                this.Synchroniseur = false;
  1341.                if(int(_loc3_[1]) == this.CodeJoueur)
  1342.                {
  1343.                   this.Synchroniseur = true;
  1344.                }
  1345.                return;
  1346.             }
  1347.          }
  1348.          if(_loc5_ == 26)
  1349.          {
  1350.             if(_loc6_ == 4)
  1351.             {
  1352.                this.Message_Chat(_loc3_[1],null,true);
  1353.                return;
  1354.             }
  1355.             if(_loc6_ == 8)
  1356.             {
  1357.                this.NomJoueur = _loc3_[1];
  1358.                this.CodeJoueur = int(_loc3_[2]);
  1359.                return;
  1360.             }
  1361.             if(_loc6_ == 25)
  1362.             {
  1363.                this.Message_Chat("\n" + _loc3_[2] + "\n<J>Exception pour [" + _loc3_[1] + "]\n");
  1364.                return;
  1365.             }
  1366.             if(_loc6_ == 27)
  1367.             {
  1368.                this.MauvaiseVersion = false;
  1369.                this.ClipIdentification.Version.text = "Version " + this.Version + "\nJoueurs : " + _loc3_[1];
  1370.                this.TexteServeur.text = "\nChargement en cours.";
  1371.                return;
  1372.             }
  1373.          }
  1374.          trace("Code inconnu : " + _loc5_ + " -> " + _loc6_);
  1375.       }
  1376.  
  1377.       public function MAJ_ListeJoueur() : void {
  1378.          
  1379.       }
  1380.  
  1381.       public function Demande_Déplacement_Fromage(param1:int, param2:int) : void {
  1382.          this.Envoie_Serveur(this.$5 + this.$16 + this.$1 + param1 + this.$1 + param2);
  1383.       }
  1384.  
  1385.       public var DernierMessage:String;
  1386.  
  1387.       public function Génération_Explosion(param1:int, param2:int, param3:int, param4:int, param5:Boolean=false) : void {
  1388.          var _loc6_:* = 0;
  1389.          var _loc7_:* = 0;
  1390.          var _loc8_:* = 0;
  1391.          var _loc9_:* = NaN;
  1392.          var _loc10_:* = NaN;
  1393.          var _loc11_:* = NaN;
  1394.          var _loc12_:* = 0;
  1395.          var _loc13_:* = 0;
  1396.          var _loc14_:b2Body = null;
  1397.          var _loc15_:MovieClip = null;
  1398.          this.Explosion(3,param1 - 10,param2 - 10,20,2,false);
  1399.          this.Explosion(1,param1 - 10,param2 - 10,20,2,false);
  1400.          this.Explosion(2,param1 - 10,param2 - 10,20,2,false);
  1401.          this.Explosion(0,param1 - 10,param2 - 10,20,2,false);
  1402.          if(!this.ClipJoueur.Mort)
  1403.          {
  1404.             _loc6_ = this.ClipJoueur.x - param1;
  1405.             _loc7_ = this.ClipJoueur.y - param2;
  1406.             _loc8_ = Math.sqrt(_loc6_ * _loc6_ + _loc7_ * _loc7_);
  1407.             if(_loc8_ < param4)
  1408.             {
  1409.                _loc9_ = 1 - _loc8_ / param4;
  1410.                param3 = param3 * _loc9_;
  1411.                _loc10_ = _loc6_ / _loc8_ * param3;
  1412.                _loc11_ = _loc7_ / _loc8_ * param3;
  1413.                this.ClipJoueur.Physique.SetLinearVelocity(new b2Vec2(_loc10_,_loc11_));
  1414.                this.MAJ_Position();
  1415.             }
  1416.          }
  1417.          if((param5) && (this.Synchroniseur))
  1418.          {
  1419.             _loc12_ = this.ListeMobile.length;
  1420.             _loc13_ = 0;
  1421.             while(_loc13_ < _loc12_)
  1422.             {
  1423.                _loc14_ = this.ListeMobile[_loc13_];
  1424.                if(_loc14_)
  1425.                {
  1426.                   _loc15_ = _loc14_.m_userData;
  1427.                   if((_loc15_) && (_loc15_.CodeObjet))
  1428.                   {
  1429.                      _loc6_ = _loc15_.x - param1;
  1430.                      _loc7_ = _loc15_.y - param2;
  1431.                      _loc8_ = Math.sqrt(_loc6_ * _loc6_ + _loc7_ * _loc7_);
  1432.                      if(_loc8_ <= param4)
  1433.                      {
  1434.                         _loc9_ = 1 - _loc8_ / param4;
  1435.                         param3 = param3 * _loc9_;
  1436.                         _loc10_ = _loc6_ / _loc8_ * param3;
  1437.                         _loc11_ = _loc7_ / _loc8_ * param3;
  1438.                         _loc14_.SetLinearVelocity(new b2Vec2(_loc10_,_loc11_));
  1439.                         _loc14_.WakeUp();
  1440.                      }
  1441.                   }
  1442.                }
  1443.                _loc13_++;
  1444.             }
  1445.             this.MAJ_Position(null,true);
  1446.          }
  1447.       }
  1448.  
  1449.       public var _Vignette:MovieClip;
  1450.  
  1451.       public var Version:String;
  1452.  
  1453.       public function Affichage_Bulle(param1:$Joueur, param2:String) : void {
  1454.          var _loc3_:MovieClip = param1.BulleDialogue;
  1455.          _loc3_._T.width = 150;
  1456.          _loc3_._T.htmlText = "<N>" + param2;
  1457.          var _loc4_:int = _loc3_._T.numLines;
  1458.          _loc3_._T.width = _loc3_._T.textWidth + 10;
  1459.          if(_loc4_ == 1)
  1460.          {
  1461.             _loc3_._T.height = 17;
  1462.          }
  1463.          else
  1464.          {
  1465.             if(_loc4_ == 2)
  1466.             {
  1467.                _loc3_._T.height = 29;
  1468.             }
  1469.             else
  1470.             {
  1471.                _loc3_._T.height = 41;
  1472.             }
  1473.          }
  1474.          var _loc5_:int = _loc3_._T.width;
  1475.          var _loc6_:int = _loc3_._T.height + 4;
  1476.          var _loc7_:Graphics = _loc3_.graphics;
  1477.          _loc7_.clear();
  1478.          _loc7_.beginFill(8948906);
  1479.          _loc7_.lineStyle(2,0,1,true);
  1480.          _loc7_.drawRoundRect(-2,-2,_loc5_,_loc6_,10,10);
  1481.          _loc7_.endFill();
  1482.          _loc3_.x = -_loc5_ / 2;
  1483.          _loc3_.y = -26 - _loc6_;
  1484.          param1.addChild(_loc3_);
  1485.          _loc3_.Init();
  1486.       }
  1487.  
  1488.       public var ClipListeJoueur:MovieClip;
  1489.  
  1490.       public var ClipVignette:$ClipVignette;
  1491.  
  1492.       public var ListeClipObjet:Array;
  1493.  
  1494.       public function Connexion(param1:Event) : void {
  1495.          this.Envoie_Serveur(this.Version);
  1496.          this.BoucleReveille.addEventListener(TimerEvent.TIMER,this.Boucle_Reveille);
  1497.          this.BoucleReveille.start();
  1498.          this.TempsZeroBR = getTimer();
  1499.          this.ClipIdentification.visible = true;
  1500.          this.TexteServeur.visible = false;
  1501.       }
  1502.  
  1503.       public function Chargement_Liste_Joueur(param1:Array) : void {
  1504.          var _loc2_:$Joueur = null;
  1505.          var _loc5_:Array = null;
  1506.          var _loc6_:$Joueur = null;
  1507.          for each (_loc2_ in this.ListeJoueur)
  1508.          {
  1509.             this.MondePhysique.DestroyBody(_loc2_.Physique);
  1510.          }
  1511.          while(this.ClipListeJoueur.numChildren)
  1512.          {
  1513.             this.ClipListeJoueur.removeChildAt(0);
  1514.          }
  1515.          this.ListeJoueur = new Dictionary();
  1516.          if(this.ClipJoueur)
  1517.          {
  1518.             this.ClipJoueur.DroiteEnCours = false;
  1519.             this.ClipJoueur.GaucheEnCours = false;
  1520.          }
  1521.          var _loc3_:int = param1.length;
  1522.          var _loc4_:* = 0;
  1523.          while(_loc4_ < _loc3_)
  1524.          {
  1525.             _loc5_ = param1[_loc4_].split(",");
  1526.             _loc6_ = this.Creation_Joueur(_loc5_);
  1527.             if(!_loc6_.Mort)
  1528.             {
  1529.                this.ClipListeJoueur.addChild(_loc6_);
  1530.             }
  1531.             _loc4_++;
  1532.          }
  1533.          if((this.ClipJoueur) && !this.ClipJoueur.Mort)
  1534.          {
  1535.             this.ClipListeJoueur.addChild(this.ClipJoueur);
  1536.          }
  1537.       }
  1538.  
  1539.       public var LimiteChat:int;
  1540.  
  1541.       public var Guide:Boolean;
  1542.  
  1543.       public function Clique_Guide(param1:MouseEvent) : void {
  1544.          this.AutoClou = false;
  1545.          var _loc2_:MovieClip = param1.currentTarget as MovieClip;
  1546.          this.Clique_Placement_Objet(_loc2_.Code);
  1547.       }
  1548.  
  1549.       public function Message_Chat(param1:String, param2:String=null, param3:Boolean=false) : void {
  1550.          var _loc4_:String = null;
  1551.          if(param2 == null)
  1552.          {
  1553.             if(param3)
  1554.             {
  1555.                _loc4_ = "<ROSE>[*] [Serveur] " + param1;
  1556.             }
  1557.             else
  1558.             {
  1559.                _loc4_ = "<G>" + param1;
  1560.             }
  1561.          }
  1562.          else
  1563.          {
  1564.             _loc4_ = "<ROSE>[" + param2 + "] <N>" + param1;
  1565.          }
  1566.          if(this.ListeMessage.length > 150)
  1567.          {
  1568.             this.ListeMessage.shift();
  1569.          }
  1570.          this.ListeMessage.push(_loc4_);
  1571.          var _loc5_:* = this.TexteChat.scrollV == this.TexteChat.maxScrollV;
  1572.          this.TexteChat.htmlText = this.ListeMessage.join("\n");
  1573.          if(_loc5_)
  1574.          {
  1575.             this.AscenseurChat.Rendu_Ascenseur(2);
  1576.          }
  1577.          else
  1578.          {
  1579.             this.AscenseurChat.Rendu_Ascenseur(1);
  1580.          }
  1581.       }
  1582.  
  1583.       public function Boucle_Placement(param1:MouseEvent) : void {
  1584.          if(!this.InvocationEnCours)
  1585.          {
  1586.             this.ObjetEnCours.x = mouseX;
  1587.             this.ObjetEnCours.y = mouseY;
  1588.             param1.updateAfterEvent();
  1589.          }
  1590.       }
  1591.  
  1592.       public var ListeMobile:Array;
  1593.  
  1594.       public function Vignette_Off(param1:MouseEvent) : void {
  1595.          this.AnimVignette.stop();
  1596.          this.AnimVignette.begin = this._Vignette.alpha;
  1597.          this.AnimVignette.finish = 0;
  1598.          this.AnimVignette.start();
  1599.       }
  1600.  
  1601.       public var DébutInvocation:int;
  1602.  
  1603.       public var m_timeStep:Number;
  1604.  
  1605.       public var TempsZeroBR:int;
  1606.  
  1607.       public function MAJ_InterfaceListeJoueur() : void {
  1608.          var _loc1_:$Joueur = null;
  1609.          var _loc2_:MovieClip = null;
  1610.          this.InterfaceListeJoueur.Vider();
  1611.          for each (_loc1_ in this.ListeJoueur)
  1612.          {
  1613.             _loc2_ = new $NomJoueur();
  1614.             _loc2_.Score = _loc1_.Score;
  1615.             _loc2_._N.mouseEnabled = false;
  1616.             _loc2_._N.styleSheet = this.StyleTexte;
  1617.             if(_loc1_.ClipJoueur)
  1618.             {
  1619.                _loc2_._N.htmlText = "<ROSE>" + _loc1_.NomJoueur + " <BV>" + _loc1_.Score;
  1620.             }
  1621.             else
  1622.             {
  1623.                _loc2_._N.htmlText = _loc1_.NomJoueur + " <BV>" + _loc1_.Score;
  1624.             }
  1625.             this.InterfaceListeJoueur.Ajout_Element(_loc2_);
  1626.          }
  1627.          this.InterfaceListeJoueur.Rendu("Score",Array.NUMERIC | Array.DESCENDING);
  1628.          this.InterfaceListeJoueur.Position(1);
  1629.       }
  1630.  
  1631.       public function Création_Clou(param1:int, param2:int, param3:int) : void {
  1632.          var _loc10_:b2Body = null;
  1633.          var _loc11_:b2Body = null;
  1634.          var _loc12_:MovieClip = null;
  1635.          var _loc13_:String = null;
  1636.          var _loc14_:b2Vec2 = null;
  1637.          var _loc15_:* = 0;
  1638.          var _loc16_:b2Body = null;
  1639.          var _loc17_:b2Vec2 = null;
  1640.          var _loc18_:* = NaN;
  1641.          var _loc19_:* = NaN;
  1642.          var _loc20_:* = NaN;
  1643.          var _loc21_:* = 0;
  1644.          var _loc22_:b2Vec2 = null;
  1645.          var _loc23_:* = NaN;
  1646.          var _loc24_:* = NaN;
  1647.          var _loc25_:* = NaN;
  1648.          var _loc26_:* = 0;
  1649.          var _loc4_:Boolean = param1 == 11 || param1 == 12 || param1 == 13;
  1650.          var _loc5_:Array = new Array();
  1651.          var _loc6_:int = this.ListeMobile.length;
  1652.          var _loc7_:* = 0;
  1653.          while(_loc7_ < _loc6_)
  1654.          {
  1655.             _loc11_ = this.ListeMobile[_loc7_];
  1656.             if(_loc11_)
  1657.             {
  1658.                _loc12_ = _loc11_.m_userData as MovieClip;
  1659.                if(!((_loc4_) && (_loc12_.Sol)))
  1660.                {
  1661.                   if(_loc12_.hitTestPoint(param2,param3,true))
  1662.                   {
  1663.                      _loc5_.push(_loc11_);
  1664.                   }
  1665.                }
  1666.             }
  1667.             _loc7_++;
  1668.          }
  1669.          var _loc8_:int = _loc5_.length;
  1670.          var _loc9_:* = 0;
  1671.          if(_loc8_ == 0)
  1672.          {
  1673.             return;
  1674.          }
  1675.          if(!_loc4_)
  1676.          {
  1677.             if(_loc8_ == 1)
  1678.             {
  1679.                return;
  1680.             }
  1681.             _loc10_ = _loc5_[0];
  1682.             _loc9_ = 1;
  1683.          }
  1684.          else
  1685.          {
  1686.             _loc10_ = this.PhysiqueSol;
  1687.          }
  1688.          if(_loc8_)
  1689.          {
  1690.             _loc13_ = this.$5 + this.$7;
  1691.             _loc14_ = new b2Vec2(param2 / 30,param3 / 30);
  1692.             _loc15_ = _loc9_;
  1693.             while(_loc15_ < _loc8_)
  1694.             {
  1695.                _loc16_ = _loc5_[_loc15_];
  1696.                _loc17_ = _loc16_.GetLocalPoint(_loc14_);
  1697.                _loc18_ = int(_loc17_.x * 1000) / 1000;
  1698.                _loc19_ = int(_loc17_.y * 1000) / 1000;
  1699.                _loc20_ = int(_loc16_.GetAngle() * 1000) / 1000;
  1700.                if(_loc16_ == this.PhysiqueSol)
  1701.                {
  1702.                   _loc21_ = -2;
  1703.                }
  1704.                else
  1705.                {
  1706.                   _loc21_ = this.ListeMobile.indexOf(_loc16_);
  1707.                }
  1708.                _loc22_ = _loc10_.GetLocalPoint(_loc14_);
  1709.                _loc23_ = int(_loc22_.x * 1000) / 1000;
  1710.                _loc24_ = int(_loc22_.y * 1000) / 1000;
  1711.                _loc25_ = int(_loc10_.GetAngle() * 1000) / 1000;
  1712.                if(_loc10_ == this.PhysiqueSol)
  1713.                {
  1714.                   _loc26_ = -2;
  1715.                }
  1716.                else
  1717.                {
  1718.                   _loc26_ = this.ListeMobile.indexOf(_loc10_);
  1719.                }
  1720.                _loc13_ = _loc13_ + (this.$1 + param1 + "," + _loc21_ + "," + _loc18_ + "," + _loc19_ + "," + _loc20_ + "," + _loc26_ + "," + _loc23_ + "," + _loc24_ + "," + _loc25_);
  1721.                _loc10_ = _loc16_;
  1722.                _loc15_++;
  1723.             }
  1724.             this.Envoie_Serveur(_loc13_);
  1725.          }
  1726.       }
  1727.  
  1728.       public function Explosion(param1:int, param2:int, param3:int, param4:int, param5:int, param6:Boolean=true) : void {
  1729.          var _loc9_:$Particule = null;
  1730.          var _loc10_:* = NaN;
  1731.          var _loc11_:* = NaN;
  1732.          var _loc7_:$ParticuleZero = this.ListeParticule[param1];
  1733.          var _loc8_:* = 0;
  1734.          while(_loc8_ < param4)
  1735.          {
  1736.             _loc9_ = new $Particule(_loc7_,false);
  1737.             _loc9_.Gravité = param6;
  1738.             this.ParticuleZone.ListeParticule.push(_loc9_);
  1739.             _loc9_.x = param2;
  1740.             _loc9_.y = param3;
  1741.             _loc10_ = Math.random() * 3.14 - 1.57;
  1742.             _loc11_ = Math.random() * param5;
  1743.             if(_loc8_ % 2 == 0)
  1744.             {
  1745.                _loc9_.Vx = -Math.cos(_loc10_) * _loc11_ * 2;
  1746.             }
  1747.             else
  1748.             {
  1749.                _loc9_.Vx = Math.cos(_loc10_) * _loc11_ * 2;
  1750.             }
  1751.             _loc9_.Vy = Math.sin(_loc10_) * _loc11_;
  1752.             _loc8_++;
  1753.          }
  1754.          this.ParticuleZone.DemandeRendu = true;
  1755.       }
  1756.  
  1757.       public var worldAABB:b2AABB;
  1758.  
  1759.       public var TINV:int;
  1760.  
  1761.       public var Fx:Number;
  1762.  
  1763.       public var Fy:Number;
  1764.  
  1765.       public var MasseSourisBase:b2MassData;
  1766.  
  1767.       public function Mobile_Statique(param1:MovieClip, param2:Array) : b2PolygonDef {
  1768.          var _loc7_:* = NaN;
  1769.          var _loc8_:* = NaN;
  1770.          var _loc3_:b2PolygonDef = new b2PolygonDef();
  1771.          var _loc4_:int = param2.length;
  1772.          _loc3_.vertexCount = _loc4_ / 2;
  1773.          _loc3_.filter.categoryBits = 4;
  1774.          _loc3_.friction = 0.3;
  1775.          _loc3_.density = 0;
  1776.          if(param1)
  1777.          {
  1778.             param1.graphics.lineStyle(2);
  1779.             param1.graphics.beginFill(6788234);
  1780.          }
  1781.          var _loc5_:* = 0;
  1782.          var _loc6_:* = 0;
  1783.          while(_loc6_ < _loc4_)
  1784.          {
  1785.             _loc7_ = param2[_loc6_];
  1786.             _loc8_ = param2[_loc6_ + 1];
  1787.             _loc3_.vertices[_loc5_].Set(_loc7_ / 30,_loc8_ / 30);
  1788.             if(param1)
  1789.             {
  1790.                if(_loc6_ == 0)
  1791.                {
  1792.                   param1.graphics.moveTo(_loc7_,_loc8_);
  1793.                }
  1794.                else
  1795.                {
  1796.                   param1.graphics.lineTo(_loc7_,_loc8_);
  1797.                }
  1798.             }
  1799.             _loc5_++;
  1800.             _loc6_ = _loc6_ + 2;
  1801.          }
  1802.          if(param1)
  1803.          {
  1804.             param1.graphics.endFill();
  1805.          }
  1806.          return _loc3_;
  1807.       }
  1808.  
  1809.       public function Vignette_On(param1:MouseEvent) : void {
  1810.          this._Vignette.x = mouseX;
  1811.          if(this._Vignette.x > this.LimiteX)
  1812.          {
  1813.             this._Vignette.x = this.LimiteX;
  1814.          }
  1815.          this._Vignette.y = mouseY + 22;
  1816.          if(this._Vignette.y > this.LimiteY)
  1817.          {
  1818.             this._Vignette.y = this.LimiteY;
  1819.          }
  1820.          param1.updateAfterEvent();
  1821.       }
  1822.  
  1823.       public var ClipMonde:MovieClip;
  1824.  
  1825.       public function Init_Guide() : void {
  1826.          var _loc1_:Array = null;
  1827.          var _loc2_:MovieClip = null;
  1828.          var _loc3_:* = 0;
  1829.          var _loc4_:* = 0;
  1830.          var _loc5_:* = 0;
  1831.          var _loc6_:* = 0;
  1832.          var _loc7_:* = 0;
  1833.          var _loc8_:* = 0;
  1834.          var _loc9_:* = 0;
  1835.          var _loc10_:* = 0;
  1836.          var _loc11_:* = false;
  1837.          var _loc12_:* = 0;
  1838.          var _loc13_:ApplicationDomain = null;
  1839.          var _loc14_:MovieClip = null;
  1840.          var _loc15_:MovieClip = null;
  1841.          var _loc16_:MovieClip = null;
  1842.          var _loc17_:* = NaN;
  1843.          if(this.Guide)
  1844.          {
  1845.             this.ListeClipObjet = new Array();
  1846.             this.AutoClou = false;
  1847.             this.InterfaceListeObjet.Vider();
  1848.             _loc1_ = this.ListeObjetDispo.slice();
  1849.             if(this.Monde.ObjetInterdit)
  1850.             {
  1851.                _loc5_ = this.Monde.ObjetInterdit.length;
  1852.                _loc6_ = 0;
  1853.                while(_loc6_ < _loc5_)
  1854.                {
  1855.                   _loc7_ = this.Monde.ObjetInterdit[_loc6_];
  1856.                   _loc8_ = _loc1_.length;
  1857.                   _loc9_ = 0;
  1858.                   while(_loc9_ < _loc8_)
  1859.                   {
  1860.                      if(_loc1_[_loc9_] == _loc7_)
  1861.                      {
  1862.                         _loc1_.splice(_loc9_,1);
  1863.                         break;
  1864.                      }
  1865.                      _loc9_++;
  1866.                   }
  1867.                   _loc6_++;
  1868.                }
  1869.             }
  1870.             _loc3_ = _loc1_.length;
  1871.             _loc4_ = 0;
  1872.             while(_loc4_ < _loc3_)
  1873.             {
  1874.                _loc10_ = _loc1_[_loc4_];
  1875.                _loc11_ = _loc1_[_loc4_ + 1];
  1876.                _loc12_ = _loc1_[_loc4_ + 1];
  1877.                _loc13_ = this.loaderInfo.applicationDomain;
  1878.                _loc14_ = $Res.Pouf("$Objet_" + _loc10_);
  1879.                _loc15_ = $Res.Pouf("$Objet_" + _loc12_);
  1880.                _loc16_ = new $ObjetInterface();
  1881.                _loc16_._O1.addChild(_loc14_);
  1882.                this.ListeClipObjet.push(_loc16_._O1);
  1883.                if(_loc11_)
  1884.                {
  1885.                   _loc16_._O2.addChild(_loc15_);
  1886.                   this.ListeClipObjet.push(_loc16_._O2);
  1887.                }
  1888.                _loc16_.x = 2;
  1889.                _loc16_._O1.buttonMode = true;
  1890.                _loc16_._O1.useHandCursor = true;
  1891.                _loc16_._O1.mouseChildren = false;
  1892.                _loc16_._O2.buttonMode = true;
  1893.                _loc16_._O2.useHandCursor = true;
  1894.                _loc16_._O2.mouseChildren = false;
  1895.                _loc16_._O1.Code = _loc10_;
  1896.                _loc16_._O2.Code = _loc12_;
  1897.                if(!_loc2_)
  1898.                {
  1899.                   _loc2_ = _loc16_._O1;
  1900.                }
  1901.                _loc14_.x = 32;
  1902.                _loc14_.y = 20;
  1903.                _loc15_.x = 32;
  1904.                _loc15_.y = 20;
  1905.                if(_loc14_.height > 36)
  1906.                {
  1907.                   _loc17_ = 36 / _loc14_.height;
  1908.                   _loc14_.height = 36;
  1909.                   _loc14_.width = _loc14_.width * _loc17_;
  1910.                }
  1911.                if(_loc14_.width > 61)
  1912.                {
  1913.                   _loc17_ = 61 / _loc14_.width;
  1914.                   _loc14_.width = 61;
  1915.                   _loc14_.height = _loc14_.height * _loc17_;
  1916.                }
  1917.                if(_loc11_)
  1918.                {
  1919.                   if(_loc15_.height > 36)
  1920.                   {
  1921.                      _loc17_ = 36 / _loc15_.height;
  1922.                      _loc15_.height = 36;
  1923.                      _loc15_.width = _loc15_.width * _loc17_;
  1924.                   }
  1925.                   if(_loc15_.width > 61)
  1926.                   {
  1927.                      _loc17_ = 61 / _loc15_.width;
  1928.                      _loc15_.width = 61;
  1929.                      _loc15_.height = _loc15_.height * _loc17_;
  1930.                   }
  1931.                }
  1932.                _loc16_._O1.addEventListener(MouseEvent.MOUSE_DOWN,this.Clique_Guide);
  1933.                if(_loc11_)
  1934.                {
  1935.                   _loc16_._O2.addEventListener(MouseEvent.MOUSE_DOWN,this.Clique_Guide);
  1936.                }
  1937.                this.Vignette(_loc16_._O1,this.NomObjet[_loc10_]);
  1938.                if(_loc11_)
  1939.                {
  1940.                   this.Vignette(_loc16_._O2,this.NomObjet[_loc12_]);
  1941.                }
  1942.                this.InterfaceListeObjet.Ajout_Element(_loc16_);
  1943.                _loc4_ = _loc4_ + 2;
  1944.             }
  1945.             this.InterfaceListeObjet.Rendu();
  1946.          }
  1947.          else
  1948.          {
  1949.             this.Annulation_Placement_Objet();
  1950.             this.InterfaceListeObjet.Vider();
  1951.          }
  1952.          this.InterfaceListeObjet.Position(0);
  1953.       }
  1954.  
  1955.       public function Envoie_Exception(param1:Error) : void {
  1956.          this.Envoie_Serveur(this.$26 + this.$25 + this.$1 + param1.getStackTrace());
  1957.       }
  1958.  
  1959.       public function Destruction_Mobile(param1:int) : void {
  1960.          var _loc2_:b2Body = this.ListeMobile[param1];
  1961.          if(_loc2_)
  1962.          {
  1963.             this.ListeMobile[param1] = null;
  1964.             if(_loc2_.m_userData.parent)
  1965.             {
  1966.                _loc2_.m_userData.parent.removeChild(_loc2_.m_userData);
  1967.             }
  1968.             this.MondePhysique.DestroyBody(_loc2_);
  1969.          }
  1970.       }
  1971.  
  1972.       public var ListeParticuleAnimation:Array;
  1973.  
  1974.       public var SalonCible:String;
  1975.  
  1976.       public var Gy:Number;
  1977.  
  1978.       public function Déplacement_Fromage(param1:int, param2:int) : void {
  1979.          this.ListeFromage[0] = param1;
  1980.          this.ListeFromage[1] = param2;
  1981.          this.ClipFromage.x = param1;
  1982.          this.ClipFromage.y = param2;
  1983.       }
  1984.  
  1985.       public var ClipObjetEnCours:MovieClip;
  1986.  
  1987.       public var Admin:Boolean;
  1988.  
  1989.       public function Clou_Mouvement() : void {
  1990.          if(this.AutoClouDécalage < 0)
  1991.          {
  1992.             this.AutoClouDécalage = 0;
  1993.          }
  1994.          else
  1995.          {
  1996.             if(this.AutoClouDécalage == 0)
  1997.             {
  1998.                this.AutoClouDécalage = int(this.VraiLargeur / 2 - 5);
  1999.             }
  2000.             else
  2001.             {
  2002.                this.AutoClouDécalage = -int(this.VraiLargeur / 2 - 5);
  2003.             }
  2004.          }
  2005.          this.MAJ_AutoClou();
  2006.       }
  2007.  
  2008.       public function Erreur_Ressource(param1:String) : void {
  2009.          this.Message_Chat("<font color=\'#FF0000\'>Impossible de charger le clip [" + param1 + "].");
  2010.       }
  2011.  
  2012.       public var Synchroniseur:Boolean;
  2013.  
  2014.       public function Chargement_Ok(param1:Event) : void {
  2015.          var _loc2_:MovieClip = $Res.Pouf("FondCarte");
  2016.          _loc2_.mouseEnabled = false;
  2017.          _loc2_.mouseChildren = false;
  2018.          _loc2_.cacheAsBitmap = true;
  2019.          this._M.addChildAt(_loc2_,0);
  2020.          this.Init_Serveur();
  2021.          this.Initialisation_Particule();
  2022.       }
  2023.  
  2024.       public var AscenseurChat:$Ascenseur;
  2025.  
  2026.       public var $11:String;
  2027.  
  2028.       public var DernièreAction:int;
  2029.  
  2030.       public var PhysiqueSol:b2Body;
  2031.  
  2032.       public var $14:String;
  2033.  
  2034.       public var $15:String;
  2035.  
  2036.       public var $16:String;
  2037.  
  2038.       public var $17:String;
  2039.  
  2040.       public var $18:String;
  2041.  
  2042.       public var $19:String;
  2043.  
  2044.       public function Clique_Placement_Objet(param1:int) : void {
  2045.          this.Annulation_Placement_Objet();
  2046.          this.ObjetEnCours = this.Objet_Transparent("OB",param1,this.ClipMonde.mouseX,this.ClipMonde.mouseY + 3,0);
  2047.          stage.addEventListener(MouseEvent.MOUSE_MOVE,this.Boucle_Placement);
  2048.          stage.addEventListener(MouseEvent.MOUSE_WHEEL,this.Boucle_Molette);
  2049.          this.ClipMonde.addEventListener(MouseEvent.MOUSE_DOWN,this.Validation_Placement_Objet);
  2050.          this.MAJ_Force_Porté();
  2051.          this.ObjetEnCours.Code = param1;
  2052.          this.HorsDePorté = false;
  2053.       }
  2054.  
  2055.       public var PosFinObjetX:int;
  2056.  
  2057.       public var ClipOP:MovieClip;
  2058.  
  2059.       public var $12:String;
  2060.  
  2061.       public var MondePhysique:b2World;
  2062.  
  2063.       public function Creation_Joueur(param1:Array) : $Joueur {
  2064.          var _loc2_:String = param1[0];
  2065.          var _loc3_:int = int(param1[1]);
  2066.          var _loc4_:* = param1[2] == "1";
  2067.          var _loc5_:int = int(param1[3]);
  2068.          var _loc6_:* = param1[4] == "1";
  2069.          var _loc7_:b2BodyDef = new b2BodyDef();
  2070.          _loc7_.position.x = this.PosDépartX / 30;
  2071.          _loc7_.position.y = this.PosDépartY / 30;
  2072.          _loc7_.fixedRotation = true;
  2073.          var _loc8_:$Joueur = new $Joueur(_loc2_);
  2074.          _loc8_.Mort = _loc4_;
  2075.          _loc8_.CodeJoueur = _loc3_;
  2076.          _loc8_.Score = _loc5_;
  2077.          _loc7_.userData = _loc8_;
  2078.          if(_loc3_ == this.CodeJoueur)
  2079.          {
  2080.             this.ClipJoueur = _loc8_;
  2081.             _loc8_.ClipJoueur = true;
  2082.             _loc8_.NomTexte.textColor = 12763866;
  2083.          }
  2084.          var _loc9_:b2Body = this.MondePhysique.CreateBody(_loc7_);
  2085.          _loc8_.Physique = _loc9_;
  2086.          this.CollisionJoueur = this.Monde.CollisionJoueur;
  2087.          if(this.CollisionJoueur)
  2088.          {
  2089.             this.ClipJoueurProp.filter.categoryBits = 4;
  2090.          }
  2091.          else
  2092.          {
  2093.             this.ClipJoueurProp.filter.categoryBits = 2;
  2094.          }
  2095.          _loc9_.CreateShape(this.ClipJoueurProp);
  2096.          if(_loc6_)
  2097.          {
  2098.             this.Souris_Grosse(_loc8_);
  2099.          }
  2100.          else
  2101.          {
  2102.             _loc9_.SetMass(this.MasseSourisBase);
  2103.          }
  2104.          if(_loc3_ == this.CodeJoueur)
  2105.          {
  2106.             _loc9_.AllowSleeping(false);
  2107.          }
  2108.          this.ListeJoueur[_loc3_] = _loc8_;
  2109.          return _loc8_;
  2110.       }
  2111.  
  2112.       public function Vignette(param1:Object, param2:String, param3:int=0, param4:int=0, param5:int=0, param6:int=0) : void {
  2113.          param1.mouseEnabled = true;
  2114.          param1.VignetteTexte = param2;
  2115.          param1.VignetteFixe = param3;
  2116.          if(param3)
  2117.          {
  2118.             param1.VignetteFixeX = param4;
  2119.             param1.VignetteFixeY = param5;
  2120.          }
  2121.          param1.VignetteLargeur = param6;
  2122.          param1.addEventListener(MouseEvent.MOUSE_OVER,this.Vignette_RollOver);
  2123.          param1.addEventListener(MouseEvent.ROLL_OUT,this.Vignette_Off);
  2124.       }
  2125.  
  2126.       public function Supprimer_OP(param1:String) : void {
  2127.          var _loc2_:DisplayObject = this.ClipOP.getChildByName(param1);
  2128.          if(_loc2_)
  2129.          {
  2130.             this.ClipOP.removeChild(_loc2_);
  2131.          }
  2132.       }
  2133.  
  2134.       public function Initialisation_Particule() : void {
  2135.          var Clip:MovieClip = null;
  2136.          var AnimStatique:MovieClip = $Res.Pouf("AnimStatique");
  2137.          var AnimCourse:MovieClip = $Res.Pouf("AnimCourse");
  2138.          var AnimInvoc:MovieClip = $Res.Pouf("AnimInvoc");
  2139.          $Joueur.Anim_Statique_Base = new $ParticuleZero(AnimStatique);
  2140.          $Joueur.Anim_Course_Base = new $ParticuleZero(AnimCourse);
  2141.          $Joueur.Anim_Invoc_Base = new $ParticuleZero(AnimInvoc);
  2142.          var ClipGrosse:MovieClip = $Res.Pouf("FromageSouris");
  2143.          AnimStatique.ClipGrosse.addChild(ClipGrosse);
  2144.          $Joueur.Anim_Statique_Base_G = new $ParticuleZero(AnimStatique);
  2145.          AnimCourse.ClipGrosse.addChild(ClipGrosse);
  2146.          $Joueur.Anim_Course_Base_G = new $ParticuleZero(AnimCourse);
  2147.          AnimInvoc.ClipGrosse.addChild(ClipGrosse);
  2148.          $Joueur.Anim_Invoc_Base_G = new $ParticuleZero(AnimInvoc);
  2149.          var i:int = 0;
  2150.          while(true)
  2151.          {
  2152.             try
  2153.             {
  2154.                Clip = $Res.Pouf("$P" + i,true);
  2155.                i++;
  2156.                if(Clip)
  2157.                {
  2158.                   this.ListeParticule.push(new $ParticuleZero(Clip));
  2159.                }
  2160.                else
  2161.                {
  2162.                   break;
  2163.                }
  2164.             }
  2165.             catch(E:Error)
  2166.             {
  2167.                return;
  2168.             }
  2169.          }
  2170.       }
  2171.  
  2172.       public var $20:String;
  2173.  
  2174.       public var $21:String;
  2175.  
  2176.       public var $22:String;
  2177.  
  2178.       public function Chargement_Ressources() : void {
  2179.          var _loc3_:Date = null;
  2180.          var _loc1_:Loader = new Loader();
  2181.          _loc1_.contentLoaderInfo.addEventListener(Event.COMPLETE,this.Chargement_Ok);
  2182.          $Res.Bibliothèque = new ApplicationDomain(ApplicationDomain.currentDomain);
  2183.          var _loc2_:LoaderContext = new LoaderContext(false,$Res.Bibliothèque);
  2184.          if(this.Domaine != "127.0.0.1")
  2185.          {
  2186.             _loc1_.load(new URLRequest("./Ressources.swf"),_loc2_);
  2187.          }
  2188.          else
  2189.          {
  2190.             _loc3_ = new Date();
  2191.             _loc1_.load(new URLRequest("././././././././././././././././Ressources.swf?n=" + _loc3_.getTime()),_loc2_);
  2192.          }
  2193.       }
  2194.  
  2195.       public var $24:String;
  2196.  
  2197.       public var $25:String;
  2198.  
  2199.       public var $26:String;
  2200.  
  2201.       public var $27:String;
  2202.  
  2203.       public function Annulation_Placement_Objet() : void {
  2204.          if(this.ObjetEnCours)
  2205.          {
  2206.             stage.removeEventListener(MouseEvent.MOUSE_MOVE,this.Boucle_Placement);
  2207.             stage.removeEventListener(MouseEvent.MOUSE_WHEEL,this.Boucle_Molette);
  2208.             this.ClipMonde.removeEventListener(MouseEvent.MOUSE_DOWN,this.Validation_Placement_Objet);
  2209.             if(this.ObjetEnCours.parent)
  2210.             {
  2211.                this.ClipOP.removeChild(this.ObjetEnCours);
  2212.             }
  2213.             this.ObjetEnCours = null;
  2214.          }
  2215.       }
  2216.  
  2217.       public var PosFinObjetY:int;
  2218.  
  2219.       public function Mouvement(param1:$Particule) : void {
  2220.          param1.x = param1.x + param1.Vx;
  2221.          if(param1.Vx < 0)
  2222.          {
  2223.             param1.Vx = param1.Vx + (param1.Fx + this.Fx);
  2224.             if(param1.Vx > 0)
  2225.             {
  2226.                param1.Vx = param1.Ax;
  2227.             }
  2228.             else
  2229.             {
  2230.                if(param1.Ax > 0 || -param1.Vmax < param1.Vx)
  2231.                {
  2232.                   param1.Vx = param1.Vx + param1.Ax;
  2233.                }
  2234.             }
  2235.          }
  2236.          else
  2237.          {
  2238.             param1.Vx = param1.Vx - (param1.Fx + this.Fx);
  2239.             if(param1.Vx < 0)
  2240.             {
  2241.                param1.Vx = param1.Ax;
  2242.             }
  2243.             else
  2244.             {
  2245.                if(param1.Ax < 0 || param1.Vx < param1.Vmax)
  2246.                {
  2247.                   param1.Vx = param1.Vx + param1.Ax;
  2248.                }
  2249.             }
  2250.          }
  2251.          param1.y = param1.y + param1.Vy;
  2252.          if(param1.Gravité)
  2253.          {
  2254.             param1.Vy = param1.Vy + this.Gy;
  2255.          }
  2256.          if(param1.Vy < 0)
  2257.          {
  2258.             param1.Vy = param1.Vy + (param1.Fy + this.Fy);
  2259.             if(param1.Vy > 0)
  2260.             {
  2261.                param1.Vy = param1.Ay;
  2262.             }
  2263.             else
  2264.             {
  2265.                if(param1.Ay > 0)
  2266.                {
  2267.                   param1.Vy = param1.Vy + param1.Ay;
  2268.                }
  2269.             }
  2270.          }
  2271.          else
  2272.          {
  2273.             param1.Vy = param1.Vy - (param1.Fy + this.Fy);
  2274.             if(param1.Vy < 0)
  2275.             {
  2276.                param1.Vy = param1.Ay;
  2277.             }
  2278.             else
  2279.             {
  2280.                if(param1.Ay < 0)
  2281.                {
  2282.                   param1.Vy = param1.Vy + param1.Ay;
  2283.                }
  2284.             }
  2285.          }
  2286.       }
  2287.  
  2288.       public var TimerPosition:Timer;
  2289.  
  2290.       public var LimiteY:int;
  2291.  
  2292.       public function Création_Objet_Monde(param1:int, param2:int, param3:int, param4:int=0, param5:Number=0, param6:Number=0) : void {
  2293.          this.Envoie_Serveur(this.$5 + this.$21 + this.$1 + param1 + this.$1 + param2 + this.$1 + param3 + this.$1 + param4 + this.$1 + param5 + this.$1 + param6);
  2294.       }
  2295.  
  2296.       public function Deconnexion(param1:Event) : void {
  2297.          this.MoteurActif = false;
  2298.          stage.removeEventListener(Event.ENTER_FRAME,this.Boucle_Moteur);
  2299.          this.TimerPosition.stop();
  2300.          this.BoucleReveille.stop();
  2301.          var _loc2_:int = numChildren;
  2302.          var _loc3_:* = 0;
  2303.          while(_loc3_ < _loc2_)
  2304.          {
  2305.             getChildAt(_loc3_).visible = false;
  2306.             _loc3_++;
  2307.          }
  2308.          if(this.MauvaiseVersion)
  2309.          {
  2310.             this.ClipServeur.Texte.text = "\nVotre version du jeu est incorrecte :\'(";
  2311.          }
  2312.          else
  2313.          {
  2314.             this.ClipServeur.Texte.text = "\nLa connexion avec le serveur vient d\'être interrompue :\'(";
  2315.          }
  2316.          addChild(this.ClipServeur);
  2317.          this.ClipServeur.visible = true;
  2318.          this.TexteServeur.visible = true;
  2319.          this.ClipIdentification.visible = false;
  2320.          this.Serveur.removeEventListener(Event.CONNECT,this.Connexion);
  2321.          this.Serveur.removeEventListener(Event.CLOSE,this.Deconnexion);
  2322.          this.Serveur.removeEventListener(IOErrorEvent.IO_ERROR,this.Connexion_Impossible);
  2323.          this.Serveur.removeEventListener(SecurityErrorEvent.SECURITY_ERROR,this.Connexion_Interdite);
  2324.          this.Serveur.removeEventListener(DataEvent.DATA,this.Reception);
  2325.       }
  2326.  
  2327.       public var ClipListeMobile:MovieClip;
  2328.  
  2329.       public var TempsPartieZéro:int;
  2330.  
  2331.       public var NombreObjet:int;
  2332.  
  2333.       public var MoteurActif:Boolean;
  2334.  
  2335.       public var InterfaceListeJoueur:$Liste;
  2336.  
  2337.       public var ClipJoueur:$Joueur;
  2338.  
  2339.       public function Souris_Grosse(param1:$Joueur) : void {
  2340.          param1.Grosse = true;
  2341.          param1.MAJ_Grosse();
  2342.          param1.Physique.SetMass(this.MasseSourisGrosse);
  2343.       }
  2344.  
  2345.       public var ClipFromage:MovieClip;
  2346.  
  2347.       public var LimiteX:int;
  2348.  
  2349.       public function MAJ_AutoClou() : void {
  2350.          var _loc1_:MovieClip = this.ObjetEnCours.getChildAt(this.ObjetEnCours.numChildren-1) as MovieClip;
  2351.          _loc1_.x = this.AutoClouDécalage;
  2352.       }
  2353.  
  2354.       public var AutoClouCode:int;
  2355.  
  2356.       public var ListeObjetDispo:Array;
  2357.  
  2358.       public var InvocationEnCours:Boolean;
  2359.  
  2360.       public var BoucleReveille:Timer;
  2361.  
  2362.       public const CouleurZéro:ColorTransform = new ColorTransform(1,1,1,0.5,128);
  2363.  
  2364.       public var ClipStatique:MovieClip;
  2365.  
  2366.       public function Clavier1(param1:KeyboardEvent) : void {
  2367.          var _loc3_:String = null;
  2368.          var _loc4_:b2Vec2 = null;
  2369.          var _loc5_:* = 0;
  2370.          var _loc6_:ApplicationDomain = null;
  2371.          var _loc7_:MovieClip = null;
  2372.          var _loc2_:int = param1.keyCode;
  2373.          if(stage.focus == this.CE)
  2374.          {
  2375.             if(_loc2_ == 13)
  2376.             {
  2377.                _loc3_ = this.CE.text;
  2378.                this.CE.text = "";
  2379.                while(_loc3_.substr(0,1) == " ")
  2380.                {
  2381.                   _loc3_ = _loc3_.substr(1);
  2382.                }
  2383.                while(_loc3_.charAt(_loc3_.length-1) == " ")
  2384.                {
  2385.                   _loc3_ = _loc3_.substr(0,-1);
  2386.                }
  2387.                if(_loc3_ == "")
  2388.                {
  2389.                   stage.focus = stage;
  2390.                   return;
  2391.                }
  2392.                if(getTimer() - this.LimiteChat < 1000 && !this.Admin)
  2393.                {
  2394.                   this.Message_Chat("Doucement, merci.");
  2395.                   return;
  2396.                }
  2397.                if(_loc3_.charAt(0) == "/")
  2398.                {
  2399.                   this.LimiteChat = getTimer();
  2400.                   this.Envoie_Serveur(this.$6 + this.$26 + this.$1 + _loc3_.substr(1));
  2401.                   stage.focus = stage;
  2402.                   return;
  2403.                }
  2404.                if(this.DernierMessage == _loc3_ && !this.Admin)
  2405.                {
  2406.                   this.Message_Chat("Votre dernier message est identique.");
  2407.                   return;
  2408.                }
  2409.                _loc3_ = _loc3_.replace(new RegExp("<","g"),"&lt;");
  2410.                this.LimiteChat = getTimer();
  2411.                this.DernierMessage = _loc3_;
  2412.                this.Envoie_Serveur(this.$6 + this.$6 + this.$1 + _loc3_);
  2413.                stage.focus = stage;
  2414.             }
  2415.          }
  2416.          else
  2417.          {
  2418.             if((this.ClipJoueur) && !this.ClipJoueur.Mort)
  2419.             {
  2420.                if((_loc2_ == 68 || _loc2_ == 39) && !this.ClipJoueur.DroiteEnCours && !this.InvocationEnCours)
  2421.                {
  2422.                   this.ClipJoueur.DroiteEnCours = true;
  2423.                   this.ClipJoueur.GaucheEnCours = false;
  2424.                   this.ClipJoueur.Animation_Course(true);
  2425.                   this.MAJ_Position();
  2426.                   return;
  2427.                }
  2428.                if((_loc2_ == 81 || _loc2_ == 37) && !this.ClipJoueur.GaucheEnCours && !this.InvocationEnCours)
  2429.                {
  2430.                   this.ClipJoueur.GaucheEnCours = true;
  2431.                   this.ClipJoueur.DroiteEnCours = false;
  2432.                   this.ClipJoueur.Animation_Course(false);
  2433.                   this.MAJ_Position();
  2434.                   return;
  2435.                }
  2436.                if(_loc2_ == 90 || _loc2_ == 38)
  2437.                {
  2438.                   if((this.SautDisponible) && !this.InvocationEnCours)
  2439.                   {
  2440.                      this.SautDisponible = false;
  2441.                      this.DernierSaut = getTimer();
  2442.                      this.ClipJoueur.Physique.m_linearVelocity.y = -5;
  2443.                      this.ClipJoueur.Physique.WakeUp();
  2444.                      this.ClipJoueur.MAJ_Saut(true);
  2445.                      this.MAJ_Position();
  2446.                      return;
  2447.                   }
  2448.                }
  2449.                else
  2450.                {
  2451.                   if(_loc2_ == 83)
  2452.                   {
  2453.                      this.Annulation_Placement_Objet();
  2454.                   }
  2455.                   else
  2456.                   {
  2457.                      if(_loc2_ == 32)
  2458.                      {
  2459.                         _loc4_ = this.ClipJoueur.Physique.GetLinearVelocity();
  2460.                      }
  2461.                      else
  2462.                      {
  2463.                         if(_loc2_ >= 49 && _loc2_ <= 57)
  2464.                         {
  2465.                            this.Selection_Objet_Clavier(_loc2_ - 49);
  2466.                         }
  2467.                      }
  2468.                   }
  2469.                }
  2470.             }
  2471.             if(_loc2_ == 67 || _loc2_ == 86 || _loc2_ == 66)
  2472.             {
  2473.                if(this.ObjetEnCours)
  2474.                {
  2475.                   if((this.AutoClou) && this.DernierCodeClou == _loc2_)
  2476.                   {
  2477.                      this.Clou_Mouvement();
  2478.                      return;
  2479.                   }
  2480.                   this.DernierCodeClou = _loc2_;
  2481.                   this.AutoClou = !this.AutoClou;
  2482.                   _loc5_ = this.ObjetEnCours.rotation;
  2483.                   this.Clique_Placement_Objet(this.ObjetEnCours.Code);
  2484.                   if(_loc2_ == 67)
  2485.                   {
  2486.                      this.AutoClouCode = 22;
  2487.                   }
  2488.                   else
  2489.                   {
  2490.                      if(_loc2_ == 86)
  2491.                      {
  2492.                         this.AutoClouCode = 14;
  2493.                      }
  2494.                      else
  2495.                      {
  2496.                         if(_loc2_ == 66)
  2497.                         {
  2498.                            this.AutoClouCode = 15;
  2499.                         }
  2500.                      }
  2501.                   }
  2502.                   if(this.AutoClou)
  2503.                   {
  2504.                      this.AutoClouDécalage = 0;
  2505.                      _loc6_ = this.loaderInfo.applicationDomain;
  2506.                      _loc7_ = $Res.Pouf("$Objet_" + this.AutoClouCode);
  2507.                      this.ObjetEnCours.addChild(_loc7_);
  2508.                      this.VraiLargeur = this.ObjetEnCours.width;
  2509.                   }
  2510.                   this.ObjetEnCours.rotation = _loc5_;
  2511.                }
  2512.                return;
  2513.             }
  2514.             if(_loc2_ == 13)
  2515.             {
  2516.                stage.focus = this.CE;
  2517.             }
  2518.             else
  2519.             {
  2520.                if(_loc2_ == 27)
  2521.                {
  2522.                   this.Annulation_Placement_Objet();
  2523.                }
  2524.             }
  2525.          }
  2526.       }
  2527.  
  2528.       public var CacheObjet:Array;
  2529.  
  2530.       public var VignetteEnCours:Object;
  2531.  
  2532.       public var ClipInterface:MovieClip;
  2533.  
  2534.       public var CollisionJoueur:Boolean;
  2535.  
  2536.       public function Nouvelle_Partie(param1:int) : void {
  2537.          this.ClipServeur.visible = false;
  2538.          this.ClipInterface.visible = true;
  2539.          this.ClipMonde.visible = true;
  2540.          this.TempsPartieZéro = getTimer();
  2541.          while(this.ClipListeMobile.numChildren)
  2542.          {
  2543.             this.ClipListeMobile.removeChildAt(0);
  2544.          }
  2545.          var _loc2_:Array = new Array();
  2546.          var _loc3_:b2Body = this.MondePhysique.m_bodyList;
  2547.          while(_loc3_)
  2548.          {
  2549.             _loc2_.push(_loc3_);
  2550.             _loc3_ = _loc3_.m_next;
  2551.          }
  2552.          var _loc4_:int = _loc2_.length;
  2553.          var _loc5_:* = 0;
  2554.          while(_loc5_ < _loc4_)
  2555.          {
  2556.             this.MondePhysique.DestroyBody(_loc2_[_loc5_]);
  2557.             _loc5_++;
  2558.          }
  2559.          this.worldAABB = new b2AABB();
  2560.          this.worldAABB.lowerBound.Set(-100,-100);
  2561.          this.worldAABB.upperBound.Set(100,100);
  2562.          this.MondePhysique = new b2World(this.worldAABB,new b2Vec2(0.0,10),true);
  2563.          this.ListeMobile = new Array();
  2564.          this.Monde = $Res.Pouf("$Monde_" + param1);
  2565.          this.ClipInterface._M.text = String(param1);
  2566.          this.Monde.Initialisation(this,this.ClipListeMobile);
  2567.          this.TempsZéro = getTimer();
  2568.          this.TimerPosition.start();
  2569.          this.MoteurActif = true;
  2570.          this.SautDisponible = true;
  2571.       }
  2572.  
  2573.       public var ListeFromage:Array;
  2574.  
  2575.       public function Clavier2(param1:KeyboardEvent) : void {
  2576.          var _loc2_:* = 0;
  2577.          var _loc3_:* = false;
  2578.          var _loc4_:b2Vec2 = null;
  2579.          this.DernièreAction = getTimer();
  2580.          if(stage.focus != this.CE)
  2581.          {
  2582.             _loc2_ = param1.keyCode;
  2583.             if(this.ClipJoueur)
  2584.             {
  2585.                _loc3_ = false;
  2586.                if((_loc2_ == 68 || _loc2_ == 39) && !this.InvocationEnCours)
  2587.                {
  2588.                   this.ClipJoueur.DroiteEnCours = false;
  2589.                   if(!this.ClipJoueur.GaucheEnCours)
  2590.                   {
  2591.                      this.ClipJoueur.Animation_Statique(true);
  2592.                      _loc3_ = true;
  2593.                   }
  2594.                }
  2595.                else
  2596.                {
  2597.                   if((_loc2_ == 81 || _loc2_ == 37) && !this.InvocationEnCours)
  2598.                   {
  2599.                      this.ClipJoueur.GaucheEnCours = false;
  2600.                      if(!this.ClipJoueur.DroiteEnCours)
  2601.                      {
  2602.                         this.ClipJoueur.Animation_Statique(false);
  2603.                         _loc3_ = true;
  2604.                      }
  2605.                   }
  2606.                }
  2607.                if(_loc3_)
  2608.                {
  2609.                   _loc4_ = this.ClipJoueur.Physique.GetLinearVelocity();
  2610.                   if(_loc4_.x < this.VitesseJoueur + 1 && -this.VitesseJoueur-1 < _loc4_.x)
  2611.                   {
  2612.                   }
  2613.                   this.MAJ_Position();
  2614.                }
  2615.             }
  2616.          }
  2617.       }
  2618.  
  2619.       public var CouleurBleue:ColorTransform;
  2620.  
  2621.       public function Boucle_Moteur(param1:Event) : void {
  2622.          var _loc2_:* = 0;
  2623.          var _loc3_:* = 0;
  2624.          var _loc4_:* = false;
  2625.          var _loc5_:* = false;
  2626.          var _loc6_:* = 0;
  2627.          var _loc7_:* = 0;
  2628.          var _loc8_:* = 0;
  2629.          var _loc9_:* = 0;
  2630.          var _loc10_:b2Body = null;
  2631.          var _loc11_:* = 0;
  2632.          var _loc12_:* = 0;
  2633.          var _loc13_:* = 0;
  2634.          var _loc14_:* = 0;
  2635.          var _loc15_:* = 0;
  2636.          var _loc16_:* = 0;
  2637.          var _loc17_:* = 0;
  2638.          var _loc18_:* = 0;
  2639.          var _loc19_:* = 0;
  2640.          var _loc20_:* = 0;
  2641.          var _loc21_:* = 0;
  2642.          var _loc22_:* = 0;
  2643.          var _loc23_:* = 0;
  2644.          var _loc24_:* = 0;
  2645.          var _loc25_:Sprite = null;
  2646.          var _loc26_:$Joueur = null;
  2647.          var _loc27_:* = NaN;
  2648.          var _loc28_:* = NaN;
  2649.          if(this.IPS.stage)
  2650.          {
  2651.             this.IPS.Rendu();
  2652.          }
  2653.          this.IPS.Nouvelle_Valeur(-1);
  2654.          if(this.MoteurActif)
  2655.          {
  2656.             _loc2_ = getTimer();
  2657.             _loc3_ = (_loc2_ - this.TempsPartieZéro) / 1000;
  2658.             if(_loc3_ != this.TempsEnCours)
  2659.             {
  2660.                this.TempsEnCours = _loc3_;
  2661.                _loc11_ = 120 - this.TempsEnCours;
  2662.                if(_loc11_ < 0)
  2663.                {
  2664.                   _loc11_ = 0;
  2665.                }
  2666.                _loc12_ = int(_loc11_ / 60);
  2667.                _loc13_ = _loc11_ % 60;
  2668.                this.ClipInterface._TR.text = "0" + _loc12_ + ":" + (_loc13_ < 10?"0" + _loc13_:_loc13_);
  2669.             }
  2670.             if(_loc2_ - this.TINV > 100)
  2671.             {
  2672.                this.TINV = _loc2_;
  2673.                _loc4_ = true;
  2674.             }
  2675.             else
  2676.             {
  2677.                _loc4_ = false;
  2678.             }
  2679.             if(_loc2_ - this.TempsSeconde > 100)
  2680.             {
  2681.                this.TempsSeconde = _loc2_;
  2682.                _loc5_ = true;
  2683.             }
  2684.             else
  2685.             {
  2686.                _loc5_ = false;
  2687.             }
  2688.             if((_loc5_) && !this.ClipJoueur.Mort && !this.Guide)
  2689.             {
  2690.                if(this.ClipJoueur.Grosse)
  2691.                {
  2692.                   if(this.ClipJoueur.x < this.PosDépartX + 20 && this.ClipJoueur.x > this.PosDépartX - 20)
  2693.                   {
  2694.                      if(this.ClipJoueur.y < this.PosDépartY + 10 && this.ClipJoueur.y > this.PosDépartY - 20)
  2695.                      {
  2696.                         this.ClipJoueur.Mort = true;
  2697.                         this.Envoie_Serveur(this.$5 + this.$18);
  2698.                      }
  2699.                   }
  2700.                }
  2701.                else
  2702.                {
  2703.                   _loc14_ = this.ClipJoueur.x;
  2704.                   _loc15_ = this.ClipJoueur.y;
  2705.                   _loc16_ = this.ListeFromage.length;
  2706.                   _loc17_ = 0;
  2707.                   while(_loc17_ < _loc16_)
  2708.                   {
  2709.                      _loc18_ = this.ListeFromage[_loc17_];
  2710.                      _loc19_ = this.ListeFromage[_loc17_ + 1];
  2711.                      if(_loc14_ < _loc18_ + 20 && _loc14_ > _loc18_ - 20)
  2712.                      {
  2713.                         if(_loc15_ < _loc19_ + 10 && _loc15_ > _loc19_ - 20)
  2714.                         {
  2715.                            this.ClipJoueur.Grosse = true;
  2716.                            this.Envoie_Serveur(this.$5 + this.$19);
  2717.                         }
  2718.                      }
  2719.                      _loc17_ = _loc17_ + 2;
  2720.                   }
  2721.                }
  2722.             }
  2723.             this.IPS.Nouvelle_Valeur(1,true);
  2724.             this.ParticuleZone.Rendu();
  2725.             this.IPS.Nouvelle_Valeur(1);
  2726.             if(this.InvocationEnCours)
  2727.             {
  2728.                _loc20_ = _loc2_ - this.DébutInvocation;
  2729.                if(_loc20_ > this.TempsInvoc)
  2730.                {
  2731.                   this.Validation_Placement_Objet_Fin();
  2732.                }
  2733.                else
  2734.                {
  2735.                   _loc21_ = int(_loc20_ / this.TempsInvoc * 60);
  2736.                   this.ClipJoueur.BarreDinvoc._M.width = _loc21_;
  2737.                   this.ClipJoueur.BarreDinvoc._H.x = _loc21_;
  2738.                   this.Explosion(0,this.ClipJoueur.x - 30 + _loc21_,this.ClipJoueur.y + 10,1,1,false);
  2739.                }
  2740.             }
  2741.             if(this.ObjetEnCours)
  2742.             {
  2743.                _loc22_ = this.ObjetEnCours.x - this.ClipJoueur.x;
  2744.                _loc23_ = this.ObjetEnCours.y - this.ClipJoueur.y;
  2745.                _loc24_ = Math.sqrt(_loc22_ * _loc22_ + _loc23_ * _loc23_);
  2746.                if(_loc24_ > 120)
  2747.                {
  2748.                   if(!this.HorsDePorté)
  2749.                   {
  2750.                      this.ObjetEnCours.transform.colorTransform = this.CouleurZéro;
  2751.                   }
  2752.                   this.HorsDePorté = true;
  2753.                }
  2754.                else
  2755.                {
  2756.                   if(this.HorsDePorté)
  2757.                   {
  2758.                      this.ObjetEnCours.transform.colorTransform = this.CouleurBase;
  2759.                   }
  2760.                   this.HorsDePorté = false;
  2761.                }
  2762.             }
  2763.             this.IPS.Nouvelle_Valeur(0,true);
  2764.             _loc6_ = getTimer() - this.TempsZéro;
  2765.             _loc7_ = _loc6_ / 33.33;
  2766.             _loc8_ = _loc7_ - this.ImagesCalculées;
  2767.             _loc9_ = 0;
  2768.             while(_loc9_ < _loc8_)
  2769.             {
  2770.                this.MondePhysique.Step(this.m_timeStep,this.m_iterations);
  2771.                _loc9_++;
  2772.             }
  2773.             this.ImagesCalculées = _loc7_;
  2774.             _loc10_ = this.MondePhysique.m_bodyList;
  2775.             while(_loc10_)
  2776.             {
  2777.                _loc25_ = _loc10_.m_userData as Sprite;
  2778.                if(_loc25_)
  2779.                {
  2780.                   if(_loc25_  is  $Joueur)
  2781.                   {
  2782.                      _loc26_ = _loc25_ as $Joueur;
  2783.                      _loc26_.ParticuleZone.Rendu();
  2784.                      _loc27_ = _loc26_.Grosse?0.5:1;
  2785.                      if(_loc26_.Saute)
  2786.                      {
  2787.                         _loc27_ = _loc27_ / 2;
  2788.                      }
  2789.                      _loc28_ = _loc26_.Grosse?this.VitesseJoueur * 0.8:this.VitesseJoueur;
  2790.                      if(_loc26_.DroiteEnCours)
  2791.                      {
  2792.                         if(_loc10_.m_linearVelocity.x < this.VitesseJoueur)
  2793.                         {
  2794.                            _loc10_.m_linearVelocity.x = _loc10_.m_linearVelocity.x + _loc27_;
  2795.                         }
  2796.                         _loc26_.DernierMouvement = _loc2_;
  2797.                      }
  2798.                      else
  2799.                      {
  2800.                         if(_loc26_.GaucheEnCours)
  2801.                         {
  2802.                            if(-this.VitesseJoueur < _loc10_.m_linearVelocity.x)
  2803.                            {
  2804.                               _loc10_.m_linearVelocity.x = _loc10_.m_linearVelocity.x - _loc27_;
  2805.                            }
  2806.                            _loc26_.DernierMouvement = _loc2_;
  2807.                         }
  2808.                         else
  2809.                         {
  2810.                            if(_loc2_ - _loc26_.DernierMouvement < 200)
  2811.                            {
  2812.                               if(_loc10_.m_linearVelocity.x < this.VitesseJoueur - 0.5 || -(this.VitesseJoueur + 0.5) < _loc10_.m_linearVelocity.x)
  2813.                               {
  2814.                                  _loc10_.m_linearVelocity.x = _loc10_.m_linearVelocity.x / 1.2;
  2815.                               }
  2816.                            }
  2817.                         }
  2818.                      }
  2819.                      if(_loc4_)
  2820.                      {
  2821.                         if(_loc26_.ParticuleZone.ListeParticule[0] == _loc26_.Anim_Invoc)
  2822.                         {
  2823.                            if(_loc26_.AnimDroite)
  2824.                            {
  2825.                               this.Explosion(4,_loc26_.x - 3,_loc26_.y - 10,2,1);
  2826.                               this.Explosion(4,_loc26_.x + 9,_loc26_.y - 10,2,1);
  2827.                            }
  2828.                            else
  2829.                            {
  2830.                               this.Explosion(4,_loc26_.x - 18,_loc26_.y - 10,2,1);
  2831.                               this.Explosion(4,_loc26_.x - 6,_loc26_.y - 10,2,1);
  2832.                            }
  2833.                         }
  2834.                      }
  2835.                   }
  2836.                   _loc25_.x = _loc10_.GetPosition().x * 30;
  2837.                   _loc25_.y = _loc10_.GetPosition().y * 30;
  2838.                   _loc25_.rotation = _loc10_.GetAngle() * 180 / Math.PI;
  2839.                }
  2840.                _loc10_ = _loc10_.m_next;
  2841.             }
  2842.             this.IPS.Nouvelle_Valeur(0);
  2843.             if(!this.ClipJoueur.Mort && !this.SautDisponible)
  2844.             {
  2845.                if(this.ClipJoueur.Physique.m_linearVelocity.y <= 0)
  2846.                {
  2847.                   if(!this.Monte)
  2848.                   {
  2849.                      this.SautDisponible = true;
  2850.                      this.ClipJoueur.MAJ_Saut(false);
  2851.                      this.MAJ_Position();
  2852.                   }
  2853.                   this.Monte = true;
  2854.                }
  2855.                else
  2856.                {
  2857.                   this.Monte = false;
  2858.                }
  2859.             }
  2860.             if((this.Synchroniseur) && (this.Monde.FonctionSync))
  2861.             {
  2862.                this.Monde.FonctionSync(getTimer() - this.TempsPartieZéro);
  2863.             }
  2864.          }
  2865.       }
  2866.  
  2867.       public var ListeParticule:Array;
  2868.  
  2869.       public function Init_Serveur() : void {
  2870.          this.Serveur = new XMLSocket(this.Domaine,59154);
  2871.          this.Serveur.addEventListener(Event.CONNECT,this.Connexion);
  2872.          this.Serveur.addEventListener(Event.CLOSE,this.Deconnexion);
  2873.          this.Serveur.addEventListener(IOErrorEvent.IO_ERROR,this.Connexion_Impossible);
  2874.          this.Serveur.addEventListener(SecurityErrorEvent.SECURITY_ERROR,this.Connexion_Interdite);
  2875.          this.Serveur.addEventListener(DataEvent.DATA,this.Reception);
  2876.       }
  2877.  
  2878.       public var NomJoueur:String;
  2879.  
  2880.       public var HorsDePorté:Boolean;
  2881.  
  2882.       public var ObjetEnCours:MovieClip;
  2883.  
  2884.       public var Restriction:String;
  2885.  
  2886.       public const TempsInvoc:int = 500;
  2887.  
  2888.       public var StyleTexte:StyleSheet;
  2889.  
  2890.       public function Initialisation_Base(param1:MovieClip) : void {
  2891.          var Liste:Array = null;
  2892.          var Clip:MovieClip = null;
  2893.          var TrouSouris:MovieClip = null;
  2894.          var SolStatique:MovieClip = null;
  2895.          var Fromage:MovieClip = null;
  2896.          var MassePlanche:int = 0;
  2897.          var ClipFin:MovieClip = null;
  2898.          var ClipPlanche:MovieClip = null;
  2899.          var ObjetProp_Cube:b2PolygonDef = null;
  2900.          var ObjetInfo:b2BodyDef = null;
  2901.          var ObjetPhysique:b2Body = null;
  2902.          var MasseT:int = 0;
  2903.          var Masse:b2MassData = null;
  2904.          var CodeRepère:String = null;
  2905.          var NumRepère:int = 0;
  2906.          var ListeV:Array = null;
  2907.          var NumL:int = 0;
  2908.          var l:int = 0;
  2909.          var P:Point = null;
  2910.          var BASE:MovieClip = param1;
  2911.          var SolInfo:b2BodyDef = new b2BodyDef();
  2912.          SolInfo.position.Set(0,0);
  2913.          var ClipSol:MovieClip = new MovieClip();
  2914.          ClipSol.mouseEnabled = false;
  2915.          ClipSol.mouseChildren = false;
  2916.          SolInfo.userData = ClipSol;
  2917.          this.PhysiqueSol = this.MondePhysique.CreateBody(SolInfo);
  2918.          while(this.ClipStatique.numChildren)
  2919.          {
  2920.             this.ClipStatique.removeChildAt(0);
  2921.          }
  2922.          this.ClipListeMobile.addChild(BASE);
  2923.          this.ClipListeMobile.addChild(SolInfo.userData);
  2924.          this.ListeFromage = new Array();
  2925.          this.ClipFromage = null;
  2926.          var ListeRepère:Array = new Array();
  2927.          var ListeStatique:Array = new Array();
  2928.          var ListeSuppr:Array = new Array();
  2929.          var Num:int = BASE.numChildren;
  2930.          var i:int = 0;
  2931.          while(i < Num)
  2932.          {
  2933.             Clip = BASE.getChildAt(i) as MovieClip;
  2934.             if(Clip)
  2935.             {
  2936.                Clip.gotoAndStop(1);
  2937.                if(Clip.name == "TS")
  2938.                {
  2939.                   TrouSouris = $Res.Pouf("$Trou_Souris");
  2940.                   TrouSouris.x = Clip.x;
  2941.                   TrouSouris.y = Clip.y;
  2942.                   this.PosDépartX = TrouSouris.x;
  2943.                   this.PosDépartY = TrouSouris.y - 20;
  2944.                   ListeStatique.push(TrouSouris);
  2945.                   ListeSuppr.push(Clip);
  2946.                   TrouSouris.cacheAsBitmap = true;
  2947.                }
  2948.                else
  2949.                {
  2950.                   if(Clip.name == "M" && false)
  2951.                   {
  2952.                      this.PhysiqueSol.CreateShape(this.Mobile_Statique(ClipSol,new Array(Clip.x,Clip.y,Clip.x + Clip.width,Clip.y,Clip.x + Clip.width,Clip.y + Clip.height,Clip.x,Clip.y + Clip.height)));
  2953.                      ListeSuppr.push(Clip);
  2954.                   }
  2955.                   else
  2956.                   {
  2957.                      if(Clip.name == "S" || Clip.name == "M")
  2958.                      {
  2959.                         SolStatique = $Res.Pouf("$Sol_Dur");
  2960.                         SolStatique.x = Clip.x;
  2961.                         SolStatique.y = Clip.y;
  2962.                         SolStatique.width = Clip.width;
  2963.                         SolStatique.height = Clip.height;
  2964.                         this.ClipListeMobile.addChild(SolStatique);
  2965.                         this.PhysiqueSol.CreateShape(this.Mobile_Statique(null,new Array(Clip.x,Clip.y,Clip.x + Clip.width,Clip.y,Clip.x + Clip.width,Clip.y + Clip.height,Clip.x,Clip.y + Clip.height)));
  2966.                         ListeSuppr.push(Clip);
  2967.                         SolStatique.cacheAsBitmap = true;
  2968.                      }
  2969.                      else
  2970.                      {
  2971.                         if(Clip.name == "F")
  2972.                         {
  2973.                            Fromage = $Res.Pouf("$Fromage");
  2974.                            if(!this.ClipFromage)
  2975.                            {
  2976.                               this.ClipFromage = Fromage;
  2977.                            }
  2978.                            Fromage.x = Clip.x;
  2979.                            Fromage.y = Clip.y;
  2980.                            Fromage.cacheAsBitmap = true;
  2981.                            this.ListeFromage.push(Fromage.x,Fromage.y);
  2982.                            ListeStatique.push(Fromage);
  2983.                            ListeSuppr.push(Clip);
  2984.                         }
  2985.                         else
  2986.                         {
  2987.                            if(Clip.name.indexOf("Planche") != -1)
  2988.                            {
  2989.                               ListeSuppr.push(Clip);
  2990.                               try
  2991.                               {
  2992.                                  MassePlanche = int(Clip.name.substr(7));
  2993.                                  ClipFin = new MovieClip();
  2994.                                  ClipPlanche = $Res.Pouf("$Sol_Dur");
  2995.                                  ClipPlanche.x = Clip.x;
  2996.                                  ClipPlanche.y = Clip.y;
  2997.                                  ClipPlanche.width = Clip.width;
  2998.                                  ClipPlanche.height = Clip.height;
  2999.                                  ClipFin.addChild(ClipPlanche);
  3000.                                  ObjetProp_Cube = this.Mobile_Statique(null,new Array(Clip.x,Clip.y,Clip.x + Clip.width,Clip.y,Clip.x + Clip.width,Clip.y + Clip.height,Clip.x,Clip.y + Clip.height));
  3001.                                  ObjetProp_Cube.density = 30;
  3002.                                  ObjetProp_Cube.friction = 0.8;
  3003.                                  ObjetProp_Cube.restitution = 0.2;
  3004.                                  ObjetInfo = new b2BodyDef();
  3005.                                  ObjetInfo.userData = ClipFin;
  3006.                                  ObjetPhysique = this.MondePhysique.CreateBody(ObjetInfo);
  3007.                                  ObjetPhysique.CreateShape(ObjetProp_Cube);
  3008.                                  if(Clip.name.length > 7)
  3009.                                  {
  3010.                                     MasseT = int(Clip.name.substr(7));
  3011.                                     Masse = new b2MassData();
  3012.                                     Masse.mass = 1000;
  3013.                                     Masse.I = 100;
  3014.                                     Masse.center = new b2Vec2((Clip.x + Clip.width / 2) / 30,(Clip.y + Clip.height / 2) / 30);
  3015.                                     ObjetPhysique.SetMass(Masse);
  3016.                                  }
  3017.                                  else
  3018.                                  {
  3019.                                     ObjetPhysique.SetMassFromShapes();
  3020.                                  }
  3021.                                  this.ListeMobile.push(ObjetPhysique);
  3022.                                  this.ClipListeMobile.addChild(ClipFin);
  3023.                               }
  3024.                               catch(E:Error)
  3025.                               {
  3026.                               }
  3027.                            }
  3028.                            else
  3029.                            {
  3030.                               if(Clip.name.substr(0,1) == "_")
  3031.                               {
  3032.                                  CodeRepère = Clip.name.substr(1,1);
  3033.                                  NumRepère = int(Clip.name.substr(2));
  3034.                                  if(ListeRepère[CodeRepère] == null)
  3035.                                  {
  3036.                                     ListeRepère[CodeRepère] = new Array();
  3037.                                  }
  3038.                                  ListeRepère[CodeRepère][NumRepère] = new Point(Clip.x,Clip.y);
  3039.                                  ListeSuppr.push(Clip);
  3040.                               }
  3041.                               else
  3042.                               {
  3043.                                  ListeStatique.push(Clip);
  3044.                               }
  3045.                            }
  3046.                         }
  3047.                      }
  3048.                   }
  3049.                }
  3050.             }
  3051.             i++;
  3052.          }
  3053.          Num = ListeStatique.length;
  3054.          i = 0;
  3055.          while(i < Num)
  3056.          {
  3057.             this.ClipStatique.addChild(ListeStatique[i]);
  3058.             i++;
  3059.          }
  3060.          Num = ListeSuppr.length;
  3061.          i = 0;
  3062.          while(i < Num)
  3063.          {
  3064.             BASE.removeChild(ListeSuppr[i]);
  3065.             i++;
  3066.          }
  3067.          for each (Liste in ListeRepère)
  3068.          {
  3069.             ListeV = new Array();
  3070.             NumL = Liste.length;
  3071.             l = 0;
  3072.             while(l < NumL)
  3073.             {
  3074.                P = Liste[l];
  3075.                if(P)
  3076.                {
  3077.                   ListeV.push(P.x,P.y);
  3078.                }
  3079.                else
  3080.                {
  3081.                   ListeV = null;
  3082.                }
  3083.                l++;
  3084.             }
  3085.             if(ListeV)
  3086.             {
  3087.                this.PhysiqueSol.CreateShape(this.Mobile_Statique(ClipSol,ListeV));
  3088.             }
  3089.          }
  3090.          this.PhysiqueSol.SetMassFromShapes();
  3091.          this.PhysiqueSol = this.MondePhysique.CreateBody(SolInfo);
  3092.       }
  3093.  
  3094.       public var _I:MovieClip;
  3095.  
  3096.       public var TempsZéro:int;
  3097.  
  3098.       public var Serveur:XMLSocket;
  3099.  
  3100.       public var Modo:Boolean;
  3101.  
  3102.       public var _M:MovieClip;
  3103.  
  3104.       public function Création_Lien(param1:int, param2:int, param3:Number, param4:Number, param5:Number, param6:int, param7:Number, param8:Number, param9:Number) : void {
  3105.          var _loc11_:b2Body = null;
  3106.          var _loc12_:b2Body = null;
  3107.          var _loc13_:b2RevoluteJointDef = null;
  3108.          var _loc14_:ApplicationDomain = null;
  3109.          var _loc15_:MovieClip = null;
  3110.          var _loc10_:Boolean = param1 == 11 || param1 == 12 || param1 == 13;
  3111.          if(param2 == -2)
  3112.          {
  3113.             _loc11_ = this.PhysiqueSol;
  3114.          }
  3115.          else
  3116.          {
  3117.             _loc11_ = this.ListeMobile[param2];
  3118.          }
  3119.          if(param6 == -2)
  3120.          {
  3121.             _loc12_ = this.PhysiqueSol;
  3122.          }
  3123.          else
  3124.          {
  3125.             _loc12_ = this.ListeMobile[param6];
  3126.          }
  3127.          if((_loc11_) && (_loc12_))
  3128.          {
  3129.             _loc13_ = new b2RevoluteJointDef();
  3130.             if(!(param2 == -2) && !(param6 == -2) && (_loc10_) || param1 == 22)
  3131.             {
  3132.                _loc13_.enableLimit = true;
  3133.                if(param1 == 22)
  3134.                {
  3135.                   _loc13_.lowerAngle = -0.1;
  3136.                   _loc13_.upperAngle = 0.1;
  3137.                }
  3138.                else
  3139.                {
  3140.                   _loc13_.lowerAngle = 0;
  3141.                   _loc13_.upperAngle = 0;
  3142.                }
  3143.             }
  3144.             else
  3145.             {
  3146.                if(param2 == -2)
  3147.                {
  3148.                   _loc12_.m_userData.Sol = true;
  3149.                }
  3150.                else
  3151.                {
  3152.                   _loc11_.m_userData.Sol = true;
  3153.                }
  3154.             }
  3155.             _loc13_.body1 = _loc11_;
  3156.             _loc13_.body2 = _loc12_;
  3157.             _loc13_.localAnchor1 = new b2Vec2(param3,param4);
  3158.             _loc13_.localAnchor2 = new b2Vec2(param7,param8);
  3159.             _loc13_.referenceAngle = param9 - param5;
  3160.             if(param1 == 12 || param1 == 15)
  3161.             {
  3162.                _loc13_.enableMotor = true;
  3163.                _loc13_.motorSpeed = -0.4;
  3164.                _loc13_.maxMotorTorque = 1000000;
  3165.             }
  3166.             else
  3167.             {
  3168.                if(param1 == 13 || param1 == 16)
  3169.                {
  3170.                   _loc13_.enableMotor = true;
  3171.                   _loc13_.motorSpeed = 0.4;
  3172.                   _loc13_.maxMotorTorque = 1000000;
  3173.                }
  3174.             }
  3175.             this.MondePhysique.CreateJoint(_loc13_);
  3176.             if(!_loc11_.m_userData.Lien)
  3177.             {
  3178.                _loc14_ = this.loaderInfo.applicationDomain;
  3179.                _loc15_ = $Res.Pouf("$Objet_" + param1);
  3180.                if(_loc10_)
  3181.                {
  3182.                   _loc11_.m_userData.Lien = true;
  3183.                }
  3184.                _loc11_.m_userData.addChild(_loc15_);
  3185.                _loc15_.x = param3 * 30;
  3186.                _loc15_.y = param4 * 30;
  3187.             }
  3188.             _loc11_.WakeUp();
  3189.             _loc12_.WakeUp();
  3190.          }
  3191.       }
  3192.  
  3193.       public var MasseSourisGrosse:b2MassData;
  3194.  
  3195.       public var DernierCodeClou:int;
  3196.  
  3197.       public var ClipIdentification:MovieClip;
  3198.    }
  3199.  
  3200. }
Add Comment
Please, Sign In to add comment