Nevermind, for some reason it didnt work in the past, but now its
working perfectly.
Sweet!



--- In [email protected], "Daniel" <[EMAIL PROTECTED]> wrote:
>
> Im using the method getDefinitionByName so I can get instances of
> classes which I only know their name.
> Now, this classes always receive 2 parameters in their constructor.
> My question would be, how can I pass these parameters using the method
> getDefinitionByName, somehing like:
> 
> var name:String = "Daniel";
> var nickname:String = "danboh";
> var ClassName:String = "AddClient"
> var ClassReference : Class =
> getDefinitionByName("com.client."+ClassName) as Class; 
> var instance : Object = new ClassReference(name, nickname);
> 
> Any suggestions???
> 
> Thanks for your help!
>


Reply via email to