next up previous contents
Next: italics Up: Methods Previous: fontColor   Contents


fontSize

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


Syntax

  1. StringObj.fontSize(size)
  2. "String Literal".fontSize(size)


Parameters

size
It is an integer value that determines the size of the text.


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.fontSize(-1);
trace(r);
//output:
//<FONT SIZE="-1">SWFKit FFish Script Demo</FONT>




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