Hi Bjorn
I should be
this["mcThumb" + i].txtBreed

Sebastian


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:bounce-fugli-
> [EMAIL PROTECTED] On Behalf Of Bjorn
> Sent: Thursday, 20 January 2005 7:57 PM
> To: Flash Developers List
> Subject: [fugli] Dynamically address child movieclip
> 
> I created a movieclip on the authoring stage which contains a dynamic
text
> field named "txtBreed" inside it.
> The linkage is "mcThumb"
> 
> I have a function that sort of looks like:
> public function createThumb(target:MovieClip, depth:Number, nX:Number,
> nY:Number):Void {
> 
>               mcThumb = target.attachMovie("mcThumb", "mcThumb" +
depth,
> depth); }
> 
> 
> then I use a for loop
> 
> for (var i:Number = 0; i<5; i++) {
>                       createThumb(target, i, nX, nY);
> };
> 
> 
> And I use an update function to populate the txt field inside the
attached
> movieclip
> 
> for (var i:Number = 0; i<5; i++) {
>                       mcThumb[i].txtBreed.text = info.items[i].breed;
> }
> 
> My question is am I accessing the dynamic txt field correctly with
> mcThumb[i].txtBreed.text
> 
> ??????????????
> 
> ---
> You are currently subscribed to fugli as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to fugli as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to