Naju
Naju

Reputation: 1541

How to access the value of the dynamically created element in AIR

I have to add multiple HBoxw dynamically which contains the following set of components...

I'm trying to access the value of each dynamically created element?How to do?

                            var myHBox:HBox=new HBox();             

            var txt1:ComboBox=new ComboBox();
            var txt2:TextInput=new TextInput();
            var txt3:TextInput=new TextInput();
            var txt4:TextInput=new TextInput();
            var txt5:TextInput=new TextInput();
            var txt6:TextInput=new TextInput();

Upvotes: 1

Views: 96

Answers (2)

Naju
Naju

Reputation: 1541

Please refer the following link,It will help to you..

Adobe containers intro

Upvotes: 0

Yordan Yanakiev
Yordan Yanakiev

Reputation: 2604

the normal RTTI order would be parentName.parentName.(and so on and on).objectName but in the case you are already having the object names, there is no need of complex RTTI access.

If this is just an example, I would suggest you to use a object which is responsible for storing your objects, and later to access them easy. - Object like HashMap or Dictionary or even something less complex at the first place like Vector arrays or so.

Upvotes: 1

Related Questions