Hi!
I need to load an image into existing movieclip with LINKAGE ID
this is an example code:
var dynamicClass:String = "LINKAGE_NAME"+i;
var classRef:Class = getDefinitionByName(dynamicClass) as Class;
var page:MovieClip = new classRef();
addChild(page);
page.addChild(loader);
loader.load(request);
it works, but it adds ANOTHER movieclip into the scene.
and i know why - addChild(page).
i want to load image directly to exisiting movie clip THAT IS ALREADY IN THE SCENE.
i mean when loading is complete there is a 2 movie clips in the scene:
one with an image we loaded, and one is empty.
if i cut this line: addChild(page);
there is nothing exept an empty movie clip - where i need to load an image.
help me out please