# Custom class not working in flash mx 2004

**URL:** <https://forum.kirupa.com/t/custom-class-not-working-in-flash-mx-2004/178263>\
**Category:** Uncategorized\
**Created:** [February 8, 2006, 10:59pm UTC](https://forum.kirupa.com/t/custom-class-not-working-in-flash-mx-2004/178263 "2006-02-08T22:59:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dragonfly](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dragonfly](https://forum.kirupa.com/u/dragonfly)\
**Post date:** [February 8, 2006, 10:59pm UTC](https://forum.kirupa.com/t/custom-class-not-working-in-flash-mx-2004/178263/1 "2006-02-08T22:59:47Z")

</div>

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:

```auto

**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?
