Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

Flash Text Format URL Not Working??

I am unable to get the url to be clickable.  Any ideas??


for (i=0; i<3; i++) {
      _root.createEmptyMovieClip("menuName"+i, 600+i);
      eval("_root.menuName"+i).createTextField("recentBroadcast"+i+"_txt", 501+i, 435, 45+(i*17), 140, 20);
      eval("menuName"+i+".recentBroadcast"+i+"_txt").htmlText = "hello world";
      eval("recentBroadcast"+i+"_txt").html = true;
      myFormat = new TextFormat();
      myFormat.color = 0x000000;
      myFormat.font = "Arial";
      myFormat.bold = true;
      myFormat.url = "http://www.yahoo.com";
      eval("menuName"+i+".recentBroadcast"+i+"_txt").setTextFormat(myFormat);
}
0
splendorx
Asked:
splendorx
  • 2
1 Solution
 
muso120999Commented:
add the line:
       eval("menuName"+i+".recentBroadcast"+i+"_txt").html = true;

before you set htmlText (you aren't setting it to html currently)
0
 
splendorxAuthor Commented:
Thank you!  Works great!!  I did not know it had to be in a specific order.
0
 
muso120999Commented:
Cool!

I don't think the order of the lines actually matter too much (I was probably more specific than I needed to be!), as long as it's called before the setTextFormat
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now