bluescreenerror
04-11-2009, 06:24 PM
I'm trying to do something fairly simple here, and its doing my head in.
I'm trying to create a variable when the application starts, and then return that variable using a remote method.
application.onAppStart = function()
{
this.testString = "blah blah blah";
}
application.onConnect = function(client)
{
this.acceptConnection(client);
client.getTestString = function()
{
return this.testString;
}
}
For some reason, this is returning as a null value. I'm sure I've just done something really simple wrong but I just can't work out what.
Any help would be greatly appreciated.
I'm trying to create a variable when the application starts, and then return that variable using a remote method.
application.onAppStart = function()
{
this.testString = "blah blah blah";
}
application.onConnect = function(client)
{
this.acceptConnection(client);
client.getTestString = function()
{
return this.testString;
}
}
For some reason, this is returning as a null value. I'm sure I've just done something really simple wrong but I just can't work out what.
Any help would be greatly appreciated.