1 Reply Latest reply on Feb 22, 2010 3:12 PM by kglad

    Links in Flash not working in the html file

    zontaluma

      All-

       

      I created a mailto link and a hyperlink in my Flash CS4 file.  They both work when I test the SWF file.  When I test the html file (in any browser) niether work.

       

      I get an error saying something about security for the mailto links

       

      The hyperlinks don't work at all...the app just hangs

       

      Here's the code for both

       

      //MAILTO AND LINKS
      var contact1_link:String = "mailto:xxx@xxx";
      var contact2_link:String = "mailto:xxx@xxx"

       

      //ADD EVENT LISTENER FOR EMAIL AND LINKS
      btn_contact1.addEventListener(MouseEvent.MOUSE_DOWN,function():void {
      navigateToURL(new URLRequest(contact1_link), "_self");}
      );
      btn_contact2.addEventListener(MouseEvent.MOUSE_DOWN,function():void {
      navigateToURL(new URLRequest(contact2_link), "_self");}
      );


      btn_hyperlink.addEventListener(MouseEvent.CLICK, callme);
      function callme(event: MouseEvent) {
      var request:URLRequest = new URLRequest("http://xxx.xxx");
      navigateToURL(request);
      }

       

      And what gives with the new window that opens when the email link is clicked in the flash IDE?

       

      I tried _self, _parent, _top all produce a new blank window

       

      Sux,

       

      `z