Dear gurus and members.
I am a newbie in Flash and Actionscript. Hope you can share some knowledge and expertise with me. I plan to create a button on my website, using Flash & Actionscript that checks for a .txt file. If the file exists, the actionscript will call and run the software(name: one.exe), otherwise it will request user to download the software (name: soundRecording.exe). I was wondering whether is it possible if I load in the text file via the LoadVars() object, and if the file fails to load I can initiate the appropriate actions. That would go a little something like this...
myLV = new LoadVars();
myLV.onLoad = function(success){
if (success){
//If txt file loaded, calls software pop up --'one.exe'
fscommand("exec","one.exe");
} else {
//If file fails to load,displays download pop up window
//request to download software--'SoundRecorder.exe'
fscommand("exec","SoundRecorder.exe");
}
myLV.load("MyTextFile.txt");
//the .txt file to check.
}
I am concern whether is there any ways to skip the open/save dialog box? (Even if user downloaded the software/the .txt file exist on user's computer, can we eliminate the open/save dialog box?) According to a forum I read, it says that only stand-alone projector has ways to eliminate the open/save dialog box, but not for .swf that runs on a browser, is that true? How can I solve the problem?
I am not sure if this might work. Hopefully someone out there can give me some guidance and pointers. I am really at total lost and the deadline is due soon. Looking forward to some reply soon and thanks in advance.
Cheers,
Janice
I am a newbie in Flash and Actionscript. Hope you can share some knowledge and expertise with me. I plan to create a button on my website, using Flash & Actionscript that checks for a .txt file. If the file exists, the actionscript will call and run the software(name: one.exe), otherwise it will request user to download the software (name: soundRecording.exe). I was wondering whether is it possible if I load in the text file via the LoadVars() object, and if the file fails to load I can initiate the appropriate actions. That would go a little something like this...
myLV = new LoadVars();
myLV.onLoad = function(success){
if (success){
//If txt file loaded, calls software pop up --'one.exe'
fscommand("exec","one.exe");
} else {
//If file fails to load,displays download pop up window
//request to download software--'SoundRecorder.exe'
fscommand("exec","SoundRecorder.exe");
}
myLV.load("MyTextFile.txt");
//the .txt file to check.
}
I am concern whether is there any ways to skip the open/save dialog box? (Even if user downloaded the software/the .txt file exist on user's computer, can we eliminate the open/save dialog box?) According to a forum I read, it says that only stand-alone projector has ways to eliminate the open/save dialog box, but not for .swf that runs on a browser, is that true? How can I solve the problem?
I am not sure if this might work. Hopefully someone out there can give me some guidance and pointers. I am really at total lost and the deadline is due soon. Looking forward to some reply soon and thanks in advance.
Cheers,
Janice