Example
The following example draws a circle with a hairline point, solid blue line, and a solid red fill.
_root.createEmptyMovieClip( "circle", 1 );
with ( _root.circle )
{
lineStyle( 0, 0x0000FF, 100 );
beginFill( 0xFF0000 );
moveTo( 500, 500 );
curveTo( 600, 500, 600, 400 );
curveTo( 600, 300, 500, 300 );
curveTo( 400, 300, 400, 400 );
curveTo( 400, 500, 500, 500 );
endFill();
}
See also
MovieClip.beginFill()
MovieClip.lineStyle()
MovieClip._droptarget
Availability
Flash Player 4.
Usage
my_mc._droptarget
Description
Property (read-only); returns the absolute path in slash syntax notation of the movie clip instance
on which
my_mc
slash (
). To compare the
/
function to convert the returned value from slash syntax to a dot syntax reference.
Note: You must perform this conversion if you are using ActionScript 2.0, which does not support
slash syntax.
Example
The following example evaluates the
and uses
eval()
is then compared to the reference to the
equivalent, the visibility of
instance is reset to its original position.
if (eval(garbage._droptarget) == _root.trash) {
garbage._visible = false;
} else {
garbage._x = x_pos;
garbage._y = y_pos;
}
The variables
x_pos
x_pos = garbage._x;
y_pos = garbage._y;
,
MovieClip.createEmptyMovieClip()
,
MovieClip.lineTo()
was dropped. The
_droptarget
_droptarget
_droptarget
to convert it from slash syntax to a dot syntax reference. The
is set to
garbage
and
are set on Frame 1 of the SWF file with the following script:
y_pos
,
MovieClip.moveTo()
property always returns a path that starts with a
property of an instance to a reference, use the
property of the
movie clip instance. If the two references are
trash
. If they are not equivalent, the
false
,
MovieClip.endFill()
eval()
movie clip instance
garbage
reference
garbage
garbage
MovieClip._droptarget
,
497
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers