Solution to MovieClipLoader Caching Issue
The MovieClipLoader class allows you to load External SWF and .JPG images inside your Flash Swf File. But this class comes with a small bug that it remains in the computer memory once it is loaded.
Because of staying inside the memory the onLoadInit listener does not get fired because it is already fired.
To resolve this problem the easiest and the most effective solution is to provide a TimeStamp along with the Swf Filename or the .JPG Image.
Example – Using MovieClipLoader without TimeStamp
var my_mcl = new MovieClipLoader(); my_mcl.loadClip(filename,container_mc);
Example – Using MovieClipLoader with TimeStamp
var new_date = new Date(); var my_mcl = new MovieClipLoader(); my_mcl.loadClip(filename+"?"+new_date.getUTCMilliseconds(),container_mc);
Custom Search
Popular Articles:
- Streaming MP3 using Adobe Flash Media Server
- Connecting to Flash Media Server Application
- Passing Data From JavaScript to Adobe Flash Movie
- Loading External JPEG Image/SWF using MovieClipLoader in Flash 8/Flash MX 2004
- Streaming Media in Flash8/Flash MX 2004
- MovieClipLoader Class in Flash 8/Flash MX 2004
- Communicate Flash Movie using LocalConnection Class



































One of the classical Flash Tricks.
Please note: this will work in Ajax too.