Hello :)

in AS3 you use directly variables in global when you use a new .as !


package
{

    static globalVariable = {} ; // your in topLevel !!!


    public class MainClass()
    {
              // first code in your Application

             // load your xml and use your global variable !!!

    }




}


EKA+ :)


2006/7/10, Chris McFadyen aka Grayson Carlyle <[EMAIL PROTECTED]>:

In doing web apps, we pass a lot of variables directly to the swf files.
Some of these are dynamically matched using eval() to write variable
values
into strings.

Example: Reading settings from an XML file, with %var% in the node values;
we search for for these and match up "%var%" to eval("var").

Without using eval(), _root[var] would've worked, but _root is gone in AS3
as well.  Is there some other method I can use in AS3 to access top-level
variables dynamically?
_______________________________________________
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

Reply via email to