?
Solved

How does Hypertext work in Flash?

Posted on 2006-10-29
3
Medium Priority
?
192 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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…
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): …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
Suggested Courses

830 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