Move object from another class

So i have this one class that says this in a function for example:


public function setUp():void
{
public var newObj[0].x = 50;
}

public function moveObj(moveDist):void
{
trace("WORKING");
newObj[0].x += moveDist;
}

and in another class it says:


class1.moveObj(50);

it traces “WORKING” just fine, but the object doesnt move. Yet when i try to run *class1.moveObj(50) *from the same class the object was paced in, it moves the object fine. any help here? thanks.