If you need access to these values (which is the stage width and height), do it through stage instead.