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.
si qqu'un peut m'aider.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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;
jm
Partager