  | | | Flash RIA enabling "Enter Key " to sumbit | Flash RIA enabling "Enter Key " to sumbit 2004-03-16 - By Cedric Muller
Back You could setup a Mouse Listener:
myReturnKey = new Object(); myReturnKey.onKeyDown = function (){ var _$key = Key.getCode(); trace(_$key); // now check for when ENTER is pressed } Key.addListener(myReturnKey);
ps: don't forget to register/ de register your key press once ENTER is pressed
take care, Cedric
> My company is rebuilding an asp app in .NET using a flashmx interface. > The .asp based app allows a user to hit the enter key to submit a form > regardless of what field has focus. I can't seem to be able to get a > similar behavior with the flash pushbutton component. Has anyone done > this? > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ > FREE pop-up blocking with the new MSN Toolbar ? get it now! > http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/ > > > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > Supported by Fig Leaf Software > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > Be sure to check the archives and the wiki: > http://chattyfig.figleaf.com/ > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107087 > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > To unsubscribe send a blank e-mail to: Normal Mode: > flashcoders-unsubscribe@(protected) > Digest Mode: flashcoders-digest-unsubscrive@(protected) > > >
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107091 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |