Sunday, April 3, 2011

Flex + Camera Capture (Entry-Level)

Below please find the simplest set of codes for snapping what's been fed from your camera.


<s:application minheight="600" minwidth="955" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
<fx:script>

</fx:script>
<fx:declarations>

</fx:declarations>

<mx:videodisplay creationcomplete="videoDisplay_creationCompleteHandler(event)" height="320" id="videoDisplay" width="480" x="0" y="0" />
<mx:button click="snapshotBtn_clickHandler(event)" id="snapshotBtn" x="0" y="330"/>
<mx:image id="myImg" x="490" y="0"/>

</s:application>

No comments:

Post a Comment