Assuming you know the mapping of combobox items to URLs, you can
populate the array as follows:
mx:Array
mx:Object label=choice 1 url=http://a.b.com/url1; /
mx:Object label=choice 2 url=http://a.b.com/url2; /
mx:Object label=choice 3 url=http://a.b.com/url3; /
/mx:Array
The combo box will display choice 1, choice 2, or choice3. When
an option is selected, selectedItem.url is the url.
-Alex
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danj520
Sent: Sunday, March 18, 2007 10:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox URLs
I hope someone can help. I have a ComboBox that has a list of options.
When an option is selected, I would like a corresponding XML file to
be loaded. I assume I have to declare a string variable to assign the
URL. The ComboBox dataProvider is hard-coded with an mx:Array, but
I'm stuck on how to assign the URL from the option selected. I
appreciate any help I can get. I'm familiar with how to load the data
with HTTPService. Thanks in advance...