Posted By

martin9999uk on 01/10/11


Tagged

sort as3 grid


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

nyong15
kure69


Sort into rows


 / Published in: ActionScript 3
 

  1. var row:Number;
  2. var col:Number;
  3. for (var i:int = 0; i < dog; i++)
  4. {
  5. row = Math.floor(i / 3);
  6. col = i - 3 * row;
  7. Debug.log("row = "+row);
  8. Debug.log("col = "+col);
  9.  
  10. }

Report this snippet  

You need to login to post a comment.