473,394 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Reloading swfs.. not just preloading

My code:
Expand|Select|Wrap|Line Numbers
  1. siteLoader.loadMovie("a1.swf");
  2. loadingBar._xscale = 1;
  3. loadingBar.onEnterFrame = function() {
  4. kBytesLoaded = this._parent.siteLoader.getBytesLoaded()/1024;
  5. kBytesTotal = this._parent.siteLoader.getBytesTotal()/1024;
  6. percentage = Math.round(kBytesLoaded/kBytesTotal*100);
  7. this._xscale = percentage;
  8. if (percentage == 99) {
  9. delete this.onEnterFrame;
  10. }
  11. };
Problem: Once "a1.swf" is loaded by the user, flash doesnt reload it again when accessing it (my "a1.swf" file gets updated every few hours, so my users will currently not load the updated version). Now what I want is for the code to REload the file everytime its activated, even if the swf file has been preloaded in the past. I tried using 'reloadmovie' instead of 'loadmovie' and it didnt work lol.

Thanks for any help dudes!
Mar 4 '07 #1
0 1377

Sign in to post your reply or Sign up for a free account.

Similar topics

22
by: Fabian | last post by:
var preload1 = new Image(); preload1.src = "/pic/yay.gif"; var preload2 = new Image(); preload2.src = "/pic/nay.gif"; The above is meant to preload image files, yes? Problem is, it doesnt seem...
2
by: DiggidyMack69 | last post by:
Hello folks I have a rolling image script that works fine except that the images do not seem to be preloading properly. The images are still being pulled on every interval from the server...
2
by: windandwaves | last post by:
Hi Gurus Preloading images has got to be JS 101. However, it does not seem to be working. Here is the function that I am using. I added the alerts to make sure it is working and all the right...
1
by: cjreynolds | last post by:
It has been years since I used flash, so I consider myself a rank amature. I'm Using Flash 8 and would like the code to be backward-compatible to ver. 6. I have a big movie, with lots of images....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.