I am wondering how is it possible to Save or Export a drawing which is done by code produced wihthin the swf??
For example we have some lines where the user could draw on a board and after finishing his artwork he could export it as a bitmap or even better as an eps or swf…
Another question along the same lines.
Flash does not support a lot in the way of exporting information, so it will involve extensive server side coding in any case, but you could save a drawing as an array of points, put it into an xml document, and write something to try to turn that into a bmp in some other language.
I have no clue what any of that will involve. Something more my speed…
if the user has a pc, pushing the print screen button will copy the whole screen, and by pasting into windows paint you can save the screen capture. Thats about as far as flash can go.
Ahmed did something similar saving the coordinates of the created clip to an array in a mySQL database or something. I personally have no clue at all how to do this, but I don’t think it’s easy.
and about my thing, it wasn’t really hard, i log the mouse positions in two arrays, one for x and another for y… then i convert both the arrays to strings and save them in a mySQL db
it’s pretty useless now though, swfdraw2jpg seems real cool
ahmed: Storing the X,Y positions of the mouse isn’t hard, but I don’t know much about server-side Flash and I know nothing about mySQL, so for me it would be hard
But when you say it like that, if I were to learn how to use a mySQL database, I could totally do that :beam:
I really want to get into PHP and mySQL, and I really need to learn server-side Flash so I should be getting into that shortly. I already know XML in Flash, and loading variables via text files into Flash and things like that, I just need to learn about PHP/mySQL and how they work with Flash, etc, etc.