How to pass a variable to another frame or function?

Hi, I’m trying to pass a variable to another frame but it’s not working, can anyone please explain how to do this.

(I’m trying to build a video player–I have buttons for various videos on one frame and the player on another frame.)

Thanks!