Using stageWidth & stageHeight

When you are creating a class which needs to know the stage width and height, how do you do this?

Till now I have been passing the stage as a parameter in order to be able to use its properties, but I feel this is not the correct way.

If I just try to use stage.stageWidth in a class, I get an error. Any suggestions?