trace() in ActionScript 3.0
In AS2, trace() accepted only one parameter. But, in AS3, trace accept one or more parameters.
AS2에서는 trace()에 하나의 파라메터만 입력 할 수 있었지만,
AS3에서는 여러 개의 파라메터를 보낼 수 있게 바뀌었네요.
AS3에서는 여러 개의 파라메터를 보낼 수 있게 바뀌었네요.
public function trace(… arguments):void
Parameters
… arguments — One or more (comma separated) expressions to evaluate. For multiple expressions, a space is inserted between each expression in the output.quote from ActionScript 3.0 Language and Components Reference
When you execute this code
trace(“a”, “b”, “c”, “d”);
a string separated by space will be printed.
a b c d
trace(“a”, “b”, “c”, “d”);
a string separated by space will be printed.
a b c d
trace(“a”, “b”, “c”, “d”);
를 실행하면
a b c d
와 같이 ” ” (공백문자)로 구분된 문자열이 출력되는 군요.
를 실행하면
a b c d
와 같이 ” ” (공백문자)로 구분된 문자열이 출력되는 군요.