+ Reply to Thread
Results 1 to 7 of 7

Thread: Caching an SWF Across Website Pages

  1. #1
    striker9099 is offline x10Hosting Member striker9099 is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    14

    Caching an SWF Across Website Pages

    Hey guys,

    I am building a website in which I'm using a Flash swf for the navigation and a Flash banner (requirement by the client). Those 2 swf's will be shared on all pages. Is there a way to make so that when navigating from page to another the swf wouldn't be loaded again?

  2. #2
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: Caching an SWF Across Website Pages

    I'm not sure if any browsers support caching of flash content, at least I have always noticed that it has to reload on every page load. In all honesty though, you shouldn't be using flash for a simple navigation bar anyway, as anyone without flash installed is just going to see a white box and wont bother visiting your site again. Pretty much everything you would possible want to do in flash can be replicated easily with CSS and HTML, which can be cached by the browser and will be available to pretty much everyone. Anything that can't be done so easily in Javascript in a fully cross-browser compliant way are the more annoying things like rollover sounds.
    If the banner requires flash, then I'm not sure there is not a lot you can do besides just having it reload every time.

  3. #3
    striker9099 is offline x10Hosting Member striker9099 is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    14

    Re: Caching an SWF Across Website Pages

    Ok I will re-build the navigation using HTML/CSS. That's a wise thing to do actually. But I'm mostly worried about the Flash banner. Basically, the swf of the banner is an empty one, but it loads the images from an XML file and once all the images are loaded it starts the fade-in/fade-out effect. The point is, once the images are loaded the first time (say on the Home page), when I go to another page, will they have to be reloaded again or will they be cached and available to the swf?

  4. #4
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: Caching an SWF Across Website Pages

    Quote Originally Posted by striker9099 View Post
    Ok I will re-build the navigation using HTML/CSS. That's a wise thing to do actually. But I'm mostly worried about the Flash banner. Basically, the swf of the banner is an empty one, but it loads the images from an XML file and once all the images are loaded it starts the fade-in/fade-out effect. The point is, once the images are loaded the first time (say on the Home page), when I go to another page, will they have to be reloaded again or will they be cached and available to the swf?
    That can be made using javascript and jQuery too, and I believe those are cacheable

  5. #5
    mefm2010 is offline x10Hosting Member mefm2010 is an unknown quantity at this point
    Join Date
    Jun 2010
    Posts
    4

    Re: Caching an SWF Across Website Pages

    Both swf's and images will cache. If you embed your swf using swfobject (javascript library) it's easy to provide alternative content for non-swf capable browsers (e.g a static image)

  6. #6
    scottietrek is offline x10Hosting Member scottietrek is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    6

    Re: Caching an SWF Across Website Pages

    I think you can cache the page using some session/cookie work if you really needed to. Basically create a cookie and set the file as the cookie i know that IE 7 supported this as i had the same issue. also as stated before you can use java/AJAX to accomplish most things that are done in flash these days.

    Hope i was not to vague

  7. #7
    striker9099 is offline x10Hosting Member striker9099 is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    14

    Re: Caching an SWF Across Website Pages

    Actually I gave it a try and found out that the images do get cached, but the swf reloads everytime. But I'm glad with that. I re-did the navigation using HTML/CSS though.

+ Reply to Thread

Similar Threads

  1. My website shows old html pages
    By burhanpur-forum in forum Free Hosting
    Replies: 1
    Last Post: 02-05-2010, 08:05 AM
  2. PHP caching
    By zordon19 in forum Programming Help
    Replies: 0
    Last Post: 12-17-2009, 07:08 AM
  3. Website isn't displaying my pages
    By viswimmer1 in forum Free Hosting
    Replies: 0
    Last Post: 06-07-2009, 02:02 PM
  4. About web caching
    By radofeya in forum Programming Help
    Replies: 6
    Last Post: 07-17-2008, 12:47 PM
  5. blank pages on website
    By chunsiang in forum Free Hosting
    Replies: 2
    Last Post: 08-15-2007, 08:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers