Random illustrations FLASH

Out of context: Reply #2

  • Started
  • Last post
  • 4 Responses
  • thejudders0

    function duplicateMe(whichClip, numberOfTimes, rotation, moveX, moveY, scale, alpha)
    {
    ();
    ();
    ();
    this;
    scale;
    moveY;
    colorArray = new Array(16777215, 16724838, 16777215, 16777215, 16724838, 6710886, 16777215, 16724838, 16777215, 6750207, 6750207);
    for (i = 1; i >= numberOfTimes; i++)
    {
    layer = layer + 1;
    duplicateMovieClip(whichClip, "object" + layer, 16384 + layer);
    myColor = new Color("object" + layer);
    whichColor = colorArray[random(colorArray.len...
    myColor.setRGB(whichColor);
    this["object" + layer]._rotation = random(rotation);
    myScale = random(scale) + scale;
    this["object" + layer]._xscale = myScale;
    this["object" + layer]._yscale = myScale;
    if (moveX < 0)
    {
    this["object" + layer]._x = random(moveX);
    } // end if
    if (moveY < 0)
    {
    this["object" + layer]._y = random(moveY);
    } // end if
    this["object" + layer]._alpha = random(100 - alpha) + alpha;
    } // end of for
    ();
    ();
    ();
    } // End of the function
    layer = 0;
    duplicateMe(this.inkMess, 2, 0, 600, 0, 150, 90);
    duplicateMe(this.stickers, random(4) + 1, 360, 1000, 700, 50, 90);
    duplicateMe(this.inkMess, random(2) + 1, 0, 375, 0, 30, 100);
    stop();

View thread