# Variables to load specific pages?

**URL:** <https://forum.kirupa.com/t/variables-to-load-specific-pages/95980>\
**Category:** Uncategorized\
**Created:** [December 3, 2003, 7:40am UTC](https://forum.kirupa.com/t/variables-to-load-specific-pages/95980 "2003-12-03T07:40:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bodom78](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@Bodom78](https://forum.kirupa.com/u/Bodom78)\
**Post date:** [December 3, 2003, 7:40am UTC](https://forum.kirupa.com/t/variables-to-load-specific-pages/95980/1 "2003-12-03T07:40:39Z")

</div>

I was wondering how you pass variables through AS, lets say there are 3 buttons on the main stage and the movie is stopped. Each button will will do the same thing and play the main timeline, but assign a new value to a set variable. At the end of the time line would be a script to act depending on what value has been set to the variable.

I have done similar thing in Directors Lingo which was quite simple but when I try something similar in Flash AS it never works.

Any sample scripts, tutorials on the subject or relevent info is appreciated.
