3 Replies Latest reply on Jul 15, 2008 10:15 AM by boulder_lingie

    How to specify the position of the flash player settings window

    ArmenGeo
      Hi, I have a flex app which turns on a web camera and shows the video from the camera. When the page first loads the Adobe flash player settings window displays which you are required to click on allow or deny.

      My question is, is there a way to specify where this settings window should be positioned on the screen?

      You can use this flex test app to see the settings window.



      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" creationComplete="initApplication()" fontFamily="Arial" width="925" height="1100" layout="horizontal"
      verticalAlign="middle">
      <mx:Canvas id="videoContainer" width="330" height="250" borderStyle="solid" borderColor="#000000" cornerRadius="10" borderThickness="5" x="-167" y="42">
      </mx:Canvas>
      <mx:Script>
      <![CDATA[
      import mx.core.UIComponent;
      public var camera : Camera ;
      public var video : Video;
      public var currentShot : BitmapData = new BitmapData(320,240); // video.width,video.height);
      public var matrix : Matrix = new Matrix();
      public var mybitmapdata : BitmapData = new BitmapData(320,240); // (video.width,video.height);
      public var mybitmap : Bitmap ;
      public var uploadbmd:BitmapData ;
      public var flag:Boolean = true;
      public var loader: URLLoader = new URLLoader();

      public function initApplication()
      {
      camera = Camera.getCamera();
      video = new Video(camera.width*2, camera.height*2);
      video.attachCamera(camera);
      mybitmap = new Bitmap(mybitmapdata);
      var ref : UIComponent = new UIComponent();
      setInterval(snapShot, 100);
      }

      public function snapShot() : void
      {
      currentShot.draw(video, matrix);
      mybitmapdata = currentShot.clone();
      mybitmap = new Bitmap(mybitmapdata);
      var ref : UIComponent = new UIComponent();
      ref.addChild( mybitmap );
      videoContainer.addChild( ref );
      }

      ]]>
      </mx:Script>
      </mx:Application>