RE: [flexcoders] MAC : TextInput focus
It is a flash/browser issue. I'm surprised you got it working in FF. Maybe the latest versions have finally made it possible. Slowly, one browser at a time, we hope to work with the browser manufacturers to make it so your users can just start typing, but it isn't possible on all browsers right now. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of suman gayakwad Sent: Thursday, November 26, 2009 6:36 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] MAC : TextInput focus Alex, As soon as the application loads up, im getting the login screen(TitlwWindow component) which has got three fields username, password and domain. I'm trying to set the focus to the username field so that user can start typing. The focus is set to username field in IE, Firefox and also in Chrome but not in Safari browser. The weird thing here(in Safari browser) as soon as i click on the application,(ie. somewhere within the browser window) the focus will be set to username field. Is this browser plug-in issue or bug on Flex side ? Thanks, Suman
RE: [flexcoders] MAC : TextInput focus
Alex, As soon as the application loads up, im getting the login screen(TitlwWindow component) which has got three fields username, password and domain. I'm trying to set the focus to the username field so that user can start typing. The focus is set to username field in IE, Firefox and also in Chrome but not in Safari browser. The weird thing here(in Safari browser) as soon as i click on the application,(ie. somewhere within the browser window) the focus will be set to username field. Is this browser plug-in issue or bug on Flex side ? Thanks, Suman
Re: [flexcoders] MAC : TextInput focus
Julian, Still the focus is not set:( in the text input filed even after setting callLater(myComp.setFocus) and more thing is keyboard events wont work, ie. i mean clicking on tab wont work.Right now i m calling myComp.setFocus in creation complete event handler. *code Snippet* creation complete event handler private function init():void { /// some action script code here callLater(this.setFocus); } P.N: This happens only in safari browser Thanks, Suman
RE: [flexcoders] MAC : TextInput focus
Are you trying to start the app with focus so you can just start typing? AFAIK this is only possible in IE. It is a browser plug-in issue. Hopefully newer browsers will solve this issue. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of suman gayakwad Sent: Wednesday, November 25, 2009 8:55 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] MAC : TextInput focus Julian, Still the focus is not set:( in the text input filed even after setting callLater(myComp.setFocus) and more thing is keyboard events wont work, ie. i mean clicking on tab wont work.Right now i m calling myComp.setFocus in creation complete event handler. code Snippet creation complete event handler private function init():void { /// some action script code here callLater(this.setFocus); } P.N: This happens only in safari browser Thanks, Suman
Re: [flexcoders] MAC : TextInput focus
Hi Julian, The screen looks to have focus on the login page and the textinput seems to have focus(i mean blue border surrouding the text input field) but the focus is not set inside text input field.On clicking(Mouse click ) somewhere within the application, the focus is set in the text input field.This happens only in Safari Browser. Thanks, Suman
Re: [flexcoders] MAC : TextInput focus
I ran into this same issue but with every browser - however it may be different for you. Either way, the handling is simple: First, the problem is that the SWF file within the browser doesn't have the focus. Within the app your text field has focus, but you'll notice that you won't get any keyboard events or anything until you do a fix. The simplicity of it is that you need to use a bit of javascript to set the focus to the swf on page load. To do this, you modify the index.template.html file to have the following javascript function: function focusFlash () { document.getElementById('${application}').focus() } Now you can call that via ExternalInterface.call('focusFlash') on CreationComplete or whichever event makes the most sense. This will then set the focus to the SWF and shld resolve that issue. ML, Julian From: suman gayakwad srgayak...@gmail.com To: flexcoders@yahoogroups.com Sent: Tue, November 24, 2009 12:13:50 AM Subject: Re: [flexcoders] MAC : TextInput focus Hi Julian, The screen looks to have focus on the login page and the textinput seems to have focus(i mean blue border surrouding the text input field) but the focus is not set inside text input field.On clicking(Mouse click ) somewhere within the application, the focus is set in the text input field.This happens only in Safari Browser. Thanks, Suman __._,_..___ Reply to sender | Reply to group Messages in this topic (3) Recent Activity:* New Members 27 Visit Your Group Start a New Topic -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat..com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com MARKETPLACE Going Green: Your Yahoo! Groups resource for green living Switch to: Text-Only, Daily Digest • Unsubscribe • Terms of Use .
Re: [flexcoders] MAC : TextInput focus
Hi Julian, I did that and the focus seems to be in loaded SWF but it wont set the focus in textinput field embedded in the swf :( . This happens only in safari browser. Thanks, Suman
Re: [flexcoders] MAC : TextInput focus
The other thing is callLater(). I've found also that in some cases the focus only gets partially set when other things are still being initialized. Try calling callLater(myComp.setFocus); after creationComplete. -J From: suman gayakwad srgayak...@gmail.com To: flexcoders@yahoogroups.com Sent: Tue, November 24, 2009 11:12:33 AM Subject: Re: [flexcoders] MAC : TextInput focus Hi Julian, I did that and the focus seems to be in loaded SWF but it wont set the focus in textinput field embedded in the swf :( . This happens only in safari browser. Thanks, Suman
[flexcoders] MAC : TextInput focus
Hi, In our application, i am trying to set the focus on the login page which has got textinput field. This works fine in IE as well as Firefox but fails in Mac browser. Any pointers on how to set the focus on the textinput field in Mac browser? Thanks, Suman
Re: [flexcoders] MAC : TextInput focus
Does the screen look like it has focus but when you type it doesn't actually go there? From: Suman srgayak...@gmail.com To: flexcoders@yahoogroups.com Sent: Mon, November 23, 2009 11:37:49 AM Subject: [flexcoders] MAC : TextInput focus Hi, In our application, i am trying to set the focus on the login page which has got textinput field. This works fine in IE as well as Firefox but fails in Mac browser. Any pointers on how to set the focus on the textinput field in Mac browser? Thanks, Suman