Hey people,
I have developed a swf, lets call it “project.swf” which will require updating over time, so to avoid a user loading an old version I will name the files thus:
“project1.swf”, “project2.swf”, “project3.swf” etc everytime a new version is published.
I load this file from a movie called “get_latest_version.swf”, into which I hard code the latest version of “project.swf”. Not very efficient at all!!
So heres what I want to do:
In “load_latest_version.swf” can I create a way of detecting the highest version number (newest version) and automatically loading that instead of always hard coding a new version number everytime I add a new feature?
I’m thinking: loadMovieNum(“project”+getNewestVersion+".swf", 0);
But how would I detect the latest version (highest number) of a file?
Is this possible? I’m struggling here. Please someone help!!
Thanks.