Flash db folks.
Okay...I have one that has me dazzed, confused, and aggrivated all at the same time.
If you create a combo box and a text field. And if you attempt to set the focus of the text field to a specified index.....after the combo box closes. The index position of the text field jumps automatically to (0,0), instead of specified numbers. See for yourself: Drag a combo box onto the stage and give it an instance name of "theCombobox" (give the label a few values so you can select something when the combo box selection drops down) . Just create an input text field and give it an instance name of "mytext". Add this line of code:
form = new Object();
form.close = function(){
Selection.setFocus(mytext);
Selection.setSelection(5,26);
}
theCombobox.addEventListener("close", form);
Make sure that you add 26 characters or more to the text field so that when you specify an index position, you are specifying a position that you can visually see highlited.
The cursor initially jumps to the specified focus index postion (Selection.setSelection(5,26)), which is specified above then jumps to (0,0). Is there a work around for this? Is there some property in the combobox component which can be changed to fix this? Any suggestions would be greatful.
Reason for correcting problem:
I am attempting to build a simple text editor using flash. Using the combo box to select font sizes and font type, and maybe font color......depends upon if the pain is worth the effort. Thanks.
--flashdumbass--