Passing parameters to onPress property

I'm trying to save time by creating one method that all of my drag-able objects can use. I need to pass the object that is being touched into the onPress function so that I can do what needs to be done with the the proper object.

So basically what I have no clue how to do is how to pass a parameter into the onPress property of setDrag.

This is what I have, right now which works properly

1
2
3
4
5
6
  chickc:setDrag{ 
                drag=true,
                onPress=chickPressFunction, 
                onRelease=chickReleaseFunction,
                bounds = { 0, 0, 768, 1024 }
        }
views:1453 update:2011/12/28 9:26:54
corona forums © 2003-2011