Line 10: A createBubble function is created.
Line 11: since we created 3 paths a random variable (0-2) is created, so one of the paths is randomly selcted.
Line 12: the random path is then attached to the stage, and then assigned to the random variable "float"
Line 13: a buble is then attached to the emptyClip MC in the path mc.
Line 14: The float is positioned randomly on the X axis
Line 15: And outside the visible area on the Y axis
Line 16 - 17: The width, height and opacity are set randomly
Line 18: The level variable is increased by 1. |