Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use TextFormat.url?? 1

Status
Not open for further replies.

spook007

Programmer
Joined
May 22, 2002
Messages
259
Location
US
I cannot get TextFormat to assign my dynamic text a url, what am I doing wrong?

this.createTextField("links",1,10,10,250,30);
links.text="New Books @ the Library";

myformat = new TextFormat();

myformat.url = "myformat.underline = true;
myformat.color = 0x0000CC;

bIndex=0;
eIndex=links.length;

links.setTextFormat(bIndex,eIndex,myformat);
 
should be maore like this

myTextField.html = true;
myTextField.htmlText = "This is my site";

myTextFormat = new TextFormat ();
myTextFormat.underline = true;
myTextFormat.url = "myTextField.setTextFormat (myTextFormat);
 
Perfect!!! That's what I needed to know... Thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top