Ryan's answer is good. Generally, ask yourself what makes more sense:
AT THE TIME or BECAUSE.
Sometimes it's impossible to tell:
"I told him to take my chair, as I was leaving"
Actually, now that I think about it, the punctuation may help:
Take my chair, as I was leaving sounds like BECAUSE I was leaving
Take my chair as I was leaving sounds like AT THE TIME I was leaving