Go Back   Northcode Support > SWF Studio V2 (Closed)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Old 2001-07-12, 12:37 PM   #1
garyhanks
Registered User
 
Join Date: Jul 2001
Posts: 4
I have tried to using the INIFILE plugin with no success. Below is a snippet of actionscript that I am trying to use. I am certain the script is running and that the plugin in SS is checked.

fscommand("CLR", "");
fscommand("ARG", "C:\\Temp\\Test.ini");
fscommand("ARG", "SECTION");
fscommand("ARG", "KEY");
fscommand("ARG", "VALUE");
fscommand("INIFILE.SETVAL", "");


I have been successful using FILESYS.WRITEFILE, so I am really at a loss.

I am using the trial version of SS v1.0 build 1499, flash 5.0 on Windows 2000 Pro.
garyhanks is offline  
Old 2001-07-12, 01:07 PM   #2
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 12,043

The parameter lists on the main page of the INIFILE documentation were wrong. If you click on SETVAL and look at the example you'll see that you need a result variable too. The result variable is used to return error codes. Sorry about that, doc has been fixed now.

Code:
fscommand("CLR", ""); 
fscommand("ARG", "resultvar");
fscommand("ARG", "C:\\Temp\\Test.ini"); 
fscommand("ARG", "SECTION"); 
fscommand("ARG", "KEY"); 
fscommand("ARG", "VALUE"); 
fscommand("INIFILE.SETVAL", "");
northcode is offline  
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes