482
Chapter 12: ActionScript Dictionary
MovieClip class
Availability
Flash Player 3.
Description
The methods for the MovieClip class provide the same functionality as actions that target movie
clips. There are also additional methods that do not have equivalent actions in the Actions
toolbox in the Actions panel.
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);
Method summary for the MovieClip class
Method
Description
MovieClip.attachAudio()
Captures and plays local audio from the
microphone hardware.
MovieClip.attachMovie()
Attaches a SWF file in the library.
MovieClip.createEmptyMovieClip()
Creates an empty movie clip.
MovieClip.createTextField()
Creates an empty text field.
MovieClip.duplicateMovieClip()
Duplicates the specified movie clip.
MovieClip.getBounds()
Returns the minimum and maximum
x
and
y
coordinates of a
SWF file in a specified coordinate space.
MovieClip.getBytesLoaded()
Returns the number of bytes loaded for the specified
movie clip.
MovieClip.getBytesTotal()
Returns the size of the movie clip, in bytes.
MovieClip.getDepth()
Returns the depth of a movie clip.
MovieClip.getInstanceAtDepth()
Specifies whether a particular depth is already occupied by a
movie clip.
MovieClip.getNextHighestDepth()
Specifies a depth value that you can pass to other methods to
to ensure that Flash renders the movie clip in front of all other
objects in the current movie clip.
MovieClip.getSWFVersion()
Returns an integer that indicates the Flash Player version for
which the movie clip was published
MovieClip.getTextSnapshot()
Returns a TextSnapshot object that contains the text in the
static text fields in the specified movie clip.
MovieClip.getURL()
Retrieves a document from a URL.
MovieClip.globalToLocal()
Converts the point object from Stage coordinates to the local
coordinates of the specified movie clip.
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...