Declaring and Outputting a String Value in AS3


/ Published in: ActionScript 3
Save to your folder(s)

Used for the blog post: http://www.brettwidmann.com/2010/08/flash-primitive-data-types


Copy this code and paste it in your HTML
  1. //declare a String, and assign a value to it
  2. var str:String = "This is a string.";
  3.  
  4. //trace the value of the String
  5. trace(str);

URL: http://www.brettwidmann.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.