3 Replies Latest reply on Aug 31, 2007 7:45 AM by SymTsb

    E-Mail

    IronTreads
      What is the script I would attach to a button to make it an e-mail link? Thank you.
        • 1. Re: E-Mail
          Hasenstein Level 1
          No button. Create a static text field and put a "mailto:" URL into the link field (at the bottom of the properties window when the text field is selected)
          • 2. Re: E-Mail
            aniebel Level 2
            If you have an existing button, select it, give it an instance name (I'll use "my_btn" for example) in the Properties panel and attach this to your actions layer on the main timeline (assuming your button is also on the main timeline):

            AS 2.0:
            my_btn.onRelease = function(){
            getURL("mailto:someone@someurl.com");
            };

            Sorry, I haven't familiarized myself with actionscript 3.0 yet but I'm pretty sure by looking through the Help that it's totally different. Hopefully you're using actionscript 2.0. :)
            • 3. E-Mail
              SymTsb Level 2
              AS3