Mobile app version of vmapp.org
Login or Join
Mendez620

: Your problem is that, even though you are adding the loader to the parent imageViewer_mc movieclip, the loader will not have the same size as its parent. You can set the width and height

@Mendez620

Your problem is that, even though you are adding the loader to the parent imageViewer_mc movieclip, the loader will not have the same size as its parent.

You can set the width and height of the loaded image as follows:

var loader:Loader =new Loader();
imageViewer_mc.addChild(loader);
loader.load(new URLRequest("image2.jpg"));

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(){
loader.content.width = 200;
loader.content.height = 400;
});


A graphic-based solution, to a different effect, would be to simply crop the image with a layer mask. (New Layer, Right-Click Mask, Unlock, Draw shape to crop within it).

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Mendez620

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme