Ah! I knew I was missing something! Dang. Thanks, Geoffrey!
On 3/6/06, Geoffrey Williams <[EMAIL PROTECTED]> wrote: > > Need to 'eval' num. use array notation. > > controller_mc.attachMovie("gallery_mc", "gallery_mc", 50); > theGallery = controller_mc.gallery_mc; > gallery_contains = 4; > > for (i = 0; i<gallery_contains; i++){ > num = "img_"+i; > theGallery[num]._alpha = 0; > trace(num); > } > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Flash Mel > Sent: Monday, March 06, 2006 6:31 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] String problems? > > I am writing this wrong: > > > controller_mc.attachMovie("gallery_mc", "gallery_mc", 50); > theGallery = controller_mc.gallery_mc; > gallery_contains = 4; > > for (i = 0; i<gallery_contains; i++){ > num = "img_"+i; > theGallery.num._alpha = 0; > trace(num); > } > > gallery_mc has _mc's in it named, img_0, img_1, img_2, img_3. > > What am I doing wrong here? > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com