Hi,
i'm studying wade flow test game
inside the move handler i try to call a function which is inside another js file loaded before the wade game.
main.html
- load main.js (contains a function called FinishedGame());
- load wade.js
- load flow.js
Inside flow.js
this.onMouseMove = function(eventData) {
//code
FinishedGame(); //error
}
The error is ReferenceError: Can't find variable FinishedGame
There is a way to call external methods?
Thank you in advance.