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.

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.