# Webcam and Motion Detection

**URL:** <https://forum.kirupa.com/t/webcam-and-motion-detection/239953>\
**Category:** flash\
**Created:** [September 27, 2007, 3:38pm UTC](https://forum.kirupa.com/t/webcam-and-motion-detection/239953 "2007-09-27T15:38:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiDante](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@hiDante](https://forum.kirupa.com/u/hiDante)\
**Post date:** [September 27, 2007, 3:38pm UTC](https://forum.kirupa.com/t/webcam-and-motion-detection/239953/1 "2007-09-27T15:38:14Z")

</div>

[FONT=Arial]I have tried “ **Live Motion Detection** ” in flash with my webcam and the BitmapData-class in flash.[/FONT]  
[FONT=Arial]I can’t get it work as I want. I am wondering if someone has tried this function in flash. [/FONT]

[FONT=Arial]This is what I mean: _[http://www.gskinner.com/blog/archiv...8\_webcam\_1.html](http://www.gskinner.com/blog/archiv...8_webcam_1.html)_[/FONT]

[FONT=Arial]I have done a similar effect but I have a few things I want to modify, but I can’t get it to work:[/FONT]

[FONT=Arial]\*\*1. \*\*I want the “fire” or DisplacementMapFilter (as it is called in the code) to stay for a time and not disappear right away. [/FONT]

[FONT=Arial]\*\*2. \*\*I have tried to ad a GlowFilter class but can’t make it work, what should I think of when adding more filters?[/FONT]

[FONT=Arial]\*\*3. \*\*I have added a move clip with the instance name “ball\_mc” which should react when it detects a motion. And after that the DisplacementMapFilter shall change colour. How do I do this?[/FONT]

[FONT=Arial] **4.** The Video clip called “vid” I want to be transparent, but then I don’t know if the question above works.[/FONT]

[FONT=Arial] **5.** I also would like to get a snapshot maybe every minute and it should be send to a server/database.[/FONT]

[FONT=Arial]There is a tutorial I have used for point nr.3-5 which you can find here:[/FONT]  
[FONT=Arial]_[http://www.neuroproductions.be/portfolio/misc/webcam\_tutorial](http://www.neuroproductions.be/portfolio/misc/webcam_tutorial)_[/FONT]

[FONT=Arial]I hope you understand my long and complicated post, thankful for help![/FONT]

**Edit: Forgot the .fla file, just download zip**

[FONT=Arial]/Dante[/FONT]
