File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with class for a script object

 
Vinicius Souza
Ranch Hand
Posts: 70
1
Chrome Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • 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!

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic