#ActionScript

ActionScript的for循环

actionscript支持的for循环有三种形式:1.for(初始值;条件;递增)例如:for(varx:int=1;x<=10;x++)trace(x);trace()会把结果输出到日志文件.2.for(属性名in数组/对象)例如:varmyArray:Array=["alpha","beta","chi"]...
代码星球 代码星球·2021-01-23