Sending a Flash drawing by email?

Hi,

Please take a look at this link first!

http://www.imaginationatwork.com/Imagine?_nolivecache&aoverride=y

Well, I can manage the drawing part, but can anyone tell me how you can send a drawing via email? I know how to send textual matter, but this is really confusing!

Any help will be highly appreciated!

Thanx!

Wow that is awesome.
No clue.

Just kidding… There are a few things they could be doing.
-Recording the drawing as an array of points (x,y)
-Saving the drawing to a server somewhere
-Reloading the array as an XML document from an embedded swf in the email

or maybe there is a feature of server side flash…(no experience here) that lets you convert it to a jpg and email that.

I hope it is simpler than all that though.

I thought about storing the co-ordinates in an array and using an XML file too. It’s still gonna be tricky though.

About the .jpg part, that’s probably not the case 'cuz when you view the drawing that is sent by email, it actually plays back all the strokes.

Well, thanx anyway!

I did a semi-similar thing (currently offline)… basically, i store the coordinated of the points in an array, convert the array to a string, and then store it in a mysql database. When i retrieve them, I plug em into a function that ‘visualizes’ the points…

What they do is probably the same, and the link you get in the email tells flash to load that particular entry in the database…

let me know if you need more help :slight_smile:

ahmed:
question about your footer… it saves the picture as an array of 0’s, and 1’s right?
you didnt simplify it down to one big integer did you…

yeah… its just a multidimentional array with 1’s and 0’s in it :slight_smile:

ahmed,

Could you send me a mini-code for that?

Thanks