From: forums.macromedia.com on
Hellow folks,

I looked around in ShowMe files for help but couldn't find what i really
need. I don't know how to do this:

a field that has a text already (for example "bobby123"), and I want the
user to use the backspace key to delete the entry and replace it with
"bobby789".

how can i program that? a sample code will be appreciated.

thanks in advance,
Omar


From: Erik L. **Community Expert** on
Look at the PresetEntry function. You can use that to pre-fill a
text-entry field. Doing that also pre-selects (highlights) the text, so
if the user starts typing, all the text is replaced.
To put the cursor at the end of that text, look at the PressKey
function. Note that when text is highlighted in any given text field and
you press the left arrow key, the text is unhighlighted and the cursor
jumps to the end... (hint hint, nudge nudge)
Erik

forums.macromedia.com wrote:

> a field that has a text already (for example "bobby123"), and I want the
> user to use the backspace key to delete the entry and replace it with
> "bobby789".
--
Erik Lord
http://www.capemedia.net
Adobe Community Expert - eLearning
http://www.adobe.com/communities/experts/
------------------------------------------------------------------------
http://www.awaretips.net - Authorware Tips!
From: forums.macromedia.com on
Thanks Eric. Is there a way to get rid of the black highlights on the text?


"Erik L. **Community Expert**" <erik(a)pasdespam.capemedia.net> wrote in
message news:fuaos5$iju$1(a)forums.macromedia.com...
> Look at the PresetEntry function. You can use that to pre-fill a
> text-entry field. Doing that also pre-selects (highlights) the text, so if
> the user starts typing, all the text is replaced.
> To put the cursor at the end of that text, look at the PressKey function.
> Note that when text is highlighted in any given text field and you press
> the left arrow key, the text is unhighlighted and the cursor jumps to the
> end... (hint hint, nudge nudge)
> Erik
>
> forums.macromedia.com wrote:
>
>> a field that has a text already (for example "bobby123"), and I want the
>> user to use the backspace key to delete the entry and replace it with
>> "bobby789".
> --
> Erik Lord
> http://www.capemedia.net
> Adobe Community Expert - eLearning
> http://www.adobe.com/communities/experts/
> ------------------------------------------------------------------------
> http://www.awaretips.net - Authorware Tips!


From: Amy Blankenship on
I think what Erik meant is that if you use the PressKey function to press
the _right_ arrow key the cursor will jump to the end of the field. If you
use the leftarrow key, it will jump to the beginning of the field.

HTH;

Amy

"forums.macromedia.com" <lion_eyes1(a)hotmail.com> wrote in message
news:fuarft$l8o$1(a)forums.macromedia.com...
> Thanks Eric. Is there a way to get rid of the black highlights on the
> text?
>
>
> "Erik L. **Community Expert**" <erik(a)pasdespam.capemedia.net> wrote in
> message news:fuaos5$iju$1(a)forums.macromedia.com...
>> Look at the PresetEntry function. You can use that to pre-fill a
>> text-entry field. Doing that also pre-selects (highlights) the text, so
>> if the user starts typing, all the text is replaced.
>> To put the cursor at the end of that text, look at the PressKey function.
>> Note that when text is highlighted in any given text field and you press
>> the left arrow key, the text is unhighlighted and the cursor jumps to the
>> end... (hint hint, nudge nudge)
>> Erik
>>
>> forums.macromedia.com wrote:
>>
>>> a field that has a text already (for example "bobby123"), and I want the
>>> user to use the backspace key to delete the entry and replace it with
>>> "bobby789".
>> --
>> Erik Lord
>> http://www.capemedia.net
>> Adobe Community Expert - eLearning
>> http://www.adobe.com/communities/experts/
>> ------------------------------------------------------------------------
>> http://www.awaretips.net - Authorware Tips!
>
>


From: Erik **Adobe Community Expert** on
Thanks Amy. I was looking at my keyboard upside down... ;-)
Omar, either method will get rid of the black highlight.
EriK


Amy Blankenship wrote:
> I think what Erik meant is that if you use the PressKey function to press
> the _right_ arrow key the cursor will jump to the end of the field. If you
> use the leftarrow key, it will jump to the beginning of the field.

--
Erik Lord
http://www.capemedia.net
Adobe Community Expert - eLearning
http://www.adobe.com/communities/experts/
------------------------------------------------------------------------
http://www.awaretips.net - Authorware Tips!