[MX6.0] write frameposition

Hi
I am handling a lot of levels and mc. When mcA is in its endpostitions I want the current frame in mcB to be written as a new frameposition that later can be called upon. Any tips? A would very much appreciate any comments. I am new to actionscripting. I am using Macromedia Flash MX 6.0

Thanks!