程序员应该如何开始使用 Flash/Flex/ActionScript? [英] How should a programmer go about getting started with Flash/Flex/ActionScript?

查看:24
本文介绍了程序员应该如何开始使用 Flash/Flex/ActionScript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从零(即我的计算机上没有与闪存相关的开发软件或有关从何处获取或开始的信息)到运行hello world"ActionScript 之间的最短路径是什么?

What is the shortest path between zero (ie no flash related development software on my computer or information about where to obtain it or get started) to running a "hello world" ActionScript?

我希望得到一个分步说明的答案,其中包含有关开始需要哪些软件的分步说明、一些hello world"代码示例以及编译和运行代码的说明.

I'm hoping for an answer that gives step by step instructions about exactly what software is needed to get started, an example of some "hello world" code, and instructions for compiling and running the code.

我花了比我认为必要的时间更多的时间来研究这个问题,但没有找到太多信息.希望像我这样想开始使用 Flash/Flex/ActionScript 的程序员会发现这个问题(在我上午的研究之后,我什至不知道该使用什么术语,所以我将把它全部扔在那里).

I've spent more time than I think should be necessary researching this question and not found much information. Hopefully this question will be found by programmers like me who want to get started with Flash/Flex/ActionScript (After my morning of researching I still don't even know what terminology to use so I'll just throw it all out there).

我发现的 ActionScript 教程侧重于编程概念,即逻辑、分支、OOP 等,有些甚至还有代码示例可供下载,但我发现没有一个教程解释如何编译和运行代码.他们似乎都假设你有一个待命的 IDE,但没有编程知识,这与我所处的位置正好相反.

ActionScript tutorials I've found are focused on programming concepts, ie logic, branching, OOP, etc, and some even have code examples to download, but not a single one I've found explains how to compile and run the code. They all seem to assume you have an IDE standing by but no knowledge of programming, exactly the opposite of the position I'm in.

以下是我发现的最相关的 SO 问题:
什么是 Adob​​e Flex?只是 Flash II 吗?
Flex 3 UI ActionScript 编程入门
https://stackoverflow.com/questions/2123105/how-to-learn-flex

Here are the most related SO questions I've found:
What is Adobe Flex? Is it just Flash II?
Getting Started with Flex 3 UI ActionScript Programming
https://stackoverflow.com/questions/2123105/how-to-learn-flex

推荐答案

如果您是程序员,请走 Flex 路线.Flex 完全免费使用,您可以立即获得 Hello World SWF.您可以使用 FlexBuilder 演示或免费提供但有时不太有用的 FlashDevelop.(实际上我认为 FlashDevelop 的唯一问题是它没有一个好的调试器,或者没有,我上次检查时没有).

If you're a programmer, go down the Flex route. Flex is completely free to use and you can get a Hello World SWF in no time. You can use the FlexBuilder demo or the freely available but sometimes less helpful FlashDevelop. (Actually I think the only problem with FlashDevelop is it doesn't have a good debugger, or didn't, last time I checked).

也就是说,我强烈建议不要使用 Flex、Flash 或任何 Adob​​e 产品,因为根据我的经验,Flex 是一种糟糕的 API,而 ActionScript 是一种糟糕的语言.Flash 仍然是 RIA 最好的平台,因为它的渗透性,所以如果 AJAX 不能解决你的问题,请务必学习 Flex.当然,与它合作并非不可能.但 Flex 就像是一组在高中上过一门 Java 课程的人重新诠释的 Java 库.

That said, I would strongly advise against using Flex, Flash, or any Adobe product really, because in my experience Flex is a horrible API and ActionScript is a horrible language. Flash is still the best platform for RIA just because of its penetration, so if AJAX can't solve your problems by all means learn Flex. Certainly it's not impossible to work with. But Flex is like the Java library re-interpreted by a team of people who took one Java class in high school.

无论如何,

1) 从 Adob​​e 获取 FlexBuilder 演示:http://www.adobe.com/产品/flex/flexdownloads/
我非常有信心它随 Flex SDK 一起提供.

1) Get the FlexBuilder demo from Adobe: http://www.adobe.com/products/flex/flexdownloads/
I'm pretty confident it comes with the Flex SDK.

2) 启动一个新的 Flex 项目.

2) Start a new Flex project.

3) 已经编写了一个基本的 MXML 程序.在标签中添加

3) A basic MXML program is already written. Add <mx:Label text="Hello world" /> in the <mx:Application> tag

4) Run->Run YourProjectNameHere

4) Run->Run YourProjectNameHere

5) 阅读可怕的 Adob​​e 文档和 Flex API 参考.

5) Read the horrible Adobe documentation and Flex API reference.

这篇关于程序员应该如何开始使用 Flash/Flex/ActionScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆