I'm hopeing someone can point me in the right direction.
I am trying to re-create a demo by Lee Brimlow which he has on http://www.gotoandlearn.com/
called 'Introduction to Pixel Bender 2'
I have managed to create a basic PixelBender filter - all good so far.
The problem is this:
I can't get his simple ActionScript file to work. In his demo everything works smoothly, however when I run mine the screen is blank - doh!
The Pixel.as file I have has the following code:
[SWF(width="600", height="400", backgroundColor="#aa0000",
public class Pixel extends Sprite
private var loader:URLLoader;
private var shader:Shader;
private var filter:ShaderFilter;
private var im:Bitmap;
// Public Properties:
// Private Properties:
public function Pixel():void
im = new image() as Bitmap;
// Public Methods:
// Protected Methods:
This prog should display the file 'image.jpg on' the screen but instead the screen is blank.
'image.jpg' is in the same directory as the .as file without a doubt.
I'm compiling the above with Flash CS4
Does anyone know why this doesn't work?
Any help really appreciated.