Send email using buttons in Flash MX 2004

Posted on 2007-07-25
Last Modified: 2008-01-09
Hi experts,

I have a SWF embedded in a HTML page, I am currently working on the contents section of the website. Within the SWF (Flash document) I have a button beside each contacts name that I want the user to click if the want to send an email to that person. i am currently using.


Nothing is happening. Any ideas?
Question by:daly__paul
    LVL 37

    Expert Comment

    Um...  What if you specify the target window???

    getURL("", "_blank");

    LVL 22

    Accepted Solution

    the code you have works for me...

    the code you have needs to be place ON the buttons themselves...  most likely have have them on the timeline.

    I would recommend using the timeline method, but you need to give each button an instance name in the Properties panel and then use the below code:

    theButtonNameHere.onRelease = function(){


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now