Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can AS create txt file to be stored on clientside?

Status
Not open for further replies.

janicefoo

Programmer
Apr 17, 2003
53
0
0
MY
Dear gurus/members,
I am very new in actionscript and flash. I would like to know whether is it possible to create a text file that contains some variables or strings that will be stored on the users pc (client side)? I have a button on my e-learning website that will launch an exe(located on user's computer). When the exe is launched, the user is required to record and save his audio on his computer. When the user clicks on the save button on the exe, the user has the option to save the audio on any folders and any name of their preference. This part of development is done. However, I would like to create a 'default' file name whereby the user can either use the default name or change the file name themselves. When the user navigate to other lessons and click to save the audio recorded, the default file name will change according to the unit/activity name. Therefore, I personnally think that the way to make this realise is to pass a tag/variable/text file from the flash. The exe file will read the file names from the tag/variable/text file and display a different default name for each different page on my site.

Example: When user save an audio on unit S35PE12 (unit/activity name), the flash will pass this value(S35PE12) to the exe. If the user is saving an audio from unit L23PE41, the value being passed to exe will be L23PE41.

I am not sure how this thing can work, but I am seriously looking forward to some replies soon. Any suggestions or ideas are highly appreciated. Hope my thread isn't confusing though.

Thanks in advance,
Janice
 
How are you calling the .exe from the Flash movie?

Wow JT that almost looked like you knew what you were doing!
 
Thanks oldnewbie for your information. I will take a close look at it.

Hi, pixl8r. On the flash button, I call a vbscript funtion. That function will check for the existance of the exe file on the user's computer. If the file exists, it will launch the exe using WshShell.Run(" "), otherwise, it will prompt user to download the exe file. ;)
 
Definitely look into the sharedObject class as Oldnewbie suggested. Otherwise you are going to have to write your text file with your application.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top