@ozergul, it seems to me that you have copied the source from the Gideros Button directly into your main code and are trying to run it in the player. That simply won't work because "Button" is a class and can not be run on it's own. You need to create buttons (create instances of them) in your main.lua file.
If you load the button example project you will see that button.lua and main.lua are separate files. button.lua contains all of the code to create and manage a button, but does not run on it's own.
You will see that in the main.lua file the button is created from there.
a silly question: after running the player do you also run your code too? if not, you should. (there is a play button next to the rungiderosplayer 'controllerlike' button in the ide)
After you launch Gideros Player, you need to run the program using the the blue play button just to the right. You may need to wait for a second or to for this button to become active. (while it connects to the player).
Comments
If you load the button example project you will see that button.lua and main.lua are separate files. button.lua contains all of the code to create and manage a button, but does not run on it's own.
You will see that in the main.lua file the button is created from there.
Does that help you?
Interesting, I think gideros player has a bug on macosx.
youtu.be/szByCdAskZ4
Fragmenter - animated loop machine and IKONOMIKON - the memory game
take a look at his tutorial
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
Likes: john26