A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: simple launch email problem

  1. #1
    Senior Member
    Join Date
    Apr 2000
    Location
    Minneapolis
    Posts
    2,127

    simple launch email problem

    I searched and found this code.
    I thought I had it working but now in a browser locally my email program does not launch.
    I just want it to launch an email app with the recipient address filled in.

    PHP Code:

    menu_mc
    .address_mc.addEventListener(MouseEvent.MOUSE_UPemail);

    function 
    email(e:Event):void
    {
    trace("email clicked");
    var 
    request:URLRequest = new URLRequest("mailto:marco@orangefilmworks.com");
    navigateToURL(request"_self");

    thanks
    mark

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    I haven't messed with mailto in as3 but it should be as easy as tacking on url vars to your request path.

    mailto:marco@orangefilmworks.com?subject=my subject&body=my message

  3. #3
    Senior Member
    Join Date
    Apr 2000
    Location
    Minneapolis
    Posts
    2,127

    resolved

    Hi,
    thanks for the reply. you were correct.
    I wanted to try this on a mac with safari at home before replying
    worked on a PC, with chrome and explorer, so should be fine.

    This is exactly what worked for me, in case some one else searches for this.
    [php]
    var myEmail:String = "mailto:marco@theaddress.com";

    menu_mc.address_mc.addEventListener(MouseEvent.MOU SE_UP, email);

    function email(e:Event):void
    {
    navigateToURL(new URLRequest(myEmail), "_blank");
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center