Problem With Caching MCs
Hi everybody, long time I didn't get back to ActionScript
I have a pretty odd question. I'm currently doing a script in which I have to preload some external resources (jpgs) at the begining of the animation. Going OK, I dynamicaly create my MCs in which I do my loadmovies. Classical.
Now the thing is, a few frames later, I need to reuse the images I have preloaded in other MCs. The thing is there seems to be a problem in using dynamicaly created MCs, here is why this is weird : - I import a MC from the library : I can duplicate it, and I *see* it on the animation - the MC that I have created, that I *see* on the animation, doesn't want to be duplicated : by that I mean that when I duplicate it, it can't be seen.
Now if there is a simple explanation for that, I have another question : I have an empty MC in which I want to *copy* one of the very MCs that I have dynamicaly created at the beginingn what is the best method ? attachMovie ? doesn't seem to work, but yet again, all this might be related.
Thanks in advance !
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 08-11-2004, 01:09 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Caching Swf's?
Hello, thanks for reading...
I'm currently working on a project in which I have used some files created with FlashTyper which I load with Loadmovie command. Now, there's no problem when I preview the movie, since the files are already loaded, but when I view it online, it has to download the file every time before playing it, and sometimes it actually doesn't work because by the time it's finished loading, the movie is playing the next scene...Anyway, my prelaoder looks like this:
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("logo", 1) {
nextScene ();
}
And it doesn't seem to load the swf's...so is there a way to do it? I mean, can the swf be loaded before the movie gets to the frame where I put the Loadmovie command?
EDIT: I can't modify the swfs Forgot to mention that.
[Edited by lazarus741 on 06-22-2001 at 08:21 AM]
Caching
How is it possible delete Web browser caching with flash MX?
Caching
I am having trouble with cashing, I am using asp to send and recevive data into my flash file, but my data keeps cashing and not updating.
I ve tried using the code below to trick the browser into thinking it's a new variable each time but it doesn't seem to be worikng!
loadVariables("rants.asp?"+Math.random(), "", "GET");
Anyone got any ideas??
Any help would be grand!
Cheers
Jemes
Caching. I Need To
Hey everyone,
I made a site that loads external swfs. I wouldn't want to download each one again, after visiting a part of it already. How do I make Flash look at the cache instead?
Thanks,
SWF Caching In IE
My site is in Flash, and it is updated quite frequently. However, in IE, unless the cache (TIF) is deleted, the swf movie will not re-download the updated version--even when the "Refresh" button is pressed.
Is there a way I can have a client's computer check if its cached version of the movie is the same as the one on the server? If it is the same, no need for re-download, but if it is different, it needs to download the latest version.
All I'm asking for is a point in the right direction or possibly a tutorial. Thanks, guys.
Swf Not Caching?
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? It is a fairly large file so it kinda sucks that it needs to keep reloading everytime.
Caching
I have a new flash site, and I noticed when I make an update to my "news" section (an externalley loaded .swf), my site shows the old one until I clear my browers cache. What can I do about this. People can't see my updates. Thanks in advance.
Caching
Hey, I am trying to make a flash inteface that uses php to cache a web page, say: www.flashkit.com/index.shtml. However, I want to cache it on my php server, so that it's URL would then be something different. How would I go about achieving this.
Any help will be much apreciated.
Cheers
Pre-caching Jpg's?
Hi,
I have a site that will eventually have 100s of jpgs. I want to be able to pre-cache large numbers of them but without actually loading them onto the stage. Is this possible? Is there an easy way to do this? One way I'm thinking is that as soon as they hit the site, they just start caching in the background, so that by the time the user starts hitting sections, all, or at least many, of them will already be ready to roll.
Am I crazy?
-Z
Pre-caching FLV
Hi,
currently working on a site with lots of video content. Have a little time between visitors entering the site and visitors having access to play flvs, so I want to pre-cache as many videos as possible before they get to them. Short of loading the flvs into my media player and pausing them, allowing them to load, then repeating with the next, is there a nice way to precache them?
Thanks
Caching In FMS 2.0.4
Hi,
We have set up FMS 2.0.4 and want to find out if caching capability is available in FMS and information regarding cache settings. Please let me know if this information is already available somewhere.
Any help on this topic would be helpful.
Thanks!
Swf Caching
Hello,
I found this link on macromedia.com, pretty handy i think? Maybe you all know it already!? I had trouble with a site not refreshing after changes due to caching.
Hope its helpful to someone:
http://www.macromedia.com/support/fl...nt_caching.htm
skid
MORE Caching
I must say... I'm having the same problems as some of the others...
I'd LIKE to be able to say:
this.createEmptyMovieClip("scroll_mc",10);
loadMovie("scrollinmasked.swf?uniq=1",scroll_mc);
or...
this.createEmptyMovieClip("scroll_mc",10);
scroll_mc.loadMovie("scrollinmasked.swf?uniq=1");
(I'm using the "uniq=1" here only as a test... this is the only copy of scrollinmasked.swf I'm loading right now.)
Some documentation says that you have to use "loadMovieNum" for this instead, thereby loading into a level rather than a clip, but I thought I'd seen other people doing something like what I'm trying to do.
Anyway, I'm guessing it has everything to do with how I create my target "scroll_mc". So, basically: how do I use this technique (of appending a unique ID to get around caching) when loading into a pre-existing movie?
Thanks very much.
Caching SWF's
Hello there,
I have a flash movie with a preloader on a website I've just done. The trouble is every time you go to this page it plays the preloader again taking the same amount of time to download... shouldn't the SWF have been cached the second time you go into in? Does anyone know how I can stop this happening???
Thanks
Caching Of Swf's
Hi,
i'm working on a website, where in i've swf's embedded into the pages, and now I wanna know Is there any ways to avoid Swf's being downloading to the client system? If yes, pls let me know asap.
thanks in advance
Caching
I have a .fla which loads a picture externally using loadClip. This picture is continually being updated. Is there any way to force the player to download this picture each time the movie is started. I do not want the player to use a cached version of the picture.
Caching Of XML?
Hello everybody,
I am making a game where the result is passed to Flash from PHP, using XML files. The problem is, that the browser caches the XML, so the result is always the same. Does anybody know how to avoid this? I can't use querystring cos the flash object can't reload! (so I can't use the "actual time" method)
Thanks for any ideas, help, etc!
Poco
No Caching
Hi. I'm working on my site right now: http://www.ixworks.com/ and I've made a shoutbox. It's in flash. And in ie for some reason, I have to restart the browser and go back to the page to see the lastest posts. In firefox, however, it's all in real time. Is there a way to make flash not cache so that it's always forced to reload? Can you under stand a word i just said? lol thanks guys!
Swf Caching
Hi!
I was wondering if anyone can explain why swfs get cached even if you specified NO-CACHE from the main html file? What is even more weird is that when I just uploaded a new version of the swf file to the server the changes does not seem to come up only the previous version. Then, there seem to be a difference between http:// without the www and the just the www protocols when calling the site because the swf file gets updated from the first one while not on the other. Is there something wrong with the server to where we are hosted?
MORE Caching
I must say... I'm having the same problems as some of the others...
I'd LIKE to be able to say:
this.createEmptyMovieClip("scroll_mc",10);
loadMovie("scrollinmasked.swf?uniq=1",scroll_mc);
or...
this.createEmptyMovieClip("scroll_mc",10);
scroll_mc.loadMovie("scrollinmasked.swf?uniq=1");
(I'm using the "uniq=1" here only as a test... this is the only copy of scrollinmasked.swf I'm loading right now.)
Some documentation says that you have to use "loadMovieNum" for this instead, thereby loading into a level rather than a clip, but I thought I'd seen other people doing something like what I'm trying to do.
Anyway, I'm guessing it has everything to do with how I create my target "scroll_mc". So, basically: how do I use this technique (of appending a unique ID to get around caching) when loading into a pre-existing movie?
Thanks very much.
Caching SWF's
Hello there,
I have a flash movie with a preloader on a website I've just done. The trouble is every time you go to this page it plays the preloader again taking the same amount of time to download... shouldn't the SWF have been cached the second time you go into in? Does anyone know how I can stop this happening???
Thanks
Caching Of Swf's
Hi,
i'm working on a website, where in i've swf's embedded into the pages, and now I wanna know Is there any ways to avoid Swf's being downloading to the client system? If yes, pls let me know asap.
thanks in advance
ISP Caching....What?
I was updating some swfs and HTML files, and no matter how I clear my browers caches, deleting cookies, I can't see the updated files. So, I began to search and came to the term ISP Caching....
Is there anything I can do to see the new changes? It's really scary knowing something might be wrong and you can't see it.....
Al
Caching
when i load my movie i have a preloader, with a status bar that scales the width of a housing thingy. everyone uses this practically.
what i noticed is that the bar doesn't make it all the way to 100% of the area. it stops at around 90%. when i test it in flash, it goes all the way ( i use 56k setting). i have cable, can the speed make the difference?
plus once the page is already cached, the loading bar doesn't work at all, because the animation is already loaded.
how do i rewrite the code to make the load bar always go across the screen?
and why does it only go 90% of the way?
here's the code:
var loadAmount = _totalframes;
if (_framesloaded == loadAmount) {
gotoAndPlay ("load", "begin");
} else {
loaded = Math.round(getBytesLoaded()/1024);
total = Math.round(getBytesTotal()/1024);
percent = Math.round((loaded/total)*100);
bytesLoadedOutput = loaded;
bytesTotalOutput = total;
percentOutput = percent+"%";
loadBar._width = loadBarHousing._width*(percent/100);
gotoAndPlay ("loading");
}
thanks
Caching
Is there a way to avoid dynamic images being cached? I'm working on a interactive desktop with SWF desktop, trying to load external images from a webcam feed on our server.
Browser Caching
I have a question about browser caching,
I made a menu that loads a new html page and shows witch page has been selected but unless I press refresh on the browser the browser won't show the update in the flash movie menu
I think I need a javascript or actionscript to do this
thanks in advance for any help on this matter
Caching Problem...
IE obviously has a problem being able to refresh updated SWFs... I've been trying to figure out a way to keep browsers from caching the SWF. Anybody know how I (and everyone else having the same problems) might solve this problem? Preferably something in the SWF it's self if there's a way to do that. (that way if a visitor views the actual SWF it still wont be cached.)
PS - The following meta tags (among others) did not work for me.
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 1999 21:29:02 GMT">
There MUST be a way to stop browsers from caching files.
Caching Woes
Hi, I am having problems with IE caching my swf's. This causes a lot of problems eg leaving changed values unchanged.
Is there a way to stop them being cached?
I have read about the meta tags..but also the fact they do not always work.
I once read that you can generate a random name for the swf when it is in the cache so that it is not called again..but cannot remember how to do this.
Does anyone have any ideas?
Thanks
Caching A Preloader
I'm working on an online application for elementary school students, a town that they can navigate around in. It's structured with a main overview of the town, and a separate SWF for each location in the town. (Each new SWF has its own HTML page.)
My problem is that since each location is 300-400 kb, we need a preloader. I've got a neat little animation that's about 20kb (with audio), and I would <b>like</b> to reuse it in each location. But 20kb is a little big to be downloaded each time a new movie is loaded.
Is there any way to cache the preloader? If I put it in a separate SWF, and load it into the beginning of each page, will the Flash Player load it from the browser's cache? Or is there some way to store an animation with MX's SharedObject?
Caching A Preloader
If I want to have my preloader get cached, do I add this code to Frame 1?:
if (_framesloaded > 0 && _framesloaded == _totalframes){
gotoAndPlay(3);
}
================================================
And then Frame 2 has the same code?:
gotoAndPlay(1);
================================================
Or do I add the code (above) in Frame 1 after this code?:
if (_framesLoaded ==_totalframes) {
gotoAndPlay(3);
}
================================================
Also, if I have code involved with my MovieClip, how does this affect my preloading code?
Anyone with experience, please reply - thank you SO much!
Thanks!
Dan
Caching And LoadMovieNum
I've got a movie that loads the main movie in _level2 and then successively unloads and loads others in _level1. It works fine.
However when I leave the site and return to it without emptying my IE cahe the initial loader works then nothing else. My platform is Mac OS 10.1.5 and IE. The site is designed using flash MX but with flash 5 actionscript.
http://www.skibarjobs.com
LoadVariables Is Caching
Im using the loadVariables method to show a list of files (that I read from a directory) to the user. However each time I show this list its the same. If I manually delete some files from the directory, they still show up in the list. If I run the ASP page on its own the info is correct.
Does anyone know how I can stop flash from caching the results?
Cheers
Mat
Caching With Onload
from a button, how is it possible to check if swf files have been cached and if not to load them?
Prevent Caching
I'm working in an e-learning web site & I want to Prevent my SWF Files to be downloaded in the user temporary files.
Can anyone help me with that Please
Swf Caching Problems
hey. im having problems with refreshing mi site after uploading through dreamweaver. it refreshes on everyone elses computers except the com's in our house(all on a network). it will eventually show after several hours , sometimes a couple of days. i delete temp files etc, do all tha refreshing procedures, but itz stil no go. it real strange , ive talkd my isp ,as well as mi host, and we cant seem to work it out. i was told to try " netscape" but it did not resolve anything. does anyone have any ideas. this problem is sooo annoying, because i cant
make successful changes to things like preloaders .cheers
ps if you check my site out youll see that the sounds are working, on my system-connection they arent
www.alturapark.com
Netscape Caching
My site is a typical loader/larger file setup. Loader loads the file, and the file is displayed. However, Netscape doesn't like to dump the cached version of the file if I update it. I tried to use this technique:
loadMovieNum("main4.swf?1",1);
And it doesn't work (on my hard drive). Will this work once I post it online?
I'd like to use the same technique to get read-in text to be refreshed, using this:
loadVariablesNum("announcements.txt?1", 1);
Same question: Should it work online, but not on my drive?
Thanks!
Frank
Caching Of XML -- Flash MX
Greetings!
I am using Flash MX to generate a html page driven by a PHP script that generates XML.
My problem: I can prevent caching of the swf file, but how do I prevent caching of the php file (generating XML) that I am loading? In other words, how do I prevent the caching of my XML file that changes dynamically?
If this is not clear, please let me know!
Thanks in advance!
UnloadMovie And Caching
I'm loading movies one by one into a specified level to let them fully download in the background while another movie plays.
When it's done loading, I want t unload it and load the next one.
Will unloadMovie clear the swf out of the browser's cache? Should I be loading each swf into it's own level?
Swfs Not Caching
Can anyone help, I'm loading swfs i not my main movie and i want them to cache, but they're not. The preloader take just as long the second time you view the movie.
Any ideas????
Caching The Movie Before....
I have a movie that doesnt play well on dialup. Is there a way i can put like a little LOADING... thing up while it caches the movie. Then play it?
Forceful Caching
Is there a way to force Flash to cache dynamically loaded JPGs?
When I reload a dynamically loaded JPG into different movieClips, Flash seems to reload rather than use a duplicate from it's cache.
Caching Symbols?
hey all
was just wondering if it is possible to cache symbols for future use on different levels
i ask this because in my level 0 movie i added a big image used in loading sections for other level movies
i did this because i thought that maybe flash would be smart enough to understand that this image would screw up loading sequence on 56k and stuff but i don't think it is
so does anyone know if it is possible to cache a symbol?
check my sig for address to understand what i mean... the nav and surrounding is on level 0 and the loaded sections go on their appropriate levels. the symbol is the hands and crystal ball...
thanks in advance yall
take care and peace
Caching..sigh..
Hello, I have a Flash MX swf file, and I am wondering how do I prevent it from caching in the browser, even sometimes after I close all IE instances, it still caches..
what solutions do I have?
Seems the only thing that works is to delete the swf from the server, re-load the page with a broken swf link, close IE, re-upload the swf, re-load the page..
That is just a waste of time.. so any help would be awesome!!
Thanks in advance.
-Adam
Flash Caching
I have an asp and Flash guestbook that pull out all my variables from the asp page and display’s them in my Flash file but when I post too the asp page the returned results are being cashed and not updated!
How do I get Flash to stop caching and refresh the data that is pulled out?
Any help would be grand!
Cheers
Jemes
Caching Issue?
Hello everyone. I've been having this problem for some time now and can't seem to find out why. I'v recently had the same problem on windows 2k pro and am now having the same with win xp pro...both using flash mx. I create a flash movie, publish it and upload the swf and the html files using an ftp program. I go to look at the page online (on the server) and am looking at an older version every time. I clear my cache and cookies each time and even manually delete the temp internet files under all users in my windows explorer, but still the same thing happens. I force a fresh reload by using Ctrl + F5 - again no change. If I wait until the following day, the newer version will be visible. This has to be a caching problem (I think), but I can't see what I'm doing wrong and how to prevent this. Please help....
Caching Data
Hi,
i'm using loadVars, and SendAndLoad to send data to a php script which is then written to a text file, problem is, once the data has been sent, and the data is then displayed in my flash movie, its not updated!, it still displays the old data (the new data is definately being stored, i've checked the actual file on the server), until i refresh the page, so i think its a cacheing problem, although im not sure at what stage, any ideas of solving this, so it can display the new data, straight away?!
thanks for any help.
boombanguk
Strange Caching
Hio, i create a swf in MX which calls another into a new level. I posted it on the net (i cannot give the url) and everything's fine, made a change to the swf called into the new level, saw the changes on the net with my win98SE, flash plugin 6x, ev3erything was as it should, went to another computer at a different building and the old swf that i made changes to (the one called into a new level) was the old version, cleaned the tem files, cache, history, cookies and still the same, pressed F5 and even ctrl f5 to clean browser and the swf displayed the old... went back home and thing show the new level swf as changed, checked it on a 2 other computers here at home (1 being a mac) and it displayes the change. The computer in the other building is WinXP and not sure what version of plugin, but it must be greater than 5x cause there was no propmt to upgrade the plugin, all computers are behing an inexpensive firewall. Any thoughts?
Disable Caching
hi!
I am making a photo gallery which is driven by an XML file...
Does anyone know if this will cache?
And if so how do I stop this caching?
I thought I could add a random number on the end of the file name or something..
any ideas?
Stop Ie Caching Mp3's
Hi
i'm setting up a music player that plays a number of mp3's. ive got every thing running, but i don't want the browser to cache the file once its downloaded. is there any way to do this? i have already tried deleting the sound object when finished or when opening a new mp3 but the browser still caches it.
|