1 Reply Latest reply on Jun 27, 2012 7:58 AM by Flex harUI

    focus() swf from javascript for any browser

    ne_polle Level 1

      Hi there


      I have no solution for the following problem:


      I open a html website including an swf.

      this swf has a standard "<s:TextInput/>" and the cursor is blinking in that box.

      It would be awesome when I could immediately start typing some text in that box without clicking first on the stage of the swf.


      how could I manage that for any possible browser, e.g. IE, firefox, chrome, opera, safari?


      Is there someone with a working solution?


      I tried a lot of advices in javascript with the flash external interface like:


      function externalInterfaceCallJava(value) {

                      thisMovie("swfName").tabIndex = 0;




      function thisMovie(movieName) {

                       if (navigator.appName.indexOf("Microsoft") != -1) {

                           return window[movieName];

                       } else {

                           return document[movieName];






      thanks for any advice