Question
Too many functions!!!
While developing a large FMS application, main.asc has become
more than a bit lengthy. The bulk of the file is taken up by the
custom client functions that are created anonymously under the
onConnectAccept function.
(ex
newClient.myFunction = function(param1, param2) {
//do stuff
}
I tried splitting some of the (hundreds of) functions into seperate files then I used load() under the onConnectAccept function. I think since these functions are created during runtime, the load function is not appropriate (triggered on compile time). Is there some way to split these functions into seperate files?
(ex
newClient.myFunction = function(param1, param2) {
//do stuff
}
I tried splitting some of the (hundreds of) functions into seperate files then I used load() under the onConnectAccept function. I think since these functions are created during runtime, the load function is not appropriate (triggered on compile time). Is there some way to split these functions into seperate files?