0 Replies Latest reply on May 14, 2008 9:27 PM by migo33

    DoFSCommand does not work

      I am not a developer so I maybe making basic mistakes here. I am trying to invoke a javascript command on button press. I am using this code:
      on (press) {
      fscommand("call_alert", "Hello world!"); }

      on my .aspx page I am using this sample javascript:
      function HomeBanner_DoFSCommand(command, args) {
      alert('hi Mic');

      The flash SWF file is not embedded in the .aspx page but is called using javascript:
      <script type="text/javascript" src="Javascript/Orient/swfobject.js"></script>

      and then I place the placeholder for the flash:
      <div class="homeBanner" id="SWF" style="z-index:-1;"></div>

      the FScommand does not work. I have tried different things but nothing.

      any suggestions?