# Updating variables

**URL:** <https://forum.kirupa.com/t/updating-variables/66490>\
**Category:** flash\
**Created:** [October 6, 2004, 11:04am UTC](https://forum.kirupa.com/t/updating-variables/66490 "2004-10-06T11:04:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phat7](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@Phat7](https://forum.kirupa.com/u/Phat7)\
**Post date:** [October 6, 2004, 11:04am UTC](https://forum.kirupa.com/t/updating-variables/66490/1 "2004-10-06T11:04:34Z")

</div>

Here’s a tricky question: If I update a variable and then go back in timeline, will the variable have the updated value?

This is a code on a button on frame 3:

```auto
on (release) {
	myvar += 1;
	_root.play();
}

```

Frame 3 sends me to frame 2 again, where I use myvar… It’s kinda working but there are some anomalies going on. I want to know if anyone had an experience like this.
