set drag?

how can i set drag to this object:
local button = display.newImage( “Start Game.png” )
the code i am using is this, but it doesn’t seem to work.
myAnim:setDrag{ drag=true, limitX=false, limitY=false, onPress=myPressFunction, onDrag=myDragFunction, onRelease=myReleaseFunction, bounds= { 10, 10, 200, 50 }

and in my code it looks like this all together:
local button = display.newImage( “Start Game.png” )
myAnim:setDrag{ drag=true, limitX=false, limitY=false, onPress=myPressFunction, onDrag=myDragFunction, onRelease=myReleaseFunction, bounds= { 10, 10, 200, 50 }
[import]uid: 19836 topic_id: 6262 reply_id: 306262[/import]

am i supposed to put object:setDrag in the front? [import]uid: 19836 topic_id: 6262 reply_id: 21690[/import]