Yes, any property of an AS object can be referenced like:

obj.prop 

But can also be referenced like this:

obj["prop"] 

The prop part here being a string.

Ryan

--- In [email protected], "markgoldin_2000" <[EMAIL PROTECTED]> wrote:
>
> Actually this works:
> var Consist:Object = Object(accidentsModule["ConsistPersonnel" + "1"]);
> 
> --- In [email protected], "markgoldin_2000" 
> <markgoldin_2000@> wrote:
> >
> > I am trying to put something like this:
> > var Consist:Object = Object("accidentsModule.ConsistPersonnel1");
> > to use Consist later as an object reference. Obvioulsy it's not 
> working.
> > Is there a way of creating a string programmatically to reference 
> > objects with it?
> > 
> > Thanks
> >
>



Reply via email to