ccc = Math.ceil((Math.random()*3)); var tmpSprite:Sprite; if (ccc==1) {tmpSprite = new l1();} if (ccc==2) {tmpSprite = new l2();} if (ccc==3) {tmpSprite = new l3();}