Solved

Flash Text Format URL Not Working??

Posted on 2004-09-15
3
164 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
[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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Array is not working ( AS2 ) 4 169
How to display a webpage in a flash 10 385
camtasia alternative that can record 3 hours video plus audio 24 145
free photo watermark software 5 104
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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 how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

734 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