loadMovieNum and cache
loadMovieNum and cache
Out of context: Reply #12
- Started
- Last post
- 18 Responses
- SmilingBuddh0
Just because I'm a dork, I thought of a better way to do this whole thing:
var mcp = MovieClip.prototype
mcp.oldLMN = mcp.loadMovieNummcp.loadMovieNum = function(url,level) {
var app = (_url.charAt(1) == "h") ? ("?r=" + getTimer()):("");
this.oldLMN(url + app, level);
}This replaces the old LMN function with a new one that automatically appends the random number when it's on the server, but not when it's running local.
Overkill, maybe, but it saves having to type the random shit every time. Might be useful where you're loading a lot of .swfs