Re: [Flashcoders] String problems?
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 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 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
RE: [Flashcoders] String problems?
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; imailto:[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; ihttp://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
Re: [Flashcoders] String problems?
What is it you're trying to do? Your code is written correctly to get the result you described. Is that not the result you were after? Flash Mel wrote: I am writing this wrong: controller_mc.attachMovie("gallery_mc", "gallery_mc", 50); theGallery = controller_mc.gallery_mc; gallery_contains = 4; for (i = 0; ihttp://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 -- ~ Bob Leisle Headsprout Software & Engineering http://www.headsprout.com Where kids learn to read! ___ 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