Click to See Complete Forum and Search --> : convert flash graphic to jpg and send mail
riva raval
08-25-2006, 01:38 PM
hi
pls....... help
I have flash symbol and now i need to send that symbol as ecard on a particular mailID.
I am confused which serverside scripting to use to convert flash image into jpg and send it to mailID.
Pls provide me with the required script for this task for both flash and php,asp or any other.
cancerinform
08-25-2006, 04:29 PM
Is this related to Actionscript 3 (Flash 9)?
DarkPhoenix777
08-26-2006, 11:24 PM
dear riva rival,
you r hopeless this is one of the stupidest questions i've heard in a while, but i help n00bs so here r the 2 things u gotta do.
1. Not post questions like this on the acationscript 3.0 forum, and
2. Copy and Paste the symbol into a bitmap editor, such as paint, or somthin, and save it as a jpg.
joa__
08-27-2006, 07:58 AM
This is an interesting question - because it is possible and heavil releated to AS3. I think nobody will provide you with the "required script for this task". Just because it hasn't been done before. But I am not sure if a HTML mail has embedded content.. :)
But I can tell you the way.
1.) You need an SMTP server running on a port higher than 1024
2.) Use this (http://www.kaourantin.net/2005/10/more-fun-with-image-formats-in-as3.html#comments) class to create a JPEG from the BitmapData
3.) Set up your HTML mail
4.) Connect with a socket to your SMTP server and send the data
Fall_X
08-27-2006, 11:03 AM
dear riva rival,
you r hopeless this is one of the stupidest questions i've heard in a while, but i help n00bs so here r the 2 things u gotta do.
1. Not post questions like this on the acationscript 3.0 forum, and
2. Copy and Paste the symbol into a bitmap editor, such as paint, or somthin, and save it as a jpg.
I think you're the hopeless one. Copy-paste the symbol into a bitmap editor? Right, you're expecting users to have the flash ide installed, and would give them the fla file? What kind of application would that be? Not a very user-friendly one that's for sure.
To riva raval : you can make bitmapdata from the symbol (like joa__ suggested). But you can send the bitmapdata to a receiving server script through http, and send the mail from there.
cancerinform
08-27-2006, 11:23 AM
One possibility to send bitmapdata would be by this way. You need to modify the script, though for your purpose. It is not a jpg but data stored as xml.
http://www.flash8.flashscript.biz/store_image/store_image.html
Unfortunately, the recipient needs a decoder movie.
You can do that in Flash 8, though.
And by the way, there are no stupid questions, only stupid answers ;). I think that is generally accepted.
Incrue
08-27-2006, 11:51 AM
And by the way, there are no stupid questions, only stupid answers ;).
I wish you were moderator on games forum
DarkPhoenix777
08-27-2006, 03:56 PM
sure w/e man, if u say so
joa__
08-27-2006, 05:38 PM
Oh well, it might be easier using the mail() (http://php.net/mail) function of PHP. But another topic here is sending a byte-array as an octect-stream (http://blog.je2050.de/?p=69).
It is so nice to talk about such topics with AS3 now :)
cancerinform
08-27-2006, 09:31 PM
weiter, weiter ;) we like to hear more.
riva raval
08-29-2006, 04:33 AM
dear riva rival,
you r hopeless this is one of the stupidest questions i've heard in a while, but i help n00bs so here r the 2 things u gotta do.
1. Not post questions like this on the acationscript 3.0 forum, and
2. Copy and Paste the symbol into a bitmap editor, such as paint, or somthin, and save it as a jpg.
riva raval
08-29-2006, 04:38 AM
dear sir,
i am not at all hopeless. I think you didn't understand my question.I want to save the image from swf format to jpg or bmp at runtime itself and then send it as an ecard on provided mailid.
For this task i am searching for actionscripting in flash and also script of php or asp as flash doesn't support server side application directly.
I hope u understood my question .................
joa__
08-29-2006, 05:05 PM
Riva raval, we posted you a lot of suggestions. You can convert the BitmapData instance of your image to JPEG or PNG using the classes of Tinic Uro (http://www.kaourantin.net/2005/10/more-fun-with-image-formats-in-as3.html#comments). Theese output you a ByteArray which can be transferred to PHP using some technique I described on my blog (http://blog.je2050.de/?p=69).
All you have to do is building your PHP script from that point. You may want to have a look at mail() (http://php.net/mail()). You could do this also in Flash only but it saves much time to use PHP here.
Questions releated to PHP should be asked in another board and not this one. This post is only a summary of what mose people said here and it solves your problem. Feel free to ask any questions releated to theese topics.
DarkPhoenix777
08-29-2006, 06:23 PM
got u now... srry dor the commebt =)
shiko_d
09-24-2006, 05:13 AM
hi
pls....... help
I have flash symbol and now i need to send that symbol as ecard on a particular mailID.
I am confused which serverside scripting to use to convert flash image into jpg and send it to mailID.
Pls provide me with the required script for this task for both flash and php,asp or any other.
shiko_d
09-24-2006, 05:13 AM
good job mr kit
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.