A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: webcam snapshot problem

Threaded View

  1. #1
    Junior Member
    Join Date
    Apr 2006
    Posts
    8

    webcam snapshot problem

    I follwed this tutorial (the first 3 steps)
    - how to show webcam in flash
    - how to capture it when a button is pressed

    http://www.macromedia.com/devnet/fla...ion_print.html


    unfortunately the capture just doesn't happen, I tired for hours. any idea what I did wrong??

    it should be very easy to resolve for somebody who understands its a bit better than I do.

    just download the FLA file and you can see:
    http://www.raffael3d.com/webcam_snap.fla


    - the camera runs
    - a button that should cause the snapshot, but nothing happens.

    thanks so much for helping.


    the problem I see lies in this code here:


    //create a movie clip to hold the bitmap when we attach it
    this.createEmptyMovieClip("bitmap_mc",this.getNext HighestDepth());

    //display the specified bitmap object inside the movie clip
    bitmap_mc.attachBitmap(snapshot,1);


    snap_btn.addEventListener("click",mx.utils.Delegat e.create(this,takeSnapshot));

    my black button has the instance name "snap.btn", so it should work, no?
    something I dont understand in the code line above is the "click", is this talking about the "press" button function of a button or is this something else?
    Last edited by raffael3d; 04-11-2006 at 07:00 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center