What are you getting on your cb? It sure looks like my_schema[0] should
work, unless you have to hack it like item1= my_schema[0] and then add item1
to your cb.
just an idea.
On 12/5/06, Fratiman Vladut <[EMAIL PROTECTED]> wrote:
Hi!
This is some example for simplicity.
I have one combo box named my_cb.
I have two arrays, one named my_schema and second my_data.
var my_schema:Array = new Array("data","label");
var my_data:Array = new Array();
I want to populate combo box in this mode:
my_data.addItem({my_schema[0]:"Some data", my_schema[1]:"Some
strings"});
my_cb.dataProvider = my_data;
My intention is to obtain for my_data the form
my_data.addItem({data:"Some data", label:"Some strings"});
but not work.
Shure, can do that without this, but i want to suggest what i want to
do, because in a more complex situation, will build an function that
populate data grid or combo box based on a given schema.
How i can resolve that?
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
--
...helmut
helmutgranda.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com