# Help! (fmx) - change variable -

**URL:** https://forum.kirupa.com/t/help-fmx-change-variable/19575
**Category:** Uncategorized
**Created:** [April 29, 2003, 3:19pm UTC](https://forum.kirupa.com/t/help-fmx-change-variable/19575 "2003-04-29T15:19:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![liquivision](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@liquivision](https://forum.kirupa.com/u/liquivision)
#### Post date: [April 29, 2003, 3:19pm UTC](https://forum.kirupa.com/t/help-fmx-change-variable/19575/1 "2003-04-29T15:19:43Z")

</div>

I’m having some trouble with changing the value of my variable.

//I declare my variable in the first frame of the \_root timeline.

currentSlide = 1;

When the \_root movie plays it stops on a movie clip that contains four sub movie clips each is labelled sequentially( slide1, slide2, slide3 and slide4). I would like to know how to increase the value of my variable by 1 each time it progresses to the next slide. I can’t seem to get the variable currentSlide to change its value.

can anyone help?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 29, 2003, 4:03pm UTC](https://forum.kirupa.com/t/help-fmx-change-variable/19575/2 "2003-04-29T16:03:30Z")

</div>

Hi;

\_root.currentSlide ++;

is this what u mean?

SHO
