Groups | Blog | Home
all groups > flash actionscript > december 2004 >

flash actionscript : Supported HTML tags - what am I doing wrong?


FF
12/14/2004 10:54:14 PM
I haven't been able to get the basic example in the online documentation
entitled "Overview of using HTML-formatted Text" to work (Flash MX 2004
Pro). I create a text field and name it the same name as in the examples and
then paste example code into frame 1 of timeline. Nothing works. Here's the
code per the doc and my AS in frame one:

headline_txt.text = "string" //this works
// code below doesn't display in text field
headline_txt.html = true;
headline_txt.htmlText = "<font face='Times New Roman' size='24'>This is how
you assign HTML text to a text field.</font>";

If I test field using headline_txt.text = "string" (not htmlText but text),
then everything works so I know it's not a instance naming issue. Anyone
else experiencing this? I have tried numerous other examples and nothing is
working related to html.

BTW, the reason I started down this path was to explore how I might return a
mapquest image on the fly to my flash movie based on some address info.
Didn't find any related posts...anyone done this? Thanks.
FF
12/16/2004 12:54:34 PM
Martin,
Thanks for testing. I just did same once again and only "string" text shows
up in the box. You are seeing the text "This is how you assign HTML text to
a text field.", correct? Are you windows or mac platform?

in article cpsc6u$ai2$1@forums.macromedia.com, DukeNukem at
webforumsuser@macromedia.com wrote on 12/16/04 8:13 AM:

[quoted text, click to view]

DukeNukem
12/16/2004 4:13:18 PM
I've tried the code you supplied and it works fine.

I used a dynamic textField (Arial 10 px).

DukeNukem
12/17/2004 9:53:29 AM
Yes, I see all of the text in the correct size.

I use windows XP, Flash MX 2004 Pro, Player 7.0.19.0

AddThis Social Bookmark Button