Has this issue ever been resolved? Is there a reliable work around to automatically assign focus to the flash movie on startup? With this simple code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" applicationComplete="foo.setFocus()"> <mx:TextInput id="foo"/> </mx:Application>
i can see the flex framework assigning focus to the TextInput, but until the user clicks on the app, the user can not type into the box. At 11:07 PM 7/25/2004, Joey Lott wrote: >It's possible in some browsers to use JavaScript to move focus to the >Flash movie. However, it won't work in every browser. > >Thanks, >Joey > >Cameron Gregory wrote: > > > G'Day Joey, > > Thanks. But Can you use some javascript to fix the problem? > > > > eg when go to www.ausprices.com > <<http://www.ausprices.com>http://www.ausprices.com>, the focus > > is not set, but google uses > > > > > >document.f.q.focus(); at <http://www.google.com/>http://www.google.com/ > > > >to force focus. > > > >thanks, > > > >Cameron > > > >PS Man I hate outlook. > > > > > > > > -----Original Message----- > > *From:* Joey Lott [mailto:[EMAIL PROTECTED] > > *Sent:* Monday, 26 July 2004 12:01 > > *To:* flexcoders@yahoogroups.com > > *Subject:* Re: [flexcoders] setFocus on TextInput > > > > Flex can give focus to the TextInput. However, Flex (more > > specifically, > > Flash) does not get focus within the browser until the user clicks on > > it. It's a fairly significant, yet known, usability issue. > > > > Thanks, > > Joey > > > > Cameron Gregory wrote: > > > > > G'Day, > > > setFocus on TextInput doesn't seem to allow the user to start > > > typing straight away. > > > I'm hoping that I'm missing some other function call to make the > > edit > > > cursor appear.... > > > > > > thanks, > > > > > > Cameron > > > > > > <?xml version="1.0" encoding="utf-8"?> > > > > > > <mx:Application > xmlns:mx="<http://www.macromedia.com/2003/mxml>http://www.macromedia.com/2003/mxml" > > xmlns="*" > > > > > > load="myLoad()"> > > > > > > <mx:Script> > > > > > > function myLoad() { > > > > > > username.setFocus(); > > > > > > } > > > > > > </mx:Script> > > > > > > <mx:TitleWindow > xmlns:mx="<http://www.macromedia.com/2003/mxml>http://www.macromedia.com/2003/mxml"> > > > > > > <mx:Form id="loginForm" fontWeight="bold"> > > > > > > <!-- The Logon user name --> > > > > > > <mx:FormItem label="UserId" required="true"> > > > > > > <mx:TextInput tabIndex="0" id="username" width="150"/> > > > > > > </mx:FormItem> > > > > > > <!-- The Logon user password. --> > > > > > > <mx:FormItem label="Password" required="true"> > > > > > > <mx:TextInput id="password" password="true" width="150" /> > > > > > > </mx:FormItem> > > > > > > <mx:FormItem> > > > > > > <mx:HBox> > > > > > > <mx:Button label="Login" width="70"/> > > > > > > </mx:HBox> > > > > > > </mx:FormItem> > > > > > > </mx:Form> > > > > > > </mx:TitleWindow> > > > > > > </mx:Application> > > > > > > > > > > > > ~~------- > > > This e-mail may contain confidential information. If you are not > > the > > > intended recipient, please notify the sender immediately and delete > > > this e-mail from your system. You must not disclose this e-mail to > > > anyone without express permission from the sender. The contents > > of all > > > e-mails sent to and received from Optus may be scanned, stored, or > > > disclosed to others at Optus discretion. > > > > > > Optus has exercised care to avoid errors in the information > > contained > > > in this e-mail but does not warrant that the information is > > error or > > > omission free. The information (including any pricing information) > > > contained in this e-mail is subject to change. This e-mail is not a > > > quotation or proposal and no contractual obligations arise until > > you > > > and Optus sign a formal written contract or formal variation to > > your > > > existing contract. > > > > > > Any pricing contained in this e-mail is exclusive of GST unless > > > otherwise stated. > > > ******************************************************************** > > > > > > *Yahoo! Groups Sponsor* > > > ADVERTISEMENT > > > > > > <<http://us.ard.yahoo.com/SIG=129i1qvbi/M=295196.4901138.6071305.3001176/D=groups/S=1705007207:HM/EXP=1090888838/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com>http://us.ard.yahoo.com/SIG=129i1qvbi/M=295196.4901138.6071305.3001176/D=groups/S=1705007207:HM/EXP=1090888838/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > *Yahoo! Groups Links* > > > > > > * To visit your group on the web, go to: > > > > <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/ > > > > > > * To unsubscribe from this group, send an email to: > > > [EMAIL PROTECTED] > > > > > <mailto:[EMAIL PROTECTED]> > > > > > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > > > Service > <<http://docs.yahoo.com/info/terms/>http://docs.yahoo.com/info/terms/>. > > > > > > > > > > > > > > *Yahoo! Groups Sponsor* > > ADVERTISEMENT > > > <<http://us.ard.yahoo.com/SIG=129jr0i3f/M=295196.4901138.6071305.3001176/D=groups/S=1705007207:HM/EXP=1090894624/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com>http://us.ard.yahoo.com/SIG=129jr0i3f/M=295196.4901138.6071305.3001176/D=groups/S=1705007207:HM/EXP=1090894624/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> > > > > > > > > > ------------------------------------------------------------------------ > > *Yahoo! Groups Links* > > > > * To visit your group on the web, go to: > > > <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/ > > > > * To unsubscribe from this group, send an email to: > > [EMAIL PROTECTED] > > > <mailto:[EMAIL PROTECTED]> > > > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > > Service > <<http://docs.yahoo.com/info/terms/>http://docs.yahoo.com/info/terms/>. > > > > > > >Yahoo! Groups Sponsor >ADVERTISEMENT ><http://us.ard.yahoo.com/SIG=129m79dkc/M=295196.4901138.6071305.3001176/D=groups/S=1705007207:HM/EXP=1090897521/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> >click here > > > >---------- >Yahoo! Groups Links > * To visit your group on the web, go to: > * > <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/ > > > * > * To unsubscribe from this group, send an email to: > * > <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] > > * > * Your use of Yahoo! Groups is subject to the > <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service. Jeff Tapper Founding Partner Tapper, Nimer and Associates Inc. [EMAIL PROTECTED] (718) 576-1775 (w) (718) 228-9365 (f)