next up previous contents
Next: fontSize Up: Methods Previous: fixed   Contents


fontColor

Description
Places an HTML $\langle\mbox{FONT}\rangle$ tag with the COLOR attribute around the text in a String object.


Syntax

  1. StringObj.fontColor(color)
  2. "String Literal".fontColor(color)


Parameters

color
It is a string containing a color value. This can either be the hexadecimal value for a color, or the predefined name for a color.


Returns

It returns a string with HTML $\langle\mbox{FONT}\rangle$ tags around text in the stringObj.


Example

s = "SWFKit FFish Script Demo";
r = s.fontColor("RED");
trace(r);
//output:
//<FONT COLOR="RED">SWFKit FFish Script Demo</FONT>




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.