1 Reply Latest reply on May 5, 2006 5:02 AM by Newsgroup_User

    Do you need a JVM for fscommand() to work?

    Graeme Harker
      Page 492 of the "Using Flash" book says, "If you use JavaScript and Flash on the same page, Java must be running for the fscommand() function to work." Do they really mean Java (i.e. a JVM installed and running on the machine) or do they mean that JavaScript must be enabled in the browser"?
        • 1. Re: Do you need a JVM for fscommand() to work?
          Level 7
          sparky1962 wrote:
          > Page 492 of the "Using Flash" book says, "If you use JavaScript and Flash on
          > the same page, Java must be running for the fscommand() function to work." Do
          > they really mean Java (i.e. a JVM installed and running on the machine) or do
          > they mean that JavaScript must be enabled in the browser"?
          >
          no, I think that must be a typo and they mean 'javascript must be running'

          I wouldn't use fscommand() to call javascript anyway as it doesn't work
          in some browsers. getURL("javascript:functionCall('someargument');"); is
          much more reliable. Or, if you're targetting flash player 60.65.0 or
          higher there's the Flash/Javascript gateway (see link below) and
          finally, if you're targeting flash player 8 there is the
          ExternalInterface class built into flash.

          http://weblogs.macromedia.com/flashjavascript/
          --
          MOLOKO
          Macromedia Certified Flash MX 2004 Developer
          Macromedia Certified Flash MX Developer
          ------------------------------------------------
          ::remove _underwear_ to reply::
          'There ain't no devil - it's just God when he's drunk' Tom Waits
          ------------------------------------------------
          GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+ w+++$ !O M+
          VMS? PS+++ PE- Y PGP+ t+ 5-- X-- R* tv++ b++++ DI++++ D+ G e h-- r+ y++