Solved

load a flash movie only once per browsing session

Posted on 2009-03-30
3
442 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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