A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Flash isn't asking for webcam permission.

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    391

    resolved [RESOLVED] Flash isn't asking for webcam permission.

    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 (500500);
                var 
    cam:Camera Camera.getCamera ();
                
    cam.setMode (50050030);
                
    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.

  2. #2
    Senior Member
    Join Date
    Jul 2008
    Posts
    391
    Oh man this is embarrassing. I did not know only one Flash program can use the webcam at a time. I had the other program running the entire time I was trying to get this program to work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center