There is no need for attach the clip if it is not in the library and it is the AS2 code below is the relevant code in AS3 when it is in stage:
i) Convert your first image into a movieclip with the instance name "bg_1"
ii) Convert your second image into a movieclip with the instance name "bg_2"
var speed:Number = 1;
var cloudWidth:Number = 380;
bg_1.x = bg_1.width/2:
bg_2.x = bg_2.width/2:
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;
it works wonderful. Thanks a lot for the help. I need a small help. My image (bg_1) appears very late on the Stage. I don't want to increase the speed but the image should appear within 5 seconds.
If you have the image on the stage then it would not get a delay to show. What do you mean exactly?
It is working fine.