Yes you need to add a listener that listens for the Enter key to be
pressed and then you have it execute your code.
Karl
On Dec 10, 2009, at 4:28 PM, Alan Neilsen wrote:
I found the following code (in a forum) which makes my Tab order
work the way I want, but I thought when a button had focus (yellow
box around it and showing rollover state), the Enter key would then
execute the code on that button (as if it were clicked), but this
does not happen. The Enter key just makes the button flicker. Do I
need to add more code here (or change something) to make the Enter
key work like I want?
first_btn.tabIndex=1;
second_btn.tabIndex=2;
third_btn.tabIndex=3;
first _btn.tabEnabled=true;
second _btn.tabEnabled=true;
third _btn.tabEnabled=true;
function fnClick(pME:MouseEvent):void {
first _btn.tabIndex=1;
second _btn.tabIndex=2;
third _btn.tabIndex=3;
}
button3_btn.addEventListener(MouseEvent.CLICK, fnClick);
Alan Neilsen
This message is for the named persons use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any
mistransmission. If
you receive this message in error, please immediately delete it and
all
copies of it from your system, destroy any hard copies of it and
notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.
######################################################################
###############
This e-mail message has been scanned for Viruses and Content and
cleared
by MailMarshal
######################################################################
###############
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders