Webcam Photobooth With Graphics?
I'm making a photobooth that would have graphics (like moustaches, etc) shown when they click "Capture".
When I tested it, I can see the graphics on my face through the webcam, but not when I've captured the image.
I'm guessing I have to "printscreen" the image and not "capture" it, because the results only shows the photo from the webcam without the graphics.
Any suggestions what I can do?
By the way, this is not my script, I found it on this forum as well.
// Import the BitmapData class
import flash.display.BitmapData;
// Create a new Video Object
// Library Menu, New Video, video (Actionscript-controlled)
// Drag video symbol to stage and give it an instance name of 'video_obj'
var video_obj:Video;
// Reference the camera object and attach it to the video object
var cam:Camera = Camera.get();
video_obj.attachVideo(cam);
// Create a BitmapData Object
var camera_bmp = new BitmapData(cam.width, cam.height);
// Add a movieclip to the stage with the instance name 'capture_btn'
// and add a button event handler
capture_btn.onPress = function() {
// Draw the Video Object image onto the BitmapData Object
camera_bmp.draw(video_obj);
// Create a container movieclip
var container:MovieClip = _root.createEmptyMovieClip("container", this.getNextHighestDepth());
// Attach the BitmapData Object to the container movieclip
container.attachBitmap(camera_bmp, this.getNextHighestDepth());
};
After the user has taken a photo with the graphics on it, I'd like the option of sending the photo, and an added message, to myself.
Any ideas how I can do this?
Thanks so much!
