Loading text file into combo box - using Zinc
I've been searching the forums but can't find anything that answers this so I wondered if anyone can help me.
I've created a Flash movie where the user chooses a colour from a combo box, and on the press of a button the results appear in a text box and a square is coloured in with the chosen colour. Then they can click on a 'save' or 'save as' button to save the results to a text file. They can then load the text file back in and the saved results are displayed in the text box. I've used Zinc to do this bit.
This all works fine, but where I'm stuck is getting the loaded results to also change the coloured square and the combo box. For example the user could select 'blue' and then save it as a text file - they could then close the application and come back to it later. When they come back to it, they can reload their text file containing the 'blue' answer and it puts thae word 'blue' into the text box. But the square is still white and the combo box still shows its default of 'choose colour'. I'd like the combo box and the square to read what is in the text box and change accordingly, eg. the box to turn blue and the combo box to have blue selected.
The attached file might explain it more clearly - ignore the design, I'm just trying to get the code sorted first!
If anyone can help or point me in the right direction I'd be very grateful.
Thanks very much.