2 Replies Latest reply on Sep 7, 2006 12:12 AM by alaskanewmedia

    Help with this code?

    alaskanewmedia
      Three hotspots as buttons all load same movieclip myHotSpot.swf i can't figure out how to rewrite this code so each button loads a defiant movie and not the same? I hope I make scene.

      Thank you very much for your help and time with my problem
        • 1. Re: Help with this code?
          Jon_Moyles Level 1
          well i cant be too certain without knowing what that myPanVeiwer passes to the function onHotSpot but try;

          myPanViewer.onHotSpot = function(evt, hs) {

          trace(hs);
          if (evt == "release") {
          if(hs._name == "door"){
          ref._parent.container.loadMovie("myHotSpot1.swf", 1);
          }else if(hs._name == "window"){
          ref._parent.container.loadMovie("myHotSpot2.swf", 1);
          }
          }
          }


          if your output window shows _level1.[blah] then you need to parse hs more carefully. if it shows "door" then you loose the _name from hs. if it shows [object][object] then we are at least on the right track.

          luck
          jon
          • 2. Re: Help with this code?
            alaskanewmedia Level 1
            Thanks for the help it did not wont to work. It works in this code but only loads door i can't figure out how to load window & window2. Thank you very much for your help and time with my problem.