all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

Need help with Dynamic comboBox dataProvider


Need help with Dynamic comboBox dataProvider 3dmacguy
7/18/2004 8:27:36 PM
flash actionscript:
Hi,

I have two comboBoxes. The first allows the user to select a month. The second
comboBox allows you to select a news article. Now, the articles shown in the
second comboBox depend on which month is selected in the first. I have two
arrays, one for June and one for July. If I say...

cb2.setDataProvider(julyarray);

it works fine. But what I am having a problem with is figuring out how to make
it so that the dataProvider array will switch if the user selects a different
month from the first comboBox. Can anyone help me out on this? Any help or
coding examples would be greatly appreciated!

-Josh
Re: Need help with Dynamic comboBox dataProvider Jack.
7/18/2004 10:04:04 PM
i did something similiar with listboxes,
the code / logic "might" help ;)

Re: Need help with Dynamic comboBox dataProvider 3dmacguy
7/19/2004 12:19:58 AM
Hey Jack. Thanks for the example file. It was.....a bit beyond me at the moment
:) But it's definitely something for me to study. Thanks for your help. I got a
much simpler solution (using an array from within flash and no from an external
..txt file) over at actionscript.org. Thanks again. But for now, problem solved.
Link to solution is below:


http://www.actionscript.org/forums/showthread.php3?s=183b85e824734efb96d3de2a91b
2f93e&t=51104

-Josh
Re: Need help with Dynamic comboBox dataProvider johnericmcneal
10/4/2004 10:16:51 PM
3dmacguy - i'm having the same problem myself. i went to the web page you
posted but i dont have mx 2004. can you post your findings... or back save the
file or... something. i've been looking for this answer.

thanks.
john
AddThis Social Bookmark Button