不确定是否使用 Haxe 或普通 flash

发布于 2024-09-02 10:45:46 字数 314 浏览 10 评论 0原文

当地一家运动服装公司雇用我为他们制作一款基于 Flash 的球衣颜色选择器之类的东西。他们希望用户能够查看特定设计在特定颜色下的外观。

现在,我绝不是一个伟大的开发人员(我才 16 岁,但我了解 javascript、flash 和一点 AS2),但我最近注意到了 Haxe,并认为这可能是一个很好的项目写入其中并编译为 swf。我不确定是否应该只使用 flash,或者是否应该使用 Haxe。

有人可以重复一下使用 Haxe 或 flash 的优点和缺点吗?

提前致谢!


PS我确实有一份Flash副本(由学校提供),所以这与我无关。

A local sports clothing company has hired me to make them a flash based jersey colour picker sort of thing. They are wanting it so users can check out what particular designs would look like with certain colours.

Now, I'm by no means a great developer (I'm 16, but I know my way around javascript, flash and a bit of AS2) but I've taken notice of Haxe recently and think it might be a good project to write in it and compile to a swf. I'm not sure if I should just use flash, or if I should use Haxe.

Is anybody able to iterate on the strengths and weaknesses of using Haxe or flash please?

Thanks in advance!


P.S. I do have a copy of flash (supplied by school), so that doesn't concern me.

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

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

发布评论

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

评论(3

风启觞 2024-09-09 10:45:46

我个人建议你使用 Haxe,因为缺乏替代方案:

学习 AS2 确实不值得,因为它已经过时了。
学习 AS3 并不值得,因为 AS3 是一种相当糟糕的语言,并且自从 4 年前发布以来就一直停滞不前。

Haxe 发展迅速,而且它是开源的,让您有机会在某一天随心所欲地增强该语言。它具有更强大、更具表现力的类型系统以及对功能风格更好的支持。它是一种更丰富的语言,但水平也很高。我认为对于你这个年纪的人来说,这是一门非常值得一看的语言,因为它促进了很多概念和范例,同时隐藏了低级编程语言的复杂性。

使用 SWC,您可以在 Haxe 项目中使用通过 Flash IDE 创建的图形,以避免用代码绘制所有内容。

问候
后退2dos

I personally suggest you use Haxe, due to the lack of alternatives:

Learning AS2 really isn't worth it, because it's quite obsolete.
Learning AS3 isn't really worth it, because AS3 is a rather poor language and has stalled since its release 4 years ago.

Haxe is moving fast, and it is open source, leaving you the chance to one day enhance the language as you please. It has a much stronger and more expressive type system and better support for functional style. It is a much richer language, yet very high level. I think for you at your age this is a very good language to look at, because it promotes a lot of concepts and paradigms, while hiding the intricacies of low level programming languages.

using SWCs you can use graphics created with the Flash IDE within Haxe projects, to avoid drawing everything with code.

greetz
back2dos

温馨耳语 2024-09-09 10:45:46

鉴于您可以使用 Flash 工具,因此在它们之间没有太多选择。

Haxe 通常被认为是更好的语言,并且它有一些巧妙的优化技巧(它比 Adob​​e 自己的工具更擅长生成字节码)以及“内联”和 内存访问。另一方面,Haxe 最好在代码编辑器中使用,并且您的问题可能最好以图形方式解决。

老实说,我建议坚持使用 Flash。为什么要给小项目增加风险?

Given your access to Flash tools, there's not a lot to choose between them.

Haxe is generally held up to be the better language, and it has some neat optimisation tricks (it's better at generating byte-code than Adobe's own tools) as well as 'inline' and memory access. On the other hand, Haxe is best wielded in a code editor and your problem might best be solved graphically.

I would recommend sticking to Flash, to be honest. Why add risk to a small project?

如若梦似彩虹 2024-09-09 10:45:46

AS2 只会给你带来横幅工作,你应该避免进一步学习它。
Flash 目标正在下降,因此尽管 adobe 可能正在调整 as3 以用于 Javascript 输出,
使用 Haxe 是明智的,因为它已经具有针对一系列目标的多功能性,并且是一种更好的语言。
我建议使用 flashIDE 进行布局和图形,如果您的代码不太好,那么使用 _up、_over 和 _down 标记的框架设置所有按钮状态。如果导出为 swf,则可以将其与 haxe 代码一起使用,但可以看到结果(与 swc 不同)。文本字段尤其值得在 flashIDE 中使用正确的文本格式进行设置,并且仅在您确定需要时才将各个方面设为动态。

短期来看,使用 as3 技能可能更容易获得 Flash 工作,因此两种方式都有优点。但事实是,如果您使用 as2、as3 还是 haxe(我建议在图形方面使用 flash IDE)并不重要,但如果您想创建 javascript 版本,那么 haxe 似乎是最明智的。

AS2 will only get you banner work you should avoid learning it further.
Flash target is in decline so although adobe is probably adapting as3 for Javascript output,
using Haxe is sensible because it already has the versatility to target a range of targets and is a better language.
I would advise using flashIDE for layout and graphics, if your code is not so good then setup all the button states with _up, _over, and _down labeled frames. If you export as swf then you can use it with haxe code but can see the result ( unlike with a swc ). Textfields especially are worth setting up with the correct format of text in the flashIDE, and only make aspects dynamic if you are sure they need to be.

Short term it maybe easier to get flash work with as3 skill so there are advantages both ways. But the truth is it does not really matter if you use as2, as3 or haxe ( I would advise using flash IDE for the graphics aspect ), but if you want to create a javascript version then haxe seems most sensible.

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