Ok that was my other question. Bouncing back from PHP to AS3 is making me
insane. Thanks for the info. Arrays are def the way to go.

Thanks again, T


-----Original Message-----
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak
Sent: Saturday, March 28, 2009 7:50 PM
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 Object reference

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" <sunnrun...@gmail.com>
To: "'Flash Coders List'" <flashcoders@chattyfig.figleaf.com>
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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to