ࡱ> Root Entryp|YrRASH?? ContentsiPage 1\Symbol 2 !()Root Entryp|YrRASH@k]hA Contents iPage 1[Symbol 2 "#$%&'Symbol 1c  !"#$%&'()*+,-./0123CPicPage CPicLayer CPicFramePvwwwU###U2U####U2U#?>Q Calque 1OCPicPage CPicLayer CPicFrame CPicShape$3 0007 .$?F\ Calque 1O?0 haut = this._y - this._height/2; bas = this._y + this._height/2; gauche = this._x - this._width/2; droite = this._x + this._width/2;ation et disponible sur http://www.art-flashie.com (et bien d'autres) *********************************************/  infosO infosO Calque 2OOCPicPage CPicLayer CPicFrame[00H0x?a< fondO CPicSpriteD  D djHcadre?/ cadreO  ^onClipEvent(load) { // parametres vitessex = 3; vitessey = -4.5; // rayon rayon = this._width /2 } onClipEvent(enterFrame) { this._x += vitessex; this._y += vitessey; // tests avec le cadre exterieur if (this._y + rayon >= _root.cadre.bas) { this._y = _root.cadre.bas - rayon; vitessey *= -1 } if (this._y - rayon <= _root.cadre.haut) { this._y = _root.cadre.haut + rayon; vitessey *= -1 } if (this._x + rayon >= _root.cadre.droite) { this._x = _root.cadre.droite - rayon; vitessex *= -1 } if (this._x - rayon <= _root.cadre.gauche) { this._x = _root.cadre.gauche + rayon; vitessex *= -1 } }balle?il balle3?( /******************************************** crit par Jrmie COOK jeremie.cook@art-flashie.com http://www.art-flashie.com vous pouvez distribuer et utiliser ce fichier source comme bon vous semble. un didactitiel expliquant les diffrentes tapes de sa cr) CDocumentPagePage 1 Squence 1<^<Symbol 2cadre< Symbole 2<Symbol 1balleO<= _root.cadre.bas) { this._y = _root.cadre.haut + rayon; vitessey *= -1 } if (this._y - rayon <= _root.cadre.haut) { this._y = _root.cadre.haut + rayon; vitessey *= -1 } if (this._x + rayon >= _root.cadre.droite) { this._x = _root.cadre.droite - rayon; vitessex *= -1 } if (this._x - rayon <= _root.cadre.gauche) { this._x = _root.cadre.gauche + rayon; vitessex *= -1 } }balle?il balle3?( /******************************************** crit par Jrmie COOK jeremie.cook@art-flashie.com http://www.art-flashie.com vous pouvez distribuer et utiliser ce fichier source comme bon vous semble. un didactitiel expliquant les diffrentes tapes de sa cr) CDocumentPagePage 1 Squence 1<<Symbol 2cadre< Symbole 2<Symbol 1balleO<