# Very easy Question I think!

**URL:** <https://forum.kirupa.com/t/very-easy-question-i-think/192386>\
**Category:** flash\
**Created:** [June 28, 2006, 8:30am UTC](https://forum.kirupa.com/t/very-easy-question-i-think/192386 "2006-06-28T08:30:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romberry](https://avatars.discourse-cdn.com/v4/letter/r/f07891/32.png) [@Romberry](https://forum.kirupa.com/u/Romberry)\
**Post date:** [June 28, 2006, 8:30am UTC](https://forum.kirupa.com/t/very-easy-question-i-think/192386/1 "2006-06-28T08:30:41Z")

</div>

[LEFT]Hi,

It seems easy but just I couldn’t figure it out! How to add/change linkage name of a movie clip with action script?

I created movie clip with actionscript and loaded an image file in it,like that

```auto

createEmptyMovieClip("MyMovieClip",98);
loadMovie("pattern.gif",_root.MyMovieClip);

```

And I want to apply the “[Duplicate Background](http://www.kirupa.com/developer/mx2004/duplicatebackground.htm)” tutorial, but I found out that to use attachMovie function, I need to define linkage name:h:

or is there any other way to do it?  
Here is all actionscript that I am working on it;:sc:

```auto

createEmptyMovieClip("MyMovieClip",98);
loadMovie("pattern.gif",_root.MyMovieClip);

tileBG = function () {

tile_width = 34;
tile_height = 34;
//
x_max = Math.round(Stage.width/tile_width);
y_max = Math.round(Stage.height/tile_height);
trace(x_max);
trace(y_max);
for (x=0; x<=x_max; x++) {

for (y=0; y<=y_max; y++) {
bg = _root.attachMovie("MyMovieClip", "bg"+x+y, this.getNextHighestDepth());
bg._x = tile_width*x;
bg._y = tile_height*y;

}

}

};
tileBG();

```

thanks  
[/LEFT]
