# Load the LATEST version

**URL:** <https://forum.kirupa.com/t/load-the-latest-version/187945>\
**Category:** Uncategorized\
**Created:** [May 3, 2006, 10:50am UTC](https://forum.kirupa.com/t/load-the-latest-version/187945 "2006-05-03T10:50:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DESIGN\_GEEZER](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@DESIGN\_GEEZER](https://forum.kirupa.com/u/DESIGN_GEEZER)\
**Post date:** [May 3, 2006, 10:50am UTC](https://forum.kirupa.com/t/load-the-latest-version/187945/1 "2006-05-03T10:50:46Z")

</div>

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.
