开发者

For Loop Variables declaration

开发者 https://www.devze.com 2023-01-22 13:37 出处:网络
How to initialize and ma开发者_JS百科ke condition for 2 variables in singlefor loop in Flex let keep i and j are two variableslike this:

How to initialize and ma开发者_JS百科ke condition for 2 variables in single for loop in Flex

let keep i and j are two variables


like this:

            for(var i:int=0,j:int=2;i<10 && j<20;i++,j+=2){
                trace(i);
                trace(j);
            }


You may try :

for (var i:uint = 0, j:uint = 0; i < something, j < something_else ; i++, j++) {
   //...
}
0

精彩评论

暂无评论...
验证码 换一张
取 消