As with previous versions of ActionScript, there exists a trace function for outputing messages into the Output panel in Flash. In ActionScript 1 and 2, trace accepted one argument that was outputed to the Output panel in Flash. In ActionScript 3, trace now accepts any number of arguments and outputs them each.
ActionScript Code:
trace(value1, value2, value3);
Note: You could get essentially the same effect in AS1 and AS2 using
ActionScript Code:
trace([value1, value2, value3]);
using an array
0 评论:
发表评论