Home » actionscript 2.0, actionscript 3.0

Trace statement in Actionscript

5 March 2009 No Comment

We can trace as many variables or Objects with single trace statements in both Actionscript 2.0 and Actionscript 3.0 without concat operator ‘+’

actionscript 2.0

var one:Number = 1;
var two:String = "two"
trace([one, two]);

actionscript 3.0

var one:Number = 1;
var two:String = "two"
trace(one, two);

one difference is that no need to use square brackets in AS3.0

VN:F [1.7.7_1013]
Rating: 0.0/10 (0 votes cast)
VN:F [1.7.7_1013]
Rating: 0 (from 0 votes)

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.