Solved

External text with link option

Posted on 2006-06-19
2
155 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
ID: 16938991
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
ID: 16939816
Hi aneeshchopra...thank you...works pretty sweet...the scrollbar component also worked as you explained....thanks alot.

Cheers,

Johan,
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

831 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