Flash Video Player

TextEvent LINK

by admin on August 18, 2007 · 0 comments

in Flash CS3, Sintax, Tutorials

A little while ago, we saw how to use the property htmlText of the TextField class to add a link to a text field with Actionscript 3.0.
That time, we did not use any event to tell Flash to redirect the user to a specific page.  The event was included in the HTML tag <a> using the attribute ‘href’.
 
So, I ask myself, if I have a server script which returns the html text with the tag <a> but instead of using it to redirect the user to a web page,  I would like to reuse it in my script for other means, how would I proceed?

In this tutorial, we will see how to use an HTML string with a tag <a> assigned at the property ‘htmlText’ of a text field but without, once clicked, the redirection to another web page.

Using, the event LINK of the TextEvent class, we can tell the function called by this event to start a given code still retrieving the url from the HTML tag <a>.

Let us see how to do it…

Read all

Share This Post

Related posts

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

Older post: SharedObject

Newer post: Bitmap smoothing how to reduce image distortion