Friday, February 18, 2011

Oh, hey! it's mid-term.

Spent time this last week trying to get the e-mail working.  We actually spent nearly 2 hours of class time figuring out how to get it done.

originally, I was using this code http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/
But that was not quite working.  The reason we figured was because the PHP was not actually doing much of anything but trying to echo the JPG created in flash.

Now the working theory is that I should have the actionscript create a JPG or image that will be saved onto the server.  Then I will create some php that will take that image and send it out to an email.  Easy as could be right?

here is a big ol' collection of links.

http://ntt.cc/2009/01/09/as3corelib-tutorialhow-to-use-jpegencoder-and-pngencoder-class-in-flex.html

http://www.php.net/manual/en/intro.imagick.php   or also try GD?

http://email.about.com/od/emailprogrammingtips/qt/How_to_Send_Email_from_a_PHP_Script.htm



http://stackoverflow.com/questions/4635820/as3-save-media-file-to-server

http://ask.amoeba.co.in/save-images-from-flash-actionsctipt-3-filereference-save-jpgencoder/

http://www.quietless.com/kitchen/upload-bitmapdata-snapshot-to-server-in-as3/

http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php#attachment






_________________________________________________________________

So over mid-term I will hopefully get that working over break.  I also plan on improving things from a visual point of view over the week. 

*fingers crossed that things work well enough.

No comments:

Post a Comment