kdzines
May 30th, 2003, 09:19 AM
hey everyone,
I am currently working on a fashion website.
In my collection section, i want to load the thumbs sequentially and i am trying to figure out a good script to let me do this.
I looked over an fla from actionscript.org, but it's not quite suitable - and i can't figure it all out!
you can see this at:
http://www.actionscript.org/showMovie.php?id=355
So on the stage i want to have 25 container clips (called holder1, holder2, holder3, etc) and when the playhead enters that frame, i want it to load pic0.jpg into holder1, then pic1.jpg into holder2 and so on.
Can anybody help? It's important that all the code is in the main movie so i don't need to make swfs of all the pix.
i don't want to use createEmptyMovieClip or duplicate mc.
i reckon there are two ways.
1. create an array for all the pix
2. set-up some kind of counter which adds 1 everytime the previous jpg has fully loaded.
Can anyone help? I want a nice, tight code and i'm not interested in a load bar or % (besides that is easy to add later).
You can see something like this at:
www.stellamccartney.com
go to AW2003 > the collection and you'll see the thumbs load sequentially.
Please help if you can,
cheers,
Kd
I am currently working on a fashion website.
In my collection section, i want to load the thumbs sequentially and i am trying to figure out a good script to let me do this.
I looked over an fla from actionscript.org, but it's not quite suitable - and i can't figure it all out!
you can see this at:
http://www.actionscript.org/showMovie.php?id=355
So on the stage i want to have 25 container clips (called holder1, holder2, holder3, etc) and when the playhead enters that frame, i want it to load pic0.jpg into holder1, then pic1.jpg into holder2 and so on.
Can anybody help? It's important that all the code is in the main movie so i don't need to make swfs of all the pix.
i don't want to use createEmptyMovieClip or duplicate mc.
i reckon there are two ways.
1. create an array for all the pix
2. set-up some kind of counter which adds 1 everytime the previous jpg has fully loaded.
Can anyone help? I want a nice, tight code and i'm not interested in a load bar or % (besides that is easy to add later).
You can see something like this at:
www.stellamccartney.com
go to AW2003 > the collection and you'll see the thumbs load sequentially.
Please help if you can,
cheers,
Kd