I’m trying to create a programmable display effect in which I control bunches of MovieClips nested in other MovieClips to display various combinations of seven letters in varying degrees of visual distress.
Using “dot” notation I can do what I need to by brute force, listing each and every one of them by using the instance name given to each letter’s position, like so:
[INDENT]Letter0.Aon1.alpha = 0;
Letter0.Aon2.alpha = 0;
Letter0.Bon1.alpha = 0;
Letter0.Bon2.alpha = 0;[INDENT]…[/INDENT]Letter6.Zon2.alpha = 0;[/INDENT]The nested clips go another level deeper, like so:
[INDENT]Letter0.Aon1.wide4
Letter0.Aon1.wide8[INDENT]…[/INDENT][/INDENT]As you can see, I tried to name the nested clips so it would be straightforward to address them programmatically. BUT, I am failing in my efforts to assemble strings and then change some property or another in the nested mc’s .
In a more perfect world I would be able to create Arrays-lists of clips/Sprites to act upon and then iterate through the arrays merrily creating new Sprites and tweening changes as I go. That’s kinda the point, right? :stare:
Can someone point me to a tutorial on the basics of dynamically constructing references to MovieClips or Sprites and then using them to change their properties? How does a string become a working reference to an existing MovieClip/Sprite?
TIA