A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: click to email

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    15
    I've created a button in my flash movie for users to send an email to the link. the actionscript on the instance of the button in my movie is:

    on (release) {
    getURL ("mailto:xxxx@xxxx.com");
    }

    When the movie is published, and the button clicked, the mail program opens as it should, but my internet browser opens a new window with the heading "no page to display" Is there anyway to prevent this window opening and just have the email program start???

  2. #2
    Senior Member
    Join Date
    Dec 2001
    Posts
    197
    Originally posted by andrewhowson
    I've created a button in my flash movie for users to send an email to the link. the actionscript on the instance of the button in my movie is:

    on (release) {
    getURL ("mailto:xxxx@xxxx.com");
    }

    When the movie is published, and the button clicked, the mail program opens as it should, but my internet browser opens a new window with the heading "no page to display" Is there anyway to prevent this window opening and just have the email program start???
    ==============
    in the action thing remove blank leave that empty ..
    ==============

  3. #3
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Try:

    Code:
    on (release) {
    	getURL("mailto:you@youraddress.com", "_top");
    }

  4. #4
    Junior Member
    Join Date
    Apr 2002
    Posts
    15

    THANK YOU!!!

    Here's something interesting:
    I left the Window option blank on the GetURL line and a browser window DID NOT open up so it worked ok. This was when I was running Windows 98. A recent upgrade to Windows2000Pro, and I find it only works now if I add the "_top" option into the actionscript.
    Thanks for your help!

  5. #5
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    I'm just learning some action scripting, so I may not have it right, but I think it's required to have two arguments inside the ( ) separated by a comma, after a command like get url, or goto. The url and one of the 4 targets, _top, _blank, etc.

    Anyway, the above script always works.

  6. #6
    Junior Member
    Join Date
    Jul 2002
    Posts
    22

    subject line

    Any ideas about automatically filling the subject line?

    andrea_singer@dwainc.com

  7. #7
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Mailto, CC, Subjectline, even the Body:

    on (release) {
    mailto:"myname@mysite.com"; CC:mybuddy@hissite.com"; subject:"whatever you want"; "add some body text if you want"
    }

  8. #8
    Junior Member
    Join Date
    Jul 2002
    Posts
    22

    THANK YOU!

    I love coming here!

  9. #9
    Junior Member
    Join Date
    Jul 2002
    Posts
    22

    subject line...

    the subject line is showing in the to line

  10. #10
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Well, sorry, I can get this to work in Swish, using F4, but can't figure out the syntax for MX. But, here is an example, just click on the dot:

    http://64.21.153.144/chuck.htm

    I know it works, just haven't got the apostrophe's and wigglies in the right spot yet.


  11. #11
    Junior Member
    Join Date
    Jul 2002
    Posts
    22

    thanks again


    Also,
    can a I close a Flash window using the javascript as a frame action rather than a button action

  12. #12
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Man, I just LOVE this stuff.

    Here, this code, attached to a button will open an e-mail with the address filled in, the CC filled in, the subject line filled in and text in the body already there.

    Code:
    on (release) {
        getURL("mailto:you@youraddress.com?cc=mack@hisaddy.com&subject=Hey what's up&body=Give me a ring", "_top");
    }

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