MovieClip.getSWFVersion()

Availability

Flash Player 7.

Usage

my_mc.getSWFVersion()

Parameters

None.

Returns

An integer that specifies the Flash Player version that was targeted when the SWF file loaded into my_mc was published.

Description

Method; returns an integer that indicates the Flash Player version for which my_mc was published. If my_mc is a JPEG file, or if an error occurs and Flash can't determine the SWF version of my_mc, -1 is returned.