I've done exactly that using eval() before. Give it a try. Cheers,
Mischa On 1/30/06, franto <[EMAIL PROTECTED]> wrote: > Hi all, > > maybe it is easy, maybe not, but i cant figure it out now, and i need it :) > > when i got class e,g pkg1.pkg2.pkg3.className > > i can make new instance in this way > new pkg1.pkg2.pkg3.className() > > but i want to make it from string > > this dont work of course > _global['pkg1.pkg2.pkg3.className'](); > > but this work: > _global['pkg1']['pkg2']['pkg3']['className'](); > > can this done automatcally? i want jsut read string from XML and > create new class instance, > but i cant do it now. > Any help is appreciated :) > > ----------------------------------------------------------------------------------------------------------------------------------------------------------------- > Franto > > http://blog.franto.com > http://www.flashcoders.sk > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

