i gotta get digivideowebificated!
November 30, 2007 8:39 PM
Subscribe
I'm trying to get the local webcam to stream to the stage on Flash CS3 actionscript3. When I run it, I get a blank screen and no errors. Any help at all would be appreciated.
Here is my code so far:
import flash.system.SecurityPanel;
Security.showSettings(SecurityPanel.CAMERA);
var cam:Camera = Camera.getCamera(name);
var vid:Video = new Video();
vid.attachCamera(cam);
stage.addChild(vid);
Thanks!
Posted for a friend. I don't really know what any of this means.
posted by univac to computers & internet (3 comments total)
import flash.system.SecurityPanel;
Security.showSettings(SecurityPanel.CAMERA);
var cam:Camera = Camera.getCamera();
var vid:Video = new Video();
vid.attachCamera(cam);
addChild(vid);
My only change was to remove name from the third line. I'm not sure what "name" was doing there in your code.
posted by grumblebee at 9:17 PM on November 30, 2007