Can't change position of image in Unity 4.6


I am trying to move the image & change the color of image from code. I can change the color by using GetComponenet.
But i can’t change the position of an image.
i have tried anchoredPosition3D, anchoredPosition, localPosition, position.

I have to move my image in between 0 to NEGATIVE 252. but i can only have it either 0 or POSITIVE 252. I can’t get values between them.

Formula for calculating the position is absolutely right. But still i can’t apply those values.
Please help me.


Value i posted was just example my friend.
by the way, i found the solution. newXPos was a float variable & i was trying to use it as an integer.
Thanks for your help my friend.