surfish
December 29, 2003, 10:13pm
1
Can someone help a newbie make the subject combobox editable/persistent by the
user without any other form/screen used to populate it.
I merely need the user’s entries (if unique) to persist.
Here’s my vague pseudo:
//add to combobox
function add();
yourItem = myComboBox.getSelectedItem().label;
trace("You selected the item " + yourItem );
for (i=0; i < array.length; i++)
if (array* != yourItem)
{
yourItem.addItemAt[0, "yourItem"]
else
break;
}
I can’t find adeqaute documentation anywhere.
system
December 29, 2003, 10:48pm
2
Do you want the function add() to call the other things in your actionscript?
What do you mean?
system
December 29, 2003, 11:17pm
3
In an editable combobox, I just want the users entries to be there next session. Added to the array for the component.
system
December 30, 2003, 9:39am
4
can’t you just assign the selected items label to a variable and load it in the next frame?
system
December 30, 2003, 12:02pm
5
Could you show me in pseudocode?
system
December 30, 2003, 12:27pm
6
Actions for combobox:
[AS]
on (change) {
_root.yourVariable = this.text;
}
[/AS]
Then you have the selected item saved in a variable, so you can use it in another frame or something else.
system
December 30, 2003, 2:19pm
7
So, now to get it into the combobox array, how does my pseudocode look?
system
December 30, 2003, 5:49pm
8
I don’t know what psudecode is, so I’m afraid I can’t help you.
system
December 30, 2003, 6:29pm
10
The user types into the editable dropdown combobox. It is a component with flash mx 2004 pro.
I merely want the user’s entiries in the editable portion of the combobox to be retained.
Can you see that in my pseudocode?