Breakdown of Стоит ей услышать музыку, как она сразу начинает улыбаться.
Questions & Answers about Стоит ей услышать музыку, как она сразу начинает улыбаться.
Here стоит comes from стоить, not стоять. It does not mean stands.
In the pattern стоит + dative + infinitive, как ..., it means something like:
it only takes... or as soon as... or one has only to...
So Стоит ей услышать музыку, как... means As soon as she hears music... or more literally It only takes her to hear music for...
Because this construction normally uses the dative for the person involved:
стоит мне...
стоит тебе...
стоит ему / ей...
стоит нам...
So ей means for her in this pattern.
You are not using the normal subject form она here, because the first part is built as an impersonal structure: стоит + dative + infinitive.