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

flash on 2009-2-5

Get Adobe Flash player
by pasodania 05 Feb 2009
package {
    import flash.display.Sprite;
    [SWF(backgroundColor="0xCC9900")]
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var page:Page = new Page();
            addChild(page);
            page.x = 220;
            page.y = 50;

            var page2:Page = new Page();
            addChild(page2);
            page2.x = 220;
            page2.y = 50;
            page2.scaleX = -1;
        }
    }
}

import flash.display.Sprite;
import flash.geom.Matrix;
import flash.filters.DropShadowFilter;    
class Page extends Sprite{
    public function Page(){
        var mat:Matrix = new Matrix();
        var shadow:DropShadowFilter = new DropShadowFilter(3,90,0,0.3,5,5); 
        mat.createGradientBox(250, 400, 0, 0, 0);
        graphics.beginGradientFill( "linear",
                                    [0xBBBBBB, 0xFFFFFF, 0xDDDDDD],
                                    [1, 1, 1],
                                    [0, 50, 255],
                                    mat
        );
        graphics.drawRect(0, 0, 200, 300);
        graphics.endFill();
        filters = [shadow];
    }
}