Saving "coded" shapes.?

Hey there,

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…

anyone?

cheers UTE

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=23834

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.

http://www.f-mod.com/?p=2
is all u need

wow, thats awesome.

yes ;D

That’s awesome!..

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 :slight_smile:
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 :stuck_out_tongue:

But when you say it like that, if I were to learn how to use a mySQL database, I could totally do that :beam:

haha… you were talking about a new host you got that lets you do more php stuff, does it give you a mysql database too? :slight_smile:

using php/mysql to store and pull data is easy really, you should get into it :wink:

Yes my new host allows me to use a mySQL database :slight_smile:

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.

It should be… interesting :-\ :stuck_out_tongue:

yeah… i need to learn how to parse xml… that should be interesting :-\ :stuck_out_tongue:

It’s not as hard as you would think, especially if you know how to parse stuff already :stuck_out_tongue: