Java/GWT 开发人员的 Flex 2D 图形学习路径?

发布于 2024-07-12 08:53:19 字数 250 浏览 3 评论 0原文

我使用 Java 进行开发已经有好几年了,过去六个月我一直在构建基于 GWT 的应用程序。 但我几乎没有 Flash 或 Action Script 经验,我想尝试使用 Flex 进行一些业余编程。 尤其是 2D 图形和图像处理将是有趣的主题。

Adobe 针对 Java 开发人员的教程自然是起点,但我需要一些图形方面的指导。 例如根据服务器的数据绘制 2D 图形或修改用户上传的图像。 有多少事情可以在Flex上完成,哪些事情必须在服务器端完成?

I have been developing with Java for several years and last six months I have been building GWT based application. But I have almost no Flash or Action Script experience and I would like to try out some hobby programming with Flex. Especially 2D graphics and image manipulation would be interesting topics.

Adobe's tutorials for Java developers are naturally the starting point but I would need some pointers for graphics. Something like drawing 2D graphics based on data from the server or modifying image uploaded by user. How much can be done on the Flex and what must be done on the server side?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

や莫失莫忘 2024-07-19 08:53:19

对于绘图,您不需要“完整”的 Flex 库,Flex 主要为您提供一组很好的 GUI 组件以及一些轻松与后端服务器集成的方法。

如果您只想绘制一些内容,请查看 Graphics 对象 http: //livedocs.adobe.com/flex/3/langref/flash/display/Graphics.html - 它的工作方式与 java Graphics 对象类似。

如果您想修改用户上传的图像,您当然已经在服务器上(因为图像已上传) - 但是新的 Flash 播放器(版本 10)也允许对本地数据进行一些操作,因此它甚至可能是可以显示甚至未上传的修改后的图像,请参阅 http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/

Flex/AS3 对于 java 程序员来说会感觉有点奇怪 - 它的一部分非常简单,而其他部分会令人沮丧,工具支持更差,编译器速度慢,不支持运行单元测试而不跳过很多麻烦(不要得到我开始...)。 但作为一个部署平台,我必须说我非常喜欢它。

For drawing you don't need the 'full' flex library, flex will mostly provide you with a nice set of GUI components and some ways to integrate with your back-end server easily.

If you just want to draw something check out the Graphics object http://livedocs.adobe.com/flex/3/langref/flash/display/Graphics.html - it works similar to the java Graphics object.

If you want to modify an image uploaded by the user you are of course already at the server (because the image was uploaded) - however the new flash player (version 10) allows some manipulations of local data as well, so it might even be possible to show a modified image that was not even uploaded, see http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/ for example.

Flex/AS3 will feel a bit weird to a java programmer - parts of it are very easy and other parts will be frustrating, tooling support is worse, slow compiler, no support for running unittests without jumping through lots of hoops (don't get me started...). But as a deployment platform I must say I like it a lot.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文