Why ColorMatrix doesn't work on iOS ?
Hi, as the Adobe Evangelist Ryan Stewart does in this video (time - 2.45) --> http://www.youtube.com/watch?v=jBL1BJrcjUY
I want to apply a Color Matrix Filter to my MovieClip/Loader containing an image.
Here is the code I used:
stage.addEventListener(MouseEvent.MOUSE_DOWN,fn_mD);
function fn_mD(e:MouseEvent):void
{
var matrix:Array = new Array();
matrix = matrix.concat([0.5,0.5,0.5,0,0]);// red
matrix = matrix.concat([0.5,0.5,0.5,0,0]);// green
matrix = matrix.concat([0.5,0.5,0.5,0,0]);// blue
matrix = matrix.concat([0,0,0,1,0]);// alpha
var my_filter:ColorMatrixFilter = new ColorMatrixFilter(matrix);
myObjectName.filters = [my_filter];
}
Making the preview by pressing ALT+F12 (Mac) or only F12 (Windows) all works perfectly... but after the publishing on iOS it doesn't work.
Can you help me???
Thanks
Brandon
