A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: ALL IN ONE

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Posts
    240
    How do I make a movie clip duplicate 50 times on a stage of 800x600 and animate each randomly on the stage, each starting from on point and all spreading randomly across the stage togather.. Also each movie clip should scale to 1% and the alpha sholud fade out to 0%....phew...

    and can anyone give me the script for this in Flash 4.0


    very very urgent...

    Thanks in advance

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Location
    Sint Maarten, dutch west indies
    Posts
    118
    Originally posted by pranster
    How do I make a movie clip duplicate 50 times on a stage of 800x600 and animate each randomly on the stage, each starting from on point and all spreading randomly across the stage togather.. Also each movie clip should scale to 1% and the alpha sholud fade out to 0%....phew...

    and can anyone give me the script for this in Flash 4.0


    very very urgent...

    Thanks in advance
    Did you try to simly copy it and paste it in 50 different frames?
    After that in each frame I would create a motion tween
    where the end of the motion will be 1% in size and 0 in Alpha
    hope it helps

  3. #3
    Member
    Join Date
    Oct 2001
    Posts
    68
    Alternatively, use a simple loop (code done in Flash 5 because I don't have 4, but same principle):

    1. Create an MC and use it with an instance name "mc0".
    2. Edit the code below to give you the kind of display you want.

    // Set this to change the number of movies
    numberofmovies = "50";
    // Set up the loop
    movieindex = 0;
    while (movieindex < numberofmovies) {
    // Duplicate the movieclip "mc0" using a generated name
    duplicateMovieClip ("mc0", "mc" add movieindex, movieindex);
    //
    //
    // Change whatever properties you want here
    // for the newly duplicated movie
    setProperty ("mc" add movieindex, _x, random( 550 ));
    setProperty ("mc" add movieindex, _y, random( 400 ));
    //
    //
    // VERY IMPORTANT!
    // Don't forget to increment the counter
    // or you get an endless loop = MESSY!
    movieindex = movieindex + 1;
    }

    3. You can either use code to move the duplicated MCs or build an animation.

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