Hello! How i can fill a movie clip with an external image
my code bellow works only when i import the image and use linkage
with name ‘fonto’. I try also to create a movie clip but when i put it in place of fonto it doesn’t work.
import flash.display.BitmapData;
var jpg:BitmapData = BitmapData.loadBitmap(“fonto”);
function createTiles():Void {
with (_level0) {
beginBitmapFill(jpg);
moveTo(0, 0);
lineTo(0, 550);
lineTo(550, 550);
lineTo(550, 0);
lineTo(0, 0);
endFill();
}
}
createTiles();