Return to Snippet

Revision: 39675
at January 19, 2011 22:08 by tuffstudio


Initial Code
for (var i:uint = 0; i < 20; i++)
{
    var displayObject:MyDisplayObject = new MyDisplayObject();
    displayObject.x = displayObject.width * ( i % 5 );
    displayObject.y = displayObject.height * Math.floor( i / 5 );
    addChild(displayObject);
}

Initial URL

                                

Initial Description

                                

Initial Title
Position Display Objects in a Grid Layout

Initial Tags

                                

Initial Language
ActionScript 3