AGB stars and galactic dynamics