Incompatibilité de version
Bonjour,
Je sèche sur un problème de version.
Ce code marche en version flash 6 as2 et plante en version 7 et plus et as2.
Je ne vois pas où est l'erreur.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| obj = {x:0, y:0};
localToGlobal(obj);
if(_root.text.hitTest(obj.x, obj.y, 1)){
_x+=.2
_alpha=100;
} else {
_x+=4
_alpha=50;
_rotation+=5;
}
if(_x>810){
removeMovieClip(this);
}
Il y a un Math.random aussi qui peut poser problème.
_x=250;
_y=Math.random()*95+152;
_rotation=Math.random()*360; |
si qqu'un peut m'aider.
jm