PDA

View Full Version : how do you extract data and save it to a file


mactinker123
03-01-2005, 02:17 AM
Hi,

I made a flash movie that generates data in a table format, the user just enters some values then clicks a button and all values are automatically calculated. I would like to extract the data and save it in a text file so I can then load up my chart using the flash charting components.

So I can use it with the chart program the text file has to look like this (it should appear all on one line;

&ThisChartTitle=Statistics Graph&Statistics&ChartLabels=x1,x2,x3,x4,x5,x6&ChartValues=y1,y2,y3,y4,y5,y6&End=1


where x1...x6 and y1...y6, are where I would like my data from the table to be. Is there a command I can use to generate this text file and save it to the harddrive??

please help me

CyanBlue
03-01-2005, 03:24 AM
Howdy and Welcome... :)

You will need to use server side script to save the data to the text file... Flash alone cannot do the trick...

mactinker123
03-01-2005, 03:38 AM
Hi,

Thanks for the quick reply, a server side script? where would I get one and is it easy to implement? Also Im not using this flash movie on a website or server, Im just going to give the program to students to use on their home computer, so will I still be able to use this script?

CyanBlue
03-01-2005, 03:50 AM
If that's the case, you won't need the server side script... You will need the third party projector tools such as Zinc(formerly Flash Studio Pro), SWF Studio, mProjector and such... Check this page out for the links...
http://www.actionscript.org/software/CD-roms/

mactinker123
03-01-2005, 03:52 AM
Ok thanks, I'll give that a try now