Camera Stream in Flash Problem

Please help me fill the question marks. I want to get a feed from my camera and to pass it to the receive function. Also in flash builder(in design mode) how do I put elements so they can play a camera feed?? Because as it seems VideoDisplay just doesn't work

public function receive(???:???):void{
//othercam is a graphic element(VideoDisplay)   
othercam.??? = ????;

}

private function send():void{

var mycam:Camera = Camera.getCamera();
//mycam2.attachCamera(mycam);
//sendstr is a stream we send           
sendstr.attachCamera(mycam);
//we pass mycam into receive
sendstr.send("receive",mycam);
}

Answers


    public function receive():void
   {
    video = new Video(put-width-here, put-height-here);
    video.attachCamera(mycam); // mycam needs to be a class variable, not local to "send()";

    mybitmap = new BitmapData(fill parameters here);
    update();

    }

    public function update() {
    mybitmap.draw(video);
    // do stuff to your bitmap here...
    }

Need Your Help

Progress bar for time consuming tasks (or queries)

jquery asp.net-mvc-4 signalr

I'm working on MVC4 web application. This application allow users to interact with AD. The users can reset their passwords using same. However this whole task consume lot of time.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.