Having problems to create a window.

Well, I'm following Poryg the RPG Maker tutorial of javascript (just started today) and while trying to create the window this error happens.

Screenshot (387).png

Screenshot (388).png


the code
Screenshot (389).png


Am I missing something?
It's because you've set the prototype of Scene_Custome_Menu (and the initialize function call) to Scene_Base instead of Scene_MenuBase.

(if you were actually having it inherit from Scene_Base, you'd have to write your own createBackground function)

Original thread: https://forums.rpgmakerweb.com/threads/having-problems-to-create-a-window.124192/