i used the code to add moviclip from library --> it is work
what is the new intance name?
i tried to change the color but it is not reconize the movie clip name.
Can you provide the full relevant code so we can understand better what's going on?
i want to do a color book
i load from the library the picture (pic1)
var color= "#ffffff";
Dynamically instantiated movieclips doesn't have a directly accessible instance name unless you create one. You create one by assigning the reference to the movieclip to a property on its parent timeline (or anywhere really, but the parent timeline is most intuitive). E.g.--
var newPic = new lib.pic1();
root.emp.p37 = newPic;
By the way, the entire point of bracket notation is to perform variable interpolation. For pure string literals it's pointless and you should just use dot notation. Like this:
root.emp["p" + 1).bla bla bla
thank you it is worek