ࡱ> Root Entryp|YrRASHL2I ContentsPage 1ASymbol 3X !"#$%&'(Root Entryp|YrRASH`߶]@ Contents$Page 1Symbol 3X  )*+,-./012Symbol 2 Symbol 1|  !"#$%&'()*+,-./01234?Calque 1OCPicPage CPicLayer CPicFrame CPicButton _root.deplacementtrue _root.deplacementfalse ?CPicPage CPicLayer CPicFrame CPicShape 55555Q>P<4>}-4KX-4f>}444}44>-4KX-}?Calque 1OCalque 1OCPicPage CPicLayer CPicFrameee-f>4>}-4KX-4f>}444}44>-4KX-}?Calque 1OCPicPage CPicLayer CPicFrame CPicShapeygR\E8J#"G?graphsOO CPicSprite$$centre &F&FonClipEvent (load) { // variables rayon = 68; // centre x0 = _root.centre._x; y0 = _root.centre._y; // premier placement de la balle this._x = x0; this._y = y0+rayon; } onClipEvent (enterFrame) { if (_root.deplacement) { // angle x1 = x0-_root._xmouse; y1 = _root._ymouse-y0; angle = Math.atan(x1/y1); // placement de la balle x = x0-(rayon*Math.sin(angle)); y = y0+(rayon*Math.cos(angle)); this._x = x; this._y = y; // contrainte du mouvement if (_root._xmouse>x0) { this._x = 2*x0-x; } if (_root._ymousex0) { this._x = 2*x0-x; } if (_root._ymouse