Depends on the structure, but, in the end, it sounds like it will boil down to having some static method for the the document class to find the movieclip, or the movieclip to find the document class. The simplest variant of this approach is the Singleton pattern.
Is there only one instance of your document class, ever? Or only one instance of your movieclip class? -- T. Michael Keesey -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carl Welch Sent: Thursday, July 27, 2006 12:09 AM To: Flashcoders mailing list Subject: [Flashcoders] pass variables between classes in AS3 I have an AS3 document class where I load and parse an xml file into an array. I would like to pass that array to a movieclip(?) class - basically its a button that will create new movieclips that will differ based on my xml array. How in the world do I get the array from the document class to other classes... arggg! as3 is blowing my mind. I've googled but I can't find anything that make sense to my as2 brain. Thanks again. -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 _______________________________________________ [email protected] 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 _______________________________________________ [email protected] 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

