SKITSANOS FOR RIA

Skitsanos

Saturday, November 28, 2009

Drawing a diagonal line-filled rectangle with ActionScript

Source: The Designer Toolkit blog

The Diagonals Class is a simple drawing class for constructing a rectangle filled with parallel diagonal lines. The class can serve as a border or as a textured background.

id="fm_diagonals_2049431122"
align="left"
class="flashmovie"
width="490"
height="80">

In addition to specifying the dimensions of the filled rectangle, additional parameters include line weight, color and transparency, line angle and spacing.  Finally, a line of code – currently commented out – causes the alpha of each diagonal to vary randomly when uncommented.

Download files: Diagonals.zip (9)

0 comments:

Webware development dedicated blog by Skitsanos R&D Labs. ASP.NET, XML, RIA, Adobe Flex, ActionScript 3, AIR, AJAX, Web 2.0, Backbase, CGI development with RealBasic and other web development issues.
News
Downloads