Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-01-2005, 03:24 PM   #1
Registered User
Join Date: Jun 2005
Posts: 28
Default 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.
Attached Files
File Type: zip one_test4.zip (129.2 KB, 389 views)
clare73 is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 07:23 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.