This content has been marked as final. Show 2 replies
Yes, you can do that, but it's a little difficult to advise you the best way with the information provided:
Can you clarify:
Do you want to play the main clip while the thumbs continue to load... or do you want to preload the thumbs, then play the main clip, then do the tweening when the main timeline reaches the end? This way is easy enough.
If you want them to continue to load and then do the tweening at the end of the main timeline (e..g with a stop() on the last frame) then its also not complicated, but you need to cover the situation where the loading of the thumbs may not yet have completed by that time (perhaps the risk is low if the timeline is long, but its a sensible thing to address regardless).
Also consider whether you want anything to be hidden (i.e. _visible=false) at any point - e.g. before the thumbs have finished loading.
As a starting point I suggest you would probably put the code after
and before the last curly bracket (" } ") in a separate function on the main timeline, e.g.
(its actually not easy to be sure, because I can't visualize what exactly it does)
what you would do next depends on the answers to the above questions.
GWD- thanks for your response, sorry it has taken me so long to get back on.
So the second option (load the images while the main timeline is playing) is what I am trying to accomplish. The timeline is about 6 seconds long, and there are only 8 or 9 images to preload; usually they finish as soon as my timeline is complete actually.
The problem is, once someone has the images stored in their cache, they load much more quickly, and so they tween in after about the 2nd or 3rd second.
Also, nothing needs to be hidden, per-se, but if it makes it easier for our code, I can make the main logo (part of my timeline) become hidden.
Do you have any idea how to create the code necessary to attach the tween function to the end of my timeline? I'm sure it's possible, and even easy, but to be honest, it's completely beyond me at this point.
Edit: I've actually pinpointed things a bit more i think: I need to somehow get the script itself, not the timeline, to pause and wait until the playhead reaches frame 85 before resuming. Whatever code could do this would be placed in right after removeMovieClip("thumbLoading");