flex:能够拖放影片剪辑
为了改善用户体验,我们希望能够拥有旋转轮的动画影片剪辑,并能够将其拖放到定义区域的任何位置。
我们已将旋转轮构建为 SWC 文件。
我们如何进行拖放。我见过的例子只满足图像的丢失。再次感谢
In order to improve user experience we want the ability to have an animated movieclip of a turning wheel- and have the ability to drag and drop it anywhere on a defined area
We have built the rotating wheel as a swc file.
How do we do the drag+drop. Examples that I have seen, cater to only dropping of images. Thanks again
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要使用 Flex 类进行拖放,您需要将该 movieClip 包装在 UIComponent;其中包含与拖放相关的所有事件。
这里有一些好的说明。要复制相关部分:
To use the Flex classes for drag and drop you'll need to wrap that movieClip in an a UIComponent; which has all the events related to drag and drop.
Here are some good instructions. To copy the relevant pieces:
您应该为
movieClip
指定dragProxy
来保存它的实例而不是固定图像。You should specify the
dragProxy
for themovieClip
to hold an instance of it instead of a fixed image.