  | |  | connect-the-dot MC | connect-the-dot MC
2004-02-17 - By Warren, Ashley
Back If you wanted them to animate while the movieclips are moving around on the stage you can do something like this:
this.onEnterFrame = function ()
{
// draw lines
this.clear ();
this.lineStyle (0, 0xffffff, 100);
//
for (var i = 0; i < myNumClips; i++)
{
var t:String = "clipNum_ " + (i + 1);
//
if (i == 0)
{
this.moveTo (this[t]._x, this[t]._y);
}
else
{
this.lineTo (this[t]._x, this[t]._y);
}
}
};
-- --Original Message-- --
From: dsharpe@(protected) [mailto:dsharpe@(protected)]
Sent: Monday, February 16, 2004 9:01 PM
To: flashcoders@(protected)
Subject: [Flashcoders] connect-the-dot MC
Does anyone know of an example of a movieClip when placed in series on the
stage they connect each other in sequence. Basicaly, need to pit a series
of dots on the stage and want them to ftaw a line from one to the other.
Dave
dsharpe@(protected)
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104396
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104479
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |