Infinite Scrolling

Hi People,

I want scroll a seemless graphic symbol horizontally forever. I know abou the tutoral on kirupa.com but it includes code to resize the clip according to the mouse positon. i dont want this, I just want it to scroll on and on. Its a cartoon sea that looks like its waves are moving if scrolled. More size efficient then animating the wave by hand. How can I do this?

Thanks

Here it is.
:slight_smile:

one bug


onClipEvent (load) {
	speed = -5;
}
onClipEvent (enterFrame) {
	_x += speed;
	if (_x<-550) {
		_x = -1; // <---------------------- should be "speed" ( _x = speed); !!! 
	}
}

Excellent, thats really cool. Seems my sea image is popular = )

Quite right too, only spent 2 hours on it…!!

If anyone is intrested oin how it was created, with 3D Studio MAX 4.0, Seascape plugin, with a 4 ink level toon shader.

lol my bad :stuck_out_tongue:
it was 6:08 in the morning, i didnt know what i was doing. :stuck_out_tongue: :stuck_out_tongue:

although there is a bug, how does this thing still manage to work correctly??

I still cant make this work!! The banner is 960, so I made a new movie clip and imported my jpeg into it. Then i copied it and moved it to the end of the previous one, so that it was twice the width and seemless. then went back to the main stage and added the actionscript to the clip, and changed the 550 to 960. thought that would work, but no luck.

Help!! thanx!

Your stage should also be 960 pixels width.

it already is 960

Post the fla :wink:

to big to post…its on my server though…

http://www.maxforever.co.uk/carib_banner2.zip

Here it is :slight_smile:

[edit]http://www.geocities.com/claudiodj/carib1.zip[/edit]

hmmm try http://www.geocities.com/claudiodj/
ive placed a link to your file

A great many thanks for that. Anything I can do for you, just ask.

Glad you got it working :slight_smile:
Just make me some cool 3D Studio MAX stuff lol
just kidding :stuck_out_tongue: :stuck_out_tongue:

cool 3d studio max stuff…hmmmmm :slight_smile: pop back in a bit…