Very easy Question I think!

[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


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

And I want to apply the “Duplicate Background” 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:


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]