media @ VU
flex-camera-ax.ax
flex-camera-ax.ax
(swf
)
[ flash
]
package
{
import mx.containers.Panel;
import flash.media.Camera;
import flash.media.Video;
import mx.core.UIComponent;
public class flex-camera-ax extends Panel
{
public var video:Video
public function flex-camera-ax(){
super();
insertWebcamVideo();
}
public function insertWebcamVideo():void{
var videoHolder:UIComponent = new UIComponent();
var camera:Camera = Camera.getCamera();
video = new Video(camera.width*2, camera.height*2);
video.attachCamera(camera);
videoHolder.addChild(video);
addChild(videoHolder);
videoHolder.y =10;
}
}
}
(C) A. Eliëns
21/5/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.