Changing variables when on a different frame

OK this might take a wile to explain but ill give it a go.
I’m trying to make a sort f upgrade menu for my Flash game (AS2)
but I’m a bit stuck. Ok my char has got this action script on it.

_global.speed = 1

onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x += speed;
this._rotation = 90;
} else if (Key.isDown(Key.LEFT)) {
this._x -= speed;
this._rotation = 270;
if (Key.isDown(Key.UP)) {
this._y -= speed;
this._rotation = 0;
if (Key.isDown(Key.DOWN)) {
this._y += speed;
this._rotation = 180;


That all works fine but what i want to do is make it that when you click a button the var speed will change. I can do that quite easily with this code

_global.speed += 1

and that works fine two but what i want to do is have the button for upgrading the speed on a different frame (ie. the upgrade menu)

So on frame 1 is the moving char and there is a button linking frame 1 to frame 2 (upgrade menu) and on that frame it has the button for upgrading the var speed and then a button linking frame 2 back to one but it doesn’t work. I think i no why because on the char is says onClipEvent(load){ _global.speed = 1 }

so that means that the var speed will revert back to 1 when you go back to the first frame.

if any one knows away around this problem could you please post a reply.