Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Clear Cache When Browser Closed



is there a way to clear a file (flash or html) from the cache when the browser gets closedthis so people who don't regularly clear out their cache get the new version of the website everytime



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 08-26-2005, 05:54 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

AS3 - SharedObjects - Clear When Browser Is Closed
Hi everyone,

I've been truying to figure out the best way of tracking web sessions in flash.
the main problem is having a flash animated that has two animations, one for the entry and one that loops.

What I need is the user to see the "entry" animation when the browser first opens to that page, and then I play the loop animation throught a timer event every couple seconds. Now what is happening is the entry keeps playing on every refresh, or when the user visists another link on that same website.

To work around that, we set up a cookie in JavaScript that tracks the session and tells flash which animation to play, after the browser is closed that cookie is cleared, worked perfect except in IE.

I have no experience in JavaScript and wanted to work around this problem using flash to set a cookie wiht SharedObjects.

when the swf is loaded I set a variable to true rioght after the entry animation plays, so if the user is still on the page, the swf checks the cookie and if it finds "true" then it plays the loop animation.

better drawn below:

1. browser is launched
2. cookie created value = false (default)
3. swf checks the cookie finds false --> plays Entry animation
4. end of Animation, in the cookie value is set to true
5. swf checks the cookie finds true ---> plays Loop animation

6. anyway to clear that cookie or set it back to false, right before the browser is closed

all this is to track the session pretty much.

is there any work around? I couldn't find anything anywhere :S

Please help

LoadVars Works Once, Then I Have To Clear My Browser Cache
Hello All!
Here is my problem. I have a basic Action Script 2 issue, I have a LoadVars() variable, I get a "promocode" from from a php script. The code works fine, but when I reload the page, all the variables collected become undefined. Maybe this has something to do with my <?php session_start(); ?> in my php scripts?

The result is: First time I run the flash page everything works fine, reload and all the variables I collected become undefined. I "clear private data" (cache) and the page works again. Hmm...

Any Help would be greatly appreciated, Thanks in advance!

I have included my code below:

AS2:
var myPromo:LoadVars = new LoadVars();

myPromo.onLoad = function () {
if (this.code) {
_global.promo[0] = this.code;
_global.promo[1] = this.type;
_global.promo[2] = this.amount;
}
}
myPromo.load("http://www.test.com/pro/getPromo.php");

PHP:
<?php
session_start();
$pc = $_SESSION['pc'];

include('../sqlconnect.php');
$query = "SELECT * FROM promos"
."
WHERE promo_id='$pc'";
$result = mysql_query($query);
$result = mysql_fetch_array($result);
$temp = explode(".",$result[2]);
$temp = $temp[0];

print("code=".$result[0]."&type=".$result[1]."&amount=".$temp);
?>

Clear Cache
Whilst this is not a strictly flash question when I upload a new version of a swf file I have cache troubles with viewing latest versionI run ie6 with windows xp

can anyone advise on sure fire way to clear cache or any other tips on viewing my updates on line

Clear IE Cache
He there,

i have this file: http://www.diamond4it.nl/textveld.html. Only the first time the website is visited you see the counter. The next time it skips this part because the file is already cached.
The tick with <meta pragama=no-cache bla bla is not working.

Is there any way to clear the cache of IE by Action Scripting?

Clear Cache? (k)
I have a flash movie that seems to choke at a certain point in the movie. I'm pretty confident it is a caching issue. My reason for this theory is if I remove several photos prior to the hanging photo, the movie plays fine.

http://www.pbjewelrydesigns.com/index2.html

I sped up the movie to get to the hangup point faster. You'll notice when it hits 24 of 38 it stops fading and just goes right to the next frame. I have triple checked my code and it is the same throughout.

I use the tween class to do the fade. Here is the code I am using:









Attach Code

stop();
// import tween classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
//
var Animation:Object;
//
Animation = new Tween(this["mcPhoto"+(_global.varPhotoName-1)], "_alpha", Regular.easeInOut, _global.AlphaStart, _global.AlphaEnd, _global.TweenSpeed, true);
Animation.onMotionFinished = function() {
Animation = null;
_root.nextFrame();
stop();
};

Clear Cache With As
is there any way to clear a flash file and html file from cache as soon as the browser is closed?
i hate having to clear my cache everytime!

Detect If Browser Is Closed
how can i detect if someone has closed the browser that was using the swf. i want to then execute some code, and only then close the browser.

is this possible

Clear Cache Problems
I hope someone might be able to help me out.
I am uploading my site and adjusting various things but am having trouble clearing the cache to see the updated page. I've been through the preferences and cleared the cache but to no avail.
I'm on a Mac and using IE 5 and netscape comm. 4.7
Help!
Cheers
Michael

How Do You Clear The Cache For REAL + $$$ For U
I am losing my mind because I have a flash presentation that reflects changes fine when I make them locally but when I upload the file the client tells me the changes are NOT working. He has cleared his cache, restarted his computer, etc. Any ideas?

The flash in question is here : http://backupzone.com/test/ams/ams.swf

Can anybody viewing this message:

a) Offer tips for unloading / reloading the cache for these people!
b) Telling me if you are able to click on high-quality / low-quality and if the presentation starts or doesn't start. We had several users say that they couldn't view the presentation at all, but they were persons who had viewed it as recently as last night making me think the issue is also one of caching.

Help and thank you! PS - If anybody wants to build a much cooler looking pre-loader for me I have $$$ in hand for an artist / flash programming guru that can help us finish this off!

zL

Ways To Clear Cache?
hey, i keep uploading my new swf files but i can't seem to clear the cache to view them online? I've tried F5 and deleting my temp internet file through the browser. still the old swf files are present. any good ways of clearing cache?
thanks

How To Clear Flash Cache
How is it possible to clear the flash cache ? Can you do that by right clicking over a flash player movie or image and choosing Settings and then moving the slider bar over to the left side which reduces the storage to 0Kbs





























Edited: 10/30/2006 at 09:40:30 AM by eh936

ActionScript (MX) How To Clear Cache(?)
I am working on a slideshow based on the XML slideshow from this site. However, I have multiple slideshows, based on what the user selects. I have a problem however, when I try to change "views". The old timer won't reset, and the new view starts skipping images and the 6 sec delay is right out the window.

See what I mean here:

Bestcon Site

click Paradise Key then view 1, switch views to Pkey view 2, and back again to view one and the slideshow starts going crazy.

How do I reset this?

Here is my AS Code:


Code:
delay = 6000;
//-----------------------
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
descr = [];
var myArray:Array = Array("lakes", "key", "oaks", "preserve");
logo.gotoAndStop(myArray[dev]);
total = xmlNode.childNodes[dev].childNodes[ang].childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[dev].childNodes[ang].childNodes[i].childNodes[0].firstChild.nodeValue;
descr[i] = xmlNode.childNodes[dev].childNodes[ang].childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("bestconSlide.xml");

/////////////////////////////////////

//In case you want to use a key script to control slideshow
/*listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};*/

p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = descr[p];
picture_num();
slideshow();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = descr[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = descr[0];
picture_num();
slideshow();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}
stop();

Clear Cache Mp3 Player
Hi everyone,
I have an mp3 player nearly finished. Thing is, it is acting up.
You load tracks by clicking buttons linked to an XML file.
I know although the mp3's are said to stream, there is informations cached in the flash player.
When I click on the same button to load in the track again after loading a couple of other tracks it messes the timing information up.
I would like to know if there is a way of clearing previously loaded info on another button click?

Thx
BRb

Sound Bug After Browser Window Closed
Yet again FK has cut off the end of my post....so i'll try again:
I have the following actionScript on the first frame of my main timeline:
waves = new Sound();
waves.attachSound("waves");
if(!mute){
_root.waves.start(0,100);
}
The problem is that the sound often continues to play in the wew browser after closing the window with the movie in it and leaving the site. The sound only ceases after you quit the browser! Does anyone know how to fix this bug??

Cheers

Do Action When Browser Window Is Closed
Is there anyway to execute an action script if someone closes the browser window that the movie is playing in? Something similar to the "onUnload" javascript command.

Deleting SharedObject When Browser Is Closed
How do I delete my SharedObject when the user closes the browser??

As a normal memory cookie.



Regards


Godowsky

LocalConnection Not Closed When Played In A Browser
I have a strange pb that does not happen on all configurations.

I'm using LocalConnection to communicate between to swf.

It's embedded on a html page.

It works.

When I reload the page, I have an error when opening the LocalConnection ,the name is alrady in used by another swf.

I guess the page reloading has not killied the LocalConnection.

Did some of you had this pb also ?

What I had in mind is to catch a destroying event when the swf is killed and to close the LocalConnection myself. But is there such an exvent in Flash ?

How To Clear Flash Or Local Cache?
Hi guys,

How do i clear a local cache or a flash cache using actionscript? i have problems with cache here..

FF Cache Won't Clear Flash Content
I thought this must be a problem for thousands of people but can't google it - incredibly frustrating...!!!

I can't clear flash content out of my FireFox cache. I have done "clear now" in advanced and Privacy dialogue boxes. I have even deleted all the files from the folder under Documents and Settings. But still it displays cached content (only an issue with swf).

I am working in a government department so am guessing this could be an apache server issue perhaps? If so, is there something I can ask the IT guys to change?

Are SharedObjects Flushed Or Deleted When The Browser Is Closed?
I've been working on something of late that will display text the first time the user views it, and the second time, say something different. I've accomplished this using SharedObjects. However, it seems that the information (the shared object) isn't removed when the user leaves of closes the browser. I there a workaround for this?

Thanks!

Javascript To Force A Server Cache To Clear
I have a series of flash games that communicate with a database. Every time there is communication between the 2, the protocol carries a version number for the software, in case a new version is now being used, and the software should be reloaded.

Does anyone know of a javascript function that I can place in the HTML code of my Engine's HTML file that can force the server cache to clear?

How To Clear Older Swf Files From The Users Cache
How can I clear the users cache each time they view my site to make sure they are viewing the most recent changes to my swf files?

How To Clear Internet Explorer Cache Using Flash Mx?
Hello all,

How do we clear internet explorer cache using flash mx? Let say I click a button and the button's function should be clearing the cache? Anyone could help?

Movie Clips That Won't Stop Playing. Do I Need To Clear The Cache?
I'm having a problem with movieclips continuing to play in frames where there's no movieclip instance in the frame where the playhead stops.

I have keyframes with stop actions on frames 1 and 5. Movie1 is in Frame1. I'm using a button rollover that goes to frame 5 where Movie2 starts playing, but the original clip from frame 1 is still playing so there's a nasty overlap happening. On rollout the playhead is set to go back to frame 1 and you can guess what happens here. Movie1 starts playing again so I've got Movie1 playing twice on the same spot. Bloody annoying.

I'm sorry if I've not explained this very well but it's the only way I can think of. I'll be happy to send the file over to anyone who wants to help. Hopefully someone will.

Cheers

Animation Wont Play A 2nd Time....how Do I Clear Cache?
Hey,
I have the following code that brings in a movie animation. My problem is that once the animation is finished and the user presses the 'back' button to navigate elsewhere on the website, if they go back to the animation and click the 'great_btn' the animation won't play again.

ActionScript Code:
_root.main_cntr.btns_mc.great_btn.onRelease = function() {

loadscrollIt(); disableBtns(btnArray);
_root.homepage_cntr._alpha = 0;
_root.photos_cntr._alpha = 0; _root.btns_cntr.alphaTo(0,1,"easeOutCubic");
_root.main_cntr.main_txt.alphaTo(0,.4,"easeOutCubic")
_root.sub_cntr.main_txt.alphaTo(0,.4,"easeOutCubic")
_root.main_cntr.sub_txt.alphaTo(0,.4,"easeOutCubic")
_root.sub_cntr.sub_txt.alphaTo(0,.4,"easeOutCubic")
_root.main_cntr.btns_mc.alphaTo(0,1,"easeOutCubic")
_root.great_cntr.loadMovie("great_lengths.swf");
_root.pattern_cntr1.background1.alphaTo(25,0.8,"easeOutCubic",0.5);
_root.pattern_cntr2.background2.alphaTo(25,0.8,"easeOutCubic",0.5);
_root.main_cntr.back_btn1.alphaTo(100,1,"easeOutCubic",24)
}


I tried adding this line of code to the back_btn so that the animation is actually loaded in on every click of 'great_btn' but it's not working.

ActionScript Code:
_root.great_cntr.unloadMovie("great_lengths.swf");




Any ideas?
Cx

Vars From Text File, Not Updating Changes, Must Clear Cache, Then Reload Page.
I am having some cache problems.

The code below is for updating a users profile,
When a user makes changes,
he/she is redirected back to the SWF where the editor is,
but the values remain the same.
They might think it did'nt update their changes,
but it did.

I tried using:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
in the html where the swf is embeded,
but it did not work.

Is there some sort of cache control,
or a way to reload the new vars using actionScript.

I'm open to any ideas,
The code is below. Thanks.


Code:
stop();

loadText = new LoadVars();
loadText.load("../members/" + _root.username + "/profile.txt");
loadText.onLoad = function() {
genderSex.text = this.genderSex;
DOB.text = this.DOB;
location.text = this.location;
aboutMe.text = this.aboutMe;
};

function updateSex(){
this.genderSex.text = genderSex_drop.getSelectedItem().label;
}

//
function editProfile(){
username = _root.username;
password = _root.password;
genderSex = this.genderSex.text;
dob = this.DOB.text;
location = this.location.text;
aboutMe = this.aboutMe.text;
//secret = "HIDDEN";
getURL ("../change.cgi", "", "POST");
};

Clear Dynamic Text Boxes "cache"
How can I clear the text of dynamic text boxes at the beginning of every scene?

I'm using the same structure in different scenes, therefore, when I change from one scene to another, the text of the previous one displays in new scene.

Is there an "action script" or something like it, that I can use to clear this "cached" text???

How Much Swf I Can Safe Cache In Browser
I have posted a question similar to this, but never got a response to what I am asking, so please I really could use some help on answering this so I can plan accordingly.
I am trying to take advantage of sharing symbols and such and preloading a few small external swfs, like my left nav menu is about 100 kb and that will have to stay loaded of course, but how much swf can I realisticlly keep loaded in cache, so I dont have to keep reloading. I'd like to preload some and keep loaded when they are reused throughout the site. Anyone know a ballpark number?
Thanks in advance!

Refreshing SWF In Browser Cache
Hey guys, does anybody know of a way to refresh the swf. file in your internet browser cache? Everytime I want to check my updated flash movie on the net, I have to physically go into my temperary internet files and find the swf. then delete it, before I can see my updated file on the net.

I've tried using the reload button and the holding down "ctrl" while clicking on the 'refresh' key thing, but neither work in getting rid of the old swf file from memory. Any help?

Swfs In Browser's Cache
i have a question about swfs in the cache. any help would be much appreciated.

i have an html page (one.html) which has a swf embedded in it (one.swf).
this swf loads another swf (map.swf) into itself - so map.swf is now in the user's cache.
i have another html page (two.swf) which has its own swf embedded in it (two.swf) and this swf also loads map.swf into itself.
what i'm wondering is, since map.swf is now being called from a different html page and a different swf, will the browser realise that map.swf is already in the cache?

can anyone enlighten me?

Problem With Browser Cache
Hey, having a little trouble with my chat. I need it to refresh a .txt file, but the browser insists on using the outdated file which has not been updated. The only action script I have for this text area is "loadVariables("chat.txt", "/");". How can I edit this to make it not cache? (For some reason the "/" has to be there too, when it's not it doesn't even load the .txt file.)
Thanks in advance.

SWF Files And Browser Cache
Hi,

I make very simple flash banners for my website announcing updates. I keep the filename the same, so when it's updated, anyone who has my banner on their site does not have to re-arrange their HTML code.

The problem is that when I replace the old SWF file with the new one, my browser keeps the old file in cache. Even a Shift+F5 (forced refresh in Mozilla) does not refresh the SWF file like it does with JPG, PNG and GIF files. This leads me to believe that people int he general public are not always seeing the most recent SWF from my site.

My question is if there is a setting I could place in the actionscript or the embed/object HTML code that would specify whether or not to chache the SWF.

Thanks for helping.

-Mike

Swf In Browser Cache - Checking
Dear friends,

I apologize if there is some similar topic as mine.
My problem:
I am loading file external.swf to main.swf via button in main.swf. But if I change something in external.swf and upload this file on ftp, my browser (FF, IE) still uses "original" external.swf that was loaded previous time to browser cache and not "new" external.swf.

Please is there some posibility to make my browser compare these files and if external.swf is newer than in cache than load this new one.
And they are the same than browser will use external.swf in cache.

I hope there is some Action script code that can help me...

Thank you for reply.

PS: Macromedia Flash MX 2004 - is version of mine

How To Invalidate Browser Cache?
Hello,

I am building and testing a website on a local PC. Current stage of the implementation mainly involves designing flash components. I have discovered that Firefox and IE (the browsers I use for testing) cache the swf's, making it impossible to view any design changes in the browser window.

I would like to know if there is a way to prevent Windows from caching "swiff" files?


Any suggestions are welcome,
Thanks in advance...

Arnie

Preventing Browser Cache
Hi
How do I prevent browser caching my .swf file??

Thanks

[F8] Browser Cache Woes - Please Help
I'm having this weird problem with this website I designed. When you click on "projects" or "in progress" the menu on the right that comes up is dynamically created by XML. The problem is that the first time someone loads the website up the "Greek Symbols" that are supposed to be there are garbage. The XML files are saved as UTF-8 format. The unicode syntax is correct. The greek symbols are embedded in the swf files. If you hit refresh on the browser and go back to "projects" or "in progress" the symbols are correct. I have tried the following solutions:

1) I added: System.useCodePage = false; to both "projects" and "in progress" swf files. That seemed to work for a while.

2) I added the unique tag to my xml load call as follows:

x.load("projects.xml?unique="+new Date().getTime());

and

x.load("inprogress.xml?unique="+new Date().getTime());

3) Finally, I added the following meta tags to my index.html:

Below <head> tag:
<META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 1999 21:29:02 GMT">

Below </body> tag:
<HEAD><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></HEAD>

None of this has seemed to stop this anomaly from occurring. If anyone could please help I would be incredibly grateful.

[F8]How To Load Swf In Browser Cache
i have around 50 swf files ,
example. main.swf,about.swf, services.swf, products.swf...... etc

main.swf is my 1st file which i embedded in index.html
by using actionscript 2.0 dynamically i am loading the external files ( which is about.swf, sevices.swf.. )
whenever i click a specific button it loads a specific swf file. which works perfectly fine with me.
but it gets really annoying each time i have to load the files and wait for the files to get loaded.
i wanted a javascript or actionscript code which will load all my external swf files invisibly in the cache of the browser while browsing the website. So that whenever i click a button its load instantly without waiting to load again.

for further reference i have seen this kind of work in
http://www.pdk.com.pl/index_f.html

Preloading Swf's Into Browser Cache?
Basically, i would like to preload Flash movies when the main page loads, so that these flash movies will run smoothly later on in the site.

I have a flash website that has 4 movie clips, the first movie clip has buttons that access the other movie clips which i want to play in order.

here is my site: www.lucidreflection.net

My question, is there a way to preload all the movies into the broswer's cache without playing them? I have tried using arrays to load the movies, but they end up playing when they are loaded, so when you click on of the buttons, it goes to whatever movie is playing at that time. I tried Javascript, but would never load the flash files.

I have been researching this for the past two days now, and haven't found anything that works, this is my first full flash website and anyone's help would be greatly appreciated!!!

Browser Cache Dilemma
Hi,

I’ve got a pretty simple little address book program running.

It calls a php file to get the latest data and sends it to the movie in XML format.

Php –> xml –> xmlconnector –> datagrid.

Problem is, on some browsers (IE in particular) the old version of that XML data is not being replaced by the updated php data.

It might have something to do with the browser history files or temporary internet files.

Is there any way to force that change?

Prevent Browser Cache
hi,
i check with this code but its not working

ActionScript Code:
var xm:XML = new XML();
xm.ignoreWhite = true;
xm.onLoad = function() {
    trace(this);
    getURL("javascript:alert('"+this+"')");
};
var unique = new Date().getTime();
xm.load("author.xml?unique="+new Date().getTime());



i am checking with local host.....


some other way is there..........


thanks in advance

[F8] Browser Cache Woes
I'm having this weird problem with this website I designed. When you click on "projects" or "in progress" the menu on the right that comes up is dynamically created by XML. The problem is that the first time someone loads the website up the "Greek Symbols" that are supposed to be there are garbage. The XML files are saved as UTF-8 format. The unicode syntax is correct. The greek symbols are embedded in the swf files. If you hit refresh on the browser and go back to "projects" or "in progress" the symbols are correct. I have tried the following solutions:

1) I added: System.useCodePage = false; to both "projects" and "in progress" swf files. That seemed to work for a while.

2) I added the unique tag to my xml load call as follows:

x.load("projects.xml?unique="+new Date().getTime());

and

x.load("inprogress.xml?unique="+new Date().getTime());

3) Finally, I added the following meta tags to my index.html:

Below <head> tag:
<META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 1999 21:29:02 GMT">

Below </body> tag:
<HEAD><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></HEAD>

None of this has seemed to stop this anomaly from occurring. If anyone could please help I would be incredibly grateful.

How To Load Swf In Browser Cache?
Hi
Experts
i have around 50 swf files ,
example. main.swf,about.swf, services.swf, products.swf...... etc

main.swf is my 1st file which i embedded in index.html
by using actionscript 2.0 dynamically i am loading the external files ( which is about.swf, sevices.swf.. )
whenever i click a specific button it loads a specific swf file. which works perfectly fine with me.
but it gets really annoying each time i have to load the files and wait for the files to get loaded.
i wanted a javascript or actionscript code which will load all my external swf files invisibly in the cache of the browser while browsing the website. So that whenever i click a button its load instantly without waiting to load again.

for further reference i have seen this kind of work in
http://www.pdk.com.pl/index_f.html

Why Don't .swf Files Seem To Cache On A Browser?
I'm using Safari on Mac OS X 10. I've got a 3 mb .swf on a web page. It seems that if I hit a "refresh" on the browser, it loads the whole thing from the beginning, with the progress bar and everything. I don't have anything set to clear the cache as far as I know. Is this normal?

What I'm trying to do is have a movie that shows a bunch of operating screens from some software as different frames that you can navigate to, like a virtual version of the software. I had hoped that once the user had already loaded the movie, that i could provide URLs (in other web pages) that link directly to various pages of the movie using FlashVars. This works sort of, but it reloads the entire movie from the beginning with each different URL. Is there some way to keep the movie in memory so that this doesn't need to happen?

Can Flash Use Browser's Cache?
Hi flash gurus out there!

If i make my SWF file request an image will it use the brower's cache if it was already loaded? Or will flash make another HTTP request again for it?

i.e. Inside a HTML file there is an image <img src="image.jpg" />. Then my SWF file wants to load that same image. It will use the already cached version? Or ask the server for the file again?

Thanks in advanced for any help!
Hal

How To Upload All Swf To Cache Browser
Hi all;
Please i need help.
i have a website (12 swf's). the main.swf had the menu how call all swf from the main.swf.
How i can upload all swf to cahe browser for get a fast website. i need a script. Please Help????????

Browser Cache Clearing? HELP... FMX
HI all, so lets say I am using flash just to pump sound on a html website, utilized in a separate frame. problem --> every time a user goes back to the one page or pages that the flash sound file plays on, an echo happens, as if the browser were playing the file from the cache and loading another sound swf.

How do I stop the sound from loading on top of itself?

code for sound file:

my_sound = new Sound();
my_sound.attachSound("rotor");
my_sound.start(0,1000);
my_sound.setVolume(50)
gotoAndStop("stop");



thanks\g

Flash, XML, And Browser Cache
I have a site which utilizes an xml sheet for it's menus. Sometimes after making changes to the xml, I need to clear the browser's cache to see the updated menu. Sometimes I don't. Does anyone have any suggestions as to why it's doing this?

Browser Cache Woes - Please Help
I'm having this weird problem with this website I designed. When you click on "projects" or "in progress" the menu on the right that comes up is dynamically created by XML. The problem is that the first time someone loads the website up the "Greek Symbols" that are supposed to be there are garbage. The XML files are saved as UTF-8 format. The unicode syntax is correct. The greek symbols are embedded in the swf files. If you hit refresh on the browser and go back to "projects" or "in progress" the symbols are correct. I have tried the following solutions:

1) I added: System.useCodePage = false; to both "projects" and "in progress" swf files. That seemed to work for a while.

2) I added the unique tag to my xml load call as follows:

x.load("projects.xml?unique="+new Date().getTime());

and

x.load("inprogress.xml?unique="+new Date().getTime());

3) Finally, I added the following meta tags to my index.html:

Below <head> tag:
<META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 1999 21:29:02 GMT">

Below </body> tag:
<HEAD><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></HEAD>

None of this has seemed to stop this anomaly from occurring. If anyone could please help I would be incredibly grateful.

Can I Add Jpegs To Browser Cache
Hi, I've been working with this weird bug in my flash file for about 2 weeks now. Im trying to load images to my site through LoadMovie("something.jpg", content_mc); which I've used several times before. It works fine everywhere but Internet explorer. I recently onticed that if I type in the image location into the browser to get the image to load by itself in the wondow (thereby adding it to the cache) it will then work fine on the flash page. Is there any way to get the browser to add all these images to the cache ahead of time?

Odd that it only happens in internet explorer for pc...

thanks in advance

Brandon

Copyright © 2005-08 www.BigResource.com, All rights reserved