A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Duplicate Movie Clip Randomly

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    4

    Duplicate Movie Clip Randomly

    Hello flash people:

    I need some help, How do i duplicate a movie clip randomly posisiton, alpha and scale?

    And how do i do that in a ranged space in the scene?

  2. #2
    Junior Member
    Join Date
    Dec 2001
    Posts
    21
    In the actions of the movieClip you are duplicating, put:

    onClipEvent (load) {
    //the max distance along the _x where you want it to be placed
    _x = random(550);
    //the mad distance along the _y where you want it to be placed
    _y = random(400);
    _alpha = random(100);
    _xscale = random(100);
    _yscale = random(100);
    }

    550 and 400 are the default width and height values, so if you want it to appear within a smaller section, you'll have to do some editing (I'm not exactly sure at this moment, but if I think of it I will post again).

  3. #3
    Junior Member
    Join Date
    Jan 2004
    Posts
    4

    thanks

    Thanks you for your fast answering...

  4. #4
    Junior Member
    Join Date
    Jan 2004
    Posts
    4

    Now the speed

    How do i control the speed for everyone of the MC now?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center