I need assistance with this, since I can't find it in the forums. I want to have at most 10 circular-objects moving randomly around the page. Also if it's possible to have some of them appear and disappear after time. Can this be done?
One of the problems with your question is that 'random motion' can mean almost anything. I've answered a few similar queries in the past with a script like the following, and almost always, I get back a reply saying 'that's great, but can you make it move *this* way?'
So you need to find the words to more accurately describe the kind of motion you want.
In the following example, I'm moving the circles in smooth arcs. The motion paths are similar to spyrographs, and are computed using two sin/cos waves.
I created a new movie. I drew a circle, and converted it to a movieclip symbol. I named the instance of the symbol circ0.
Then I wrote the following script to multiply circ0 to 10 duplicate movies, and setup the movement and fading.
code:
CX = Stage.width/2;
CY = Stage.height/2;
for (var i = 1; i < 10; ++i)
{
circ0.duplicateMovieClip("circ"+i,i);
}
Thanks, that should give me a good start. What I meant by moving randomnly, each object's path id different causing it to look like they are wandering around the screen from different start and ending points. Has this been done?