Flex 拖动并调整大小
我需要通过鼠标在画布上拖动来绘制线条、圆形和矩形,然后需要移动绘制的形状并调整其大小。 我如何在 Flex 中执行此操作,因为我是这个平台的新手。 请建议我该方法或参考任何带有源代码的示例,以便我理解。 请帮忙。 提前致谢。
I need to draw Line, Circle, and rectangle by mouse drag on canvas and then i need to to move and resize the drawn shapes.
How i can perform this in flex as i am new on this platform.
Please suggest me the method or refer any example with source to make it understand to me.
Please Help.
Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Flex 中没有这样的原生功能。 但是,有几个选项,商业的和非商业的:
http://www.rogue-development .com/objectHandles.html(免费)
http://www.flashcomguru.com/components/flex_whiteboard/whiteboard_demo/ (付费)
如果您愿意,您可以手工完成,这并不难。 我建议您使用 Degrafa (http://degrafa.org/) 进行实际绘图,因为它更容易比原生绘图 API 更重要,而且它是开源的。
There is no such native feature in Flex. But, there are a couple of options, commercial and not:
http://www.rogue-development.com/objectHandles.html (free)
http://www.flashcomguru.com/components/flex_whiteboard/whiteboard_demo/ (payed)
You can do it by hand, if you wish, it's not very hard. I advice you to use Degrafa (http://degrafa.org/) for the actual drawing since it is way easier than native drawing API and it is opensource.