package
{
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.BitmapFilterQuality;
import flash.filters.BlurFilter;
import flash.geom.Point;
[SWF(width="1024", height="768", frameRate="30", backgroundColor="#000000", pageTitle="粒子測試")]
public class particale extends Sprite
{
private var _bitmapData:BitmapData;
private var _photosphereMap:Bitmap;
private var _sprite:Sprite = new Sprite();
//活動場景大小
private var _mapWidth:Number = 400;
private var _mapHeight:Number = 400;
//顆粒大小
private var _particaleSize:Number = 10;
//位置與量
private var _position:Point;
private var _vector:Point;
//濾鏡強度
private var blurX:Number = 1.5;
private var blurY:Number = 1.5;
public function particale()
{
super();
init();
}
private function init():void
{
initPhotosphereMap();
deployPhotosphere();
initPostiton();
initVector();
onStart();
}