Solved

External text with link option

Posted on 2006-06-19
2
160 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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 …
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

729 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