Solved

load a flash movie only once per browsing session

Posted on 2009-03-30
3
447 Views
Last Modified: 2012-05-06
I have a flash movie(flash/Header_f8.swf) that I want load only once. Here are the codes where is it being called:

<div id="header">
            
                  <!--Valid flash version 8.0-->
                  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                          codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
                            width="980" height="430">

                        <param name="movie" value="flash/Header_f8.swf?button=2" />
                         <param name="quality" value="high" />
                         <param name="menu" value="false" />

                         <!--[if !IE]> <-->
      
                         <object data="flash/Header_f8.swf?button=2"
                                     width="980" height="430" type="application/x-shockwave-flash">
      
                             <param name="quality" value="high" />
                                 <param name="menu" value="false" />
                                 <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
                             FAIL (the browser should render some flash content, not this).
                         </object>
                   <!--> <![endif]-->
                  </object>
            </div>
0
Comment
Question by:netonmove
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
jeremyBass26 earned 250 total points
ID: 24025333
you mean from page to page you wish to not download the file again?

try in .htaccess file to put

# 3months
<FilesMatch "\.(ico|gif|jpe?g|png|flv|pdf|swf|mov|mp3|wmv|ppt)$">
  Header set Cache-Control "max-age=7257600"
</FilesMatch>
# WEEK
<FilesMatch "\.(js|css|swf|gz|min)$">
  Header set Cache-Control "max-age=604800"
</FilesMatch>
# 45 MIN
<FilesMatch "\.(html|htm|txt|php)$">
  Header set Cache-Control "max-age=2700"
</FilesMatch>

that is much more stable...

at the point you may as well do this to...

# CMSMS unset ETag
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|gz|swf)$">
Header unset ETag
FileETag None
</FilesMatch>

look up yahoo ETag, or yslow for mor information...

Cheers
jeremyBass
0
 
LVL 4

Expert Comment

by:jeremyBass26
ID: 24187149
solved? :D
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question