DesignAudit.net

Design Blog using Express Engine

My good friend and superb designer Kerry Layton wanted a nice, clean blog where he could dip his toes into the world of blogging. We had this site up and running within a day, and launched on New Years Day with a collection of calendars to start the year. Check it out.
» launch site | » click to close

Hollyberry Baking Shop

Shopping Cart using Magento

Just in time for the holiday rush, we launched a new, easy to navigate and use shopping cart for Hollyberry Baking. I found Magento a nice platform to work with and it has been a solid solution for Holly integrating closely with her shipping workflow. Design by Marcy Hawley.
» launch site | » click to close

Resa Design Shop

Shopping Cart using X-Cart (OSCommerce)

Resa's success overran her capacity to manage a PayPal shop, so we took her business to the next level with a full featured web store and SEO implementation. Unfortunately the store has exponentially increased Resa's business. Ooops, so sorry Resa. ;-)
» launch site | » click to close

Northstar Church

New Site Design, SEO Update, and News Blog

I stepped in and helped Northstar implement a fantastic design while also updating their SEO. The home page has a nice rotating feature leveraging some cool Flash and Ajax action. Wordpress powers their current news feed. The beautiful design is the handiwork of Becky Siegrist.
» launch site | » click to close

[AC] Advent Conspiracy

Site using Expression Engine

Advent Conspiracy wanted an easier and more flexible solution for their high traffic site. With Boxing Clever, we launched this EE website and tied into social networks such as Flickr, YouTube and Facebook to help spread the word about fresh water wells for impoverished people groups.
» launch site | » click to close

checking out Pleasanton, CA — at Cafe Main http://gowal.la/s/2mZh  10:12 PM 03/10/2010

Simple Webcam Capture Demo for Flex

I put together a simple demo of how you can capture an image from the webcam in Flex. Nothing super complex going on here once you see it.

Basically we use the Camera, VideoDisplay, and the Bitmap classes. The Camera allows us to do just what you expect prompting the user to connect to their camera. The Camera is then attached to the VideoDisplay component and we can see what the camera sees.

  1.  
  2.  
  3. var camera:Camera = Camera.getCamera();
  4. if (camera)
  5. {
  6. videoDisplay.attachCamera(camera);
  7. }
  8. else
  9. {
  10. Alert.show("Oops, we can't find your camera.");
  11. }
  12.  
  13.  


When we want to capture an image we create a new, empty Bitmap at the same size as the VideoDisplay, and we draw the output of the VideoDisplay to the image. We then write that image back to the stage so we can see it.

  1.  
  2.  
  3. var snap:BitmapData = new BitmapData(320, 240, true);
  4. var snapBmp:Bitmap = new Bitmap(snap);
  5.  
  6. snapBmp.width = 320;
  7. snapBmp.height = 240;
  8.  
  9. if(snapshotHolder.numChildren > 0)
  10. snapshotHolder.removeChildAt(0);
  11.  
  12. snapshotHolder.addChild(snapBmp);
  13. snap.draw(videoDisplay);
  14.  
  15.  


Demo: http://www.davidortinau.com/flash/WebcamCaptureDemo/WebcamCaptureDemo.html

Source: http://www.davidortinau.com/flash/WebcamCaptureDemo/srcview/index.html


Categories: FlashFlexPermalink

hey frnd,
this code is working for flex in flash builder 4 but not working for air in same version
is any solution ?
smile

Posted by (JavaScript must be enabled to view this email address)  on  02/10  at  12:19 AM

Add a Comment

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?