1 |
What is webcamxtra?
A free xtra for Director to access a webcam image with simple motion tracking capability.
|
2 |
We are going to use the old version 1.2 for its performance and stability.
|
| 3 |
Install the xtra in the Configuration and Xtras folder in Director MX 2004.
|
| 4 |
From an empty Director movie, choose Insert -> Nimoy Xtras -> WebCamXtra. A new cast will be created in the cast window. Give a name to this cast member, say "webcam".
|
| 5 |
Simply drag the cast into the stage can create a movie with live feed webcam image.
|
| 6 |
Without dragging the cast into the stage, we can still access the webcam image from the cast member using imaging commands.
|
| 7 |
The webcam image can be accessed by,
- member("webcam").cameraImage or
- member("webcam").image
|
| 8 |
Try to display the webcam image onto the stage using the copyPixels command.
|
| 9 |
Create an image object to house the stage image in the startMovie function.
_global.display = _movie.stage.image;
|
| 10 |
In an exitFrame function, copy the image from the webcam member to the stage image using the copyPixels. Note the default video size is 160 x 120.
|