topical media & game development

talk show tell print

camera-plain.mx

camera-plain.mx [swf] flex


  <?xml version="1.0"?>
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
  paddingLeft="0" paddingTop="0" paddingBottom="0" paddingRight="0"
  initialize="init();">
  

script


  <mx:Script>
  <![CDATA[
  import flash.media.Camera;
  private var camera:Camera = Camera.getCamera();
  private function init() : void {
  myVid.attachCamera(camera);
  }
  ]]>
  </mx:Script>
  

display


  
  
  
  <mx:VideoDisplay id="myVid" height="100%" width="100%" autoPlay="false"/>
  </mx:Application>
  


(C) Æliens 27/08/2009

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.