try

var PersonnelGrid: Object = 
accidentsModule[ "consist" + consistnumber]["TabSet.ConsistPers onnel" + 
consistnumber];


----- Original Message ----
From: markgoldin_2000 <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, January 29, 2008 8:47:01 AM
Subject: [flexcoders] Still very confused with object referencing

I have this mxml fragment:
<mx:Canvas label="Consist1" width="100%" height="100% " id="consist1" >
<accidents:consistT abSet id="consist1TabSet" creationPolicy= "all"/>
</mx:Canvas>
.....

Later on I am trying to do this:
var PersonnelGrid: Object = 
accidentsModule[ "consist" + consistnumber. toString( ) 
+ "TabSet.ConsistPers onnel" + consistnumber. toString( )];

and I am getting:
Property consist1TabSet. ConsistPersonnel 1 not found on 
accidents.accidents and there is no default value.

But in debug window:
accidentsModule. consist1TabSet. ConsistPersonnel 1 is shown correctly.
What's wrong in my code?

Thanks





      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to