forked from: flash on 2009-2-21
// 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));
}
}
}
}