Hi there,
So I've successfully converted over an ActionScript game using Jangaroo. The game sits in a modal for a promotional page. At the end of the there's a score screen with a button. I added a click listener to the button but actually want to call a global javascript function that's in the web page, rather than the actual game.
So I went into the packaged javascript and opened up the specific JS file and added the line 'window.launchRegistration()' to the onClick function.
"private function onClick",function onClick(event/* : Event*/)/* : void*/
{
window.launchRegistration();
},
The game runs fine but nothing seems to be happening when I hit the score screen button. I know the listener works because I checked it before with different contents in the function. But I also checked out the code in the inspector and that line doesn't seem to be showing up.
So I was wondering if it was even possible to just add javascript lines to the jangaroo packaged JS files.
Thanks,
Kate