rhille
11-07-2008, 01:53 PM
Hi everybody
I am fairly new to AS3 but I am trying very hard to learn. But sometimes you just have to admit that youneed help and that is where I am right now...
I am currently working on a project and it needs to have Flash upload files to the Web server. I need to get input and help from more experienced developpers. Let me explain the project first:
It is a training site where the Flash file will read data from a XML file in the same directory as the SWF file. The "game" will ask questions and the user will get responses base on his answers. The questions and answers are sound files, again on the Web server. Now, to update the files, I see two possibilities: a stand alone application that would update the XML data and a manual upload of all necessary files to the correct folder, or a dynamic application where the user sets the data in a Flash based SWF file and that SWF uploads the necessary files directly in the folder where it would be instantly available. Obviously, I would prefer the second option.
I spent countless hours yesterday until early this morning trying to figure it out. I gathered that I would need to include some php code in the same folder as the SWF file and I tried different code I found on the internet and in books and nothing worked. Is it that difficult?
Now, to start discussions, I have included a wish list:
- AS3: the user adds or change data as needed and, when done, the Flash file will upload to the server the new XML file as well as the added or modified sound files.
- PHP: will receive the files and copy them in the correct folder: /SoundFiles and /XMLData
- It would also be nice to have some kind of visual aid confirming that the connection is established and working. Something like <Uploading file: xxx.aif, 15% done>
- For security reasons, I guess it would be best to copy all files to a <tempUpload> folder that would be the only one open to the Web and the php file would then copy the files to their final folder, based on the extension.
Could somebody, kindly, help me? I would really appreciate it...
Many thanks
Rick
I am fairly new to AS3 but I am trying very hard to learn. But sometimes you just have to admit that youneed help and that is where I am right now...
I am currently working on a project and it needs to have Flash upload files to the Web server. I need to get input and help from more experienced developpers. Let me explain the project first:
It is a training site where the Flash file will read data from a XML file in the same directory as the SWF file. The "game" will ask questions and the user will get responses base on his answers. The questions and answers are sound files, again on the Web server. Now, to update the files, I see two possibilities: a stand alone application that would update the XML data and a manual upload of all necessary files to the correct folder, or a dynamic application where the user sets the data in a Flash based SWF file and that SWF uploads the necessary files directly in the folder where it would be instantly available. Obviously, I would prefer the second option.
I spent countless hours yesterday until early this morning trying to figure it out. I gathered that I would need to include some php code in the same folder as the SWF file and I tried different code I found on the internet and in books and nothing worked. Is it that difficult?
Now, to start discussions, I have included a wish list:
- AS3: the user adds or change data as needed and, when done, the Flash file will upload to the server the new XML file as well as the added or modified sound files.
- PHP: will receive the files and copy them in the correct folder: /SoundFiles and /XMLData
- It would also be nice to have some kind of visual aid confirming that the connection is established and working. Something like <Uploading file: xxx.aif, 15% done>
- For security reasons, I guess it would be best to copy all files to a <tempUpload> folder that would be the only one open to the Web and the php file would then copy the files to their final folder, based on the extension.
Could somebody, kindly, help me? I would really appreciate it...
Many thanks
Rick