Change “SetFocus” to be the name of your application.  The wrapper html uses this as the id for the Flash Player object.

Tracy

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Wednesday, June 14, 2006 6:40 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Problems setting Focus

 

If you put the following code into the html wrapper, it will set the focus to the Flash Player in IE.  It does not work in FireFox.

 

window.>

function setFocusOnLoad(){

      SetFocus.focus();

}

 

Tracy


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff
Sent: Wednesday, June 14, 2006 4:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problems setting Focus

 

Hi Bruce,

In your application's HTML wrapper, you need to set focus to the swf
with _javascript_. I don't have a link readily available to show you
how to do this. Besides, it's not an Adobe supported method. But, if
you search this list or Google for "Flex2 setFocus", you should be
able to find a workaround.

-TH

--- In [EMAIL PROTECTED]ups.com, "blomasky" <[EMAIL PROTECTED]> wrote:
>
> When my application starts, I would like to set focus on a particular
> control. It looks like it works (the field gets a blue border), but
I
> can NOT type into the field until I click on the field. I am using
> the creationcomplete to call the function that sets focus.
>
> If I call this function when the app is running, then the setfocus
> works fine.
>
> Bruce
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to