Hello

The following code, I found on the Web site is for the use of the image that is in the library. But how to change it works with the image on stage. Because I don't want to use from the library.

The second question - is it AS2 or AS3 code. If it is AS2 code then do let me know how to change to work with AS3.

Animator = CreateEmptyMovieClip('animator',1);
bg_1 = animator.attachMovie('bg_mc','bg_1',1);
bg_2 = animator.attachMovie('bg_mc','bg_2',2);
bg_1._x = bg_1._width / 2:
bg_2._x = bg_2._width / 2:
Speed = 1;
cloudWidth = 380;
animator.onEnterFrame = function() {}
bg_1._x = speed:
bg_2._x = speed:
If (bg_1._x < = - bg_1._width) bg_1._x = cloudWidth;
If (bg_2._x < = - bg_2._width) bg_2._x = cloudWidth;
}

Thank you.