hey face7Hill
i dont think you can pass arguments to an eventlistner, only function pointers..so in your nextButton.addEventListener( click,
goToScreen(screen2)); the screen2 parameter is never getting passed.
If you want to invoke this function from code then I think you have to
use teh
There are some problems in your code:
1) addEventListener(..) expects second argument as function reference
but in your case you are calling a function(goToScreen(..)) while
subscribing to event and function return value is Void, so events are
not subscribed properly.
2) You are trying to
2 matches
Mail list logo