0
如何使FOR創建全局變量?AS3 |用於創建全局變量
function processXML(e:Event):void {
for (var i:int=1; i <= 7; i++) {
var str_(i):String = ('str' + (i));
trace ('str: ' + i);
}
}
輸出控制檯〔實施例:
str: 1
str: 2
str: 3
str: 4
str: 5
str: 6
str: 7