/* Code from "ActionScript 3.0 Game Programming University" by Gary Rosenzweig Copyright 2007 http://flashgameu.com. See the book or site for more information */ package { import flash.display.*; public class MatchingGame1 extends MovieClip { public function MatchingGame1():void { for (var x:uint = 0; x < 6; x++) { for (var y:uint = 0; y <6 ;y++) { var thisCard:Card = new Card(); thisCard.stop(); thisCard.x = x * 52 + 120; thisCard.y = y * 52 + 45; trace(thisCard.x, thisCard.y); addChild(thisCard); } } } } }