|
-
One day older, one day wiser
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!
-
Banned
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
-
-
Banned
Thanks for the kind words
-
One day older, one day wiser
Great! Thanks for all the help
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|