For IE7 (at least), the following line of code works . . .
<body scroll="no" onLoad="window.document.${application}.focus();">
Just to be clear, it needs to be put in the
html-template/index.template.html file of your project, and replacing
the <body> tag that is already there.
Good luck,
Jim
--- In [email protected], "Blake Barrett" <[EMAIL PROTECTED]> wrote:
>
> There is some JS you can run in the wrapper HTML that will give focus to
> the SWF, but it doesn't work in FF2 or Chrome.
>
> Blake
>
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of valdhor
> Sent: Wednesday, October 29, 2008 11:35 AM
> To: [email protected]
> Subject: [flexcoders] Re: textArea.setFocus();
>
>
>
> Unfortunately, you can't.
>
> The browser has focus until the user clicks on your app.
>
> BTW. Does anyone know if this is rectified with FP10? Or is it just
> something we have to live with from the browser vendors?
>
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , "tchredeemed" <apthorp@> wrote:
> >
> > Thanks guys, now I guess my problem is how to give the application
> > focus without clicking on it?
> >
> > parentApplication.systemManager.activate() ?
> >
> > Not sure exactly where to go :)
> >
>