This pattern to AS

Hello,

http://theremedy.be/scrap/starsAs.gif

I’m looking for some clues here to generate this kind of pattern using Actionscript.
Probably it’s gotta be a “star” attached from the library then generated on stage randomly with colordifference, scaling and skewing.

*Note how the pattern should follow the specified path.

Is it possible? Is it hard to do?

Appreciate any help.

Well one interesting idea could be a sine wave- you would attach them so the followed the wave, but then randomize it so they are a bit off of it. You could probably do it with any mathematical function that produces a curve.

The colors are a bit off, but it does more or less what you want:

for (var i=0; i<100; i++) {
	var cl = this.attachMovie ("clip", "c" + i, i) ;
	var ang = Math.PI/2*Math.random () ;
	cl._x = 200 * Math.cos (ang) + 50 * (Math.random()-.5) ;
	cl._y = 200 * Math.sin (ang) + 50 * (Math.random()-.5) ;
	cl._xscale = cl._yscale = 100 + random (100) ;
	new Color(cl).setRGB ( random (0xFF) << 16 | 0xaa << 8 | 0xbb) ;
} ;

I put the clip (linkage name “clip”) on a circle (radius 200), and then a bit off.

Thanks alot Ilyas.