View Full Version : Detect AS version
Dimitree
June 22nd, 2009, 01:27 PM
Is there any way to detect the AS version in a swf?
BoppreH
June 22nd, 2009, 01:33 PM
...
Did you mean:
- looking at a piece of code and knowing if it's AS2 or AS3?
- the very piece of code tracing a "Hey, I'm written in AS3!"?
- getting the AS version from a loaded swf?
Dimitree
June 22nd, 2009, 01:42 PM
I mean to tell from a loaded swf (webpage etc) what 's the AS version...
BoppreH
June 22nd, 2009, 01:48 PM
myLoadedSwf.loaderInfo.actionScriptVersion
If you need it before it has been loaded:
mySwfLoader.content.loaderInfo.actionScriptVersion
Dimitree
June 22nd, 2009, 01:59 PM
I didn't make myself clear... To open a webpage for example http://sksantos.net/2008/ and detect the AS version.
Like a widget or something
BoppreH
June 22nd, 2009, 02:02 PM
The only way to open a webpage inside a flash movie is loading it's main swf. Once loaded you can use the above syntax to detect the version.
But if you want a little "This was made using AS3" text in a corner, I would suggest going hard-code, because the code will be executed in the very page, and thus the widget version would have to be the same as the main swf.
senocular
June 22nd, 2009, 02:34 PM
http://swfversion.com/ :q:
Dimitree
June 22nd, 2009, 02:42 PM
http://swfversion.com/ :q:
yes that 's it :thumb2:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.