适用于简单交互式 Web 应用程序的工具
我想创建不复杂的交互式 Web 应用程序。它有一些看板,用户可以在这个看板上创建许多简单的对象(例如许多小圆圈)。此后,用户可以:
- 移动这些对象
- 删除其中一些对象或创建新对象
- 进行多项选择并移动/旋转所选组的元素
- 以某种特殊顺序(网格、线、圆等)放置所选组的成员
- 放大/缩小pinboard
我认为我可以使用 Flash/Flex 或 JavaScript/SVG/VML 来实现此目的。 Flash的缺点是用户必须有插件。 JS/SVG/VML 的缺点是没有像 Flash 那样强大的开发工具,但是如果我们使用一些库(例如 http://raphaeljs.com/)应用程序不需要 flash 插件。
我正在为这个目标找到合适的工具。所以请给我一些建议。提前致谢。
I want to create not complex interactive web application. It has some pinboard and user can create many simple objects on this pinboard (e.g. many small circles). After this user can:
- move these objects
- delete some of them or create new ones
- make multiple selection and move/rotate elements of selected group
- place members of the selected group in some special order (grid, line, circle, etc)
- Zoom in/out pinboard
I think that I can use Flash/Flex or JavaScript/SVG/VML for this purpose. Disadvantage of Flash is that user must have plugin. Minus of JS/SVG/VML is that there aren't such powerfull developing tools as in Flash case, but if we use some library (like http://raphaeljs.com/) application won't require flash plug-in.
I'm finding right tool for this aim. So give me some recommendations, please. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信您可以使用 HTML(5)、JavaScript 以及 Canvas 元素,在没有 Flash 的情况下实现您的目标 存在于 HTML5 中。
底线是,除非您今天需要您的应用程序以接近三位数的帧速率对大量对象进行动画处理,否则上述内容应该足够了,并且还可以为您提供一个未来的 Web 开发平台。我经常对新东西持怀疑态度,但 HTML5 和 Canvas 相当标准化、无专利并且正在被积极采用。
我能想到的使用 Flash 的唯一好处是得到了丰富的 API 的支持,该 API 可以处理 2D 和 3D,而且您可以稍后移植您的 ActionScript 代码,比如 JavaScript您最终决定使用 HTML+JavaScript。除了可能需要重写部分绘图堆栈之外,您的 ActionScript 代码将需要最少的(主要是语法上的)更改。
我仍然建议您采用我的第一个建议,除非您需要实时(摄像机)视频发布、3D、声音编辑以及 Flash Player 之外无法轻松使用的一些功能。我认为你不需要。
I believe that you can achieve your goals without Flash using HTML(5), JavaScript and not the least the Canvas element present in HTML5.
Bottomline is, unless you today require your application to animate a lot of objects with framerates approaching three digits, the above should suffice fine and will also pair you with a prospective Web development platform. I am often sceptical of the new stuff, but HTML5 and Canvas are fairly standardized, patent-free and are being actively adopted.
The only benefit of going with Flash that I can think of is being backed by a rich API that does 2D as well as 3D, and the fact that you can later port your ActionScript code to say, JavaScript when you finally decide to go with HTML+JavaScript instead. Aside from having to perhaps rewrite part of your drawing stack, your ActionScript code will require minimal (syntactic mostly) changes.
I would still advise you to go with my first suggestion, unless you need live (camera) video publishing, 3D, sound editing and few features not available easily outside Flash Player. Which I don't think you will need.
您可能想看看现有的类似项目,例如 SVG Edit (MIT执照)。
You might want to have a look at existing similar projects, such as SVG Edit (MIT license).