I have a custom class that I want to move with the Tween Class
I am calling the Tween constructor from within that class but when I pass the keyword “this” as the object of that constructor , it doesnt move at all the code is as follow
package{
import fl.transitions.Tween;
import flash.display.MovieClip;
public class PortViewer extends MovieClip{
var _twn:Tween;
public function PortViewer(){
_twn = new Tween(this, "y", None.easeNone, 0, 100, 2, true);
}
}
}
how do I reference the object from within itself is there another keyword?
There are no errors it just doesnt move
Thank you Kirupa forums