# How would you script Simple value changing?

**URL:** <https://forum.kirupa.com/t/how-would-you-script-simple-value-changing/233751>\
**Category:** flash\
**Created:** [July 26, 2007, 3:53pm UTC](https://forum.kirupa.com/t/how-would-you-script-simple-value-changing/233751 "2007-07-26T15:53:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shadowskater](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@Shadowskater](https://forum.kirupa.com/u/Shadowskater)\
**Post date:** [July 26, 2007, 3:53pm UTC](https://forum.kirupa.com/t/how-would-you-script-simple-value-changing/233751/1 "2007-07-26T15:53:09Z")

</div>

Okay well basically I am making a sort of pimp my ride flash for fun and I have most of the scripting down, I am a very basic scripter and I try anything I can think of to get the job done. Okay the flash all is on 1 frame and controlled in and by MC’s. So there are buttons that bring you to a menu and from the menu you can select different ways to mod your vehicle, and when you are done there is a back button that places the movie back at the very begining where you are viewing the vehicle and have a menu to select which part to modify. Well inside the menu changing the parts works fine but when I click the back button the parts get reset to the default such as when you start the movie.

So my idea was to have a value check in the beginning of the movie something like If value doorhandles=1 then :my code: else if value doorhandles=2 then :my code:

And then inside of my buttons that change the part I could add something like on (release) { value doorhandles = 2}

I remember doing something like this before or hearing about it before. Can anyone help me code this? Thanks so much in advance!
