?
Solved

load a flash movie only once per browsing session

Posted on 2009-03-30
3
Medium Priority
?
456 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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 which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

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