Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 12. Delving Deeper into Graphics... > Accessing the user’s webcam or video...

Accessing the user’s webcam or video camera using ActionScript

If your users have webcams or external video cameras connected to their computers, Flash Player will recognize them, and you can use ActionScript to access a live feed from those cameras to work in Flash. You accomplish this using the Camera class in ActionScript. To test the code you are about to add, you (and your users) must have a video camera connected to your computer. Assuming that a camera is available, the code you will now write will take the feed from the camera and display it within the interface of this project. Later in the lesson, you will write code that can take snapshots from this camera feed.

Note

Even though ActionScript will let you or your user choose among multiple cameras if more than one video source is connected, Flash can display the feed from only one camera at a time.



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial