# Saving snapshot in a sharedobjects?

**URL:** <https://forum.kirupa.com/t/saving-snapshot-in-a-sharedobjects/241540>\
**Category:** Uncategorized\
**Created:** [October 15, 2007, 12:58pm UTC](https://forum.kirupa.com/t/saving-snapshot-in-a-sharedobjects/241540 "2007-10-15T12:58:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vin23leo](https://avatars.discourse-cdn.com/v4/letter/v/b77776/32.png) [@vin23leo](https://forum.kirupa.com/u/vin23leo)\
**Post date:** [October 15, 2007, 12:58pm UTC](https://forum.kirupa.com/t/saving-snapshot-in-a-sharedobjects/241540/1 "2007-10-15T12:58:36Z")

</div>

hey guys does anyone know how i can save a photo taken from a webcam and save and retrieve it from a shared object??? i dont have php server so throw that out of the window

so far i got the snapshot working, here is my script

stop()  
motionTrack.\_visible = 0

output\_vid.attachVideo(Camera.get());

import flash.display.BitmapData  
import flash.geom.Matrix

var snapshot:BitmapData=new BitmapData(x=155,y=120);  
var snapshot2:BitmapData=new BitmapData(x=155,y=120);

function takeSnapshot(nr)  
{  
snapshot.draw(output\_vid,new Matrix());  
}  
function takeSnapshot2(nr)  
{  
snapshot2.draw(output\_vid,new Matrix());  
}

pic.pic2.attachBitmap(snapshot,1);  
another.attachBitmap(snapshot2,1);  
main.game.face1.pic2.attachBitmap(snapshot,1);  
main.game.face1.another.boss.attachBitmap(snapshot2,1);

any ideas

cheers
