:hangover: :hangover: :hangover:
Please help me, I’ve spent several nights, and I’m still confused about this problem:
I have x number of images in a folder and another x of that in grayscale. The scroller moves the images mouse-sensitively and if I roll over an image it should change to the color image. The mouse-sensitive scroller is working perfectly I think.
The problem is with the rollover function.
If I do like this shown below, the trace(i) outputs 40!!! That would be impossible because in this case pics = 13.
All the imageHolders (39) are affected in this, so it works before .onRollOver !
_root.onEnterFrame = function() {
for (i=1; i< ( (3*pics)+1); i++) {
_root[“imageHolder”+i].onRollOver = function() {
trace(i);
loadMovie(urlcolor+i+".jpg", (“imageHolder”+i));
}
…
But I figured out if I write a function outside the loop it will be working but the loadmovie function is maybe not the good solution, because after rolling out the image space remains empty. defining onRollOut doesn’t help.
I also tried that I load the gray and the color images in separate movieclips under each other but the scroller positions 2 images badly after a few seconds. This was the best method I found out after a few days (
I think I should use attachMovie to move both the images at one time, but nor that worked for me. How do I assign linkage id to a dynamically created mc???
SO, I would be VERY VERY glad if you would look up my code and suggest something! I know I’m very close to the solution!
The .fla and the (small) images are here: http://www.visagemodels.hu/flash/flatest.zip