Разобрался
Такой код работает:

Код AS3:
import flash.display.*;
function createTrees(count:int):void
{
for (var i:int = 0; i < count; i++)
{
var curTree:BitmapData = new TreeBitmap();
var curBitmap:Bitmap = new Bitmap(curTree);
curBitmap.x = Math.random() * (stage.stageWidth - curBitmap.width);
curBitmap.y = Math.random() * (stage.stageHeight - curBitmap.height);
addChild(curBitmap);
}
}
createTrees(10);
Видимо, глючит complier errors. Спасибо за подсказку!