Return to Snippet

Revision: 7833
at August 15, 2008 14:15 by sebastianassaf


Updated Code
var boarder:mcBoarder;
var boarderX:Number = 127; 
var boarderY:Number = 271;
var boarderR:Number = 0;

for(var i:Number = 0; i < 6; i++)
{
	boarder = new mcBoarder();
	addChild(boarder);
	boarder.x = i * 75;
	boarder.x = boarderX;
	boarder.y = boarderY;
	boarderY -= 75;
	boarderX += 75;
	boarderR -= 45;
}

Revision: 7832
at August 15, 2008 13:58 by sebastianassaf


Initial Code
var boarder:mcBoarder;

for(var i:Number = 0; i < 6; i++)
{
	boarder = new mcBoarder();
	addChild(boarder);
}

Initial URL

                                

Initial Description
Used to place instances of symbols onto stage with AS

Initial Title
Lynda.com - AS3 - Using a loop to generate instances of a class

Initial Tags

                                

Initial Language
ActionScript 3