Hi everyone… .
Project: It’s for an automated slideShow that will be randomly be choosing over 100+ images in her portfolio so i’m looking for the not only the smoothest feel/look, but also practical on the fact that i will have 100+ images. Do I maybe need to invest/learn in some actionScript masks or something ?.I’m gonna research that more tomorrow, but I thought I’d get the word out to you guys now, as I’ve been reading alot of knowledge here and it seems friendly. Looks forward to meeting some of you !
I have been experimenting with some “arrays” and “Math.random” codes but as I’m finding it hard to “realize” how some code really works…and my real stumper, is getting this swapDepth to work with it all as it does in this site:(if that’s what it is in fact)
click on the first of each category until you get to the portfolio section and then use the arrows down below to change the images…see how they are being masked out “on top” of the previous image… how the heck are they accomplishing that one ? Some form of swapDepth ? It’s fresh and I would love to learn the structure behind it.
At the moment I am calling random .swf’s, but am sure there is some possible way to call a dynamic image, have a few different style of masks to choose from, for each image (also being chosen randomly) and then just have the slideSHow run on auto throughout their duration on the site… i have made some progress, but at the moment it seems i’l have to manaully make each SWF in order for it to work… and that just doesn’t seem like fun. or the best way to accomplish the same result
Here’s what I came up with this eveing trying to crack this code… …
It seems to be functioning a bit inconsistent… but I’m sure that’s due to my preloaders I was fooling with as well…trying to make those slick as well… .
http://clearimagedesign.com/temp/PhyllisLane/
My opening code on my index reads as follows:
maskArray = [“mask1.swf”, “mask2.swf”, “mask3.swf”];
loadMovieNum(maskArray[Math.floor(Math.random()*maskArray.length)], 2);
picArray = [“1.swf”, “2.swf”, “3.swf”];
loadMovieNum(picArray[Math.floor(Math.random()*picArray.length)], 1);
(mask1.swf etc are simply blocks of color same as background being tweened to simulate a mask, hense on the level above. Cheesy and beginner I know, but my actionscript is way behind my creativity and tweens :))
Then i simply went down the timeline (of my index file) to frame 150 or so, to allow for a pause in the SLIDE, then I had it gotoAndPlay frame 1… In theory it seemed logical, but it seems buggy and like I said, not so SMOOTH… . .Any advise would be great !
Thanks for the eye !
Jason.Z
clearIMAGEdesign