why doesnt the tutorial work with this code
its exactely the same but the images don't 'loop'
code:
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;
streetWidth = 1500;
animator.onEnterFrame = function(){
bg_1._x -= speed;
bg_2._x -= speed;
if(bg_1._x <= -bg_1._width) bg_1._x = streetWidth;
if(bg_2._x <= -bg_2._width) bg_2._x = streetWidth;
}