|
-
Always Learning
Cache a swf from a preloader?
Ok, I'm trying to embed an intro into my header swf...
When people first arrive to the site, I want the header on the index page to include an intro (which leads to the header/menu when it's done)... and every other page of the site to just have the header/menu with no intro.
So I'm considering having a index.swf which will include:
- preloader
- intro.swf (15 second animation/introduction to the site)
- header.swf (contains header graphics and menu with links)
And every other page to just have
My question is... when the header.swf is loaded through the index.swf by a user that comes through the index page, will they have to load it again when they click on another page? Or will the preloader recognize it's already loaded and pop it right up?
Also, what's the maximum file size that you would personally use for a header/menu on a website? 50K? 60K? 70? I'm trying to avoid using frames as much as possible, but I don't want the header/menu to take 30 seconds every time a visitor clicks on a different page.
Thanks in advance for all responses.
"Twenty years from now you'll be more disappointed by the things you didn't do than by the ones you did."
- Mark Twain
-
Harmony & Justice
Hm, you're considering index.swf to include those movies. Does that mean you're going to use LOAD MOVIE?
Or did you mean index.html?
In any case, I believe the movies
will already be cached if the user has enabled
caching in their browsers.
Anything around 50 or 60kb is fine. Try
not to go above 100kb is my suggestion.
Wait around and listen to some more opnions. 
Regards,
Venio
Flash Kit Moderator . Duke University
Thomas Jefferson High School for Science and Technology
-
Flashkit historian
swf's are cached'd regardless of the html document.
As a matter of fact they don't automatically clean
out of your temp internet folder when you clean it.
So in answer to your question yes once a movie is
fully loaded it's fully cached.
Usually,,,it's the document still loading that causes
the delay of an swf's appearance. If the html is cached
then the swf will appear quicker.
Contrary to popular belief an html document does not
always load from top to bottom.
A perfect example is my site.
The swf is rather large.
Once loaded regardless of where you go it loads right up
http://frets-files.com/html
Frets
-
Harmony & Justice
Frets, you might want to edit that link just a little bit.
Flash Kit Moderator . Duke University
Thomas Jefferson High School for Science and Technology
-
Flashkit historian
done thanks Venio
Also about your swf's
You can't include all in a singular one
because then all would run.
What you could do is
Use Intro.swf to load movie header.swf
.
-
Always Learning
Originally posted by Frets
A perfect example is my site.
The swf is rather large.
Once loaded regardless of where you go it loads right up
http://frets-files.com/html
This is a great example.. thanks.
Is your header an .inc file? I read a long time ago they cache html and php better than including plain html or php header files. I'm still researching all of that though.
I've been using .inc files for years though, just in case... since they parse php code with no problem.
"Twenty years from now you'll be more disappointed by the things you didn't do than by the ones you did."
- Mark Twain
-
Flashkit historian
The header is pure swish made swf
The pages are .php and the left nav menu is cached.
I have a great deal of .css running thru it which is also
cached.
As a matter of fact when I remember to reset the articles
they are also cache'd
What can I say.
xoops is extremely powerful
object orientated portal system.
Unlike other portals you only have to install what you need.
I've tried all the rest and wasn't as pleased with them
(php-nuke, post nuke e107 mambo etc etc)
It's extremely versatile just wish they had better support/more
themes (skins)
http://xoops.org
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|