Hi,

Place following code in function that you call in event of
creationComplete/Initialize.

ExternalInterface.call("s = function() {
document.getElementById('"+this.id+"').focus(); }");

Let me know If you face any issues.

On Wed, Jul 28, 2010 at 12:22 PM, Khalid Chaudhary <
[email protected]> wrote:

> Yes, I am using Flex builder 3.
>
> SWF is embeded in the JSP page.
>
> Locally things are working fine, when SWF is embed in HTML.
>
>
> On Wed, Jul 28, 2010 at 12:01 PM, oviya selvan <[email protected]>wrote:
>
>>  R u using flex builder?
>>
>>
>> On Wed, Jul 28, 2010 at 11:08 AM, Khalid Chaudhary <
>> [email protected]> wrote:
>>
>>> Hello  Oviyan,
>>>
>>> You are right, when we click some where in the application,  then it
>>> works properly.
>>>
>>> But a different application is working fine.
>>>
>>> As far as code is concern, I cant send that.
>>>
>>> Hope you will throw more light on this.
>>>
>>> Regards,
>>>
>>>   On Wed, Jul 28, 2010 at 11:01 AM, oviya selvan 
>>> <[email protected]>wrote:
>>>
>>>> Hi,
>>>>
>>>>     I am doubt about getting focus on swf in browser. so just click some
>>>> where in your application and then click on your button. If it works, then
>>>> the problem is that swf is not getting focus/activated in first shot. If
>>>> not, just send your code. let me try to figure it out.
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, Jul 19, 2010 at 3:42 PM, Khalid Chaudhary <
>>>> [email protected]> wrote:
>>>>
>>>>> <mx:Button
>>>>> label="Save" click="click_finish()"
>>>>>
>>>>> buttonMode="
>>>>> true"
>>>>>
>>>>> id="
>>>>> btnSaveObj"
>>>>>
>>>>> />
>>>>>
>>>>>
>>>>> On Mon, Jul 19, 2010 at 3:40 PM, Khalid Chaudhary <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> mouseChildren="true"    is not working
>>>>>>
>>>>>>
>>>>>> On Mon, Jul 19, 2010 at 2:54 PM, nithya flex 
>>>>>> <[email protected]>wrote:
>>>>>>
>>>>>>> set mouseChildren="true" try wit this
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jul 19, 2010 at 1:06 PM, Khalid Chaudhary <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> 1] Button is inside the Module Component.
>>>>>>>> 2] It works after Second click.
>>>>>>>> 3] ButtonObj.setFocus() is also not working.
>>>>>>>>
>>>>>>>>   On Mon, Jul 19, 2010 at 11:43 AM, Radu Toev 
>>>>>>>> <[email protected]>wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>> Can you please provide some extra information like:
>>>>>>>>>   - is your button in another container ?
>>>>>>>>>   - you said "Button is not working on first click", does it work
>>>>>>>>> on a second click?
>>>>>>>>>
>>>>>>>>>   On Sun, Jul 18, 2010 at 8:45 PM, Khalid Chaudhary <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>>  Hello All,
>>>>>>>>>>
>>>>>>>>>> Button is not working on first click, can any one through some
>>>>>>>>>> light on this.
>>>>>>>>>>
>>>>>>>>>> buttomMode= true for the Button control.
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>>> Groups "Flex India Community" group.
>>>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>>> [email protected]<flex_india%[email protected]>
>>>>>>>>>> .
>>>>>>>>>> For more options, visit this group at
>>>>>>>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "Flex India Community" group.
>>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>> [email protected]<flex_india%[email protected]>
>>>>>>>>> .
>>>>>>>>> For more options, visit this group at
>>>>>>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "Flex India Community" group.
>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>> [email protected]<flex_india%[email protected]>
>>>>>>>> .
>>>>>>>> For more options, visit this group at
>>>>>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Flex India Community" group.
>>>>>>> To post to this group, send email to [email protected].
>>>>>>> To unsubscribe from this group, send email to
>>>>>>> [email protected]<flex_india%[email protected]>
>>>>>>> .
>>>>>>> For more options, visit this group at
>>>>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Flex India Community" group.
>>>>> To post to this group, send email to [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<flex_india%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Oviyan
>>>>
>>>> Blog     :  http://www.oviyas.blogspot.com/
>>>> contact :  +91 - 91762 72633
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Flex India Community" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<flex_india%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Flex India Community" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<flex_india%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/flex_india?hl=en.
>>>
>>
>>
>>
>> --
>> Regards,
>> Oviyan
>>
>> Blog     :  http://www.oviyas.blogspot.com/
>> contact :  +91 - 91762 72633
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<flex_india%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>



-- 
Regards,
Oviyan

Blog     :  http://www.oviyas.blogspot.com/
contact :  +91 - 91762 72633

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to