Solved

How does Hypertext work in Flash?

Posted on 2006-10-29
3
181 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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 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…
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.

708 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

17 Experts available now in Live!

Get 1:1 Help Now