The SelectedPage class displays a series of jpeg’s and/or swf’s one at a time. A series of buttons – one for each page – control the tweened transistion from one page to the next.
Drawing lines of alternating dots and dashes: the DashDotLine class
May 27th, 2010 · AS3 Custom Classes
A visitor asked whether the DashedLine class could be modified to create lines composed of alternating dots and dashes; so I went ahead and modified the class. The new DashDotLine class constructor includes parameters for total length of the line, dash and dot widths, spacing between the dashes and dots and line weight and color.
→ No CommentsTags:
Removing class instances
May 20th, 2010 · Tutorials
A reader recently inquired if it was necessary to remove previously created class instances which were no longer being used. The simple answer is yes because it frees up memory – but there may be other reasons as well.
Using patterned backgrounds and masks: the Perf class
May 4th, 2010 · AS3 Custom Classes
The Perf class draws a regular grid of either squares or circles that can then be applied as either a background or as a mask. The parameters of the class constructor determine whether the pattern is composed of squares or circles, the spacing and size of the pattern and its color and transparency.
Drawing a checkerboard background: the Checkerboard class
April 27th, 2010 · AS3 Custom Classes
This post introduces the Checkerboard drawing class. It is a simple and easy to use class that relies on Flash’s BitmapData class to draw the patterns.
Submit your site
April 20th, 2010 · AS3 Custom Classes
Since the Actionscript 3 Designer Toolkit came online – over eight months ago – visitors to this website have downloaded the posted code snippets and custom classes several thousand times.
If you are a designer/developer who has used one or more of the AS3DTK custom classes in a website you built, please let us know. Send the url of the site and perhaps a short description of how you applied the class(es) on the site. Submitted urls will then be listed on a special page with your name and email (optional).
Also, if you have any ideas or suggestions for future posts let us know.
To respond, you may add a comment or email me csdavis@sent.com.
Sorting and combining arrays: sortOn( ) and concat( )
April 6th, 2010 · Tutorials
In this post, the sorting of indexed arrays using the sortOn method is discussed. Sorting options Array.CASEINSENSITIVE, DESCENDING and NUMERIC, are also defined. Finally, we’ll use concat to combine two arrays into a new array.
→ No CommentsTags:arrays·caseinsensitive·concat·descending·numeric·sort·sorton