Skip to content

Instantly share code, notes, and snippets.

@jonathantorres
Created February 4, 2010 20:41
Show Gist options
  • Save jonathantorres/295081 to your computer and use it in GitHub Desktop.
Save jonathantorres/295081 to your computer and use it in GitHub Desktop.
for (var i:int = 0; i < xmlThumbs.length() / 2; i++) {
var thumb:JThumbnail = new JThumbnail(xmlThumbs[i].img.toString(), xmlThumbs[i].url.toString(), xmlThumbs[i].name.toString());
line1.addChild(thumb);
thumb.x = i * (150 + thumbSpacing);
}
for (var j:int = 0; j < xmlThumbs.length() / 2; j++) {
var thumb2:JThumbnail = new JThumbnail(xmlThumbs[j + 5].img.toString(), xmlThumbs[j + 5].url.toString(), xmlThumbs[j + 5].name.toString());
line2.addChild(thumb2);
thumb2.x = j * (150 + thumbSpacing);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment