Image scroll

Hi lostinbeta

How did you create that scroll image again on your banner?

You gave me the script before but now I couldn’t find it on my machine. Please give it to me again. Thanks.

lostinbeta, are you there?

please help…

Thanx

lost has been…lets just say…lost has been detained at the canadian border for “lighting it up” apparantly, laws are much dif in america than they are in Canada…so the american authorities have some questions for him :crazy: he will come don’t worry, i think he read EVERY single thread in the forum or something

Sorry, haven’t been around much today, I was with my girlfriend.

onClipEvent (load) {
	speed = 5;
}
onClipEvent (enterFrame) {
	endX = _root._xmouse;
	this._x += (endX-_x)/speed;
	if (this._x<=0) {
		this._x = 0;
	}
	if (this._x>=StageWidth) {
		this._x = StageWidth;
	}
}

I just used code like that on an image that was 3 times the width of my actual movie. Just replace StageWidth with the width of your stage (of course). I tried the Stage.width feature in MX, but it didn’t seem to want to work :-\

It is pretty self explanitory.

Here is the easing tutorial…
http://www.kirupa.com/developer/mx/followease.asp

thanks alot…

What are you doing spending time with your girlfriend when you have posts to answer - ■■■■ it Lost, get your prioritys straight!

:slight_smile:

LOL, I know I know, it is hard to believe that I actually DO have a life outside this forum

But it is true… kind of :stuck_out_tongue: