Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-26-2005, 05:29 PM   #1
Senior Member
Join Date: Feb 2003
Posts: 360
Default Creating Links from a .txt file format


Could anyone point me in the right direction of how to make links in a .txt document please?

I have attached my files as you see the flash file reads from the .txt doc - but how can I add links to the .txt file?

What I want to do is to be able to add links to other urls from this copy.

Anyone know an easy way to do it please?


Last edited by diggz; 04-07-2008 at 06:23 PM.
diggz is offline   Reply With Quote
Old 04-26-2005, 06:45 PM   #2
Join Date: Apr 2005
Posts: 62

I'm a newbie to Flash, but I *think* it works something like this (please correct me if I'm wrong). You add hyperlinks to your text file like so:

Come and see the <a href="http://www.cnn.com">CNN website</a>.

Now when you read in your text file you have to make sure the dynamic text field that will hold the text is allowed to display as HTML. To do this I use this AS code:

myTextBlock.html = true;

I think that if add links to your text file and then declare the text field HTML endabled, you should be able to add your links. You might want to add a style sheet as well so that you have control over how the text appears.


TheJazzMan is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 11:37 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.