FScommand Issue

I have two swf files (text viewer and text editor) which are loaded in .Net Flash Objects

  1. text viewer swf has a button which when clicked passes the htmltext in its text field to .net through FSCommand.
  2. In response to this the htmltext is passed to the text editor swf through setVariable function.
  3. This text is then displayed in the text editor text field.

Issue:
The issue is when I click on the text editor text field the focus does not go to the text field instead I have to click it twice to set the focus to text field.
I have done the same thing with the .Net command button but it works perfectly fine.
Can anyone of you tell me to what might be the problem here when I try to do it without the command button :*( :h:
Thanx in advance