• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with class for a script object

 
Ranch Hand
Posts: 86
1
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi! I will try to explain my problem. Im creating a scripting class that expose some functionality of my game to be used on the JavaScript. So I created the following class:

So, in somewhere of my game engine Im creating a instance of this class and adding this instance to the script engine:

When Im on the script I can use this script (its works):

As you can see, the Script Engine cant access a public method called in(), but can access the method showMessage() which is declared on the same class...
I really dont know why its not working....
Help will be very appreciated! Im really stucked on this...
thanks!

 
reply
    Bookmark Topic Watch Topic
  • New Topic