>>You'd need to instantiate the other class and then access it, 
>>like this:

That's one way, the other way is to use static variables:

package com
{
        class MyClass
        {
                public static var name:String = "Johnny";
                
                //or declare as a public constant:
                public static const FRUIT:String = "apple";
        }
}


import com.MyClass

trace(MyClass.name);
trace(MyClass.FRUIT);


Jason Merrill 
Bank of America 
Global Technology & Operations & Global Risk L&LD 
eTools & Multimedia 

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

 
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to