[ActionScrip]Récupérer un object avec son nom

ImANewb -  
 zoubiock -
Bonjour,
Je vous explique mon problème,

En fait, j'ai une suite d'objets qui s'apellent h1,h2,h3....h12.
Je voudrais pouvoir manipuler un autre objet dans ces clips, appelés b1,b2,b3....b12, de sorte que h1 manipule b1, h2 manipule b2...
Donc en fait, je peux récupérer le numéro avec this.name.charAt(1) et j'aurais besoin d'un moyen de récupérer le clip "bx" à partir du nom.

Quelqu'un a-t-il une idée?
Configuration: Windows XP
Firefox 3.0.10

1 réponse

  1. zoubiock
     
    hum, si j'ai bien compris, ton clip b1 fait parti de ton clip h1 c'est bien ça?

    Dans ce cas là, essayes ça : this["b"+this.name.charAt(1)]
    0