I left out a sentence.

What is the meaning of "as" in the following sentence?

As she was leaving the room, she dropped her scarf so I ran after her.
Does "as" mean "when/while/the moment that"?

Yes, you have the meanings. The point is that the two verbs' actions were occurring at the same time.