Thanks both Jesse and Hilary

worked perfectly :)))

jason


"Hilary Bridel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> Looks ok.
> I usually do something like this:
>
> myKeyListener = new Object();
>
> myKeyListener.onKeyDown = function (){
>    if (Key.isDown(13)){
>       LoginButton_Clicked();
>    }
> }
> Key.addListener(myKeyListener);
>
> You can also check for the focus of a particular field before firing the
> event by inserting something like this :
>  if (Key.isDown(13) && Selection.getFocus() ==
targetPath(myTextField_txt))
>
> Hilary
>
> www.bridel.org
>
> --
>
> "Jason Bayly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> >
> > 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/

Reply via email to