This effect is made of ONE simple short function. The code is well commented, you will se the instructions inside. You have a function and you can assign different values when you call it (amount of dots, frequency of appearance, distance, size) . can be used in buttons when user clicks, or called from onEnterFrame to create a background.