Solved

How does Hypertext work in Flash?

Posted on 2006-10-29
3
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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 shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.
Suggested Courses

636 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