# How to pass a variable to another frame or function?

**URL:** <https://forum.kirupa.com/t/how-to-pass-a-variable-to-another-frame-or-function/297664>\
**Category:** flash\
**Created:** [October 6, 2009, 8:56pm UTC](https://forum.kirupa.com/t/how-to-pass-a-variable-to-another-frame-or-function/297664 "2009-10-06T20:56:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jac4b](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@jac4b](https://forum.kirupa.com/u/jac4b)\
**Post date:** [October 6, 2009, 8:56pm UTC](https://forum.kirupa.com/t/how-to-pass-a-variable-to-another-frame-or-function/297664/1 "2009-10-06T20:56:23Z")

</div>

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!
