How can I continously move and loop images vertically and evenly spaced?
HI, I have approx 10 images of varying height that i want to continuously move down the page and loop... so they infintily scroll down and just keep repeating in a loop. I need these evenly spaced with eg 30px inbetween each one, but they are different heights
My actionscripting knowledge is still fairly low and Im not too sure how to go about this. Moving them with onEnterframe is no problem I know that much. its the spacing and correct repositioning of them in the to start the loop again im not sure on
I have given all my Mc's LInkage names of image1, image2 etc.
I then want to attach them to the stage spaced evenly, then I want them to move down the stage and when they reach the bottom move up to the top of the list spaced correctly and continue moving.
Itd be geat if it was easy to add more images if needed.
heres what i have so far which isn't working properly with spacing them out...any help would be great !...cheers, thanks in advanec,..Dave
//attach the mc's and space them evenly
for(i=1; i<6; i++) {
attachMovie("image"+i,"image"+i,i)
this["image"+i]._y = this["image"+(i-1)]._height + 30;
trace(this["image"+i]._y)
}
HI, cheers for this, Ive attached the file. but as i mentioned i havent got very far. The MC's are just coloured rectangles at the moment for getting it to work.
HI thanks for the quick reply.
I looked at that thread. the thing is with that it just resets the position when it reaches the bottom of the stage to be at the top again.... what i need is to reposition it to the top of all the other images.. so i have all the images in a row scrolling down and repeating infinitally
they need to be spaced evenly and all scrolling down the age and give the impression ov a contious loop that keeps going.. any ideas how to do this?
cheers
Thanks again.. I understand this fine, But these mc's change position which is not what i want.
I need all the images to stay in a neat row all the time! So its a smooth scroll of images in a line, evenly spaced that loop.
I found this fla in another forum. I need it like this, but without the mouse control, and vertically
I dont need any random scale positions or anything, i simple want the images all in a neat straight row!... so i took out the math.random functions but couldnt get it right. do I put all of the images into one movieclip called mcBox
this is wghat i managed to do with you code which is nearly correct expect for the horrible gap when it loops
I know your busy now , so ill keep looking into it.. cheers
Dave
cheers, Ok...theres no way of me explaining what i want without showing you.. so i have found exactly what i want.. (attached) but the only difference is i dont want it controlled my a mouse movement.
the file you have done for me is great, but as i mentioned i really need these images vertically, and NOT just snapping back to ._y = 0, i need them to pop to the top of the row of images so they all run
1) in a row, with even gaps
2) stay in there positions in the row. like an image gallery!
this row of images will be a lot higher then the stage height.
Thanks again
};
----------------------
PS are you a 3d animator, i saw some ewicked animations on the experiment site of a mouse, and your site. I ask cos Im a motion graphics/ web designer for a copmany in london and do maya work, which is what i love most
your welcome np na those arent my videos..although would liek to get into 3d as well..those movies were downloaded from http://www.archive.org/index.php
P.S of ur company ever needs any flash development/database etc freelance work I'm here lol
Last edited by silentweed; 07-27-2006 at 08:16 AM.
we have in house developers but i couldnt ask them about this cos it was for personal and in work time... likewise.. if you need any motion graphics or 3d,let me know LOL
again cheers for the help www.davidmattock.co.uk