Last week I was working on a project that relied on generating random numbers. I went online to research the Math.random() function but could not find a single, definitive site explaining the many variations of the random function. I thought it might be of some value to consolidate the variety of forms I found.
Entries from January 19th, 2010
Drawing regular polygons: the Polygon Class
January 18th, 2010 · No Comments · AS3 Custom Classes
The Polygon class is a tool for drawing regular polygons with three or more sides. Parameters include the radius ( distance from the center of the polygon to any vertex), the number of sides, line weight and color and fill color.
Drawings grids: the Grid Class
January 6th, 2010 · 2 Comments · AS3 Custom Classes
This post describes the Grid class which draws – surprisingly – grids. Parameters passed to the class include the wifth and height of the grid, spacing between grid lines, line weight and line color. In addition to the required parameters, an optional parameter specifying a background color is available. If no backgound color is specified, the [...]
Using Actionscript 3 …(rest) to pass optional parameters
January 5th, 2010 · 2 Comments · Tutorials
This post examines several methods for passing optional parameters to functions and class constructors. Using …rest allows an arbitrary number of parameters to be passed to the function. The list of comma delimited arguments (often called the rest parameter) is treated as an array by the function.
Setting Color Profiles in Flash Player 10
January 4th, 2010 · No Comments · Tutorials
Most browsers, today, rely on the host device to determine how colors are rendered. The result is that photographs processed with great care in Photoshop will appear different from one display to another. This problem is further compounded by the newest, high-end, wider gamut displays which further exaggerate the appearance of images displayed on them. [...]