Computing.Net > Forums > Programming > Force Browser to Cache Flash

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Force Browser to Cache Flash

Reply to Message Icon

Name: David
Date: November 26, 2003 at 19:34:19 Pacific
OS: NA
CPU/Ram: NA
Comment:

Hi.
I have setup a website that uses PHP to generate HTML codes. The banner for my site is a flash file. Unforuntetly each time the user views another page on my site, the flash banner redownloads. This is a problem because it means wasted bandwidth on the server and slows page loading time for the user(espcially dialup lusers).

So, how do I force the browser to download the flash file and cache it to their cache folder, so it doesn't have to re-download each time?

Thanks
David



Sponsored Link
Ads by Google

Response Number 1
Name: Ian
Date: November 27, 2003 at 07:25:31 Pacific
Reply:

Well, I am assuming since you say you use an editor, that you know little, to no HTML programming. I will give you the easiest way possible to do this. Basically, you can setup the website to use frames. You will need to set it up so that there are two frames one will hold the flash file, and the other will be the rest of your site. Then you will need to set the links up so that when the user clicks to switch pages, it will only change the portion that contains the site. Not the frame that contains the flash file. I know, this probably seems complex for someone who doesn't understand HTML. So I will now try to give some understanding of what I have just said. When a website uses 2 frames, a top one for a flash banner, and the bottom frame for the rest of the site. There are actually 3 files that load on startup. The information that contains the configuration of the frames is located in the index.htm or index.html. This file will tell the browser how big the frames are,where they are located, what they are called, and more. This file will also load the other frames, in your instance, it will load a top frame page (which will contain the flash banner) and the bottom frame (which will be whatever info you want about your site) You havn't given signifigant amount of info about your site in your description, otherwise I would have posted the exact contents of what the index file would look like. However the biggest problem people run into while making frames, is that they don't understand each link must point to the page which it will change to. Basically if a user wanted to click on a link in the bottom frame, you have to tell it the exact name (which you name in the index) of the page you want to change. Frontpage is excellent for people who don't understand html programming, so if this was all technobable you can try that. (for a price of course) Otherwise post a response to this with any questions you still have. I could help you even more if you spend the time to post a link to the site, AND give a better description of what you need. Ex. where is the navigation of the site taking place? if it is being placed on EVERY page, wouldnt it be more conveint to put it on the top frame so you only have to make the navigation system once! Let me know if this helps, or if you have any other questions!


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Force Browser to Cache Flash

Alternate page for 'no-Flash' users www.computing.net/answers/programming/alternate-page-for-noflash-users/4676.html

Flash: Please Help www.computing.net/answers/programming/flash-please-help/1658.html

flash question www.computing.net/answers/programming/flash-question/6818.html