I load an image into a MovieC开发者_高级运维lip. At a second time I want to move this image to another MovieClip. Is this possible? How?
yes, that's possible.
just re-parent the image using removeChild() and addChild():
var loader:Loader = new Loader();
loader.load(new ULRRequest("pathToImage.jpg"));
movieclip1.addChild(loader);
// sometime later ...
movieclip1.removeChild(loader); // optional
movieclip2.addChild(loader);
voilà ...
精彩评论