Loading...
Logo
Processing Forum
I've been working on something I call a "web comic" here www.unclenobs.com The comic consists of a handful of animation image sequences (~ 110 images @ 640 x 360 px each).  The PJS Preload directive is the first line of code and it takes a bit of time to load  - too much time for most casual visitors.  I'd like to add a pre-preload animation to the page, and am not sure on the best/easiest way to do this.

My short term solution was to add a CSS background image (static).  I'm not really good at HTML or CSS, and I'm learning processing and have a little AS3 experience - basically, I'm a self taught hack.  Any ideas on how best to implement this - optimally using processing (another sketch?) would be very helpful. 

Thanks/Kind regards

Replies(2)

Still about to learn PJS. I can be wrong, but I believe you don't need to preload everything w/ PJS directive.
Just the 1s you're gonna need ready from the get go.

Perhaps you can lazily preload the rest inside draw(), once each 300 frameCount has passed, 
for example,  until all of them is fully loaded.

Just an idea!  
Thanks for the reply.  

I pretty much need all images ready at once.  I'm ok with the delay loading, I just need something going on that keeps people on the page while waiting.  With Flash/AS3, I would use a swf to load another swf.

I'm not sure you suggestion will work, since I need everything at once, and the PJS directive has to be the 1st line of code.

I think this is an easy fix... I just don't have the HTML, javascript chops to get it done just yet.  As this is a crucial but secondary requirement to creating my "web comic", I was hoping to avoid the deep dive I am about to do to figure it out (trying to choose my battles carefully).

Peace/Funk
RM