That would be fantastic. I'll take it on or off list.

Thanks!
Seth


On Mar 26, 2005, at 10:25 PM, Thijs Triemstra|Collab wrote:

Hi Seth,

I created a simple swf with the Video object in Flash and load this into Flex. Flex makes the connection with FlashCom and controls a few functions in the swf, like the connection with Camera() Let me know if you need the source and I'll sent it over.

http://www.collab.nl/flex/videomixer.mxml

Thijs


Op 27-mrt-05 om 4:55 heeft Seth Voltz het volgende geschreven:

Greetings,

So I have been trolling the web, searching newsgroups, mail archives, forums, etc... I can't find a way to embed the Flash video object in my flex project for streaming video via FCS and capturing my webcam. I have tried the following code as a last ditch effort and it also fails (well, it compiles and loads, no errors... but it doesn't do anything)

// Layout Section of index.mxml
<mx:Box id="video_box" width="160" height="120" initialize="videoInit()" borderStyle="solid" />
<mx:Button label="Attach Webcam" id="cam_btn" click="controlCam()" />

// Script section of index.mxml
function videoInit ( ) {
camera_vid = Video ( video_box.createChild ( Video, "camera_vid", { _x: 0, _y: 0, _width: 160, _height: 120 } ));
camera_vid.width = video_box.width;
}

function controlCam ( ) {
if ( cam_btn.label == "Attach Webcam" ) {
camera_vid.attachVideo ( Camera.get ( ));
cam_btn.label = "Detach Webcam";
} else {
camera_vid.attachVideo ( null );
cam_btn.label = "Attach Webcam";
}
}

So my question is: How do I embed a webcam image, and then by extension link another similar video object to an FCS stream?

Thanks,
Seth

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to