A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: saving data from flash drawing app?

  1. #1
    One day older, one day wiser rafiki55's Avatar
    Join Date
    Jun 2001
    Posts
    635

    saving data from flash drawing app?

    I've google already, but come up with nothing.

    How would I save the data (in mysql I guess...although I'm open to ideas) from a drawing app like this:

    http://www.sitepoint.com/article/create-flash-sketchpad

    so that show it again like this:
    http://www.inanyus.com/ecard/

    I don't want to make ecards....just save the picture someone has drawn and redisplay it like above.

    Can any point me in the right direction / tell me how hard it'd be?

    Thanks in advance!

  2. #2
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Hi,

    Basically, when the user is "drawing", you push the mouse coordinates into arrays. You can then use those arrays with the drawing API to recreate what the user did. This is not a beginner project involving AS. You will need a very good understanding of arrays and loops. This should give you an idea of how to approach it...

    http://ntdesigns.net/quickDemo/signature.html

    NTD

  3. #3

  4. #4
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Thanks for the kind words

  5. #5
    One day older, one day wiser rafiki55's Avatar
    Join Date
    Jun 2001
    Posts
    635
    Great! Thanks for all the help

  6. #6
    Member
    Join Date
    Jun 2006
    Location
    World Wide Web
    Posts
    55
    Use the bitmap Class, that's what we used our my component http://netdrims.com/pixeditor it's quite faster and easier, you just capture the movie screen after all the drawing and then use bitmap.draw() to transfer it to the new movie. Then use bitmap.getpixels() to read each pixel of the movie and you have an exact copy of what the client has drawn so you dont have to be listening and loading arrays of lines that were drawn cos with this method, you can allow for erasure and many other features apart from lines. Hope this helps

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