In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Sample1

Get Adobe Flash player
by nutsu 26 Oct 2009
/**
 * Copyright nutsu ( http://wonderfl.net/user/nutsu )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/8eSq
 */

package {
    
    import flash.display.Sprite;
    
    [SWF(width=465,height=465,backgroundColor=0)]
    public class Sample1 extends Sprite {
        
        public function Sample1() {
            graphics.lineStyle( 0, 0xffffff, 0.1 );
            for ( var i:int = 0; i < 48; i++ ) {
                var c:Number = Math.cos( i * Math.PI / 24 );
                var s:Number = Math.sin( i * Math.PI / 24 );
                graphics.beginFill( 0xff2020, 0.1 );
                graphics.moveTo( 232 + 200*c - 13*s, 232 + 200*s + 13*c );
                graphics.lineTo( 232 + 200*c + 13*s, 232 + 200*s - 13*c );
                graphics.lineTo( 232 - 200*c + 13*s, 232 - 200*s - 13*c );
                graphics.lineTo( 232 - 200*c - 13*s, 232 - 200*s + 13*c );
                graphics.endFill();
            }
        }
    }
}