![]() function distanceBetweenPoints(p1:Point, p2:Point):Number Keep these at the bottom for better readability later on. ![]() ![]() Then we will include some math functions. Keep these at the top for better readability later on. We are going to start by importing some classes we will need. In your timeline, right click on the first frame on your Actions layer and go to Actions. This will automatically generate a class with that name for it. In the Library, double click on its AS Linkage section and write in Circle. Convert it to a symbol of type MovieClip and set the origin point at its center. Draw a circle on the stage with equal width and height of 16 pixels. ![]()
0 Comments
Leave a Reply. |