while walking down the street
通りを歩いていたとき交通事故を見かけた。
I saw a traffic accident while walking down the street.
通りを歩いていたとき、旧友に会った。
I ran into an old friend while walking down the street.
通りを歩いていたとき、昔からの友達に会った。
While I was walking down the street, I ran into an old friend.