February 25th, 2009 by Kyle
Tags: compc, Flex, mxmlc
Posted in: Flex, Flex Builder
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 »











February 25th, 2009 at 1:54 pm
If you’re really interested in the Flex SDK version of a SWF, you could load that SWF into another SWF and read the version via AS. Here’s a quick example (FP10):
http://www.senocular.com/pub/flash/getFlexSDKFromSWF.html
It’s not without its problems (you’ll just have to ignore the runtime erros if you’re using the debugger player), but if you just need to know, it should get the job done.
February 25th, 2009 at 2:06 pm
Yes…I was mulling that over. Seems like it would work well enough. I’ll add that to my list of todos if I resurrect the AIR app.
March 3rd, 2009 at 3:01 pm
[...] > Flex Monkey Patches » Getting the version of the Flex SDK that was used to compile a SWC [...]