next up previous contents
Next: big Up: Methods Previous: search   Contents


anchor

Description
Places an HTML anchor with a NAME attribute around specified text in the object.


Syntax

  1. StringObj.anchor(anchorstring)
  2. "String Literal".anchor(anchorstring)


Parameters

anchorstring
Text you want to place in the NAME attribute of an HTML anchor.


Returns

It creates a named anchor out of a String object.


Example

s = "SWFKit FFish Script Demo";
r = s.anchor("anchor1");
trace(r);
//output:
//<A NAME="anchor1">SWFKit FFish Script Demo</A>




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