Gary Rosenzweig's

Developer Dispatch

News and Notes For Developers Using Flash, ActionScript, Director, PHP and JavaScript.


MY BLOGS
Developer Dispatch Blog
Flash Game U
iPhone Dispatch Blog
INFO & FEEDBACK
About Developer Dispatch
About Gary Rosenzweig
Gary Rosenzweig's Books
Feedback
Contact Gary Rosenzweig
SHARING
Add to Technorati Favorites
Add to Del.icio.us
Stumble Upon
LINKS TO MY SITES
CleverMedia
Fun Games at GameScene.com
MacMost
Director Online
LINKS TO MY FRIENDS
Tech Support from Ask Dave Taylor
Ask Leo
Amy Gahran
Custom Stickers
Dean's Director Tutorials
Flash Website Templates
Time 4 Learning
RSS FEEDS
Raw RSS
Add RSS to your My Yahoo


07/17/06

Webcam Jigsaw Puzzle

Here’s a Flash jigsaw puzzle that takes the input from your Webcam or other video device and makes a puzzle from it. I’ve got an iSight on my Mac and that’s what I’ve been using to test. But I’d love for some others to test it with various machines and Webcam devices. Try it out and send me a comment.

I wish that I could also let the user select an image file from their hard drive. But frustratingly, there is no way to do so without first uploading the image to my server. You can use Flash 8 to select a file on the drive, and then upload it. But you cannot use Flash to select a file and load it locally. That doesn’t seem to make sense. I think it might be an oversight. The file selection class doesn’t give you the actual path on the user’s hard drive, which makes sense for security reasons. But it should allow you to load the image in anyway, even without revealing the path to your code. Why would it be OK to allow the user to send a file to your server, but not use it locally?


One Response to “Webcam Jigsaw Puzzle”

  1. Marty Friend Says:

    You CAN select an image file from your hard drive as long as it’s in the same directory as the swf file. There is no other alternative. You can’t even put the file in a subdirectory from that location and make it work.


Leave a Reply