Flash Player 7.
my_mc.getSWFVersion(): Number
None.
An integer that specifies the Flash Player version that was targeted when the SWF file loaded into my_mc was published.
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.
You can extend the methods and event handlers of the MovieClip class by creating a subclass. For more information, see "Assigning a class to a movie clip symbol" in Using ActionScript in Flash.
The following ActionScript displays the Flash Player version for the SWF file and for a SWF file that loads into a movie clip instance called fp6_mc.
trace(this.getSWFVersion()); // output: 7
fp6_mc.loadMovie("flashplayer6.swf");
my_btn.onRelease = function(){
trace("Loaded Flash Player " + fp6_mc.getSWFVersion() + " file.");
//output: Loaded Flash Player 6 file.
};
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00001508.html