hmm i tried storing a reference to the class in a variable, like var myClass = com.packageName.MyClass > > myClass.create()
and i got this message: Static members can only be accessed directly through classes there's gotta be a way to pull this off. On 12/29/05, Rich Rodecker <[EMAIL PROTECTED]> wrote: > > I know you can instantiate objects by doing: > > var myObj = new _global[className](); > var className = "TestClass"; > > but is it possible to call a static method of a class in a similar way? > Im trying these two ways, and its not working for me: > > _global[iconName].create() > _global[iconName]().create() > > > if I try and do a trace on the class like trace( _global[iconName]) i get > undefined. The icon classes are subclasses of movieclip so that might make > a difference. > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders