Random illustrations FLASH
- Started
- Last post
- 4 Responses
- thejudders
Can anyone help me find the code or tutorial to help me produce a flash piece similar to this idea...
http://www.taktak.net/www/?projeā¦
every time you click refresh it randomises the graphics and layout.
Thanks in advance...
- thejudders0
bump,
Ive done a lot of searching online and I cant find what I'm looking for regards to randomising illustrations from the library like the previous example...
can anyone help me ?
- 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();
- Neuarmy0
There's definitely something out there... "random generator" or something.. maybe email josh@praystation
sorry for such little help :/
- thejudders0
Thanks, I managed to get looking at the source for that file I linked to.. that should be enough for me to construct myown.. its for my own personal use so that should be ok.
thanks