ok but what does this mean then.
I seen another guy use a getscript to get a js file. at the start of this js file he had a declaration:
Code:
var Playtomic={};
(
function()
{
//blah blah blah
})()
then followed by his functions.
in the main js file he called this:
Code:
function add(){
Playtomic["Log"]["View"](ptSWFID, ptGUID, ptAPIKEY, document.location);
}
Now Playtomic is not a function but a var i assume. But what do the square brackets means, if its not a function then whats the parameters in the brackets being passed to. It seems like he is passing variables from the main js file to the imported one, but i dont know how he done it.