I believe they're all showing up because you're using "swapDepths".. so you're making it at depth 90, and then swapping it to 1 (where nothing is).. then the next is made at 90 and swapped to -1, and the next at 90 and swapped to -2.. They're not actually all on the same depth at the same time.
That's my call, anyway :) -----Original Message----- From: Andrew Mercer [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 December 2003 5:14 pm To: Flash Developers List Subject: [fugli] Re: add component - part 3 every success is followed by another wall! I now have : var tabArray = new Array(); attachMovie("tabButton_mc", "newButton0_mc", 90, {label: 'One'}); newButton0_mc._x = 50; newButton0_mc._y = 50; newButton0_mc.swapDepths(1); tabArray[0] = newButton0_mc; attachMovie("tabButton_mc", "newButton1_mc", 90, {label: 'Two'}); newButton1_mc._x = 150; newButton1_mc._y = 50; newButton1_mc.swapDepths(-1); tabArray[1] = newButton1_mc; attachMovie("tabButton_mc", "newButton2_mc", 90, {label: 'Three'}); newButton2_mc._x = 250; newButton2_mc._y = 50; newButton2_mc.swapDepths(-2); tabArray[2] = newButton2_mc; Q1) The all have the same depth but are all showing up. I thought the first time I trided it it didn't work, and from what Mr Muller says it should work either. Q2) What is the best way of creating an array of my movie clips? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andrew Muller Sent: Wednesday, 17 December 2003 2:05 PM To: Flash Developers List Subject: [fugli] Re: add component - part 2 You can only have one object per depth. Andrew Mercer wrote: > but I should be able to have multiple components per depth - no? -- Andrew Muller Senior Macromedia Certified Instructor - ColdFusion, Flash Certified Advanced Macromedia ColdFusion Developer - CF5, CFMX Certified Macromedia Flash Developer - FL5, FMX Daemon Internet Consultants Macromedia Premier Solutions Partner Macromedia Certified Training http://www.daemon.com.au/go/training T: 61 2 9380 4162 F: 61 2 9380 4204 17 Roslyn Gardens Elizabeth Bay NSW 2011 AUSTRALIA Daemon: Serious Web Development FarCry, the open source CMS for ColdFusion MX http://farcry.daemon.com.au/ --- You are currently subscribed to fugli as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to fugli as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 Disclaimer: This email and any attachments may be privileged and confidential information intended solely for the use of the recipient. Bendigo Senior Secondary College cannot assure the recipient that the integrity of this communication has been maintained nor that it is free of errors, viruses, interception or interference. Any representations or opinions expressed are those of the individual sender, and not necessarily those of Bendigo Senior Secondary College. If you believe this email is unlawful, inappropriate or received in error please notify [EMAIL PROTECTED] --- You are currently subscribed to fugli as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
