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

forked from: flash on 2009-2-21

Get Adobe Flash player
by sinketu 21 Feb 2009
    Embed
// forked from sinketu's flash on 2009-2-21
package {
    import flash.display.*;
    import flash.events.Event;
    public class FlashTest extends Sprite {
        private var hakei_area:Shape
        public function FlashTest() {
           hakei_area= new Shape();    
            this.addChild(hakei_area);
            this.addEventListener(Event.ENTER_FRAME,onEnter);
        }
        public function onEnter(evt:Event):void{
            hakei_area.graphics.clear();
            hakei_area.graphics.lineStyle(10, 0xFFD700, 1, 
            false, LineScaleMode.VERTICAL,
            CapsStyle.NONE, JointStyle.MITER, 10);

            hakei_area.graphics.moveTo(0,Math.floor(Math.random()*300+50));
            for(var i:Number=1;i<25;i++){
                hakei_area.graphics.lineTo(i*20, Math.floor(Math.random()*300+50));
            }
        }
    }
}