This code contains functions that will keep rotated rectangular content within a rectangular area the appropriate size.

As the internal content is rotated, it is resized so that it never exceeds the size of the surrounding rectangular area.

Author: Scott Williams (Grand Masta Flash)


Download source

This code implements a scroll page where the content is always centered -- even as you zoom in and out of the content. This sort of behavior is similar to how documents are centered within Acrobat Reader/Professional.

Author: Scott Williams (Grand Masta Flash)


Download source

This is sort of esoteric. But it is really cool. This demo shows a way to use Java Script much more efficiently than it is normally used.

Here is a sneak peak. This single line of code animates all squares on the screen by 10 pixels to the right. The English equivalent of this is "animate (tween) the 'x' position each square by 10 pixels":

foreachwhere (allitems, tweenincbyfn ( "_x", 10 ), testvalfn ( "shape", "square" ) );

Author: Scott Williams (Grand Masta Flash)


Download source

This code shows two techniques for drawing a circle at runtime using ActionScript. The first (simple) version uses 4 control points and yields a lumpy circle. The good circle (in the com.adobe.shapes.Circle class) uses more control points.

Author: Scott Williams (Grand Masta Flash)


Download source

A few very simple examples of how to use the "Tween" and "Transition" classes to animate content using ActionScript rather than with the Timeline.

Author: Scott Williams (Grand Masta Flash)


Download source

This is a widget that shows a list of text (or could be images). The longer you leave the mouse clicked on the "previous" or "next" arrow, the longer that arrow grows -- and the faster the list scrolls. Think of it like the accelerator pedal of your auto. The harder you press down, the faster you go.

Author: Scott Williams (Grand Masta Flash)


Download source

This code demonstrates how to create a vertical list of text (or images) where the content directly underneath the mouse is the most zoomed-in (largest) and the farther away from the mouse the smaller the other content.

Author: Scott Williams (Grand Masta Flash)


Download source

This is my first experience with the BitmapData object in Flash 8. This snippet shows how to create a very realistic lense effect by using the BitmapData object. Try it out. Click on the picture and then click/drag your mouse around. You'll see the lense effect. Although I use an embedded image in this example, you could also dynamically download any image at runtime and also use this lense effect on it.

Author: Scott Williams (Grand Masta Flash)


Download source