Call the valueOf() method. The valueOf() method of any class returns the primitive value if one exists : String : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » String »

 

Call the valueOf() method. The valueOf() method of any class returns the primitive value if one exists


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var sTitle:String = new String("ActionScript Bible");
        
        trace(sTitle.valueOf())// Displays: ActionScript Bible

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo String
» String