Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : input field- remove focus or activation...?


glance.ca
4/12/2004 10:17:35 PM
I have an input text field for users to enter a page number which they would
like to skip to. After someone types a number in though, if they then press the
next or previous buttons more than once, they need to move the mouse between
clicks for the button to work. Before the text box is activated this is not a
problem. Does anyone know how I can remove the activation of the text field
after the user clicks the 'go' button, or know of another way to solve this
problem? the url for my project is:
http://www.glance.ca/lettercomps/CanadianBooks.html

Thanks,
Lance
mandingo
4/14/2004 12:36:56 AM
try adding this on press of the buttons...

Selection.setFocus(null);

this will remove focus from any active text field

Yahafiz
9/1/2005 12:00:00 AM
kglad
9/1/2005 12:00:00 AM
what are you trying to do? your url is a 404 and your question makes no sense:
if someone clicks on a button, the button has focus and you don't need to move
a mouse to enable repeated button clicks.

if you're having a problem, it's because of your coding. you must be coding
something that's not working the way you want but i can't figure out what that
is.

however, because you state everything works well when your textfield contains
no text, you may be able to solve your problem by resetting the textfield's
text property when that button is pressed.
odahjay
10/26/2005 9:03:43 PM
Has anyone ever figured out the way one is supposed to remove focus from a
textarea. Is their an actual way? I want to click out of the area and have it
loos focus but this wont happen.

Thanks in advance.

Joe Bob
AddThis Social Bookmark Button