salut,
Pouvez vous me dire comment je peux ecrire ce la plus facilement:
if (this.hitTest(_root["poignard"+1])) {
_root["poignard"+1].swapDepths(1001);
_root["poignard"+1].removeMovieClip();
}
if (this.hitTest(_root["poignard"+2])) {
_root["poignard"+2].swapDepths(1001);
_root["poignard"+2].removeMovieClip();
}
if (this.hitTest(_root["poignard"+3])) {
_root["poignard"+3].swapDepths(1001);
_root["poignard"+3].removeMovieClip();
}
if (this.hitTest(_root["poignard"+4])) {
_root["poignard"+4].swapDepths(1001);
_root["poignard"+4].removeMovieClip();
}
if (this.hitTest(_root["poignard"+5])) {
_root["poignard"+5].swapDepths(1001);
_root["poignard"+5].removeMovieClip();
}
merci !!
Bonaparte
