| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: May 2002
Posts: 5
|
I want to know what properties of the combo box in flash mx that return the name of the combo box?
I have 2 combo box on a page and I need to know which one the user picked. Thanks |
|
|
|
|
|
#2 |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
i think _name will return the instance name of the object. if you haven't supplied an instance name, then you get nothing in return.
__________________
tg --- what the hell was i thinking? |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: May 2002
Posts: 5
|
I don't think it works
This is my code function showalbum () { getURL(_name.getSelectedItem().data,"_blank"); } Is there something wrong with my code? Thanks |
|
|
|
|
|
#4 |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
i think i missunderstood your question.
if you were to put this code on the first frame of your program, it will return the return all of the instance names within the scope of this for in loop: ActionScript Code:
in the case of your combo box i believe you need to assign an instance name to the combobox (in the properties panel). then in your code use the instance name you gave it. getURL(mycomboboxInstance.getSelected......
__________________
tg --- what the hell was i thinking? Last edited by tg; 05-23-2002 at 11:01 PM.. |
|
|
|
|
|
#5 |
|
Registered User
Join Date: May 2002
Posts: 5
|
Ok, i'm still confused how to use that in my function.
iF you want you can check my website first so you know what is my problem. it's www.andrewkurniadi.com, and then go to my pictures there will be 2 combo box and usually i use two dofferent function for 2 different combo box function showusa () { getURL(usa.getSelectedItem().data,"_blank"); } and function showother () { getURL(other.getSelectedItem().data,"_blank"); } but now i want to use one function to handle both combobox. Can you help me with it? Thanks Last edited by akur; 05-23-2002 at 11:33 PM.. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lookup Combo Box possible? | kgkuana | Components | 1 | 12-04-2004 05:50 AM |
| combo box | wilfolaram | Components | 4 | 11-08-2004 01:05 AM |
| combo box | dcullinane | Components | 9 | 06-21-2004 12:08 PM |
| how to link from list box to combo box? | jacquelineongs | Components | 1 | 03-25-2004 10:29 PM |
| Combo box problem | TheBuzz | Components | 3 | 03-18-2004 01:43 AM |