Create an object in the global scope to contain your variables, let's call it "_global". Then reference it as: _global[myVar];
Or if you don't like the idea of a global object, create a dynamic class to do the same. Derek Vadneau ----- Original Message ----- From: "Chris McFadyen aka Grayson Carlyle" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, July 11, 2006 11:31 AM Subject: [Flashcoders] Dynamic access of top-level variables in AS3 flash.display.Stage is a sealed class and can't contain swf-passed variables. -------------------------------- QUOTE -------------------------------- or what about stage[myVar] Charles P. _______________________________________________ [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

