2 Replies Latest reply on Oct 25, 2007 1:38 AM by Alex_br

    detect url with actionscript

    Alex_br Level 1
      can anyone help me i´m new to flash and i need to put a flash menu inside a html page, i´ve put this inside flash

      var url=_root.url;

      if (url=="clientes")
      {
      _root.gotoAndPlay(30);
      }

      else if (url=="servicios")
      {
      _root.gotoAndPlay(20);
      }

      else if (url=="home")
      {
      _root.gotoAndPlay(10);
      }

      else if (url=="acercade")
      {
      _root.gotoAndPlay(40);
      }

      else if (url=="contacto")
      {
      _root.gotoAndPlay(50);
      }

      and inside the html that:

      <td><div id="flashcontent"></div></td>
      <script type="text/javascript">


      var so = new SWFObject("flash/menu2.swf", "menu", "100", "475", "9", "#FF6600");
      so.addParam("flashvars", value="url=clientes");
      so.write("flashcontent");


      </script>

      it works fine in internet explorer, safari and opera but it doesn´t in firefox!

      please if some one can help me out....

      Thanks

      Alex