There's no "_width" in AS3.. it's "width".
Array access notation should work fine:
photoStrip_mc["thumbnail" + i + "_mc"].width;
As a sidenote, you're better off storing references in an array for easy access
later.
myClips = new Array();
var len:uint = 10;
for(var i:uint=0; i<len; i++) {
var mc:MovieClip = new MovieClip();
photoStrip_mc.addChild(mc);
myClips.push(mc);
}
If you need to access the clips at some later time, just loop through the
myClips Array.
var len:uint = myClips.length;
for(var i:uint=0; i<len; i++) {
var mc:MovieClip = myClips[i];
mc.width = someValue;
}
regards,
Muzak
----- Original Message -----
From: "TS" <[email protected]>
To: "'Flash Coders List'" <[email protected]>
Sent: Sunday, March 29, 2009 3:09 AM
Subject: [Flashcoders] AS3 Object reference
Trying to cylec through some objects. This doesn't seem to work in AS3 as it
does in AS2. Is there an equivalent in AS3?
photoStrip_mc["thumbnail" + i + "_mc"]._width
Thanks ahead, T
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders