Access Scene Function from Game_System

hey guys, I'm new to javascript and what I don't know is how to access a scene_map function from game_system.

I know  I can access game_system from scene_map by $gameSystem.

but how to vice versa?

I have try

var $sceneMap = new Scene_Map();and call it in Game_system

$sceneMap.myStuff(string, number)but it not work. can someone help me.
you can't access the Scene_Map content (since it's require a ID) UNLESS you recognize the ID

you have to access via Game_Map 
you can't access the Scene_Map content (since it's require a ID) UNLESS you recognize the ID

you have to access via Game_Map 
can you show some example?

can I do $gameMap(id).myStuff(string, number)

if so, how to get current map id?
like I said you can't access the scene stuff via Game_System simply because the way's it's work

and getting the current map_id in JS I don't remember I would have to look 

but this would not work simply because when you do new Scene_Map

you call a NEW instance of map's so it's like you was making a refresh and scene not work at all like that you can't just extract the function from the scene to a Game_Object
btw, can I addChild for scene map from game_system.

example:

Game_System.prototype.createmyWindow = function(title) { this._testWindow = new Window_test(title); Scene_Map.addChild(this._testWindow);}I use Scene_Map.addChild. Will this work?
no you can't this not how Stage work's just work internal instead 
Ah... nevermind. what I need to do is define a variable.

Thanks for help.

Original thread: https://forums.rpgmakerweb.com/threads/access-scene-function-from-game_system.51454/