PDA

View Full Version : Scrolling movie seamless behind a mask?


AnubisibunA
09-07-2002, 05:04 AM
I've been searching the net/books/flash for a few days now trying to figure this out.

I want to scroll a very long vertical clip with a small mask 200 x 100. I do not know what to add to make the movie seamless. A duplicateMovieClip? My movie is a panel of static images, so it's obvious when the end comes.

I've only found that you have to name your clip
then make a onClipEvent actionscript with the x or y coordinates set at where to start, and then where to repeat the clip if a certain x or y is met. I cannot figure it out though.

something like this
---------------------------------------
onClipEvent (enterFrame) {
instancenamehere.x = 0;

if (instancenamehere._x <= -500) {
instancenamehere._x = 0;
}
}
---------------------------------------

I know to change the x's to y's (since mines vertical), but I do not know what to do with my actual movie clip. Do I just animate it w/a tween and then place it under my mask on the stage?

Any help with this simple question will be greatly appreciated! ---> THANKS!

zoomfreddy
09-07-2002, 10:49 AM
let see:


onClipEvent (load) {
speed=10;
}
onClipEvent (enterFrame) {
this._y += speed;
if (this._y>=500) {
this._y = 0;
}
}

this is the basic scroll from top to bottom, just put it on your movieclip
mmm....just check the fla
:cool:

AnubisibunA
09-13-2002, 12:56 AM
THANKS!

Will give it a try