Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-26-2005, 05:29 PM   #1
diggz
Senior Member
 
Join Date: Feb 2003
Posts: 360
Default Creating Links from a .txt file format

Hi,

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?

D

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
TheJazzMan
Member
 
Join Date: Apr 2005
Posts: 62
Default

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.

HTH

JazzMan
TheJazzMan is offline   Reply With Quote
Reply


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 06:33 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.