Making Stage follow Player

Hello, I am trying to make the stage follow the player in AS3 (basically, so the ‘view’ follows the player and he remains in the center of the screen throughout).

Here is what I tried:

this.x = player.x-stage.width/2;
            this.y = player.y+stage.height/2;

If you could help me out that would be great thanks! :slight_smile: