Hello,
I have created a simple button class, to fire roll over and out states of a movie clip attached from the library.
However - I want to use a Tween engine to make my onRollOver events animate nicely.
This causes my class to clash with my tween class!
Is there any way around this??!!
class IndexClass extends MovieClip
{
public function IndexClass()
{
this.onRollOver = this.over();
this.onRollOut = this.out();
}
public function over()
{
this.tween("_x",280,1,"easeoutSine");
}
public function out()
{
this.tween("_x",0,1,"easeinSine");
}
}
Is my class code.
So the ‘tween’ isn’t recognised by the class file, although it would if it were in the native actionscript code where the
#include "MC_tween.as"
is kept and initialised…
Any help out there! There’s always a way around!:stare: