Avatar of StarDusterII
StarDusterII

asked on 

Find the application's date last modified in Flex 3

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.
Apache FlexAdobe Flash

Avatar of undefined
Last Comment
dgofman
Avatar of dgofman
dgofman
Flag of United States of America image

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)
Avatar of StarDusterII
StarDusterII

ASKER

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.
Avatar of dgofman
dgofman
Flag of United States of America image

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.
Avatar of StarDusterII
StarDusterII

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of StarDusterII
StarDusterII

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of StarDusterII
StarDusterII

ASKER

This gets the compilation date of the swf directly.
Avatar of dgofman
dgofman
Flag of United States of America image

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
Adobe Flash
Adobe Flash

Adobe Flash (formerly Macromedia Flash) is a cross-platform multimedia and software platform used to embed animations, video, and interactive applications into web pages and desktop and mobile applications and games. Flash displays text, vector and raster graphics to provide animations, video games and applications. It allows streaming of audio and video, and can capture mouse, keyboard, microphone and camera input. The ActionScript programming language allows creation of interactive animations, video games, web applications, desktop applications and mobile applications.

29K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo