Hi,
try this
<mx:Script>
var data= [ {label:"A", data:A}, {label:"B", data:B}];
var selectedItem:Object;
</mx:Script>
<mx:HBox >
<mx:ComboBox dataProvider="{data}" change="selectedItem=event.target.selectedItem"/>
<mx:VBox >
<mx:Label text="{selectedItem.label}"/>
<mx:Label text="{selectedItem.data}"/>
</mx:VBox>
<mx:Label text="{selectedItem.label}"/>
<mx:Label text="{selectedItem.data}"/>
</mx:VBox>
</mx:HBox>
sarvesh610 <[EMAIL PROTECTED]> wrote:
Hi,
I am new to Flex, have been a J2EE person for a longtime. I have
developed an application which queries the database and returns me a
value object which has a list and vector. Now I need to use Flex as a
user interface. I have called the class using the remote-object, but
then how do I use the List and the Vector to display.
Also I am a bit confused about the <mx:ComboBox>, how can I use the
dataprovider to use my value object to display the companyDesc as the
label and data as the ric if I am using the <mx:Object>
Thanks
S
Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

