Solved

Flash Text Format URL Not Working??

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

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