19
Apr
09

Basics of Flash Coding

Learning how to access webcams using Flash and actionscript 2.0

Place a new video into the window and call it; my_video

Enter this code into the actions box, for the frame

var my_camera:Camera = Camera.get ();

var my_video:Video

my_video.attachVideo (my_camera)Accessing my webcam via Flash

This enables the camera, which would be easy to hide behind another object.  However the question is how to access the camera with out the participant knowing, as they have to allow you access to their camera before it can be accessed…

This is also just a way of letting them view video from their webcam, and the basis from which other coding can be placed on top to make it an interactive experience…

So a way to store and use the data will have to be found/ created and a means to ‘trick’ the user into allowing camera access during the experiment.

Advertisements

0 Responses to “Basics of Flash Coding”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: