I am trying to create an array of several movieclips (they
are actually just one frame graphics) that will display only one
movieclip at any given time depending on a counter value.
I setup an array with movie clip names in quotes
var ChlogoAr:Array = new
The only way i know how to make this work is to palce all the
movieclips on the stage, but outside the document area, then change
the ._y value of the one I want displayed
ChlogoAr._y = 40;
but actually, that doesnt work. Is there a way to accomplish
this? Ideally, I would want to setup a placement holder and then
display whichever movieclip that matched up with the counter. thank
you for any advice.
if the movieclips exist at the time you define your array,
use the movieclip instance names and not the strings. otherwise,
use the strings and use array notation to help flash resolve the
string names into objects:
thanks. that got it working. But I can tell that this isn't
the best way to do this. Is there a way to set up a box, much like
a dynamic text box, but for movieclips, so i can load different
clips into the desired location??
you can use a dynamic textfield to allow users to type a
movieclip _name or part of a movieclip name which you then use to
reference a movieclip. again, you would use the array operator to
help flash resolve a string to an object (like a movieclip).