Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Flash webcam


Flash webcam

By jaggedlancer avatarjaggedlancer | 5529 Reads |
0     0

Hey, this is my first artical and its on creating flash documents which display your webcam, including pictures :D

  1. Create a new flash document (easy enough)

  2. Press Ctrl+L to open the library

  3. Create a new video from the library menu http://h1.ripway.com/randompics/newvid.png

  4. Make sure "Video (ActionScript-Controlled)" is ticked and leave it named as "Video 1" http://h1.ripway.com/randompics/vidas.JPG

  5. Click on the first frame on your timeline and drag the new "Video 1" icon from the library onto your stage

  6. Select the video symbol on the stage and press Ctrl+F3 and enter a unique instance name, for now jsut name it vid_out http://h1.ripway.com/randompics/instance.JPG

  7. Again click the first frame and press F9 and insert this code "vid_out.attachVideo(Camera.get());" that captures the active webcam and displays in the window http://h1.ripway.com/randompics/code.JPG

  8. Now thats it just press Ctrl+Enter to test your webcam

Thanks for reading, hope it works for you :p

Comments
ghost's avatar
ghost 17 years ago

yay way to go Jaggy and uhh.. w00t ^_^ first comment

spyware's avatar
spyware 17 years ago

On some fora you get banned for comments like the one above. The article is quite, but accurate. Maybe you could comment on the used code?

spyware's avatar
spyware 17 years ago

*quite short. Where's "the edit" if you need it :-/

ghost's avatar
ghost 17 years ago

Spyware whats wrong with the above? lmao Nice to the point. Give syou exatly what it says on the tin (Y)

korg's avatar
korg 17 years ago

Nice to the point, Like the screenshots, Nice touch. The code simply adds a path for the cam. Don't say this often enough really liked it:D 9/10

ghost's avatar
ghost 15 years ago

nice article, got 1 question: is it posible to use this in an .exe ( like in c++) that way you can use this in a trojan rite?