[screenweaver] swSystem.getEnvironmentVar

Gaspy gaspyy at gmail.com
Fri Oct 28 08:35:33 PDT 2005


Hello,

I've just started working with SW3.

I'm trying a very simple example that just doesn't work:

swInterface.init();
getEnvironmentVar_callback = function( value, result )
{
swDebug.trace( "Env var: "+ value + " (" + result + ")" );
}
swDebug.trace( "test" );
swSystem.getEnvironmentVar( "USERPROFILE", getEnvironmentVar_callback );
stop();

The callback never executes. I've tried several variations to no success.

Any idea why?

I am getting a little desperate as I need to load and save data in user's
Document and Settings, but I cannot hardcode the value (different users,
different languages...)

I use SW3OS 3.1.0.4 <http://3.1.0.4> with Flash8.ocx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/screenweaver_osflash.org/attachments/20051028/bc8ddbd1/attachment.htm


More information about the screenweaver mailing list