# Saving "coded" shapes.?

**URL:** <https://forum.kirupa.com/t/saving-coded-shapes/21952>\
**Category:** Uncategorized\
**Created:** [May 28, 2003, 12:13pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952 "2003-05-28T12:13:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![utemelder](https://avatars.discourse-cdn.com/v4/letter/u/49beb7/32.png) [@utemelder](https://forum.kirupa.com/u/utemelder)\
**Post date:** [May 28, 2003, 12:13pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/1 "2003-05-28T12:13:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 1:52pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/2 "2003-05-28T13:52:03Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=23834](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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 5:40pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/3 "2003-05-28T17:40:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 7:22pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/4 "2003-05-28T19:22:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 7:23pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/5 "2003-05-28T19:23:02Z")

</div>

wow, thats awesome.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 8:33pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/6 "2003-05-28T20:33:27Z")

</div>

yes ;D

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 9:27pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/7 "2003-05-28T21:27:17Z")

</div>

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 🙂  
it’s pretty useless now though, swfdraw2jpg seems real cool

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 9:54pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/8 "2003-05-28T21:54:44Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 10:02pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/9 "2003-05-28T22:02:13Z")

</div>

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? 🙂

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 10:06pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/10 "2003-05-28T22:06:13Z")

</div>

Yes my new host allows me to use a mySQL database 🙂

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 :-\ 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2003, 10:15pm UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/11 "2003-05-28T22:15:42Z")

</div>

yeah… i need to learn how to parse xml… _that_ should be interesting :-\ 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2003, 2:02am UTC](https://forum.kirupa.com/t/saving-coded-shapes/21952/12 "2003-05-29T02:02:10Z")

</div>

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