Basic document class and image grid system.
The intro:
I sometimes help out future flash talents with basic examples/code snippets and recently had alot of feedback about one topic in particular.
I can already hear you guys and girls shout: “No time to loose, show me the example!” And right you people are…
The file:
Get it here! (click it, click it!)
What the heck does it do?
Well, it is a flash file with a document class that builds a grid with a for loop. Every grid item loads an image with a custom imageLoading class that is included in the .zip. It is a file to learn from, not to steal from… blah blah, yeah yeah, you can steal it.
Go now, my children! Feed on my example and make me proud! Soon the world will be filled with actionscript 3.0 vampires! Or euhm… *ahum* … humans.

is it possible to place different sizes images on grid like ted.com
Hey Mahesh,
Yes, but you will have to adjust the script a bit:
- adjust the positioning so pics get added after the previous one ends. Now it uses fixed values for positioning.
- keep a “fullWidth” parameter so you know when you have to start a next line
I hope this is clear enough, give me a shout if it isn’t.
Maarten
[...] intro: A while ago I made a post about loading images in a grid and an example of how to use the document class. Basic stuff, I know, but it’s a good base to [...]