# How to save and email a swf?

**URL:** https://forum.kirupa.com/t/how-to-save-and-email-a-swf/206434
**Category:** Uncategorized
**Created:** [November 8, 2006, 3:29am UTC](https://forum.kirupa.com/t/how-to-save-and-email-a-swf/206434 "2006-11-08T03:29:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![evynco](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/evynco/32/2159_2.png) [@evynco](https://forum.kirupa.com/u/evynco)
#### Post date: [November 8, 2006, 3:29am UTC](https://forum.kirupa.com/t/how-to-save-and-email-a-swf/206434/1 "2006-11-08T03:29:11Z")

</div>

I just got Flash 8 today, specifically so that I could use the BitmapData class.

I have written a Whiteboard application. When the users have finished scribbling, they can print the image, no worries.

But, I need to let them SAVE the image (as a bmp or jpeg etc) and then email it.

So…I’m thinking I have to do something like this:

> var drawing:BitmapData = new BitmapData(Stage.width, Stage.height, true, 0);

…to save the image.

Then somehow pass this BitmapData out to a PHP function, which will then build a bmp.

This is where I am struggling, I have found tutorials for grabbing a frame of a video, but this is just a static mc.

Can anyone explain to a simple soul like me how I pass the correct data from a BitmapData object out to a PHP file ?

Thank you so much.

My brain hurts. (again)
