I believe this behavior is somewhat immature. It seems like she's unsure of how to act in order to get your attention, but not to give out her feelings too much. Probably, she's afraid that she might lose your appreciation if she shows too much, but if she stays 'cold' and 'distant', you will...