4 Replies Latest reply on May 12, 2010 4:38 PM by Ned Murphy

    Several buttons in 1 file.

    vengod

      Hi,

       

      Im creating a Host movie, where 5-6 buttons will be loaded from.

       

      However, im having difficulties coding each button to open an swf file.

       

      Here is the code i have to try and load my ipod button.

       

      stop();
      ipod_btn.addEventListener(MouseEvent.CLICK,ipod_btn);
      function ipod_btn(event:MouseEvent) {
      var request:URLRequest = new URLRequest("ipod.swf");
      var loader:Loader = new Loader()
      loader.load(request);
      addChild(loader);
      }

       

      However, it doesnt do anything and i get these complier errors

       

      1023: Incompatible override.

      1021: Duplicate function definition.

       

      i will be grateful for any help

       

      Thanks