A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: "mailto"-link -> Flash MX

  1. #1
    Member
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    32

    "mailto"-link -> Flash MX

    Hi
    I am new to Flash and now I have a problem with Actionscript. I have some knowledge in HTML so I know a bit about programming.
    My problem is to make a button to be an email-link.
    Here´s the code I tried

    code:
    on(release) {
    getURL("mailto:der_ovi@yahoo.de")
    }



    I would be very pleased if you had a solution.
    cya

  2. #2
    Senior Member studioqtopia's Avatar
    Join Date
    Nov 2003
    Location
    California
    Posts
    582
    looks like the ";" is missing.
    Code:
    on(release) {
            getURL("mailto:der_ovi@yahoo.de");
    }
    hope that fixes it.

  3. #3
    Member
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    32
    thankx for your reply, but it didn´t work. still nothing happens when I press the button.

  4. #4
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118
    post a mock FLA with the button......because the code
    code:

    on(release){
    getURL("mailto:der_ovi@yahoo.de");
    trace("button worked");
    }



    put that on a button and run it in flash, then if the little output window says......button worked then its the mailto..if it doesnt then the button is jacked

  5. #5
    Junior Member
    Join Date
    Aug 2004
    Location
    Michigan.
    Posts
    16
    I have an idea for you change the address end from .de to .com and it should work actually and as long as your button works properly
    Yes, I am a flash newbie...
    But with a little help maybe I too can be good.

  6. #6
    Member
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    32
    hi
    what is a mock FLA ? I never heard that.
    You were right: if I press the button the result says button works.
    thanx for your help.
    jimmy: if I would change the .de into a .com the email wouldn´t reach me but someone else ;-)
    but thanx to you too.

  7. #7
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118
    basically copy and paste your button as is in a new fla...save it and post it so I can look at what is going on.

  8. #8
    Member
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    32
    ohh ok
    well here´s the file.
    take a look at it if you have got some time. ;-)
    I work with Flash MX. I don´t know wether this is improtant for the script.
    thanx for your help
    Attached Files Attached Files

  9. #9
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118
    no not really...ong as you are scripting for AS1 and not AS2 bun dont worry your head about it......I will look when I get home tonight....but 2 hours......look for it

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