Solved

load a flash movie only once per browsing session

Posted on 2009-03-30
3
405 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
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
jeremyBass26 earned 250 total points
Comment Utility
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
Comment Utility
solved? :D
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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 how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now