Quick frame animation question

Was just wondering if its possible to somehow have some AS code, to play like 1-20 frames backwards, instead of copying it to like 21-40 and reversing it manually in the timeline