FORUMS: list search recent posts

AS3 - video,camera and BitmapData - shouldn't this work?

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Steve Bentley
AS3 - video,camera and BitmapData - shouldn't this work?
on Jan 24, 2010 at 2:49:24 am

I'm sure I've dented that brick wall by now. It's going to be something simple, but shouldn't the following work?
What have I missed?

import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.*;
import flash.media.Camera;
import flash.media.Video;
import flash.events.MouseEvent;

var video:Video;
var camera:Camera=Camera.getCamera("6");
video=new Video(320,240);
video.attachCamera(camera);

var bmpdSub1:BitmapData=new BitmapData(video.width,video.height,false,0xFF0000);
bmpdSub1.draw(video);
var bm:Bitmap=new Bitmap(bmpdSub1);
addChild(bm);
//addChild(video); - this works so I know it's not a video camera issue



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]