Skip to main content
Sep 12, 2011 10:53 AM UTC
Answered

Detect ActionScript and Flash player version of Published SWF

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 is closed to new replies. Start a new post to keep the conversation going.
Kenneth Kawamoto
Kenneth KawamotoCorrect answer
Community Expert
Sep 14, 2011 8:49 AM UTC

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

7 replies

markerline
Inspiring
Sep 12, 2011 12:07 PM UTC

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

Translate
Sep 12, 2011 1:05 PM UTC

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?

Translate
Kenneth Kawamoto
Community Expert
Community Expert
Sep 12, 2011 3:28 PM UTC

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

Translate