Try this: accidentsModule["consist" + consistnumber.toString() + "TabSet"].["ConsistPersonnel" + consistnumber.toString()];
The period can't be a string, it needs to evaluate the first object, then use an actual period to know to drill down to find the second object. HTH, Ben --- In [email protected], "markgoldin_2000" <[EMAIL PROTECTED]> wrote: > > I have this mxml fragment: > <mx:Canvas label="Consist1" width="100%" height="100%" id="consist1"> > <accidents:consistTabSet id="consist1TabSet" creationPolicy="all"/> > </mx:Canvas> > ..... > > Later on I am trying to do this: > var PersonnelGrid:Object = > accidentsModule["consist" + consistnumber.toString() > + "TabSet.ConsistPersonnel" + consistnumber.toString()]; > > and I am getting: > Property consist1TabSet.ConsistPersonnel1 not found on > accidents.accidents and there is no default value. > > But in debug window: > accidentsModule.consist1TabSet.ConsistPersonnel1 is shown correctly. > What's wrong in my code? > > Thanks >

