<?xml version="1.0" encoding="utf-8"?>
<s:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/mx"
       paddingTop="10">
       
        <s:creationComplete>
                if (Camera.isSupported)
                {
                        var v:Video = new Video(width, height);
                        uic.addChild(v);
                        var c:Camera = Camera.getCamera();
                        c.setMode(width, height, 10);
                        v.attachCamera(c);
                }
                else
                {
                        l.text = "Camera not supported";
                }
        </s:creationComplete>
       
        <s:Label id="l" text="Camera orientation not accounted for!"/>
        <mx:UIComponent id="uic" width="100%" height="100%"/>
       
</s:VGroup>