This is a discussion on "How to create a country and state combobox" within the Flash & Multimedia Forum section. This forum, and the thread "How to create a country and state combobox are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
How to create a country and state combobox
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi! I'm currently creating a website which need the user to fill in a form that have country and state. I would like to create a combobox for it. The user should choose their country 1st before the state. Once they had choose theiy country, the state combobox will appear and show a list of all the state base on the country.
However, I do not have any experience in create combobox before. I do find for the example and other source from internet, but I found that they are too complex and hard for me to understand. Do anyone know where can I find a more simple tutorial that show how to create combobox step by step? And is it possible to create the combobox only in flash? without using other programme such as php or asp... Last edited by Learner; Jul 26th, 2007 at 07:02. |
|
|
|
|||
|
Re: How to create a country and state combobox
Well, this is by no means something that is "easy" it'll take some thought around how you would want this to look.
Flash has a components window that will automatically let you create combo boxes and list specific values. You could create a combo box with an instance name of "Country" which lists all of your countries. And one for each country which lists the states. (i.e. USA_states) Set all of the state combo boxes to visible = false. Then, use some actionscript to say if "country" = USA, then make the USA_states combo box visible and so on for each country. I'm not sure of any tutorials, but give this idea I try and we can walk you through any issues you might have.
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: How to create a country and state combobox
Thanks for your reply.
Well I found the components that you mentioned which create the combobox automatically and i got a code from other source which I think is more simple and I can understand abit and the original file is look like this.
Can anyone edit it for me or have any other suggestion code for this combobox? |
|
|||
|
Re: How to create a country and state combobox
Can you post the .fla and I will mess around with it a bit over this weekend.
You should be able to use some if/then statements to make this work properly.
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
![]() |
| Tags |
| combobox |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| combobox | ahwell | Flash & Multimedia Forum | 3 | Jan 25th, 2008 10:53 |
| combobox component | ahwell | Flash & Multimedia Forum | 0 | Sep 11th, 2007 17:21 |
| SEO for your country | Pádraig | Search Engine Optimization (SEO) | 5 | Jul 18th, 2007 16:19 |
| Country, postcode etc - mysql tables | jimz | Databases | 2 | Jan 30th, 2007 17:02 |
| A simple QUES : Host from which country is the best ? | amandeep | Hosting & Domains | 3 | May 29th, 2006 10:31 |