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




LoadMovie Cache Question



Hello,

I seem to be having an issue with the "loadMovie" command. I thought that files loaded in this way stayed in the browser's cache, so that when they were recalled again with "loadMovie", they pop in instantly (I'm not using "removeMovieclip" or "unloadMovie", simply loading different files into the same "holder" MC. But in IE 5.0 on my Mac with a dial-up, they seem to be loading repeatedly as if they were never cached.

On the below link, I am loading JPEG files of about 20k each. I have a preloader status bar that displays their progress. On high-speed connections, I rarely see it: the files are small enough that I can't tell if they load each time they are called or are pulled from cache. If anybody has any ideas about what I'm doing wrong, please let me know.

LINK:
http://www.randymillerdesign.com/collection/indexL.html

FLA:
http://www.randymillerdesign.com/col...mageTabs7l.fla

.as file (would need to be in same directory as .fla when published):
http://www.randymillerdesign.com/collection/nav1.as

Couple of things:
-The file extensions of the JPEGs have been switched to ".jjj", to account for the AOL bug of converting ".jpg" to ".art"

- The "WEB" section of the .fla is not completed, so the nav may give you weird results for that section.

Thanks to anyone who has any ideas about what could be causing this.

Randy



FlashKit > Flash Help > Flash MX
Posted on: 07-31-2003, 02:49 PM


View Complete Forum Thread with Replies

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

Does LoadMovie Cache?
Hi,

I have a main movie that's loading additional, external swfs into itself when certain buttons are clicked.

I'm using the loadMovie command and assigning the external swf to a blank movie instance. then, when a different link is clicked, I set the visibility to false and load up the new one.

all of that is working fine (thanks to the flashkit community for help with my newbie questions!). What I'm wondering now is, if a movie has already been loaded, and someone clicks the button again, does it literally load it up again making another trip to the server, (and more waiting for the viewer) or does it just go ahead and play a cached version?

(I think there's a better way, to just issue a goToandStop onto a blank frame etc, but I'm still trying to figure out how to do paths, and I gotta deliver this thing soon...)

thanks for your help. you guys/gals rule

z33man

Loadmovie And Cache
I have this status bar that pops up everytime you select a link from a list which loads in a different movie (loadMovie), and the status bar works great.

Problem is, now, if you select link 1, then link 2, and go back to link 1 again, it loads it again. Even though the load is not long, it does take time, so is there anyway to have Flash reconize already loaded movies, and retrieve them from cache?

Or an effect like it?

--iMat

How To Cache LoadVariable() And LoadMovie()
Hi everyone,

I made a dynamic "finder" of sorts for our company website.

It first creates (duplicateMovieClip) x amount of clips, then loads a jpg (loadMovie) file with the same name (_1.jpg, _2.jpg, _3.jpg, _4.jpg) into each movie (the movieClips are named "_" + number).

Then it loads text with the same name (loadVariable) into the duplicated clip "textClip" within the duplicatedClip. Each text file is named "_1.txt" or "_2.txt" so i can just use - loadVariables(this[_name + ".txt"])

Anyway, everything is working fine, but caching is NOT working. It loads the text everytime we go to the page. you can see this movie here:

http://216.12.20.222/gda/webDesign/index.php

it's made with MX so, you'll need the latest plugin (there is a tester -- the latest Moock tester).

please help if possible!

So, the main question, how do i dynamically create movieClips, dynamically load jpgs and text, and have all of it cached at the same time?

Thanks for any info at all!!!!!

- matt

Loadmovie Cache Problem
I searched the forum for similar thisng but haven't found anything.
I have a main movie clip and load other movies into this one. The problem is that these movies are large and main mc loads them every time all over again. Is ther a way to get these movies into the cache so next time you click on loadmovie it will load instantly.

Thanks

Kill Cache For 'loadmovie'
hi, I've got a movie which loads another 'menu' movie into a container. The menu movie is continually being updated and the main movie seems to cache the menu, thus not showing any updates.

I've been trying to use this kinda code to get around the problem, but I can't get it to work.....
Code:
// generate a unique value
var cKiller = new Date().getTime();

// Load the menu.swf
menucontainer.loadmovie("http://www.MyURL.com/menu.swf?cKiller=" + cKiller);
}
but I can't seem to get any results from it.... Has anyone successfully achieved this kind of thing before, or is the above code going in the right kinda direction.

Cheers

LoadMovie Cache Explorer
Hi,
I want to prevent that a loaded swf gets cached in the browser.

Here are two codes that should work:


Code:
loader.loadMovie("adminMenu.swf?rand="+new Date().getTime())



Code:
myIdentifier = Math.round(Math.random()*10000);
loader.loadMovie("result_load.swf?uniq="+myIdentifier, 1);


And they do, that is, in Mozilla and Netscape, but not in Explorer!

Does anyone know about this, and why??


Thanks,

Jerryj.

LoadMovie Cache Problems
I'm a new flash user and this is my first site, so be nice!

http://www.domerocker.com/2004/firsthalf

I know this is a big site, so this problem I'm having is bad. Basically when I load the .swf's into the empty holder MC's, they load each time (the preloader shows) even if that swf has been loaded already. This is what my button AS looks like:

PHP Code:



on (release) {
    _parent.cambodia._visible = 0;
    _parent.thailand._visible = 0;
    _parent.myanmar._visible = 0;

    if (_parent.india._getBytesLoaded() >= 1) {
    _parent.india._visible = 1;
    }
    else {
        loadMovie("india.swf", "_parent.india");
        }





I'm pretty sure the if statement is busted, but I don't know how to fix it. Any other help would be appreciated. Can I just check to see if the visibility is 0 instead of using getBytesLoaded? Any suggestions would be appreciated.

Why Doesn't LoadMovie Cache?
I built a site that was all one swf, but the client didn't like the slow load time. So I put each section into a separate swf, and used loadMovie. Okay, that works, but when you click back and forth between the various sections, there's the same lag time with the blank white screen.

It's here: http://www.robinonthelamb.com/robinrev.html

I know, I'm using old style actionscript:
stop();
loader.loadMovie("ourdogs.swf")

but wouldn't you think after visiting a section once, that it would cache and pop right in the next time?

LoadMovie, Cache , Explorer
Hi,
I want to prevent that a loaded swf gets cached in the browser.

Here are two codes that should work:


Code:
loader.loadMovie("adminMenu.swf?rand="+new Date().getTime())



Code:
myIdentifier = Math.round(Math.random()*10000);
loader.loadMovie("result_load.swf?uniq="+myIdentifier, 1);
And they do, that is, in Mozilla and Netscape, but not in Explorer!

Does anyone know about this, and why??


Thanks,

Jerryj.

LoadMovie() Jpeg Cache
I load several images (jpeg) dynamically. I do the same with some swf´s needed in my project. Now I wonder why it takes about 1 second to load a jpg which already was loaded once, but reloading a swf works on the fly with NO delay at all!

of course, browser caching it activated. Now my first idea about this issue is that it takes a while to decompress the jpgs, but should that take longer than loading and starting a swf? also, I run a athlon 1800+ so that should not be a problem.

also, I dont want to workarround this by placing all my pictures into swf´s (there is too many of them, it just would not make any sense).

any ideas?

How To Loadmovie Straight From Server And Not From Cache ?
I have a whole site in flash. using `loadmovie` to load layer over layer.
Only the first page, the index is , ofcourse in HTML. all the rest is SWF.
Listen to my problem:
Whenever I make the slightest change to the site`s files on my server it will take
up to a day or two before my surfers, in my country, will see the update(even though they cleared their cache)
Sometimes the site would get stuck alltogether for a day or two as a result of an update.
Suspecting it was a cache problem I called my ISP who explained to me that broadband ISP`s have routers that have internal caches and that`s the problem !
My ISP promised me to take my site out of their router cache and they did just that and ever since neither do I nor anyone surfing through this ISP has any problem viewing immediately any changes made on my server to my site.
But I can`t ask each ISP in my country to that for me…
Does anyone know of an actionScript code that I can just put in my SWFs to make sure that each time I `loadmovie` it loads straight from the server and not from any sort of cach ?
Please assist, Its a site for abandoned dogs and cats aid shelter , so you`ll be doing a good deed , twice, by helping !
Thanks In advance.
http://www.parvatonim.org.il

Cache.loadMovie - Effect On Audio - Need Your Help
All,

I'm working through a project and just have one outstanding issue I could use your help on. The project was 1/2 done when given to me...

The project is broken in to 9 fla/swf files, with the end of each calling the next. Originally, the "preloader" has these actions:

if (!int(cache._framesloaded/cache._totalframes)) {
gotoAndPlay("one")
}else{cache.loadMovie("assets/studio2.swf")}

THEN

if (!int(cache._framesloaded/cache._totalframes)) {
gotoAndPlay("two")
}else{cache.loadMovie("assets/studio3.swf")}

and so on, all the way to gotoAndPlay("9"). My job was to add audio clips to the later sections. Problem is, when I did, each audio clip played for about 5 seconds (not the entire clip) once it was cached (I believe) OVER SECTION ONE. They then played when planned later in project.

I REMOVED this code, and the audio problem is gone, but now the later sections don't play as quickly when selected, and the boss ain't happy.

Any suggestions? Seen this before? Doing something wrong?

Thanks a million for the help.
chearn

HELP Cache Problems With Images Through LoadMovie
I have a movie that attaches a movieclip through attachMovie, and inside that movieclip I call it to load an image file. My first publish, the image loads fine, I close the movie, clear my Internet explorer Cache, then I open photoshop to change the image, and save. The problem comes here. To make sure everything is cleared, I clear the Cache from IE again, then i proceed to run the movie. With the binaries in the Image changed(changing the image in photoshop), i try to load the modified image, but the modified image won't load. But now when i replace the modified image back to the original image, clear the cache, then run the movie again, it loads correctly.

There's something that's not clearing inside the computer that flash constantly keeps looking for the same information. Does anyone know how to help me on this one?

We use attachMovie to load the movieclip(MC1), we load the image inside a MC that's inside MC1, and then when MC1 finishes playing(._currentframe == ._totalframe) we do removeMovieClip.

I've tried this several times, and there are no changes. I even went on different computers and tried it, and the same problem occurs. Can someone help me?

Cache+loadMovie To Library+attachMovie
Hi,

im making a map editor, which loads files through data recieved in xml, and loads the files as selection items in the menu. With this my files get in the cache and then i run the loadClip command again and again for which ever item the user wishes to place on the map. The problem is that there is a very very slight interval in the loading of the placed image, this is due to the execution time it takes to bring the required file from the cache. I wanna know if there is any way I could add the files to my library and then attachMovie them when required instead of going to the cache. Any idea?

Best Regards
Ali Kapadia

Stupid Question About LoadMovie And Cache
Hey. I think I know how the cacheing works when you load an SWF using loadMovie, but I want to make sure I'm right before I proceed. If I load an SWF lets say "test.swf" into my main movie. Then I hide that instance (so it's still in memory, just not visible). Anytime I use load "test.swf" using loadMovie, it should load from the cache and not from the web anymore right? Well, what if I load 50 more SWF files and do the same thing (so they are all in memory)? Will this still work, or will some of the files have to download from the web again at some point? Thanks in advance for any info on this!

Cache Effecting LoadMovie (when Swf Played)
Okay I have been searching threads for this topic, and have found much on it except for what I am looking for:

<hr>
solve cache problems when loading a movie
<hr>

Would this effect a movie that is played through the stand alone player or only a movie that is embedded on a webpage?

I am having issues with getting a blank white screen when I open my swf file...

It is fine if I embed it on a webpage. I would attach the fla but it is much too large, even zipped.

I am using loadMovie to load an external swf generated from Wildform FX text effects program.

I had been blaming it on the program but maybe it is something with the cache or something I am doing???

I have deleted all my temp internet files - this did not help.


Please let me know if I need to provide more info & thanks for any advice!

LoadMovie And Cache-big Expert Needed
I hava a big question for u and a big problem. I am using loadMovie function to preload some images, some jpgs. So i load them and then i want to use it later in my swf, problem is that even if i preload them on some computers flash cannot find them and then he makes a request from server again for that file and then file that i preloaded doesn't show up in time, there is a delay and that's not good. And it seems that it's depends from browser to browser system to system and definitly flash 6 to flash 7 player version if it is gona work or not like it supposed to. Also it depends if it's exported in flash 6 or 7. Today something didn't work on MAC when exported in flash 6 but when i exported in version 7 it works perfectly. Can someone clear this up or even MM would have problems explaining this?

Blank Screen Flash When Using Loadmovie With Swfs In Cache
Hi all
I'm an avid lurker, but this is my Very First Post!

I'm loading external swfs into a mc using loadMovie and if the user reloads one of the swfs I get a flash of a blank screen before the movie loads.(since the file is cached)

I am using a preloader and I've put in a test for if fully loaded, then dont display the preloader, but I still get a momentary white flash.

I vaguely remember reading something about using loadMovieNum and loading into a level then duplicating a mc in another level underneath then using the duplicated level underneath to show through instead of the blankscreen - Anyone tried this or something else?

Thanks in advance

PC Versus MAC Loadmovie Flash Projector Built-in Cache Issue
I made a swf with a loadmovie action
it loads a jpg, unloads it, and later on reloads it... but it is not the same file. it has been updated on the server side...

it works fine on my mac, and the projector works fine...
it doesn't work on my PC.... GRRRR
the .exe reloads the same jpg, even though it has been updated on the server side....
It doesn't work on my PC in a Explorer... double GRRRR

And this is before using a web browser... and for the projector use
(i'm aware of the browser cache issue and i m actualy using loadMovie ("http://mywebite.com/image.jpg?1")

i actually like this methode, for browser issues... even though i do not really understand it ...

this is the first time i encounter a difference of behavior between MAC and PC using flash... (i divorced with Java because of this)

What should I do ??? i tryed to use removeMovieClip but it doesn't seems to help...

My MAC and my PC use the same network, same router, no proxi,

I came up with a feeling that... but i might be completly wrong...

As it is hard to think that there is such a thing as a cache in the swf projector...

I wonder if it doesn't happen because the swf behaves like it is inside M$ explorer browser while you open it on a PC... the Operative Systeme interface of the PC seems to be run by explorer ... ???

I tryed to take it of the PC, and windows doesn't run anymore...

About Cache And LoadMovie/removeChild/addChild/Loader.load/sharedLibrary
I am curious about the cache theory

if there's a way to manually delete the cache?

I know there's a "unloadMovie" seems to work like that

did that function still working ?

and I know to add random number after the URL to load new

movie/url every time.

LoadMovie("some.jpg") - Cache?
If I load a jpg file into a movie using the loadmovie command, it's considered by the browser to be part of the swf, right? It's not accessed client-side as it's own separate jpg file, is it?

I'm just curious, as I'm putting together an html splash page for a flash site, and I'd like to use the jpg background in the html that I'm using in my flash site, and I was just thinking that it might be more efficient if instead of loading the exact same 20k jpg file twice, the html and the flash could share. Was wondering if there was a way to do this. Not terribly important for 20k, but.. eh.

I tried testing it myself by using loadmovie("mybgrnd.jpg"), viewing the .swf locally, and then checking my temporary internet files for "mybgrnd.jpg".. didn't see it, so I'm assuming this is a no, but any comments or answers would be appreciated. Thanks in advance!

-john

MX:Cache - Please Cache The Images
Hello,

I load jpegs into a MC for a photography website. The images should cache in the browser (plenty of space allocated) but they do not. The images are loaded by replacing the previous image in the MC - so if I want to view a previous image I must load it into the MC again.

However, this should not be a problem from what I understand.

I use a Mac and IE 5 - I know it works on a PC!!

Does anybody else know of any issues relating to non-caching on a Mac??

Thanks in advance for your help.

Osc

Argggg IE Why.....wtf? Cache? No-cache?
http://www.walrusdogblues.com/colouringBook/?pageId=2

first time you view it in IE it should be fine (with crayon box in top left)
after that it renders but not the crayons....

if you cleare cache it works
Ive got pragma-nocache tags....
and im appending a date to the swf url to make each request unique but its still seems to be cacheing...because if you clear cache the crayons show up fine

It works in FF, works in Opera....but the damn crayons wont show in IE unless you clear your cache each time....


please anyone know why? im going crazy



errr I guess this should be in serverside if a mod would move it

Cache Cache Why Wont You Go Away
I have a client side dynamic graph whose values will change in the graph but the actually bars do not. It seems as though the graph writes over the old one. I'm thinking the prob is with the cache but do not know what to do about fixing that.
I tried setting no cache or the timestamp to an earlier date forcing it to clear the cache in the meta tab but that didn't work. I really do not know what to do, and would appreciate any help advice work arounds. Thank you

No Cache
I have a root movie that loads several *.swf movies into it when clicked on a button in the root movie. How can I tell flash with actionscript NOT to cache some of those loaded swf movies ?

Gr33tz


x.

CACHE
Is it possible to make flash to take values from the server and not to take it from the cache when viewed in a browser?????

I am working with ASP-FLASH movie integrated project.

So when the movie is viewed in a browser, I need vales from the server everytime

The Flash is working fine in Standalone player

Cache CD
HI ALL_

I seem to have a small or large problem. I have created a large projector for a presentation. But if I try and view it on a slightly slower computer to my own it says flash player is out of memory and will then only play the movie with thousands of colours. I've got it down to about 6Mb but I still have problems. I think that the computer trying to cache the project but has problems is this possible and if so how can I make it not cache the pages.

Hope some one can help

Cheers

jody

No More SWF In Cache?....
Well i have a proble--
i have a SWF file and i dun want it to be save in the Temporary Internet Files
how can i make all my Flash files expired after they play or how can i
make them unloadable from Temporary Internet Files

Cache?
I publish my site, i check it out, and I change some things.
Publish it again, but don't see the changes!

What's wrong? is it in my cache memory? Does visitors have the same when visit my site? What can I do about it?

PHP Cache
sorry this should be here:
http://www.flashkit.com/board/showth...hreadid=388667

The .swf WON'T Cache
hi,

I've got a 750 k .swf that won't stay in the cache (when it is reloaded even in the same visit, you have to wait for it to download). It has a preloader in it's first scene. does it's re-loading have anything to do with its size? any other reasons why it won't cache?

thanks a lot.

Cache PC/MAC
i have noticed that a swf i made that loads external swf's doent seem to work the same as it does on the PC. It doesn't seem to load or stay in the memory. Are there differences in the cache?

anyone?
thanks

No Cache
Is there a way to not a swf cache on the client side?

Thanks
Shawn

No Cache
Hi, I don't want my web site to be cached because I'm updating it regularly but my visitors always enter the cached flash content. I'll be glad if you help me. Thanks.

Is This The Cache?
ok this is weird i can only assume this is the cache but i'm not sure since i'm not 100% on what exactly the cache is. anyways on my server i am using a php file instead of an html to hold my swf. the php file is really short all it does is it embeds the swf thats about it. anyways i just removed the swf from the server yet if i navigate to the url of the php script the swf still appears.furthermore when i replace the swf with one that has been altered it still shows the old swf. how do i stop this from happening (clearing the cache?)

Help With Cache
Hi all,

(bare with me...i did do a search for cache on the search)

just wonderin if u could help...
i have put a file up here: www.zerofx.net/pro
It use dynamic txt files, but whenever i try to update them, i have to delete my cookies/cache before i see the change.

I know there is some code to trick the cache by changing the variable name or whatever, but when i try and change the code for my movie, it doesn't work.

The text files are loaded dynamically into a .swf in an html page. At the moment i am using the code

Code:
loadVariablesNum("home.txt",0);

what is the exact code i need to enter, to trick the cache? cos whenever i enter code and test movie, it says: cannot detect my file with some number on the end.

Please help

No Cache
is there a way to prevent images to end up in the site visitors cache? the images have a copyright..

thanks

Cache
I have developed swf who is extracting text from one txt file. But when we change text from txt file, But its showing same because of cache.

Cache ?
While playing back swf1 on pageone.html I'd like to load in the background swf2 that will play on page2.html. What I'd like to know is what happens if swf2 is not fully cached when the viewer changes to page2? Is what has already cached just dumped or does the download continue where it left off? My situation is that I have 2 rather large swfs that will play in seperate html pages one right after another. If the viewer does not use the "skip" button on the first movie there is enough time for the second to cache. If they do skip then I need to know what happens to the movie that is downloading in the background.

thanks.

XML Cache
When calling or loading an XML file... does flash/browser treat it the same as a text file...in regards to CACHE?

just wondering if I need to add the "random" line to my XML file call.

usually for text files..I add a random NUM to the end of the url string..

can i do the same with XML as so:
code:
myXML_xml.load("products.xml?" add random(9999));


thanks

Is There A Way To Get Around Cache?
I'm going nuts here... I'm working on a flash site that I've uploaded. I'm trying to check it online and all I keep on getting is previously uploaded versions. I have tried deleting the cache in my browser but it does not work (it should)

I even downloaded the swf files to make sure I was uploading the right files... they are correct yet when I view in the browser it shows me the earlier uploaded version of the file...

Is there something I'm missing here, how does one get around this really annoying problem.

Greg.

Something Very Odd - Cache?
Hi,

I regularly get up the next day and find my project no longer works. Undefined properties all over the place. It's happened quite a few times now and I can't figure out why my .fla file compiles without problems before bedtime but complains in the morning when I get up! It's as if something is being cached that perhaps, by fluke, allows the .fla to compile. Am i looking for gremlins that aren't there or has anyone else noticed this anomaly?

Xml And The Cache
I have two different swfs that i want to communicate together. Im using xml as a bridge for them to communicate. How do I ensure that its loading a fresh xml page each time. Is there a cache buster object in flash to use?

This onclip event calls a function to load the xml.

Code:
onClipEvent (enterFrame) {
if (_root.startGame == false) {

this._parent.loadXML();
}
}


This is the function the onclip event calls. If it loads and the xml node value is a 1 the onclip events no longer calls the xml load function and the game questions are laoded.

Code:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
function loadXML(loaded) {
Started = parseInt(xmlData.firstChild.firstChild.firstChild);
_root.fb += "xmlData = "+xmlData+newline;
_root.fb += "Started = "+Started+newline;
if (Started == 1) {
_root.fb += "In the if statement";
startGame = true;
Getquestion();
}
}
//xmlData.load("http://www.wisc-online.com/xmlgame/"+bingopicked+".xml?cacheB="+new Date().getTime());
xmlData.load("http://www.wisc-online.com/xmlgame/"+bingopicked+".xml?nocache="+new Date().getTime());

Cache FLV
My FLV files I think are being Cached on my computer, Can I stop this?

I upload a FLV to the server, play it in my player. I delete the FLV file on my server, and try to play the video and it still plays.

How can I remove it from my Cache?

Cache
My SWF file saves its self in the cache.

I have an XML file, and I update it, and the SWF file doesn't show the updates, but once the cache clears, then SWF shows the updated. How can I fix this? Is there something In AS 3? or is this something I have to do in PHP or HTML?

Swf No Cache
How can I prevent people from copying my swf file from their cache? Or - how can I define my swf file as "uncacheable"?

Not Getting Swf Cache
I have a site that uses an html page for searching through products. When you click on a product from the search results I use php to pass some variables to the swf like so
<embed src="movie.swf?variable1=data&variable2=data"
This tells the swf where to go so that it ends up on the product.

The problem is that the swf always needs to reload itself. Shouldn't this be in the cache already? Is there a way i can keep it in the cache or tell the browser to pull it from cache? It is a fairly large file so it kinda sucks that it needs to keep reloading everytime.

RAM And Cache
Hi Flash Gurus

Can I ask those who use FLASH8 PRO what they think is the optimal RAM and CACHE size with W XP?
Can I get away with 512 DDR RAM and 1Mb Cache, 1.6Gzprocessor?
( I am a little sceptical of 'offical' recommendations).

Cheers





























Edited: 01/19/2007 at 05:34:33 AM by hobdenpete

No Cache
Is there a way to set a Flash file (swf) to NOT cache in the browser? When
I upload a new swf file, the browser does not reflect the changes until
after flushing the cache.

--
Brandon

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