Bonjour j'ai un probleme dans le passage de mon 2e parametre
voila la fonction appuyer prend 2 param
--le premier param pour recuperer le numero du clip
--le deuxieme pour recuperer la target
quand je marque _root.target_1 cela reconnait bien qu'il s'agit du clip situé au nivo _root
j'ai essayer comme ca ou sans les guillemets mais il ne reconnait aucun
appuyer(1,"target_2")
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
21
22
23
24
25
26
27
28
29
30
31
32
33
34 appuyer(1,"target_2") appuyer(2,target_1) function appuyer(obj,tar){ ... this["place"+i+obj].onRelease=function() { this.stopDrag(); trace(_root.tar); if((this.hitTest(_root.tar))) { repX=getProperty(_root.tar,_x) repY=getProperty(_root.tar,_y) this._x=repX-500 this._y=repY-100 } else { this._x=repXdepart this._y=repYdepart } } } }
Partager