[LibGDX] move between screens

hello , i’m still using libGdx 0.99
in my older project i used to move between screen when a button is clicked (lets say in main menu)
using this :


if(buttonName.isPressed()){
				((Game) Gdx.app.getApplicationListener()).setScreen(new ScreenName());

for some reason this is not working on my new project … i get this error:
“The method getApplicationListener() is undefined for the type Application”
any idea how to over come this ?