MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 580

Actionscript language reference
Table of Contents

Advertisement

mclListener.onLoadInit = function(target_mc:MovieClip) {
target_mc.onPress = function() {
this.startDrag();
};
target_mc.onRelease = function() {
this.stopDrag();
};
};
logo_mcl.addListener(mclListener);
logo_mcl.loadClip("http://www.macromedia.com/devnet/mx/blueprint/articles/
nielsen/spotlight_jnielsen.jpg", logo_mc);
See also
MovieClip.getDepth(), MovieClip.getInstanceAtDepth(),
MovieClip.getSWFVersion()
Availability
Flash Player 7.
Usage
my_mc.getSWFVersion() : Number
Parameters
None.
Returns
An integer that specifies the Flash Player version that was targeted when the SWF file loaded into
was published.
my_mc
Description
Method; returns an integer that indicates the Flash Player version for which
If
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.
Example
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
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.
};
580
Chapter 7: ActionScript for Flash
.
fp6_mc
MovieClip.swapDepths()
was published.
my_mc
,
my_mc

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents