Skip to main content
September 12, 2011
Answered

Detect ActionScript and Flash player version of Published SWF

  • September 12, 2011
  • 1 reply
  • 3813 views

Hi

I am looking for a way to find ActionScript and Flash player version of a published SWF using AS3 code?

Did google a lot, but didn't find anything relevant.

Thanks for help

This topic has been closed for replies.
Correct answer Kenneth Kawamoto

The AVM1 movie load fine with the Loader object as well.. So i am not sure, what you mean by loading it through Loader?


Once loaded you can tell if it's an AVM1 movie or not, i.e.

trace(loader.content is AVM1Movie);

// true = AS1/2, false = AS3

1 reply

markerline
Inspiring
September 12, 2011

This link to the Flash ActionScript Reference will get you started but it only gives you the FP version not the AS version...

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html#version

September 12, 2011

Thanks for that link.

But is it possible to get the ActionScript version? Since there might be AS2 code bublished in FP 9 or above?

Community Expert
September 12, 2011

You can load the SWF with Loader and check if it's an AVM1Movie.