A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Drag and Drop interface

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Posts
    8

    Drag and Drop interface

    I would like to create an interface where the user can drag things around and then email the final product.

    Something like this would be awesome.
    http://family.ca/doit/sendit/cardswap/snowmanbuilder/



    I have seen lots of drawing apps and dragging aps that save state but none that send the final product by email. Any help would be much appreciated.

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    What do you already know how to do, and what are you asking for advice on?

    Let me shoot down your dreams right now: Flash cannot email. Email is a server side thing, so you'll have to do it with some server-side dynamic web thingamajig. I do not mean to say it's difficult to do that. I do mean to say that if you didn't already know that, you've got a long long road ahead of you.

  3. #3
    Junior Member
    Join Date
    Mar 2007
    Posts
    8
    I know how to drag movie clips around the stage. I have played with bitmap exporting. I purchased this from FlashDen. http://www.flashden.net/item/flash2jpg/3037

    Would it be hard to give me an fla that has a dragable movie clip with a button when clicked that tells a php document to email the final state. Or however you would do it.

  4. #4
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    You wasted your money, my friend. It's trivially easy to capture the visual state of the movie (or any DisplayObject in it) into a bitmap, then encode that bitmap as jpg.

    If all you want is a jpg sent out in email, that would probably be pretty easy. You'd capture the data as above, encode with a JPGEncoder, encode that with Base64 (both of which should be in the as3corelib ( http://code.google.com/p/as3corelib/ ), pass the Base64 string to a php script on the server which will attach the jpg to an email, and send that off to your vict^H^H^H^Hrecipient. The nifty thing is apparently php wants things in base64 anyway in order to attach them.
    http://icrontic.com/forum/showthread.php?t=7019

    I've not tried this, but I just might do it tonight. I'm trying to teach myself php.

  5. #5
    Junior Member
    Join Date
    Mar 2007
    Posts
    8
    I would like to export a 600x600 image from flash as a JPG. But if it is to be done at 100 percent it seems to hang forever. If I put it to export at 25 percent it works just fine.

    If you play around with this and get a chance to send me an fla and a php file that would be cool. I doubt I'll figure it out without those two things. I have read up on this stuff quite a bit

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