package { import flash.display.*; import flash.text.*; import flash.net.URLRequest; public class myMemoryGame extends MovieClip { public function myRand(apple) { var theNum:uint = new uint; var randomNo:Number = Math.floor(Math.random()*apple)+1; theNum = randomNo; return (theNum); ; } public function BitmapExample(){ var loader:Loader = new Loader(); var request:URLRequest = new URLRequest("sample"+myRand(12)+".jpg"); loader.load(request); addChildAt(loader,0); } public function myMemoryGame() { // Main level constructor stuff goes here. var myDeck = new deck(myRand(10)); //this is just a testing trace call to make sure things are working for (var i:int = 0; i