[as2] Read specific field in XML if i press a specific buton

Hello , so i need to make a flash that will do the next things.

if user press button “x” on the next frame should display “x” text from a xml.

if user press button “y” on the next frame should display “y” text from a xml.

and so on…

can anyone provide me some infos , tnx !