all groups > flash actionscript > june 2004 >
You're in the

flash actionscript

group:

setting fontcolor for some htmlText problem


Re: setting fontcolor for some htmlText problem Rover
6/29/2004 2:52:47 PM
flash actionscript:
[quoted text, click to view]

Well, you don't say what it's doing. But, my guess would be that you have
forgotten that "color" is an attribute of the <font> tag, hence <font
color=0x00ff00> not <fontColor=0x00ff00>. Assuming of course that what is
Re: setting fontcolor for some htmlText problem Rover
6/29/2004 3:40:08 PM
[quoted text, click to view]

I notice you are also specifying the color in "Actionscriptese", using the
0x notation in front of the value. Remember that you are back in the HTML
way of speaking (textfield.htmlText after all). That means two things:
quotes around the value and a hash mark ('#00ff00').

Hope that helps.

setting fontcolor for some htmlText problem vinZ
6/29/2004 9:38:17 PM
Hi there,

Anyone knows why this ain't workin'

_root.indigatortxt.htmlText = "Blabla" + "<fontColor=0x00FF00>" + "<b>" +
selectedNode.attributes.label + "</b>" + "</font>" + " blabla.";


cheers,
vincent

(posted before in an other form but I think it is more a script kinda thing)



Re: setting fontcolor for some htmlText problem Laiverd.COM
6/29/2004 9:56:25 PM
I think it's more a matter of reading the manual ;-)

_root.indigatortxt.htmlText = "Blabla <font color='#00FF00'><b>" +
selectedNode.attributes.label + "</b></font> blabla.";

If selectedNode.attributes.label turns up undefined you have a different
problem.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Re: setting fontcolor for some htmlText problem vinZ
6/29/2004 9:58:19 PM
hi Rover,

Your guess was right, but your sollution does not work :(
the bold tag works but the color tag is simply being ignored.

vincent

//----------------------------------------------------------//

[quoted text, click to view]

Re: setting fontcolor for some htmlText problem vinZ
6/29/2004 10:01:10 PM
thanks John,

but the xml works fine :)
it is the fontcolor that does not work, can't find any off that under F1.

cheers,
vincent

//--------------------------------------------------------//

[quoted text, click to view]

Re: setting fontcolor for some htmlText problem Laiverd.COM
6/29/2004 11:05:47 PM
I checked the code I posted and it works perfectly well. What version of
Flash are you using? For which player are you publishing?

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Re: setting fontcolor for some htmlText problem vinZ
6/30/2004 12:13:58 AM
oeps sorry,

overlooked your code John,
it works great do, thanks!!

cheers,
vincent

//--------------------------------------------------------------//

[quoted text, click to view]


AddThis Social Bookmark Button