Mengakses webcam via flash - Java - Publisher - Royz Rambo
Ilham Penta
Site menu
Section categories
My articles [6]
Java [14]
Java Programming
Flash [6]
Flash
URL web dan Tutorial [29]
Petualangan [1]
Our poll
Rate my site
Total of answers: 19
Statistics

Total online: 2
Guests: 2
Users: 0
Login form
Main » Articles » Java

Mengakses webcam via flash
import flash.media.Camera;
import flash.media.Video;

var bandwidth:int = 0; 
var quality:int = 100; 
var camera:Camera = Camera.getCamera();
camera.setQuality(bandwidth,  quality);
camera.setMode(320,240,30,false);
var video:Video = new Video();
video.attachCamera(camera);
addChild(video);

if (camera !=null) {
video.attachCamera(camera);
//videoTwo.attachCamera(camera);
//videoThree.attachCamera(camera);
} else {
trace("you need a camera");

}


stop();


Source: http://www.babaflash.com/forum/showthread.php?t=4736&highlight=webcam
Category: Java | Added by: penta (2010-11-19)
Views: 504 | Tags: kamera, webcam | Rating: 0.0/0
Total comments: 0
Name *:
Email *:
Code *:
Search
Site friends
  • Create a free website
  • Copyright Penta.Inc © Powered By: Senjapala