Without Flash here to check my syntax, please excuse my hand-written AS,
but I'd do it something like this:

my_key_listener = new Object();
my_key_listener.onKeyDown = function () {
  if (Key.isDown(Key.ENTER) {
    // invoke some function
  }
}
Key.addListener(my_key_listener);

Cheers

Jesse Stratford

> Hi All,
>
> Im venturing off the well signed and used path of creating all my forms
> in CF into Flash MX.
> It seems to be a nice change of headspace for a while, but ive got one
> little thing that is escaping me.
>
> Whats the easiest way to trigger the form submit and run the CFC on the
> server, WHEN the enter key is pressed.  In the browser this happens
> automatically and triggers the submit form.
>
> Know the drill ?  any ideas appreciated..
>
> Jason
>
> if (Key.isDown(Key.ENTER)) {
>     LoginButton_Clicked();
> }
>
>
>
> ---
> You are currently subscribed to fugli as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/




---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to