A child DisplayObject can only have one parent, so you can't add 'item' to more than one Canvas. When you add it to the second one it gets removed from the first, etc.
You need to implement a clone() method to make copies of your items. Gordon Smith Adobe Flex SDK Team ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kenny14390 Sent: Tuesday, March 25, 2008 6:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Adding Children to Canvases I tried using "for" loops to iterate through the days string, but that will not even display any of the days or none will display correctly. Interestingly, if I reverse the order of the "if" statements, like this: if (days.search("U")!=-1){ sun.addChild(item); } if (days.search("S")!=-1){ sat.addChild(item); } if (days.search("F")!=-1){ fri.addChild(item); } if (days.search("R")!=-1){ thurs.addChild(item); } if (days.search("W")!=-1){ wed.addChild(item); } if (days.search("T")!=-1){ tues.addChild(item); } if (days.search("M")!=-1){ mon.addChild(item); } then I get the opposite problem and only the first day in the string is displayed and the last ones are ignored. If there is only one day in the string, then it displays fine. Help!