What happens when you have to make updates to an Application for a client, you give it to them but they say the updates don't appear on their site. Well how do you know what version of your application they have loaded? By using version control of course.
Create a simple class that can be added to any application file that includes version control information to be placed in the context menu of the flash player. This allows the developer at anytime to verify that the version number is correct for that deployment.
This comprises of making just two files one of which is a singleton class that can be used for every project you want to add version control to and the second is a VersionControl.properties file which you update before you publish a new version of your application lets take a look at that file first
#Each item takes the same params as the ContextMenuItem class
#and is seperated by and & ampersand
#caption:String = caption Value : String,
#separatorBefore:Boolean = false,
#enabled:Boolean = true,
#visible:Boolean = true
#In addition each item supports a url variable just add
#&YOUR URL GOES HERE;
The Second class controls what these properties do i know its a long class but its fully commented. Basically it loops through the VersionControl.properties file and builds context menu items based on the values, adding the ability to include links as well. And finally all you have to do is call getInstance( this ); in your main application file.
<?xml version="1.0" encoding="utf-8"?>
creationComplete="VersionController.getInstance( this )" >
The full blog link :