
MovieClip.loadVariables() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
671
Reader Exercise: Notice that lineTo() accepts absolute coordinates, not relative coordi-
nates. Write a custom method, lineToDelta(), that accepts relative coordinates. For
example, mc.lineToDelta(5, 10) would draw a line to a point 5 pixels to the right of, and 10
pixels below, the current pen position. (Hint: See Example R-3 under MovieClip.moveTo(),
which stores the pen’s current position.)
See Also
MovieClip.beginFill(), MovieClip.beginGradientFill(), MovieClip.clear(), MovieClip.curveTo(),
MovieClip.endFill(), MovieClip.lineStyle(), MovieClip.moveTo()
MovieClip.loadMovie() Method
load an external .swf or .jpg file into the Player
Flash 5; Flash 6 adds .jpg loading and security restrictions
mc.loadMovie(url)
mc.loadMovie(url, method)
Arguments
url A string specifying the location of the external .swf or .jpg file to load.
method An optional string literal indicating the method by which to send variables to
an external script. Must be either the literal “
GET”or“POST”; no other expres-
sion is allowed.
Description
The MovieClip.loadMovie() method is an alternative to the global loadMovie() function.
When invoked as a MovieClip method, loadMovie() does not take a
target parameter; it
loads the .swf or .jpg from
url into mc ...