14 Replies Latest reply on Jun 1, 2010 12:48 PM by kglad

    Having trouble adding link


      I just upgraded to CS4 flash and linking the old way doesn't work. I read on this forum the new code to place in and I did but obviously missed something.


      Here's the test page link:  http://classicsmiles.com/linkTest.html


      Here's the code I placed:

      function linkToSite(evt:MouseEvent):void {

           var url:String = "http://www.classicsmiles.com"; 

           var req:URLRequest = new URLRequest(url);

           navigateToURL(req, "_self");



      urlBtn.addEventListener(MouseEvent.CLICK, linkToSite);


      As you can see I get an error and it won't link.