1 Reply Latest reply on Nov 28, 2010 9:04 PM by kglad

    navigateToURL(new URLRequest) with mailTo tag

    junojibe

      Hello,

      I am using the following code to send an email message, which works in development.

       

      sendMe_mc.addEventListener(MouseEvent.CLICK,fl_ClickToGoToWebPage);

       

      function fl_ClickToGoToWebPage(event:MouseEvent):void
      {
      navigateToURL(new URLRequest("mailTo:"+confirmTi.text+"?subject=Notes to self from HFHI Values in Action &body="+values_t.text+""), "_blank");
      }

       

       

       

       

       

      It still works when loaded and launched from the swf embedded in a swf, but it also first tries to navigate to a new url by openign a new window/tab in IE7. Is there something better than the mailTo: tag to use?

      Also, I tried removing the targwt parameter, it does nto work without it being identified....

       

       

      thanks

      s