Forgot Password / Register
Site Statistics
Total Members: 510
Total Tutorials: 242
Newsest User: Hp
Todays Unique Hits: 71
0 Users 3 Guests Online

Webcam in Flash

Today, we will be doing a basic webcam tutorial.
First, open Flash 8. Do any background you like, I did a black to white linear gradient. First, we enter this code:
Flash ActionScript Copy to clipboard
1
2
c = Camera.get();
webCam.attachVideo(c)

Seems pretty simple, doesn't it? What it means is, the first image gets and defines the camera as c.
Now, open the library. You should see a button in the top right hand corner. Click on it, and go to New Video. Drag this video on to the screen, make it the size you want, then name the instance webCam.

Now, test it. You should see yourself (if you have a webcam)
SeanTrek
Author:
Views:
2109
Rating:
There are currently no comments for this tutorial.