Puoi impostare x e y del contenuto caricato:
Codice PHP:
function fineCaricamento(loadEvent:Event)
{
addChild(loadEvent.currentTarget.content);
loadEvent.currentTarget.content.x = 100;
loadEvent.currentTarget.content.y = 100;
}
Oppure puoi aggiungere al tuo DisplayObjectContainer direttamente il Loader, il che ti premetterebbe di evitare anche la funzione fineCaricamento:
Codice PHP:
var loader:Loader = new Loader();
loader.x = 100;
loader.y = 100;
addChild(loader);
loader.load(new URLRequest("contenuti_.swf"));
E comunque puoi sempre inserire il contenuto caricato dove vuoi:
Codice PHP:
nomeContenitore.addChild(loadEvent.currentTarget.content);