10-18-2002, 05:10 AM
|
#1
|
|
Registered User
Join Date: Oct 2002
Location: Canada
Posts: 5
|
Combobox UI Components AND TAB
Hi all!!
I browse a lot of forums since 2 hours to find a way to set the "famous" Tab index for the combobox...!!
I also search for a way to set the focus to a UI Combobox....!!
I do not understand why Macromedia never think to make those properties standardized as the ones of the textboxes!!??
Why make it simple when you can make it hard!!
Thank in advance to every ones!!
|
|
|
10-21-2002, 07:20 PM
|
#2
|
|
Registered User
Join Date: Oct 2002
Location: Canada
Posts: 5
|
As I see...
No one here can answer to my question!!!!!????
|
|
|
10-21-2002, 09:44 PM
|
#3
|
|
Registered User
Join Date: Sep 2002
Location: Los Angeles
Posts: 17
|
are you testing in a browser or on your desktop standalone player? because you cannot tab to components outside a browser, even after you set a custom tab order. publish your file with HTML and open it up in your browser. if you set the tab order correctly, it will work!
I learned this the hard way....and yes, did post it here about a month ago.
good luck & hth,
|
|
|
10-21-2002, 09:46 PM
|
#4
|
|
Registered User
Join Date: Sep 2002
Location: Los Angeles
Posts: 17
|
|
|
|
10-21-2002, 10:13 PM
|
#5
|
|
Registered User
Join Date: Oct 2002
Location: Canada
Posts: 5
|
Ok mercuryshell!
But as I written, how to set a Tab index for a combobox????? + ???
And how to set the focus to a combo box???? + ??E100,000
I was wondering to swap the MS.Net Web controls to the Flash ones.... But I think that I'll keep the .Net ones!!
|
|
|
10-22-2002, 04:28 PM
|
#6
|
|
Registered User
Join Date: Sep 2002
Location: Los Angeles
Posts: 17
|
ah, I see, you want to Tab within the list as well.
in my interfaces I've been tabbing to my comboboxes, and then once the cursor is there, the arrow up/down keys will take the user up and down the list, in lieu of a mouse action. that's the combobox built-in behavior.
I don't know why you would need to use the tab key within a list instead of the arrow key to navigate, but maybe you could try setting up a custom tab order and then assigning it to the index numbers of the list items using the following method:
myComboBox.setSelectedIndex(index)
or you could crack open the code for the combobox and try to replace the scripts for the arrow keys to the Tab, but that would be pretty tricky.
sorry couldn't be more help, good luck!
p.s. if you set up a custom tab order, your combobox will be focused when it's tabbed to. but it ONLY WORKS IN A BROWSER.
Last edited by mercuryshell; 10-22-2002 at 04:30 PM.
|
|
|
10-22-2002, 05:17 PM
|
#7
|
|
Registered User
Join Date: Oct 2002
Location: Canada
Posts: 5
|
No...
That's not what I want... Hihihihi
I was badly explained may be?! Yep!
I have many comboboxes on my page...
As the text fields, I would like to set the Tab index... But I read all the Flash help witouht find any properties of something like the text fields Textfield.Tabindex = ?? for the Combobox! There is no Combobox.TabIndex property??!!
Also for setting the focus to a combobox is there someting like the textfield: Selection.Setfocus(Combobox???)
Thanks!
|
|
|
10-23-2002, 03:43 PM
|
#8
|
|
Registered User
Join Date: Sep 2002
Location: Los Angeles
Posts: 17
|
you need to write to the INSTANCE NAME of the symbol - textfield, radiobutton, combobox or whatever - when setting the Tab Order, so you make a frame script like this:
// begin Tab Order
useCase_txt.tabEnabled;
useCase_txt.tabIndex = 0;
caseStatus_mc.tabIndex = 1;
radioNon_rb.tabIndex = 2;
adCheck_combo.tabIndex = 3;
retCode_txt.tabIndex = 4;
radioConf_rb.tabIndex = 5;
clDisplay_lb.tabIndex = 6;
// end
(and remember, tab orders using anything other than text fields must be run thru a browser in order to work. yes, that means it won't work in Test Movie OR in the Standalone, at least in Windows OS, in my experience so far. think I had it working on my Mac.)
so when the user Tabs to the componenet, it is in focus. I don't know how to do a "set focus" to a component, I tried it, too. that doesn't mean there's not a way, tho. ;-)
hth, good luck, I'm out.
|
|
|
10-23-2002, 11:13 PM
|
#9
|
|
Registered User
Join Date: Oct 2002
Location: Canada
Posts: 5
|
Thanks Mercuryshell...!
That's a little bit amazing that Macromedia do not put that on theire help file!?
When I work with the Flash stuff, it's soo hard (hard by the complexity) that it get me back in the past in the DOS programming where you had to code all your objects yourself like listbox or combobox...
That's not a technology who can replace the html objects yet.
By the way, this forum for exemple use html fields and objects, because it's far easyer to use...
|
|
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 12:27 AM.
///
|
|