# Simpel: variable within variable

**URL:** https://forum.kirupa.com/t/simpel-variable-within-variable/121551
**Category:** Uncategorized
**Created:** [September 3, 2004, 9:16pm UTC](https://forum.kirupa.com/t/simpel-variable-within-variable/121551 "2004-09-03T21:16:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![balthazar](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@balthazar](https://forum.kirupa.com/u/balthazar)
#### Post date: [September 3, 2004, 9:16pm UTC](https://forum.kirupa.com/t/simpel-variable-within-variable/121551/1 "2004-09-03T21:16:41Z")

</div>

hello generous flash experts,  
please help me get some sleep again…  
ive got two variables in \_root:  
var number = 1;  
var url= ‘Pictures/Rotterdam/photo’+number;  
buttons in my main movie change the values of these variables.  
my next button looks like this:  
on(press) {  
number = number +1;  
loadMovie(url);}  
Problem:  
loadMovie loads photo1 and thus has not used the new value for my number variable.  
how do i write my url variable so that it has the new value?
