Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-09-2002, 12:51 AM   #1
mudos
Registered User
 
Join Date: Jun 2002
Location: usa
Posts: 6
Default help with a combo box??

ok here is my problem....i got a e_commerce site that is done...yet....ofcourse... there is one problem...combo box...i have a combo box that adds prices to a shopping cart...is there a way for this same combo box to add the label information along with the data. here is a file of what im doing...please help.
Attached Files
File Type: zip combo_box.zip (96.8 KB, 103 views)
mudos is offline   Reply With Quote
Old 06-09-2002, 02:41 PM   #2
leblob
Registered User
 
Join Date: May 2002
Location: France
Posts: 50
Default

you might use the getSelectedItem() method of the combobox object.

from the actionscript dictionnary :
Quote:
Description


Method; returns the currently selected item as an object with the properties label and data, or returns undefined if no item is selected.

Example

The following code retrieves the label and data of the item currently selected in comboBox1.

trace(comboBox1.getSelectedItem());

The following code retrieves the label of the item currently selected in comboBox2.

trace(comboBox2.getSelectedItem().label);

The following code retrieves the data of the item currently selected in comboBox3.

trace(comboBox3.getSelectedItem().data);
is that what you're looking for?
leblob is offline   Reply With Quote
Old 06-09-2002, 03:06 PM   #3
Abelius
Worldkit Vote Holder
 
Abelius's Avatar
 
Join Date: May 2002
Location: Miami - USA
Posts: 815
Send a message via Yahoo to Abelius
Default

Code:
myComboBox.getSelectedItem().label += myAdditonalInformation;
__________________
Cordially,
Abelius
Commuting between Birmingham, AL, Miami, FL and Beijing, China
http://www.worldkit.com
Abelius is offline   Reply With Quote
Old 06-09-2002, 07:11 PM   #4
mudos
Registered User
 
Join Date: Jun 2002
Location: usa
Posts: 6
Thumbs up thanks!!!!

you guys saved my ass.....thanks to both... and thanks for giving me my first actionscript.org victory. i learned alot from this.
mudos is offline   Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML to combo box to XML to combo box... JoeFlo Components 1 12-03-2007 03:39 AM
Combo box and list box skinning zns72 Components 1 06-09-2007 05:50 PM
Combo Box MC crazybuffalo Components 1 05-30-2007 11:48 PM
Trigger and event from combo box item? Dougiemcn Components 3 05-21-2007 07:35 AM
Combo Box Simple question. mitchrichie Components 1 05-14-2007 06:20 AM


All times are GMT. The time now is 07:55 PM.


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