PDA

View Full Version : Sending a Flash drawing by email?



_hopesfall
May 20th, 2003, 03:43 AM
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!

Clown Staples
May 21st, 2003, 12:06 AM
Wow that is awesome.
No clue.

Clown Staples
May 21st, 2003, 12:11 AM
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.

_hopesfall
May 21st, 2003, 01:11 AM
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!

ahmed
May 21st, 2003, 08:20 AM
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 :)

Clown Staples
May 21st, 2003, 06:30 PM
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...

ahmed
May 28th, 2003, 05:22 PM
yeah.. its just a multidimentional array with 1's and 0's in it :)

paisley
June 5th, 2003, 06:00 PM
ahmed,

Could you send me a mini-code for that?

Thanks