Duplicate and Randomly Distribute Clip


Clip | Source

Some help from Macromedia.

How to Use the Clip?

  1. Create an empty movie clip: Insert > New Symbol > MovieClip
  2. Name it clipRandom.
  3. Place it on the layer you want it (e.g. at the bottom).
  4. Add the ActionScript in the first frame of the main timeline:
    clipRandom.loadMovie("duplicate-and-randomly-distribute-clip.swf");
  5. This is all – you are set and ready to run the clip!

Original Question

I’ve filled the screen with multiple instances of a MC to serve as a built up background but it’s pretty processor intensive. Am wondering if there is a little snippet of code that will place a small MC into random (or at least somewhat evenly spaced out) positions all over the stage area, It should happen over a set amount of time like 20 seconds or so. Needless to say my action scripting leaves much to be desired. Any help would be greatly appreciated.


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.