Reputation: 233
I've loaded some images to my swf, but I can't make them start dragging, startDrag() works only on a Sprite or MovieClip
Upvotes: 0
Views: 285
Reputation: 154
Bitmap Object hasn't got some eventListeners which Sprites and MovieClips have. So i think you should do it like that:
var bitmap_Object:Bitmap;
var container_sprite:Sprite = new Sprite;
stage.addChild(container_sprite);
container_sprite.addChild(bitmap_Object);
container_sprite.startDrag();
Upvotes: 2