How to know Flash Player Version from Action Script 3.0

actionscript-3, flash

Solution

If you are programming from within the IDE the following will get you the version

trace(Capabilities.version);

If you are building a custom class the following should help. Make sure that this following code goes into a file named VersionCheck.as

package
{
    import flash.system.Capabilities;

    public class VersionCheck
    {
        public function VersionCheck():void
        {
            trace(Capabilities.version);
        }
    }
}

Hope this helps, always remember that all of the AS3 language can be studied online here http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/.

Problem

There is a way to know the flash player version installed on the computer that runs our SWF file with Action Script 3.0?

Original source