MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 554

Actionscript language reference
Table of Contents

Advertisement

MovieClip class
Availability
Flash Player 3.
Description
The MovieClip class is the base class for Flex components. However, while Macromedia supports
some of the MovieClip interface for use in Flex applications, much of the interface has been
overridden by Flex. For more information on using the MovieClip class with Flex, see Developing
Flex Applications.
You do not need to use a constructor method to call the methods of the MovieClip class; instead,
you reference movie clip instances by name, using the following syntax:
my_mc.play();
my_mc.gotoAndPlay(3);
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Method summary for the MovieClip class
Method
MovieClip.attachAudio()
MovieClip.attachMovie()
MovieClip.createEmptyMovieClip()
MovieClip.createTextField()
MovieClip.duplicateMovieClip()
MovieClip.getBounds()
MovieClip.getBytesLoaded()
MovieClip.getBytesTotal()
MovieClip.getDepth()
MovieClip.getInstanceAtDepth()
MovieClip.getNextHighestDepth()
MovieClip.getSWFVersion()
MovieClip.getTextSnapshot()
MovieClip.getURL()
554
Chapter 7: ActionScript for Flash
Description
Captures and plays local audio from the microphone hardware.
Attaches a SWF file or movie clip in the library.
Creates an empty movie clip.
Creates an empty text field.
Duplicates the specified movie clip.
Returns the minimum and maximum x and y coordinates of a
SWF file in a specified coordinate space.
Returns the number of bytes loaded for the specified
movie clip.
Returns the size of the movie clip, in bytes.
Returns the depth of a movie clip.
Returns the movie clip instance from a particular depth if it
exists.
Returns the next available depth that can be passed to other
methods. This ensures that Flash renders the movie clip in
front of all other objects in the current movie clip.
Returns an integer that indicates the Flash Player version for
which the movie clip was published.
Returns a TextSnapshot object that contains the text in the
static text fields in the specified movie clip.
Retrieves a document from a URL.
CHAPTER 7
ActionScript for Flash

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?

This manual is also suitable for:

Flex

Table of Contents