1 Reply Latest reply on Nov 20, 2009 10:55 PM by kglad

    How to make a link in Flash ActionScript 2.0

    BHuffman80

      Trying to figure out how to add a link that will open up in a new window using Action Script for something at work.  Have barely used Flash so I am totally lost.  People at work gave me a file with a blue box that is in its own layer, but I don't understand where to put the link at.  I know I have to use Action Script 2.0 and go to the Actions palette.  After that I am lost! HELP!

        • 1. Re: How to make a link in Flash ActionScript 2.0
          kglad Adobe Community Professional & MVP

          if clicking the blue box is supposed to open that link, right click the blue box, click convert to symbol, tick movieclip and click ok.  in the properties panel assign an instance name (say blueboxMC).  click on an empty part of the stage and in the actions panel paste:

           

          blueboxMC.onRelease=function(){

          getURL("http://www.adobe.com","_blank");

          }

           

          // upload your published swf, html and ac_fl_runcontent.js files to your server and test.