Solved

How does Hypertext work in Flash?

Posted on 2006-10-29
3
183 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 AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

832 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