video on android samsung S2 is tinted PINK! No idea why.
Dear all,
can anyone advise what I am doing wrong with the below code? When ran in AIR on the Android, the video is tinted bright pink, whereas when run on the web, the video is the correct colour.
Thanks in advance for any advice.
import flash.display.Sprite;
import flash.media.Video;
import flash.media.Camera;
import flash.events.Event;
import flash.events.ActivityEvent;
import flash.text.TextField;
import flash.geom.*;
import flash.filters.*;
import flash.display.BitmapData;
import flash.filters.DisplacementMapFilter;
import flash.display.BitmapData;
import flash.geom.Point;
import flash.display.BitmapDataChannel;
import flash.display.GradientType;
import flash.display.Loader;
import flash.display.Shape;
import flash.events.MouseEvent;
import flash.filters.DisplacementMapFilterMode;
import flash.geom.Matrix;
import flash.events.MouseEvent;
import flash.desktop.NativeApplication;
import flash.display.StageDisplayState;
import flash.display.StageScaleMode;
stage.align=StageAlign.TOP_LEFT;
stage.scaleMode=StageScaleMode.NO_SCALE;
// Create the gradient circles that will together form the
// displacement map image
var boxHeight:uint=stage.stageHeight;
var boxWidth:uint=stage.stageWidth;
var cam:Camera = Camera.getCamera();
var vid:Video = new Video();
function CameraViewer() {
//cam.setMode(800,400,15,true);// setMode(videoWidth, videoHeight, video fps, favor area)
//cam.setMode( 800, 400, 15, true );
//cam.setMode(640, 480,20);
vid.attachCamera(cam);
addChildAt(vid,0);
}
CameraViewer();
