Changing a global variable on a frame

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?