MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 353

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

In the first statement,
second statement,
gotoAndPlay()
instance
parentClip
Global functions that control a timeline have a
target path to the instance that you want to control. For example, in the following script
targets the instance the code is placed on and makes it draggable:
startDrag()
my_mc.onPress = function() {
startDrag(this);
};
my_mc.onRelease = function() {
stopDrag();
};
The following functions target movie clips:
,
loadVariables()
setProperty()
removeMovieClip()
parameter to indicate the target of the function.
target
The following MovieClip methods can control movie clips or loaded levels and do not have
equivalent functions:
MovieClip.createTextField()
MovieClip.getBytesLoaded()
MovieClip.getInstanceAtDepth()
MovieClip.globalToLocal()
MovieClip.setMask()
For more information about these functions and methods, see their entries in the ActionScript
2.0 Language Reference.
For an example of scripted animation in Flash, you can find a sample source file,
animation.fla, in the Samples folder on your hard disk.
In Windows, browse to boot drive\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript\Animation.
On the Macintosh, browse to Macintosh HD/Applications/Macromedia Flash 8/Samples
and Tutorials/Samples/ActionScript/Animation.
moves the playhead in the
play()
sends the playhead in
) to Frame 3 and continues to move the playhead.
,
startDrag()
. To use these functions, you must enter a target path for the function's
MovieClip.attachMovie()
,
MovieClip.getBounds()
,
MovieClip.getBytesTotal()
,
MovieClip.getNextHighestDepth()
,
MovieClip.localToGlobal()
,
MovieClip.swapDepths()
myMovieClip
childClip
parameter that let you specify the
target
,
loadMovie()
unloadMovie()
,
duplicateMovieClip()
,
MovieClip.createEmptyMovieClip()
,
,
.
About controlling movie clips with ActionScript
instance. In the
(which is a child of the
,
, and
,
MovieClip.getDepth()
,
MovieClip.hitTest()
,
,
,
353

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents