Home Tutorials Forums Articles Blogs Movies Library Employment Press

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

Reply
 
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 04-11-2006, 06:00 PM   #1
blobman
Registered User
 
Join Date: Dec 2005
Posts: 24
Send a message via AIM to blobman
Default Setting selection for combo box

Hello,

I have a combo box, labeled event type.
Options:
Value Text
0
1 Purchase Ringtone
2 Return Ringtone
3 Purchase Video
4 EOM


I gather the data into:
_global.eventtype = eventtype.value;


All my text fields work fine when filling in the retrieved data. But I want the drop downs to stay selected when they come back to that slide.

For example, they fill out the form, then come back to it later, and its still filled out. RIght now I only figured out how to fill out the text fields.

I tried
eventtype.defaultValue = _global.eventtype;
eventtype.default Value = _global.eventtype;
eventtype.selected = _global.eventtype;
eventtype.selectedValue = _global.eventtype;

I tried everything I could think up pretty much.

If any of you know the trick, I would be very appreciative if you shared it with me.

Thanks,
Cameron
blobman is offline   Reply With Quote
Old 04-11-2006, 06:22 PM   #2
blobman
Registered User
 
Join Date: Dec 2005
Posts: 24
Send a message via AIM to blobman
Default

Nevermind, I found it.

I dug through the forums and actually found someone with a similar problem.

instanceNameOfComboBox.setSelectedIndex(number);

Thanks All!
Cameron
blobman is offline   Reply With Quote
Old 04-11-2006, 06:26 PM   #3
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

to set a selected item in your combo box use:
ActionScript Code:
myComboBox.selectedIndex=2;//sets to 3rd time in dropdown.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 04-11-2006, 06:27 PM   #4
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

heh. just goes to show searching is usually faster than asking.... glad you found it.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 04-12-2006, 01:50 AM   #5
blobman
Registered User
 
Join Date: Dec 2005
Posts: 24
Send a message via AIM to blobman
Default

Thanks tg,

actually i was searching for this for the past 2 days, and stumbled across it by chance. Just happened to be right after I posted.
blobman 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
Dynamic calender help...... (possibly simple) adamkearsley ActionScript 1.0 (and below) 8 01-14-2006 11:22 PM
Custom text selection Mathieu_BSL ActionScript 2.0 2 11-23-2005 11:29 AM
Overridding arrow keys with respect to Selection ccl28 ActionScript 2.0 0 05-24-2005 09:01 PM
Jumping to scenes from ComboBox selection pwdoncaster Components 1 03-31-2004 03:00 AM
List Selection Box Kallisto ActionScript 1.0 (and below) 2 10-13-2001 12:13 AM


All times are GMT. The time now is 09:28 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.