Call the valueOf() method. The valueOf() method of any class returns the primitive value if one exists: : String « String « Flash / Flex / ActionScript
Call the valueOf() method. The valueOf() method of any class returns the primitive value if one exists:
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var sTitle:String = new String("ActionScript Bible");
trace(sTitle.valueOf()); // Displays: ActionScript Bible
}
}
}