Solved

How does Hypertext work in Flash?

Posted on 2006-10-29
3
182 Views
Last Modified: 2011-09-20
I'd like to put a contact link on my animation that brings up the user's email client with my address filled in when clicked, as

    <a href="mailto:stva@postoffice.com"/>Contact<\a>

does in HTML.   I've tried  using a dynamic text box and selecting "Render as HTML"  but it still doesn't make a hyperlink of it and let me click the text to bring up the mailer.

What's missing?

Thanks,

Steve

0
Comment
Question by:steva
3 Comments
 
LVL 13

Expert Comment

by:FLAASHER
ID: 17830881
convert ur text to a button and then put this code on it :


on (release) {
      getURL("mailto:ali@hotmail.com","");
}



** Note :
it only work in browser .... if u run your swf separtly it will not work

FLAASHER
0
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 total points
ID: 17830985
Hi,

you code should work properly whether it run through broswer or directly through standalone swf.

do this step by step:
-------------------
1.
give an instancename to your textField, for example : "myText", (instancename, as you give any movieClip),

2.
now add this actionscript on frame where you have your textField...
--------------
myText.html = true;
myText.htmlText = ' <a href="mailto:stva@postoffice.com"/>Contact<\a>';
-----------

3.
press CTRL+ENTER, to test it..



if you still have issue to resolve it,
here I have uploaded a working sample for you..
download link:
http://www.4shared.com/file/5147715/b6e58e17/mailto_link.html

Regards
Aneesh
0
 

Author Comment

by:steva
ID: 17847255
Yep, that works.  Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

911 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

21 Experts available now in Live!

Get 1:1 Help Now