hi

I'm making a piece where i have a character moving and i want it to leave a trail of dots to show where it has been.

I created a movie clip with the dot in it, and i have been trying to use the 'attachMovie' command, so that the position of the dot matches that of the characters x and y movement.

i have the code to move the character on the character movie clip (instance name = char)

then i have this code on the first frame of the timeline:

for(var i:Number = 0; i < 100; i++)
var crumb:MovieClip = attachMovie("crumb", "crumb" + i, i);
crumb._x = char._x;
crumb._y = char._y;

where crumb is the movieclip i want to attach.

All that happens is that flash creates on dot (crumb) in the same position each time, not determined by the character position.

Any help much appreciated. I realise I am missing out steps but i'm not sure where to go from here! thanks!