Secondly, when you change a scene, the current scene is removed from the tree. Since scene A with the button is no longer running, you can’t receive a signal from it. [Read more here](https://Note: Operations happen in the following order when change_scene_to_packed is called: The current scene node is immediately removed from the tree. From that point, Node.get_tree called on the current (outgoing) scene will return null. current_scene will be null, too, because the new scene is not available yet.)
I think having a scene manager will work best for what you want to achieve. A scene manager is just an autoload script that is responsible for changing the scenes. Since it is always running, you can call any function in B_Scene after it is loaded.