A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: *BEGINNER FLASH USER* actionscripting question...

  1. #1
    Junior Member
    Join Date
    May 2005
    Posts
    5

    *BEGINNER FLASH USER* actionscripting question...

    I am building my first website using flash right now. I am having trouble adding an action to a button. I want to have a button that you click on and it links to your email. Please let me know if you know how to do this. Thank you!

    -AC

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,
    welcome to flashkit

    Place the button on the stage, select it, open the properties panel (if it isn't already opened) and assign an instance name to the button, my_btn for example.

    Click on the first frame of the main timeline and open the actions panel (F9).

    Type:
    code:

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

    Attached Files Attached Files

  3. #3
    Junior Member
    Join Date
    May 2005
    Posts
    5
    Thank you for you help...

    When I do this I am having the same problem as before...

    When I click on the active button, it opens up my web browser to my homepage, but does not open my email program...

    Is there something that I am forgetting?

  4. #4
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    I'd say there is a problem with setting your default email program...

    I assure you that that's the way to do it and it works here.


    What happens when you click an email link in an html page?
    <a href="mailto:someone@domain.com">email</a>

  5. #5
    Junior Member
    Join Date
    May 2005
    Posts
    5
    Its fixed!

    Thank you so much!

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