Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

load a flash movie only once per browsing session

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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…
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 how to record live broadcast.

604 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