|
-
Avoid Green Outline in input boxes when tabbing
Hi there!
I was just wondering if any of you knows how to avoid this:
I have a few textAreas (input fields) in a form.
When I click on the Tab key, the focus shifts to the textArea. And along with this, a green outline comes around the textArea... How can I avoid the textArea outline color? I guess there must be a piece of AS out there which would help, it's just I did not find it and Official Docs won't say much about it.
It's kinda funny it does not happen so if compiled the movie under AS 1.0. It only has this behaviour when published with AS 2.0 (and perhaps AS 3.0 donno).
Thanks in advance!
-
It has to do with the component skins. I know you can change them using the library in AS3, but I'm not sure how to do this in AS2
Check out my firefox theme "PacStrata" here
-
check tabIndex in the liveDocs.
gparis
-
Thanks for your answers.
Geneviève, I'd already had a look at those docs, and nothing was found in order to keep these green outlines from turning up when tabbing.
Don't think it's a "component matter".
I have a compilation of some skinning lines of code to tweak them, and none of them will remove this annoying green outline.
Thanks again for your time,
-
You could always add your own outilne on top of it.
gparis
-
-
Thanks again for your answers.
You could always add your own outilne on top of it.
Good idea, but difficult in my case since the textbox in on a changing background.
This works IF there are no components implied. In my case, my form includes a ComboBox. If I remove the ComboBox, the green/yellow lines won't turn up.
This is very peculiar since these lines won't show up either if I compile my movie using AS 1.0
However, in order to use my ComboBox and other features, I need to compile it using AS 2.0.
After Googling again for a while, I've been able to see there are other people around with the same problem exactly.
The easy example to see it yourselves is easy: New movie, add 2 input textboxes, name them f1 and f2. Run the movie and start Tabbing...no green/yellow outlines. Now add a ComboBox....run the movie again, Tab, and there you are the green lines... 
Add "_focusrect = false;" and do all kind of combinations "f1._focusrect = false;", etc...the green outlines will still be there...(??!?)
Any idea??
Thank you.
-
I had this problem myself a little while ago. I solved it by disabling the whole tab-function:
TextField.prototype.tabEnabled = false;
Then I made a custom function to serve the same purpose. It does require a few more lines though
-
FOUND IT!:
PHP Code:
drawFocus = false;
Thanks everybody for you interest!
Cheers,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|