I am not sure if this is common knowledge. I googled and didn’t find any other reference to it. (At least not in 10 minutes of googling.)
I wasn’t sure this was possible, but then I decided to look in the Flex bugbase. This is what I found:
https://bugs.adobe.com/jira/browse/SDK-5308
Whaddaya know? An enhancement request that I logged that had actually addressed this issue back in the Flex 2.x days.
Basically if you change the extension of a swc to .zip, you can open the archive with winzip (or similar) and look at the top of the catalog.xml file. You should see something like this:
<swc xmlns="http://www.adobe.com/flash/swccatalog/9">
<versions>
<swc version="1.2" />
<flex version="3.2.0" build="3958" />
</versions>
Hopefully this will help some folks out.
Incidentally such a thing does not exist for compiled swfs. There is an enhancement request:
https://bugs.adobe.com/jira/browse/SDK-14042
If you think such a thing would be valuable, please vote for the bug.
And one more thing…I actually had an AIR app back in the pre-release of AIR 1.0 days:
http://blog.flexmonkeypatches.com/2007/11/12/flex-sdk-fds-lcds-version-detection-adobe-air-application/
You could point it at a fds/lcds war or sdk directory and it would tell you the version (of LCDS and the SDK).
Maybe this should be resurrected and updated to AIR 1.5.1 and to use this new version info (at least new since I built the original AIR app). It could also be enhanced to read version info from individual swcs as well. Oh and maybe allow users to drag and drop directories, or wars or swcs onto the app to read the info. Hmmm….if only I had the time.
3 Comments »

Recent Comments