Ask a Question related to Macromedia Director Basics, Design and Development.
-
Somnifer #1
enter or return troubles
I've made a simple application that generates random words. The user can
specify how many words he needs generated by typing a number into a field.
Now I'm trying to add a simple behavior that lets the user use the
return-button on the keyboard instead of having to click on the 'generate'
button with the mouse.
I'v tried this :
on exitframe
if keyPressed(return) then
gSet = (item 1 of field "fld_howmany").integer
Selector
end if
end
(gSet holds the number of items to be generated, while Selector is a custom
handler that does the generating.)
When I use the return key, it works like a charm. It also works when I press
the enter-key near the keypad, but strangely enough it also leaves a little
square in the textfield! I have no idea where this square comes from.
Could someone please explain this to me ? Or maybe how to do it properly ?
Somnifer Guest
-
FMS troubles
I'm trying to troubleshoot an app that is using FMS. It works fine for me, but my client is behind a pretty secure firewall. I had them do the port... -
Preventing a form submitting by hitting return/enter
I'm working on a form that includes asp:textbox and asp:radiobuttonlist items. When the page is rendered in a browser and the focus is on one of... -
can I use enter as a tab?
hi, can I somohow make the ENTER key work as the TAB key in Flash 5? so that in a form when I press ENTER I don't send the module but I pass to... -
Launching a script from a carriage return <cr> or "Enter" key
Hi All, I have a db I wrote a year ago and I need to tweek some functionality. I'm running with FM Pro v6.4 Question is: Can a script be... -
Tab to Enter
Hi All, I want to change default tab key with return (enter) key when move from one text box into another text box, is this possible in web form,... -
Greg Brant #2
Re: enter or return troubles
the square is a result or director trying to display the cariage-return or
line feed character as a visual character,
the font does not have this character as a visual so it places the box in
there, Its like a missing-character character
"Somnifer" <somnifer@pandora.be> wrote in message
news:c7fqj4$1rb$1@forums.macromedia.com...custom> I've made a simple application that generates random words. The user can
> specify how many words he needs generated by typing a number into a field.
> Now I'm trying to add a simple behavior that lets the user use the
> return-button on the keyboard instead of having to click on the 'generate'
> button with the mouse.
>
> I'v tried this :
>
> on exitframe
> if keyPressed(return) then
> gSet = (item 1 of field "fld_howmany").integer
> Selector
> end if
> end
>
> (gSet holds the number of items to be generated, while Selector is apress> handler that does the generating.)
>
> When I use the return key, it works like a charm. It also works when Ilittle> the enter-key near the keypad, but strangely enough it also leaves a> square in the textfield! I have no idea where this square comes from.
>
> Could someone please explain this to me ? Or maybe how to do it properly ?
>
>
>
>
Greg Brant Guest
-
Mark A. Boyd #3
Re: enter or return troubles
"Somnifer" <somnifer@pandora.be> wrote in
news:c7fqj4$1rb$1@forums.macromedia.com:
I would trap the key in the keyDown event. That way you can completely> When I use the return key, it works like a charm. It also works when I
> press the enter-key near the keypad, but strangely enough it also
> leaves a little square in the textfield! I have no idea where this
> square comes from.
>
> Could someone please explain this to me ? Or maybe how to do it
> properly ?
prevent it from getting into the field or text member. Something like:
on keyDown me
if (the key = RETURN) or (the key = ENTER) then
do something
else
PASS
end if
end
--
Mark A. Boyd
Keep-On-Learnin' :)
Mark A. Boyd Guest



Reply With Quote

