# TweenClass problems

**URL:** <https://forum.kirupa.com/t/tweenclass-problems/273017>\
**Category:** flash\
**Created:** [October 10, 2008, 8:45am UTC](https://forum.kirupa.com/t/tweenclass-problems/273017 "2008-10-10T08:45:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elyleebert](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@elyleebert](https://forum.kirupa.com/u/elyleebert)\
**Post date:** [October 10, 2008, 8:45am UTC](https://forum.kirupa.com/t/tweenclass-problems/273017/1 "2008-10-10T08:45:22Z")

</div>

Hi

I have set up my own class and would like to include the tween class in a rollover state to produce an animation. Here is my code:

import mx.transitions.Tween;  
import mx.transitions.easing.\*;  
class ButtonTweenClass extends MovieClip {

public function ButtonTweenClass() {  
this.gotoAndStop(“up”);  
//tweenBall(this)  
}  
private function onRollOver() {  
[//this.gotoAndStop](https://this.gotoAndStop)(“over”);  
tweenBall(this);  
}  
private function onRollOut() {  
this.gotoAndStop(“up”);  
}  
private function onPress() {  
this.gotoAndStop(“down”);  
}  
private function onDragOut() {  
this.gotoAndStop(“up”);  
}

function tweenBall(mc) {  
var begin = 20;  
var end = 380;  
var time = .5;  
var ballTween = new Tween(mc, “\_x”, Bounce.easeOut, begin, end, time, true);  
}  
}

The problem is that I am getting an error:

C:\Documents and Settings\lee.marshall\Local Settings\Application Data\Adobe\Flash CS3\en\Configuration\Classes/mx/transitions/Tween.as:1: characters 494-515 : Warning unsupported #include

Could anybody offer me some advice?

Kind regards
