# Changing a global variable on a frame

**URL:** <https://forum.kirupa.com/t/changing-a-global-variable-on-a-frame/316769>\
**Category:** flash\
**Created:** [December 2, 2010, 2:23am UTC](https://forum.kirupa.com/t/changing-a-global-variable-on-a-frame/316769 "2010-12-02T02:23:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garb](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@Garb](https://forum.kirupa.com/u/Garb)\
**Post date:** [December 2, 2010, 2:23am UTC](https://forum.kirupa.com/t/changing-a-global-variable-on-a-frame/316769/1 "2010-12-02T02:23:48Z")

</div>

Hi! I was wondering how in AS2 you change change, lets say the variable \_global.speed = 12, which is placed on a main timelime frame and make it so on a specific frame of a movie clip the variable changes.

How can i do this?
