Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
addEvent and function of class
#1
Code:
class Menu
{
    constructor()
    {
          addEvent("onClick", login);
           show();
    }
    
    function show()
    {
         setCursorVisible(true);
    }
    
    function hide()
    {
         setCursorVisible(false);
       }
    
    function login(button, x, y, wheel)
    {
        hide();
    }
}
If I use this class, the error: hide() is not exist.

what's wrong? Is it impossible?
Reply


Messages In This Thread
addEvent and function of class - by Xardas0327 - 22.05.2016, 19:43
RE: addEvent and function of class - by Galin - 23.05.2016, 08:51

Possibly Related Threads…
Thread Author Replies Views Last Post
  items and items.xml Utautai 2 2,438 12.09.2020, 21:51
Last Post: Utautai
Question Diagonal and PPI Osmith 0 1,955 21.04.2016, 11:44
Last Post: Osmith
  callClientFunc and giveItem Osmith 4 4,397 18.02.2016, 13:04
Last Post: Bimbol
  Database and other Question (new team) Kemi 18 12,220 09.02.2016, 22:23
Last Post: Kemi

Forum Jump:


Users browsing this thread: 1 Guest(s)