1 Reply Latest reply on Jul 16, 2007 11:38 AM by MaxManNH

    Flash Calling Javascript

    Cwray
      So I am working on a flash script that will call a javascript function when certain events occur in the flash movie. To stat with I just created a movie and on the first key frame put:

      call('clicked','test');
      stop();

      Then in the html i put:

      <html>
      <head>
      <title>Flash / SEO</title>
      <script type="text/javascript">
      function clicked(d) {
      alert(d.toString());
      }
      </script>
      </head>
      <body>
      <embed allowScripAccess="sameDomain" width="300" height="200" src="as.swf" border="0" />
      </body>
      </html>

      Nothing happens... ??