It seems that I am having a big problem with shaders in AIR, when I try to instance,
Here is my code:
public var MyShaderClass:Class;
//this works on flex/flash but not in AIR run time...
private function onClick() : void
var shader:Shader = new Shader();
shader.byteCode = new MyShaderClass();
// Configure desired input parameters of shader.
shader.data.size = ;
myImg.filters = [new ShaderFilter(shader)];
When running this code in Flex it works great!!
When I try to use this code under AIR I get:
ReferenceError: Error #1065: Variable Shader is not defined.
Ion both Flex and AIR projects I use the same Flex SDK (3.4.1) ( I have tried 3.4, 3.5 and more) but
Changing the SDK still didn’t worked, I have started to think maybe it’s related to this that in Flex project
There is the playerglobal.swc and in AIR there is the airglobal.swc but why shouldn’t this airglobal.swb support in Shader?
I have Adobe AIR 1.5.3 and I have tested that my app.xml has
I have zipped a small demo and sent it to my friend and he told me that it’s work for him
In AIR app… (attached...)
Guys I have spent all day figuring what is wrong but nothing!!…can someone shade some light here?