0 Replies Latest reply on Oct 24, 2007 2:20 AM by Alex_br

    help with this

    Alex_br
      hello, i´m trying to put a flash menu inside a html page. for now i could do this, but it was wrong and didn´t work with some browsers such as firefox first i´ve done this in flash:

      and that in the html page:

      <script type="text/javascript">


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


      </script>




      <script type="text/javascript">


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


      </script>


      <script type="text/javascript">


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


      </script>


      and like that for the other ones.....

      but it din´t work perfect in firefox( every time you open the "home" and "servicios" it woked well, but for the others it use open the same menu for "servicios") i don´t know why!!! it work perfect at safari and internet explorer!!

      so some one post me a web to teach me, as i´m new to flash, i could not understand very well and i´ve tried this for the flash instead:

      // AS3
      var url:TextField = new TextField();
      url.text = root.loaderInfo.parameters.clientes;
      gotoAndPlay(30);

      // AS3
      var url:TextField = new TextField();
      url.text = root.loaderInfo.parameters.sevicios;
      gotoAndPlay(20);

      // AS3
      var url:TextField = new TextField();
      url.text = root.loaderInfo.parameters.home;
      gotoAndPlay(10);

      // AS3
      var url:TextField = new TextField();
      url.text = root.loaderInfo.parameters.acercade;
      gotoAndPlay(40);

      // AS3
      var url:TextField = new TextField();
      url.text = root.loaderInfo.parameters.contacto;
      gotoAndPlay(50);

      and for the html the same.....

      is that correct? because it doesn´t work for me...

      to be clear i just need to open a "menu2.swf" related in what page i´m ex. if i´m at ww.xxxxxxxxxx.com/clientes.html, i needed flash to start a "menu2.swf" from frame 30 and playing

      thank very much, if someone could help out i would be very happy!!