Ids need only be unique within scope.  Implement your functionality in
components and you shouldn't have any problem with id collisions.

 

You can have:

myValue

myComp1.myValue

mvComp2.myValue

...etc.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Monday, January 14, 2008 9:34 AM
To: [email protected]
Subject: [flexcoders] Controls and name uniqueness

 

I understand that all objects names in one application have to be 
unique. In my application I have a tabset where a user can add/remove 
tabs. These dynamic tabs have identical components on them: Forms, 
grids, and etc. The only difference is names - have to be unique. Is 
ther a way to create components that are somehow local to containers 
that they are in? That way I could use same generic code for each 
dynamic tab referencing controls using parents names. Otherwise I have 
to design all dynamic tabs in advance in order to create needed code. 
Any ideas?

Thanks

 

Reply via email to