Find the application's date last modified in Flex 3

StarDusterII
StarDusterII used Ask the Experts™
on
I'd like to know how I can get the date last modified of the application in actionscript so I can display it on the application's screen.  I want people to be able to tell how old the applicaiton they are using is.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011

Commented:
I am not sure if you can get last date modified information from SWF file, but you can always upload SWF with HTML file on your server and use JavaScript code bellow:

alert(document.lastModified)

Author

Commented:
Not a bad thought, but that would only get you the date of the html file that contained the swf.  They are maintained by two different groups of people so there would be a disconnect.  I'm trying to get away from having to remember to do anything manual.
Top Expert 2011

Commented:
In this case pass Perforce, SVN, or any source control file checking information using HTML Params, flashvars or local property file. I used this way.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
I suppose I could use IIS to read the date of the .swf with FSO and pass the last modified date, but it sure sounds ugly... would really think that the swf would contain SOME properties about itself.  I'll keep looking.
Wow, that took a while but here's how it's done.

http://www.igorcosta.org/?p=220

Author

Commented:
This gets the compilation date of the swf directly.
Top Expert 2011

Commented:
Nice, but this may not just compilation date it can be file renamed or moved to new location
For example we are using Perforce and when I am coping files from repository maven renaming.
In this case my timestamp changing base on maven compilation, but last time I make any changes in the file may be month ago. Using "p4 changes" (history) you are guaranteed from correct time stamp

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial