Declaring and Outputting a String Value in AS3

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

Used for the blog post:

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.";
  4. //trace the value of the String
  5. trace(str);


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.