Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将一些图像加载到我的 swf,但我无法让它们开始拖动,startDrag() 仅适用于 Sprite 或 MovieClip
位图对象没有 Sprites 和 MovieClips 拥有的一些 eventListeners。所以我认为你应该这样做:
var bitmap_Object:Bitmap; var container_sprite:Sprite = new Sprite; stage.addChild(container_sprite); container_sprite.addChild(bitmap_Object); container_sprite.startDrag();