Solved

Flash Text Format URL Not Working??

Posted on 2004-09-15
3
158 Views
Last Modified: 2012-06-27
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
Comment
Question by:splendorx
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
muso120999 earned 250 total points
ID: 12069917
add the line:
       eval("menuName"+i+".recentBroadcast"+i+"_txt").html = true;

before you set htmlText (you aren't setting it to html currently)
0
 
LVL 1

Author Comment

by:splendorx
ID: 12074139
Thank you!  Works great!!  I did not know it had to be in a specific order.
0
 
LVL 10

Expert Comment

by:muso120999
ID: 12074201
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now