Relate AS2 and AS3

I have a BIG problem . A friend of mine built a template in AS 2.0 . He asked me to do some kind of calculator in flash , but i did it in AS 3.0 . How can i put my classes , into the template … because i know that as2 and as3 don`t work together in the same fla .

I have an idea . I want to make the AS 3.0 part idependently , and than go into the AS 2.0 template file and make some kind of frame to show the AS3.0 swf …

How can i do this ? Please help me . Thanks in advence .