dcsimg
A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: convert flash graphic to jpg and send mail

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Posts
    3

    Angry convert flash graphic to jpg and send mail

    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.

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Is this related to Actionscript 3 (Flash 9)?
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    Teh ultimate flasher, and stuf
    Join Date
    Aug 2006
    Posts
    39
    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.
    Just 'cuz you're all N00bs,Doesn't Make the Least N00by Pr0!

    PURE PWNAGE!

  4. #4
    \x3a\x6f\x29
    Join Date
    Sep 2005
    Location
    paris
    Posts
    88
    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 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

  5. #5
    crossconscious
    Join Date
    Sep 2005
    Location
    Belgium
    Posts
    1,188
    Quote Originally Posted by DarkPhoenix777
    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.

  6. #6
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    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/st...ore_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.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  7. #7
    Custom User Title Incrue's Avatar
    Join Date
    Feb 2004
    Posts
    974
    Quote Originally Posted by cancerinform

    And by the way, there are no stupid questions, only stupid answers .
    I wish you were moderator on games forum

  8. #8
    Teh ultimate flasher, and stuf
    Join Date
    Aug 2006
    Posts
    39
    sure w/e man, if u say so
    Just 'cuz you're all N00bs,Doesn't Make the Least N00by Pr0!

    PURE PWNAGE!

  9. #9
    \x3a\x6f\x29
    Join Date
    Sep 2005
    Location
    paris
    Posts
    88
    Oh well, it might be easier using the mail() function of PHP. But another topic here is sending a byte-array as an octect-stream.

    It is so nice to talk about such topics with AS3 now

  10. #10
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    weiter, weiter we like to hear more.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  11. #11
    Junior Member
    Join Date
    Aug 2006
    Posts
    3

    u didn't understand my question only.

    Quote Originally Posted by DarkPhoenix777
    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.

  12. #12
    Junior Member
    Join Date
    Aug 2006
    Posts
    3
    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 .................
    Last edited by riva raval; 08-29-2006 at 03:40 AM.

  13. #13
    \x3a\x6f\x29
    Join Date
    Sep 2005
    Location
    paris
    Posts
    88
    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. Theese output you a ByteArray which can be transferred to PHP using some technique I described on my blog.

    All you have to do is building your PHP script from that point. You may want to have a look at 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.

  14. #14
    Teh ultimate flasher, and stuf
    Join Date
    Aug 2006
    Posts
    39
    got u now... srry dor the commebt =)
    Just 'cuz you're all N00bs,Doesn't Make the Least N00by Pr0!

    PURE PWNAGE!

  15. #15
    Junior Member
    Join Date
    Sep 2006
    Posts
    2

    good job

    Quote Originally Posted by riva raval
    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.

  16. #16
    Junior Member
    Join Date
    Sep 2006
    Posts
    2
    good job mr kit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center