Solved

External text with link option

Posted on 2006-06-19
2
153 Views
Last Modified: 2010-04-03
Hi, I am calling external text through a txt file.  On this txt file I would like to have some words/phrases as links to internet sites........the code that is calling the txt file looks this way:

-----------------

System.useCodepage = true;
fieldtext.html = true;
myLoadVar = new LoadVars();
myLoadVar.load("featured.txt");
myLoadVar.onLoad = function(success) {
      if (success == true) {
            fieldtext.htmlText = myLoadVar.myText;
      }
};

-------------------------------




The txt file *featured.txt* code looks this way:


-------------------------

mytext=<html><font color="#FFFFFF">content goes here
</font></html>

----------------------


Or if anyone knows a better way to call external txt files that could have hyperlinks inside the txt file and maybe also have a scroll option as well?

Thanks


















0
Comment
Question by:johanwilches
2 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 total points
Comment Utility
Hi,

you can simply use <a href => tag for link..

for example:
mytext=<html><font color="#FFFFFF">content goes here </font>this is a <a href='http://www.google.com'>link</a></html>

secondly,
to have a scrollbar on textField, just drag a drop a UIScrollbar component on exact middle of textField.

scrollBar will automatically get snapped to the textField


Rgds
Aneesh
0
 

Author Comment

by:johanwilches
Comment Utility
Hi aneeshchopra...thank you...works pretty sweet...the scrollbar component also worked as you explained....thanks alot.

Cheers,

Johan,
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

762 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

12 Experts available now in Live!

Get 1:1 Help Now