Of course, I was wrong (where's my head at?!). I can get several of the eval() and [] options to work but, out of curiosity, how would you pass parameters with the constructor? I can't seem to do this with my tests. Apologies if this is a dumb q'.
Adrian P. On 4/12/06, Cedric Muller <[EMAIL PROTECTED]> wrote: > > I am always wrong, but: > > see the [] ? > this is 'eval()' equivalent ... > > so, not the same than > var myStr = "com.bob.Bar"; > var myInstance = new myStr(); > > see ? > > > Are you sure? > > > > If it doesn't, then > > > > var theCommand = new commands [ commandNameToCheck ] (); > > > > definite does. It's used in ARP. > > > > On 4/12/06, Steve Webster <[EMAIL PROTECTED]> wrote: > >> Hi Chris, > >> > >>> var qname:String = "org.foo.Bar"; > >>> > >>> var x = new qname (); > >> > >> That won't work. Did you mean: > >> > >> var qname:String = "org.foo.Bar"; > >> > >> var x = new eval(qname)(); > >> > >> -- > >> Steve Webster > >> Head of Development > >> > >> Featurecreep Ltd. > >> http://www.featurecreep.com > >> 14 Orchard Street, Bristol, BS1 5EH > >> 0117 905 5047 > >> > >> > >> _______________________________________________ > >> [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 > >> > > > > > > -- > > Chris Velevitch > > Manager - Sydney Flash Platform Developers Group > > www.flashdev.org.au > > _______________________________________________ > > [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 > _______________________________________________ [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

