?
Solved

External text with link option

Posted on 2006-06-19
2
Medium Priority
?
161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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 …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses

770 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