# Passing variables to a PREVIOUS scene

**URL:** <https://forum.kirupa.com/t/passing-variables-to-a-previous-scene/216204>\
**Category:** Uncategorized\
**Created:** [February 14, 2007, 2:50pm UTC](https://forum.kirupa.com/t/passing-variables-to-a-previous-scene/216204 "2007-02-14T14:50:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evdog](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@evdog](https://forum.kirupa.com/u/evdog)\
**Post date:** [February 14, 2007, 2:50pm UTC](https://forum.kirupa.com/t/passing-variables-to-a-previous-scene/216204/1 "2007-02-14T14:50:37Z")

</div>

lets say on scene 2 i edit some variables and i want to send them to scene 1.  
how do i do this?

the code i use for moving to the previous scene is this:  
button.onPress = function() {  
prevScene();  
}  
should i put the variables in the () of the prevScene?

thanks
