PDA

View Full Version : Saving Lines for later use


cyberscience
02-22-2004, 07:23 PM
Hello. I'm a designer/developer (and definitely not a newb), but there is one thing that i do not know how to do, and i would like to ask you if you do.

I saw the drawing tutorial about the actionscripted drawing application. Sure, it was fascinating to know that flash can actually draw lines (and i wont have to make zillions of little dots to make lines). But, is there a way that i can save the line information? maybe after drawing the lines, we can save the information as text and load it back up in flash? i was thinking "hmm, maybe we can extract the corners or positions of the lines, and save it as text, then load it back into flash." That's what i would like to know.

What I'm actually making is a drawing application guestbook where guests can draw whatever, then save the text/info into the backend (in my case, PHP and MySql. I know the saving and loading so you wont have to worry about it). Then, whenever another user decides to view the guestbook, he or she can "call" the line info and regenerate the drawn lines into the flash app.

Thanks.

splict
02-23-2004, 10:24 AM
This can get pretty complicated but a number of people have done stuff of that sort (myself included - though the code is pretty messy right now) A good search should come up with some stuff. Also, the DRK5 has a command to convert drawn stuff to script.

red penguin
02-23-2004, 02:11 PM
I have also done some work here on that...

RIght about the time MX came out so there are prolly better ones now!

cyberscience
02-23-2004, 08:04 PM
sorry to ask this, but what's DRK5?

splict
02-23-2004, 08:13 PM
Development Resourse Kit. Macromedia puts them out quarterly. They cost money and have extensions, commands, sample apps, etc. DRK6 just came out (to subscribers)