There is an option in Flash that allows users to capture the data coming from a web cam attached to the computer and broadcast it using Flash.

Share & Enjoy


Similar Articles

 

  1. Karl Soule (Reply) on Thursday April 30, 2009

    Is the Flash player smart enough to use 2 cameras at once? If I create 2 instances of a camera in the code (MyCam1 and MyCam2) could I then assign the Logitech cam to MyCam1 and the iSight to MyCam2?

  2. Jimmy (Reply) on Thursday April 30, 2009

    saaweeeeet.
    You have great tutorials. including the ones I’ve seen on Lynda.com
    Thanks

  3. [...] Tom Green – Using the Camera Object in Flash CS4 [...]

  4. Jimmy (Reply) on Thursday April 30, 2009

    I actually did just think of a question though. After you set this up so it’s a live feed.. how would you actually put this on a hosting site such as dreamhost or oneandone.com so people could go directly to a webpage?

  5. Brian (Reply) on Thursday April 30, 2009

    I don’t see where I can put in a video element. This is not something I can do with my CS3 at this time since I can not find the video element.

  6. john (Reply) on Thursday April 30, 2009

    TypeError: Error #1006: attachCamera is not a function!

  7. john (Reply) on Thursday April 30, 2009

    ok, another flash version. alright :)

  8. Steve (Reply) on Thursday April 30, 2009

    Hello,

    This is an excellent post. But I have a query, instead of using the webcam, is there any way to capture the screen of the swf file and allow the user to save it as an image.

  9. Alex (Reply) on Thursday April 30, 2009

    This is a great bit of information. Love your vids but my question is one of real world application. Can it be used to stream video from say a home computer to others on the web. How would one add audio to this feed so that your mic is streamed as well. I have an old basic cam that doesn’t have a built in mic.

  10. Eloston (Reply) on Thursday April 30, 2009

    “So I’m going to show the code. Really complicated stuff, so sit back and pay close attention”
    :O
    “There you go, there’s the code. Two lines”
    LOL

  11. Magnus (Reply) on Thursday April 30, 2009

    I just need help !

  12. Magnus (Reply) on Thursday April 30, 2009

    How do I get the Camera Object ?

  13. Kev Man (Reply) on Thursday April 30, 2009

    Notice how he put the video object (right mouse click the library and new video-action script controlled) inside the movie clip and added the code inside the movie clip. The video object inside the movie clip had the instance name of myVid. That made it work.

    I also get the error in the output box. When i grow beyond beginner, i should be able to figure out why its happening and how to fix it. As well as being able to broadcast it on a web page so everyone can see eachother.

  14. Magnus (Reply) on Thursday April 30, 2009

    Thank a lot “Kev Man” but I stil wonder How do he get the Camera Object in his library ?

  15. Dan (Reply) on Thursday April 30, 2009

    I love this magazinee!!!!!!!!!!!!!

  16. imran (Reply) on Thursday April 30, 2009

    Here is the complete solution. May be helpful for beginners.i used the instance names from the tutorial to make it relevant.

    1) Create an movie clip with name video.
    2) Go to library you will see the movie clip there. just double click on movie clip(video) and get inside the movie clip
    3) Add a video object here and name it video 1
    4) drag the video 1 to the (you are still in side movie clip)
    5) add a new layer and put the following code into new layer

    import flash.media.Camera;
    import flash.media.Video;

    var myVid:Video = new Video();
    var myCam:Camera = Camera.getCamera();
    myVid.attachCamera(myCam);
    addChild(myVid);

    Thats it.



Planet Photoshop Photoshop World Kelby Training Lightroom Killer Tips NAPP Scott Kelby