Try this:
lista.addItem ({label:categorias[n + 1], data:categorias[n + 0],
otherData:categorias[n + 3]});
Lista.selectedItem.otherData;
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MJorge
Sent: Friday, September 01, 2006 10:47 AM
To: Flashcoders mailing list
Subject: [Flashcoders] ListBox component, get Data (2nd Value)?!
Need a tiny help here folks,
I have a listBox which i am inserting items with one label and two values of
data in it.
Like this:
lista.addItem (categorias[n + 1], categorias[n + 0], categorias[n + 3]);
Now, how can i get the value of my data (2nd one) ?!
At first i haded only one value in the data and was doing this:
foto = _root.categoria1.lista.getItemAt (z).data; (which was (is) working,
but now i need to had another value, how can i get the second one?)
Thanks,
--
------------------------------------------------
Mário Jorge
Icq: 164987050
Msn: [EMAIL PROTECTED]
Blog: http://www.beedigital.net/blog
------------------------------------------------
_______________________________________________
[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
This e-mail and any attachment(s) are intended for the specified recipient(s)
only and are legally protected. If you have received this communication in
error, please "reply to" sender's e-mail address with notification of the error
and then destroy this message in all electronic and physical forms.
_______________________________________________
[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