# Tween Class to move an object called from within the object

**URL:** <https://forum.kirupa.com/t/tween-class-to-move-an-object-called-from-within-the-object/270162>\
**Category:** flash\
**Created:** [September 5, 2008, 7:30pm UTC](https://forum.kirupa.com/t/tween-class-to-move-an-object-called-from-within-the-object/270162 "2008-09-05T19:30:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjg08](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mjg08](https://forum.kirupa.com/u/mjg08)\
**Post date:** [September 5, 2008, 7:30pm UTC](https://forum.kirupa.com/t/tween-class-to-move-an-object-called-from-within-the-object/270162/1 "2008-09-05T19:30:48Z")

</div>

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

```php

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
