Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-29-2006, 09:26 AM   #1
Registered User
Join Date: Jun 2006
Posts: 11
Default Combo Box Selected Item


I'm having a problem with the combobox component. When setting the selectedIndex dynamically with ActioinScript 3 then the comboBox doesn't update.
I currently have the code

comboBox.selectedIndex = 5;

any ideas?
pcbryant is offline   Reply With Quote
Old 06-30-2006, 09:23 AM   #2
Tink's Avatar
Join Date: Nov 2001
Location: London
Posts: 2,128

when u say it deosn't update, you mean it doesn't change its index?
Tink is offline   Reply With Quote
Old 06-30-2006, 10:35 AM   #3
Registered User
Join Date: Jun 2006
Posts: 11

yeah sorry i meant update.

I've fixed this problem now, you need to set off a change event from the combo box after you set the selectedIndex.
pcbryant is offline   Reply With Quote
Old 08-26-2007, 05:59 PM   #4
Registered User
Join Date: Aug 2007
Posts: 8


I know this is a late post. If you happen to see this, could I ask you to post your code with the change event? I'm having a similar problem but I dont understand how to use the change event.



stephank 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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having trouble selecting a combo box item msimmons Components 6 04-24-2008 06:35 AM
Dynamic Combo Box not remembering selected mattd Components 1 05-29-2006 10:00 PM
knowing which item in a list that is selected? Clox ActionScript 2.0 12 09-01-2005 01:21 PM
Second Combo List determined by First Combo's Selected Value smanandhar Components 2 08-23-2005 06:06 AM
How to display selected item kieserr ActionScript 1.0 (and below) 8 06-27-2005 07:43 AM

All times are GMT. The time now is 04:21 PM.

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.