package
{
	import flash.display.*;
	import flash.events.*;
	import flash.filters.*;
	import flash.net.*;
	import flash.utils.ByteArray;

	public class EmbedFilter extends Sprite
	{
		//the file that contains the binary bytes of the PixelBender filter
		[Embed("spherize.pbj", mimeType="application/octet-stream")]
		private var myFilter:Class;		
		private var shader:Shader;
		public function EmbedFilter():void
		{
			//Pass the loaded filter to the Shader as a ByteArray
			shader = new Shader(new myFilter() as ByteArray);
		}
	
		public function getShader():Shader
		{
			return shader;
		}
	}
}