Voila j'ai une anims composé de 5 boutons rep1,rep2,rep3....
pour chak bouton je le duplique 6 fois et je le place pour l'instant les 6 à la meme place .
Voila le resultat
[ Lien ]
Les positions ca marche bien ( enfin des fois le boutons services reste collé a la souris je ne comprend pas très bien )
mais la duplication ne se fait plus je ne comprend pas pourquoi
voila normalement des ke je clik sur un bouton :
--le bouton se duplik 6 fois
--pour chak on peux le mettre dans la zone cible ki est la colonne droite du tableau en haut
--et cela pour chacun des 4 boutons
voila pour linstant ce ke je voulais faire
CODE
stop();
appuyer(1);
appuyer(2);
appuyer(3);
appuyer(4);
function appuyer(obj){
rep=this["rep"+obj]
for (i=0;i<6;i++)
{
//Duplication du clip d'origine 5 fois
rep.duplicateMovieClip("rep"+i,i);
//Placement
this["rep"+i]._x=repX
this["rep"+i]._y=repY
this["rep"+i].onPress=function()
{
repXdepart=this._x
repYdepart=this._y
this.startDrag();
}
this["rep"+i].onRelease=function()
{
this.stop
Drag();
if((this.hitTest(_root.target_1)))
{
repX=getProperty(_root.target_1,_x)
repY=getProperty(_root.target_1,_y)
this._x=repX-500
this._y=repY-100
}
else
{
this._x=repXdepart
this._y=repYdepart
}
}
}
}