PHP Code:
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class Main extends MovieClip {
private var _frame1:BitmapData;
private var _frame2:BitmapData;
private var _frameToggle:Number = 0;
public function Main () {
Go2Players ();
}
private function Go2Players () {
var video:Video = new Video (500, 500);
var cam:Camera = Camera.getCamera ();
cam.setMode (500, 500, 30);
video.attachCamera (cam);
addChild (video);
}
}
}
That is the entire code for my program and when it runs, nothing happens. I know the program has access to the laptop's webcam because it can trace the name and a similar program I wrote works with the same webcam. This program doesn't even ask for permission to access the webcam so I'm rather confused.