PDA

View Full Version : Continously horizontal scroll image



brownpen
October 6th, 2005, 08:40 AM
Hi,

I need help here.. I wan to do a continously horizontal scrolling image without displaying any disruptions in the .. but i can't do this effect..

Can anyone teach me?

Thank You.

kookaburra
October 6th, 2005, 09:12 AM
take two back to back movieclips containing the image..
change the _x of both the movieclips continuously..
put the first movieclip again back to the second movieclip if it goes beyond certain x-xoordinate..

fine?

brownpen
October 6th, 2005, 09:41 AM
I am sorry.. Can't get what you mean.
Do you mean by putting two clips together? I tried with the script below but somehow it is off it can scroll to the left (which is the direction i want) but it disappeared after awhile it will appear from right and scroll to the left again.. continously but at a point it will be off screen. my screen size is 760 by 560

pic.onEnterFrame = function() {
this._x = this._x - 1;
if (this._x < 100) {
this._x = 760;
}
}

grappaFruit
October 6th, 2005, 10:04 AM
You should check the posts before you drop yours. 2 Days ago I answered this question in http://www.kirupa.com/forum/showthread.php?t=194311 , with all the explanation you could dream of. Start reading the last part, where you find out how the logic works.

brownpen
October 7th, 2005, 02:55 AM
Hi GrappaFruit,

Thanks for your great help!! Got it :)