# Change name to attached swf

**URL:** <https://forum.kirupa.com/t/change-name-to-attached-swf/288354>\
**Category:** flash\
**Created:** [May 14, 2009, 4:05pm UTC](https://forum.kirupa.com/t/change-name-to-attached-swf/288354 "2009-05-14T16:05:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![francescoemanue](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@francescoemanue](https://forum.kirupa.com/u/francescoemanue)\
**Post date:** [May 14, 2009, 4:05pm UTC](https://forum.kirupa.com/t/change-name-to-attached-swf/288354/1 "2009-05-14T16:05:33Z")

</div>

Hello everybody, this is my first post.

I started working with As3 and i’m finding a lot of difficoulties, i hope you can help me figuring them out

Basically i make a for cycle from an array, i pull out values from each item in the array and later i split again that item.  
Then i load each swf into the movieclip “mappa” and change position, rotation etc…  
Everything is ok, but i need to attach every movie with a different name and instance name.

I would like to know too how can i access later movies i loaded for changing x position and so on.

this is the code:

```auto
 
for (var x:int=0;x<contieni.length;x++){
 
 var dettaglio:Array = contieni[x].split("|");
var fan:Loader = new Loader();
this.mappa.addChild(fan);//aggiungiamo il movieclip dentro la mappa
var bgURL:URLRequest = new URLRequest("test.swf");//carichiamo il movieclip dell'auto
fan.load(bgURL);
fan.x = dettaglio[1];///assegniamo x
fan.y = dettaglio[2];///assegniamo y
fan.rotation = dettaglio[3];///assegniamo rotazione
fan.name = dettaglio[5];
}

```

Thank you so much for help  
Francesco
