setDrag problem

First off, I’m using the SpriteGrabber code:

http://developer.anscamobile.com/code/spritegrabber-spritesheets-two-lines

Which seems awesome and does what I need it to do.

I’m trying to make the objects I instantiate (single-frame sprites) draggable. However, setDrag is nil in the instantiated object.

When I interrogate the object, I get this:

show: function
_proxy: userdata
getShape: function
playClip: function
_class: table
hide: function

What do I need to do to make this draggable?

Thanks!

-John [import]uid: 29170 topic_id: 19756 reply_id: 319756[/import]

Anybody? [import]uid: 29170 topic_id: 19756 reply_id: 76611[/import]

Hi, are you including movieclip.lua and requiring that file? setDrag needs that file. I’m not using spritegrabber so not sure if this is what your looking for.

Here is the setDrag doc:

http://developer.anscamobile.com/reference/index/objectsetdrag
Thanks!

[import]uid: 44337 topic_id: 19756 reply_id: 76635[/import]