Custom class not working in flash mx 2004

Hello,

I made a class that runs fine when used in a movie published from flash 8 on a PC WinXP, but when i try to use it in mx2004 Mac OSX, i get the error:


**Error** xxxxx:Archive 02 WIP:test:PicSwitch.as: Line   42: There is no property with the name 'onMotionFinished'. 
             tweenIn.onMotionFinished = function() { 

**Error** xxxxx:Archive 02 WIP:test:PicSwitch.as: Line   48: There is no property with the name 'onMotionFinished'. 
             tweenOut.onMotionFinished = function() { 

In my class on the first line i use:

import mx.transitions.Tween

… so that i can use the Tween class in my class. I’m guessing the problem is in there somewhere.

Any thoughts?